:root {
      --bg-dark: #12141f;
      --bg-sidebar: #1a1d29;
      --bg-card: #202434;
      --gold: #fec20f;
      --accent-purple: #8e2de2;
      --accent-pink: #ff007f;
      --text-white: #ffffff;
      --text-gray: #8f9bb3;
      --border: #2c3040;
      --panel: #252a3b;
    }


/* Light mode (toggleable) */
body.light {
  --bg-dark: #f6f7fb;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --text-white: #0f1222;
  --text-gray: #4b5568;
  --border: #d6d9e5;
  --panel: #f0f2f8;
}
body.light ::-webkit-scrollbar-thumb { background: #c9ceda; }
body.light .search-input::placeholder { color: rgba(15, 18, 34, 0.45); }
body.light body.light .provider-card { color: var(--text-gray); }
body.light .toast { box-shadow: 0 14px 30px rgba(0,0,0,0.12); }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    }

    body {
      background-color: var(--bg-dark);
      color: var(--text-white);
      display: flex;
      min-height: 100vh;
    }

    /* Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg-dark); }
    ::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

    /* Sidebar */
    .sidebar {
      width: 80px;
      background-color: var(--bg-sidebar);
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 20px;
      position: fixed;
      height: 100vh;
      border-right: 1px solid var(--border);
      z-index: 100;
    }

    .sidebar-item {
      color: var(--text-gray);
      font-size: 1.2rem;
      margin-bottom: 24px;
      cursor: pointer;
      transition: 0.25s;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 46px;
      height: 46px;
      border-radius: 12px;
      user-select: none;
    }



    /* Sidebar cart (mobile/tablet only) */
    .sidebar-cart { display: none; }

    /* Sidebar auth (mobile/tablet only) */
    .sidebar-auth { display: none; }
    .sidebar-item:hover, .sidebar-item.active {
      color: var(--gold);
      background: rgba(254, 194, 15, 0.08);
    }

    .logo-icon {
      color: var(--gold);
      font-size: 1.8rem;
      margin-bottom: 36px;
    }

    
    
    .logo-icon .logo-img {
      width: 34px;
      height: 34px;
      display: block;
    }
/* Sidebar bottom actions */
    .sidebar-bottom{
      margin-top: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding-bottom: 18px;
      width: 100%;
    }
    /* Main */
    .main-content {
      margin-left: 80px;
      width: calc(100% - 80px);
      padding: 20px;
    }

    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 18px;
      gap: 16px;
    }

    .logo-text {
      font-size: 1.55rem;
      font-weight: 800;
      letter-spacing: 2px;
      text-transform: uppercase;
      white-space: nowrap;
    }

    /* Search */
    .search-bar {
      flex: 1;
      max-width: 620px;
      background: var(--panel);
      padding: 10px 14px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--border);
    }
    .search-bar i { color: #8b94b0; }
    .search-input {
      width: 100%;
      background: transparent;
      border: none;
      outline: none;
      color: var(--text-white);
      font-size: 0.95rem;
      letter-spacing: 0.5px;
    }
    .search-input::placeholder { color: rgba(255,255,255,0.45); }

    /* Hero (fixed size always) */
    .hero-banner-container {
      margin-bottom: 26px;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 20px rgba(0,0,0,0.3);
      border: 1px solid var(--border);
      height: 320px;
      background: #0f111a;
      position: relative;
    }
    .hero-banner-img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      object-position: center;
      transform: scale(1.01);
    }
    .hero-banner-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, rgba(18,20,31,0.1), rgba(18,20,31,0.1));
      pointer-events: none;
    }

    /* Nav pills */
    .game-nav {
      display: flex;
      gap: 10px;
      margin-bottom: 14px;
      overflow-x: auto;
      padding-bottom: 10px;
    }
    .nav-pill {
      padding: 8px 16px;
      background: var(--bg-card);
      border-radius: 20px;
      font-size: 0.85rem;
      cursor: pointer;
      white-space: nowrap;
      border: 1px solid var(--border);
      color: var(--text-white);
transition: 0.2s;
      user-select: none;
      letter-spacing: 0.5px;
    }
    .nav-pill:hover { border-color: rgba(254,194,15,0.55); }
    .nav-pill.active { background: var(--gold); color: #000; border-color: rgba(254,194,15,0.85); }
body.light .nav-pill { color: var(--text-white); }
body.light .nav-pill.active { color: #000; }


    /* Sections */
    .section-title {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 28px 0 14px 0;
      font-size: 1.05rem;
      letter-spacing: 0.6px;
    }

    /* ✅ 6 games per row (desktop) */
    .grid-container {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 16px;
    }

    .game-card {
      background: var(--bg-card);
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      aspect-ratio: 1/1;
      border: 1px solid var(--border);
      transform: translateZ(0);
    }
    .actual-game-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.28s ease;
      display: block;
    }
    .game-card:hover .actual-game-img { transform: scale(1.08); }

    /* Utility */
    .hidden { display: none !important; }

    /* Providers */
    .providers-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 10px;
      margin-top: 10px;
    }
    .provider-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      padding: 15px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: var(--text-gray);
      letter-spacing: 0.8px;
    }

    /* Footer */
    footer {
      margin-top: 44px;
      padding: 26px;
      background: var(--bg-card);
      border-radius: 15px 15px 0 0;
      border: 1px solid var(--border);
    }
    .crypto-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--panel);
      padding: 14px;
      border-radius: 10px;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 10px;
      border: 1px solid var(--border);
      letter-spacing: 0.5px;
    }
    .coin-icons i { margin-right: 10px; font-size: 1.5rem; color: #888; }

    .btn {
      padding: 10px 18px;
      border-radius: 10px;
      border: none;
      cursor: pointer;
      font-weight: 800;
      transition: 0.2s;
      user-select: none;
      letter-spacing: 0.8px;
    }
    .btn-primary { background: var(--gold); color: #000; }
    .btn-ghost { background: transparent; color: var(--text-white); border: 1px solid #444; }
    .btn:hover { opacity: 0.86; }

    /* Toast */
    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      color: var(--text-white);
padding: 12px 14px;
      border-radius: 12px;
      box-shadow: 0 10px 24px rgba(0,0,0,0.35);
      display: none;
      z-index: 2000;
      max-width: 380px;
    }
    .toast .title {
      font-weight: 900;
      color: var(--gold);
      margin-bottom: 4px;
      font-size: 0.95rem;
    }
    .toast .msg {
      color: var(--text-gray);
font-size: 0.9rem;
      line-height: 1.25rem;
      letter-spacing: 0.4px;
    }

    /* Modals */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.85);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      backdrop-filter: blur(5px);
      padding: 18px;
    }

    .modal-box {
      background: var(--bg-card);
width: 92%;
      max-width: 720px;
      padding: 24px;
      border-radius: 16px;
      text-align: center;
      position: relative;
      border: 2px solid var(--gold);
      box-shadow: 0 0 40px rgba(160, 32, 240, 0.5);
    }

    /* ✅ Bigger Play modal (desktop) */
    .modal-box.big {
      width: 95vw;        /* almost full width */
      max-width: 1300px;  /* cap for large screens */
      padding: 14px;
    }

    .close-btn {
      position: absolute;
      top: 10px;
      right: 14px;
      color: var(--text-white);
cursor: pointer;
      font-size: 1.8rem;
      transition: color 0.2s;
      user-select: none;
      line-height: 1;
      z-index: 5;
    }
    .close-btn:hover { color: var(--gold); }

    .modal-game-title {
      font-size: 1.8rem;
      margin-bottom: 10px;
      color: var(--gold);
      padding-right: 26px;
      letter-spacing: 1px;
    }

    .modal-details {
      margin-bottom: 14px;
      color: var(--text-gray);
      font-size: 0.9rem;
      display: flex;
      justify-content: center;
      gap: 14px;
      flex-wrap: wrap;
      letter-spacing: 0.5px;
    }
    .modal-details span i { color: var(--accent-purple); margin-right: 6px;}

    .preview-wrapper {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #000;
      height: 340px;
      margin-bottom: 14px;
    }
    .preview-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      opacity: 0.92;
    }

    /* ✅ 16:9 iframe shell */
    .iframe-shell {
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #000;

      aspect-ratio: 16 / 9;
      width: 100%;

      /* keep it from exceeding viewport height */
      max-height: min(82vh, 760px);
    }
    .iframe-shell iframe {
      width: 100%;
      height: 100%;
      border: 0;
      display: block;
    }

    /* Contact modal */
    .form {
      display: grid;
      gap: 10px;
      text-align: left;
      margin-top: 10px;
    }
    .field label {
      font-size: 0.82rem;
      color: var(--text-gray);
      letter-spacing: 0.6px;
    }
    .field input, .field textarea {
      width: 100%;
      margin-top: 6px;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--text-white);
      outline: none;
      font-size: 0.9rem;
      letter-spacing: 0.4px;
    }
    .field textarea { min-height: 110px; resize: vertical; }

    /* ✅ Responsive */
    @media (max-width: 1100px) {
      /* tablet-ish: 4 per row */
      .sidebar-cart { display: flex; }
      #btnOpenCart { display: none; }
      .sidebar-auth { display: flex; }
      .header-auth { display: none !important; }
      .grid-container { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .modal-box.big { max-width: 980px; }
      .iframe-shell { max-height: min(75vh, 640px); }
    }

    @media (max-width: 768px) {
      .sidebar { width: 60px; }
      .main-content { margin-left: 60px; width: calc(100% - 60px); }
      .hero-banner-container { height: 190px; }
      .logo-text { font-size: 1.25rem; letter-spacing: 1.4px; }
      .grid-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .providers-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
      .preview-wrapper { height: 220px; }
      .modal-game-title { font-size: 1.35rem; }
      .search-bar { max-width: 100%; }

      /* ✅ Play modal almost full screen on mobile */
      .modal-box.big {
        width: 98vw;
        height: 92vh;
        max-width: none;
        padding: 10px;
        display: flex;
        flex-direction: column;
      }
      .iframe-shell {
        flex: 1;
        width: 100%;
        aspect-ratio: 16 / 9;
        max-height: none;
      }
    }

/* ===== Product page additions (from product_page.html) ===== */
/* Product layout */
    .crumbs {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 6px 0 16px 0;
      color: var(--text-gray);
      font-size: 0.85rem;
      letter-spacing: 0.4px;
    }
    .crumbs a {
      color: var(--text-gray);
      text-decoration: none;
      border-bottom: 1px dashed transparent;
    }
    .crumbs a:hover { color: var(--gold); border-bottom-color: rgba(254,194,15,0.6); }

    .product-grid {
      display: grid;
      grid-template-columns: 1.55fr 1fr;
      gap: 18px;
      align-items: start;
    }

    .card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 10px 20px rgba(0,0,0,0.22);
    }

    .gallery {
      padding: 14px;
    }

    .main-preview {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 14px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #0b0d13;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .main-preview img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    
    .img-nav{
      position:absolute;
      top:50%;
      transform:translateY(-50%);
      width:44px;
      height:44px;
      border-radius:14px;
      border:1px solid var(--border);
      background: rgba(0,0,0,0.45);
      color: var(--text-white);
      font-weight: 900;
      font-size: 18px;
      display:flex;
      align-items:center;
      justify-content:center;
      cursor:pointer;
      transition: 0.18s;
      z-index: 5;
      backdrop-filter: blur(6px);
    }
    body.light .img-nav{
      background: rgba(255,255,255,0.6);
      color: #0b0d13;
    }
    .img-nav:hover{ transform:translateY(-50%) scale(1.04); border-color: rgba(254,194,15,0.55); }
    .img-nav.prev{ left: 10px; }
    .img-nav.next{ right: 10px; }

.thumbs {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-top: 12px;
    }
    .thumb {
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      cursor: pointer;
      background: #0b0d13;
      aspect-ratio: 16 / 9;
      opacity: 0.9;
      transition: 0.18s;
      position: relative;
    }
    .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .thumb:hover { transform: translateY(-1px); border-color: rgba(254,194,15,0.55); opacity: 1; }
    .thumb.active { border-color: rgba(254,194,15,0.9); box-shadow: 0 0 0 2px rgba(254,194,15,0.22) inset; opacity: 1; }

    .buybox {
      padding: 16px;
      position: sticky;
      top: 16px;
    }

    .p-title {
      font-size: 1.35rem;
      font-weight: 900;
      letter-spacing: 0.9px;
      margin-bottom: 8px;
    }

    .p-sub {
      color: var(--text-gray);
      font-weight: 600;
      letter-spacing: 0.4px;
      line-height: 1.45rem;
      margin-bottom: 12px;
    }

    .price-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 12px;
      border-radius: 14px;
      background: var(--panel);
      border: 1px solid var(--border);
      margin: 10px 0 12px 0;
    }

    .price {
      font-size: 1.25rem;
      font-weight: 900;
      color: var(--gold);
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 10px 0 12px 0;
    }
    .chip {
      font-size: 0.78rem;
      letter-spacing: 0.5px;
      padding: 6px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: rgba(255,255,255,0.03);
      color: var(--text-gray);
      font-weight: 800;
    }
    body.light .chip { background: rgba(0,0,0,0.03); }

    .btn-row {
      display: grid;
      grid-template-columns: 1fr;
      gap: 10px;
      margin-top: 10px;
    }

    .tabs {
      margin-top: 18px;
    }

    .tabbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
    }

    .tab {
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--bg-card);
      cursor: pointer;
      color: var(--text-white);
      font-weight: 800;
      font-size: 0.82rem;
      letter-spacing: 0.5px;
      transition: 0.18s;
      user-select: none;
    }
    .tab:hover { border-color: rgba(254,194,15,0.55); transform: translateY(-1px); }
    .tab.active { background: var(--gold); color: #000; border-color: rgba(254,194,15,0.85); }

    .tabpanel {
      padding: 16px;
    }

    .list {
      display: grid;
      gap: 8px;
      margin-top: 10px;
      color: var(--text-gray);
      font-weight: 600;
      letter-spacing: 0.35px;
      line-height: 1.45rem;
    }

    .list b { color: var(--text-white); }

    /* Modals (theme-aware) */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      padding: 18px;
    }
    .modal-box {
      width: 100%;
      max-width: 760px;
      background: var(--bg-sidebar);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 18px 40px rgba(0,0,0,0.35);
      position: relative;
    }
    .close-btn {
      position: absolute;
      top: 10px;
      right: 12px;
      font-size: 1.6rem;
      cursor: pointer;
      color: var(--text-gray);
      user-select: none;
    }
    .close-btn:hover { color: var(--gold); }

    .modal-title {
      font-size: 1.1rem;
      font-weight: 900;
      letter-spacing: 0.8px;
      margin-bottom: 10px;
    }

    .form {
      display: grid;
      gap: 10px;
      text-align: left;
      margin-top: 10px;
    }
    .field label {
      font-size: 0.82rem;
      color: var(--text-gray);
      letter-spacing: 0.6px;
    }
    .field input, .field textarea {
      width: 100%;
      margin-top: 6px;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--panel);
      border: 1px solid var(--border);
      color: var(--text-white);
      outline: none;
      font-size: 0.9rem;
      letter-spacing: 0.4px;
    }
    .field textarea { min-height: 110px; resize: vertical; }

    /* Cart items */
    .cart-item {
      display: flex;
      gap: 10px;
      align-items: center;
      border: 1px solid var(--border);
      background: var(--panel);
      border-radius: 14px;
      padding: 10px;
    }
    .cart-thumb {
      width: 86px;
      height: 54px;
      border-radius: 12px;
      overflow: hidden;
      border: 1px solid var(--border);
      background: #0b0d13;
      flex: 0 0 auto;
    }
    .cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cart-meta { flex: 1; min-width: 0; }
    .cart-name { font-weight: 900; letter-spacing: 0.6px; font-size: 0.95rem; }
    .cart-sub { color: var(--text-gray); font-weight: 700; font-size: 0.82rem; margin-top: 4px; }
    .qty-row { display: flex; align-items: center; gap: 8px; margin-left: auto; }
    .qty {
      width: 62px;
      padding: 8px 10px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-white);
      outline: none;
      font-weight: 800;
    }
    .icon-mini {
      width: 38px;
      height: 38px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--text-white);
      cursor: pointer;
    }
    .icon-mini:hover { border-color: rgba(254,194,15,0.55); transform: translateY(-1px); }

    /* Toast */
    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      background: var(--bg-sidebar);
      border: 1px solid var(--border);
      padding: 12px 14px;
      border-radius: 14px;
      box-shadow: 0 16px 30px rgba(0,0,0,0.35);
      display: none;
      z-index: 20000;
      max-width: 360px;
    }
    .toast-title { font-weight: 900; letter-spacing: 0.6px; margin-bottom: 4px; }
    .toast-body { color: var(--text-gray); font-weight: 700; letter-spacing: 0.35px; line-height: 1.35rem; }

    /* Responsive */
    @media (max-width: 1100px) {
      .sidebar-cart { display: flex; }
      #btnOpenCart { display: none; }
      .product-grid { grid-template-columns: 1fr; }
      .buybox { position: static; }
    }

    @media (max-width: 768px) {
      .sidebar { width: 60px; }
      .main-content { margin-left: 60px; width: calc(100% - 60px); }
      .logo-text { font-size: 1.25rem; letter-spacing: 1.4px; }
      .search-bar { max-width: 100%; }
      .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }


/* --- Auth pages helpers --- */
.input{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-white);
  outline: none;
}
.alert{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 78, 78, 0.12);
  border: 1px solid rgba(255, 78, 78, 0.25);
  color: var(--text-white);
  font-weight: 800;
  letter-spacing: 0.35px;
}


/* Product gallery arrows */
.main-preview{ position: relative; }
.gallery-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:44px;
  height:44px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(0,0,0,0.35);
  color: var(--text-white);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 2;
}
.gallery-nav.prev{ left:12px; }
.gallery-nav.next{ right:12px; }
.gallery-nav:hover{
  background: rgba(0,0,0,0.5);
}
@media (max-width: 680px){
  .gallery-nav{ width:40px; height:40px; }
}
