
    :root, [data-theme="obsidian"] {
      --bg-body: #06080A;
      --bg-app: #0B0E11;
      --bg-surface: #161A1E;
      --bg-card: #1E2329;
      --bg-elevated: #262C36;
      --border-subtle: #1E2329;
      --border-card: #2B3139;
      --text-primary: #EAECEF;
      --text-secondary: #B7BDC6;
      --text-muted: #848E9C;
      --accent-gold: #FCD535;
      --accent-gold-soft: rgba(252, 213, 53, 0.12);
      --accent-green: #0ECB81;
      --accent-green-soft: rgba(14, 203, 129, 0.12);
      --accent-red: #F6465D;
      --accent-red-soft: rgba(246, 70, 93, 0.12);
      --accent-blue: #3B82F6;
      --chat-bg: #0B0E11;
      --chat-header: #161A1E;
      --chat-card: #1E2329;
      --chat-bubble-out: #2B394A;
      --chat-bubble-in: #262C36;
      --btn-gold-bg: #FCD535;
      --btn-gold-text: #0B0E11;
    }
    [data-theme="daylight"] {
      --bg-body: #CBD5E1;
      --bg-app: #F1F5F9;
      --bg-surface: #FFFFFF;
      --bg-card: #F8FAFC;
      --bg-elevated: #E2E8F0;
      --border-subtle: #E2E8F0;
      --border-card: #CBD5E1;
      --text-primary: #0F172A;
      --text-secondary: #334155;
      --text-muted: #64748B;
      --accent-gold: #B45309;
      --accent-gold-soft: rgba(245, 158, 11, 0.15);
      --accent-green: #059669;
      --accent-green-soft: rgba(5, 150, 105, 0.12);
      --accent-red: #E11D48;
      --accent-red-soft: rgba(225, 29, 72, 0.12);
      --accent-blue: #2563EB;
      --chat-bg: #F1F5F9;
      --chat-header: #FFFFFF;
      --chat-card: #FFFFFF;
      --chat-bubble-out: #FEF3C7;
      --chat-bubble-in: #FFFFFF;
      --btn-gold-bg: #FCD535;
      --btn-gold-text: #0F172A;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    *::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }
    body {
      font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--bg-body);
      color: var(--text-primary);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      overflow-x: hidden;
    }
    .num, .en {
      font-family: 'Inter', 'Cairo', sans-serif;
      direction: ltr;
      unicode-bidi: embed;
    }
    button, input, select, textarea {
      font-family: inherit;
      color: inherit;
    }

    /* Top Preview Switcher Bar */
    .studio-toolbar {
      width: 100%;
      background: #0D1117;
      border-bottom: 1px solid #21262D;
      padding: 6px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
      z-index: 100;
      font-size: 11px;
    }
    .studio-group {
      display: flex;
      align-items: center;
      gap: 5px;
      flex-wrap: wrap;
    }
    .studio-label {
      color: #848E9C;
      font-weight: 600;
      font-size: 10.5px;
      margin-left: 4px;
    }
    .studio-pill {
      height: 26px;
      padding: 0 10px;
      border-radius: 6px;
      border: 1px solid #2B3139;
      background: #161A1E;
      color: #B7BDC6;
      font-size: 10.5px;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      transition: all 0.15s ease;
    }
    .studio-pill.active {
      background: #EAECEF;
      color: #0B0E11;
      border-color: #EAECEF;
      font-weight: 700;
    }
    .studio-pill.admin-btn {
      border-color: rgba(252, 213, 53, 0.4);
      color: #FCD535;
      background: rgba(252, 213, 53, 0.08);
    }
    .studio-pill.admin-btn.active {
      background: #FCD535;
      color: #0B0E11;
      border-color: #FCD535;
    }

    /* Main Device Viewport Frame */
    .viewport-shell {
      width: 100%;
      max-width: 396px;
      min-height: calc(100vh - 44px);
      margin: 8px auto 20px;
      background: var(--bg-app);
      border: 1px solid var(--border-card);
      border-radius: 22px;
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
      transition: max-width 0.2s ease;
    }
    .viewport-shell.vp-tablet {
      max-width: 740px;
    }
    .viewport-shell.vp-desktop {
      max-width: 1080px;
    }

    /* Global Customer App Header (ONLY visible on Home Page!) */
    .app-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: var(--bg-app);
      border-bottom: 1px solid var(--border-subtle);
      position: sticky;
      top: 0;
      z-index: 30;
    }
    .app-header.hidden-header {
      display: none !important;
    }
    .brand-cluster {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
    }
    .brand-logo-wrap {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0B0E11;
      box-shadow: 0 0 10px rgba(252, 213, 53, 0.22);
      flex-shrink: 0;
    }
    .brand-logo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      display: block;
    }
    .brand-title {
      font-size: 15.5px;
      font-weight: 800;
      letter-spacing: -0.2px;
      color: var(--text-primary);
      line-height: 1;
    }
    .brand-title span {
      color: var(--accent-gold);
    }
    .header-actions {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .hdr-icon-btn {
      width: 34px;
      height: 34px;
      border-radius: 9px;
      border: 1px solid var(--border-card);
      background: var(--bg-surface);
      color: var(--text-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      position: relative;
      transition: border-color 0.15s ease;
    }
    .hdr-icon-btn:hover {
      border-color: var(--accent-gold);
    }
    .hdr-badge-dot {
      position: absolute;
      top: 5px;
      right: 5px;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--accent-green);
      box-shadow: 0 0 6px var(--accent-green);
    }

    /* Contextual Inner Section Header Bar */
    .ctx-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 12px;
      background: var(--bg-app);
      border-bottom: 1px solid var(--border-subtle);
      position: sticky;
      top: 0;
      z-index: 25;
    }
    .ctx-back-btn {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      border: none;
      background: transparent;
      color: var(--text-primary);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 16px;
      padding: 0;
    }
    .ctx-back-btn:hover {
      background: var(--bg-surface);
    }
    .ctx-title {
      font-size: 14.5px;
      font-weight: 700;
      color: var(--text-primary);
    }

    /* Main Content Area */
    .app-main {
      flex: 1;
      padding: 10px 12px 84px;
      overflow-y: auto;
    }
    .app-main.p2p-flush {
      padding: 4px 12px 84px;
    }

    /* Responsive Grids for Games & Services Cards */
    .cards-grid-2 {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .viewport-shell.vp-tablet .cards-grid-2 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .viewport-shell.vp-desktop .cards-grid-2 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-card);
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      cursor: pointer;
      transition: transform 0.15s ease, border-color 0.15s ease;
      position: relative;
    }
    .product-card:hover {
      border-color: rgba(252, 213, 53, 0.45);
      transform: translateY(-1px);
    }
    .product-art-wrap {
      width: 100%;
      height: 126px;
      background: #0A0D11;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .product-art-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .product-ribbon {
      position: absolute;
      top: 7px;
      left: 7px;
      background: var(--accent-gold);
      color: #0B0E11;
      font-size: 9.5px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 5px;
      z-index: 2;
    }
    .product-body {
      padding: 9px 10px 10px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      flex: 1;
      text-align: center;
    }
    .product-title {
      font-size: 12.5px;
      font-weight: 800;
      color: var(--text-primary);
      line-height: 1.3;
    }
    .product-sub {
      font-size: 10px;
      color: var(--accent-green);
      font-weight: 600;
      line-height: 1.3;
    }
    .product-meta {
      font-size: 10px;
      color: var(--accent-gold);
      font-weight: 700;
    }
    .product-price-bar {
      margin-top: auto;
      padding: 5px 8px;
      border-radius: 7px;
      background: var(--bg-app);
      border: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 10.5px;
    }

    /* Customer Bottom Navigation Bar (5 Tabs) */
    .bottom-nav {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60px;
      background: var(--bg-surface);
      border-top: 1px solid var(--border-card);
      display: grid;
      grid-auto-flow: column; grid-auto-columns: 1fr;
      z-index: 35;
      padding: 4px 6px;
    }
    .bottom-nav.hidden-nav {
      display: none !important;
    }
    .nav-item {
      border: none;
      background: transparent;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      font-size: 10px;
      font-weight: 600;
      cursor: pointer;
      border-radius: 8px;
      position: relative;
    }
    .nav-item.active {
      color: var(--text-primary);
      font-weight: 700;
    }
    .nav-item.active .nav-icon {
      color: var(--accent-gold);
    }
    .nav-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 18px;
    }
    .nav-badge {
      position: absolute;
      top: 3px;
      right: 18%;
      background: var(--accent-gold);
      color: #0B0E11;
      font-size: 9px;
      font-weight: 800;
      min-width: 14px;
      height: 14px;
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 3px;
    }

    /* Modal Overlay, Fullscreen Viewport Sheets & Bottom Sheets */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.78);
      backdrop-filter: blur(3px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 200;
      padding: 12px;
    }
    .modal-backdrop.sheet-bottom {
      align-items: flex-end;
      padding: 0;
    }
    .modal-backdrop.fullscreen-viewport {
      padding: 0;
      align-items: stretch;
    }
    .modal-sheet {
      width: 100%;
      max-width: 392px;
      max-height: 90vh;
      overflow-y: auto;
      background: var(--bg-surface);
      border: 1px solid var(--border-card);
      border-radius: 14px;
      padding: 14px;
      color: var(--text-primary);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    }
    .modal-backdrop.sheet-bottom .modal-sheet {
      border-radius: 18px 18px 0 0;
      border-bottom: none;
      padding: 16px;
    }
    .modal-backdrop.fullscreen-viewport .modal-sheet {
      max-width: 396px;
      height: 100vh;
      max-height: 100vh;
      border-radius: 0;
      border: none;
      padding: 0;
      display: flex;
      flex-direction: column;
      background: var(--bg-app);
    }

    /* Binance C2CChatActivity Subtle Dark Wallpaper Pattern (No Scrollbar Indicator!) */
    .binance-chat-wallpaper {
      background-color: var(--chat-bg);
      background-image: radial-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px);
      background-size: 22px 22px;
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    .binance-chat-wallpaper::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    /* Toast Notification */
    .toast-box {
      position: fixed;
      bottom: 74px;
      left: 50%;
      transform: translateX(-50%);
      background: #1E2329;
      color: #EAECEF;
      border: 1px solid #2B3139;
      border-right: 3px solid var(--accent-green);
      padding: 8px 14px;
      border-radius: 8px;
      font-size: 11.5px;
      font-weight: 600;
      z-index: 300;
      box-shadow: 0 10px 25px rgba(0,0,0,0.5);
      display: none;
      max-width: 350px;
      text-align: center;
    }

    /* Admin Enterprise Non-Truncated Buttons & Pills */
    .adm-pill {
      min-height: 32px;
      height: auto;
      padding: 6px 10px;
      border-radius: 7px;
      border: 1px solid var(--border-card);
      background: var(--bg-surface);
      color: var(--text-secondary);
      font-size: 10.5px;
      font-weight: 600;
      line-height: 1.35;
      white-space: normal;
      text-align: center;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }
    .adm-pill.active {
      background: var(--bg-elevated);
      color: var(--text-primary);
      border-color: #475569;
      font-weight: 700;
    }
    .adm-subpill {
      min-height: 32px;
      height: auto;
      padding: 6px 10px;
      border-radius: 7px;
      border: 1px solid var(--border-card);
      background: var(--bg-app);
      color: var(--text-muted);
      font-size: 10.5px;
      font-weight: 600;
      line-height: 1.35;
      white-space: normal;
      text-align: center;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
    }
    .adm-subpill.active {
      background: var(--bg-card);
      color: var(--accent-gold);
      border-color: rgba(252, 213, 53, 0.45);
      font-weight: 700;
    }

    /* ===== Live platform layout: real responsive widths instead of preview buttons ===== */
    html { background: var(--bg-body); }
    body { min-height: 100dvh; }
    .viewport-shell {
      max-width: 100%;
      height: 100dvh;
      min-height: 0;
      margin: 0 auto;
      border-radius: 0;
      border: none;
      box-shadow: none;
    }
    .app-main { overscroll-behavior: contain; }
    .modal-backdrop.fullscreen-viewport .modal-sheet { max-width: 100%; }
    @media (min-width: 600px) {
      .viewport-shell { max-width: 740px; height: calc(100dvh - 16px); margin: 8px auto; border-radius: 22px; border: 1px solid var(--border-card); box-shadow: 0 20px 50px rgba(0,0,0,0.65); }
      .cards-grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .modal-backdrop.fullscreen-viewport .modal-sheet { max-width: 740px; }
      .modal-sheet { max-width: 460px; }
    }
    @media (min-width: 1024px) {
      .viewport-shell { max-width: 1080px; }
      .cards-grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .modal-backdrop.fullscreen-viewport .modal-sheet { max-width: 1080px; }
      .modal-sheet { max-width: 520px; }
    }
    .live-state { background: var(--bg-surface); border: 1px dashed var(--border-card); border-radius: 10px; padding: 14px; text-align: center; font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }
    .live-state.err { border-color: rgba(246,70,93,0.45); color: var(--accent-red); }
    .live-input { width: 100%; height: 40px; border-radius: 8px; border: 1px solid var(--border-card); background: var(--bg-app); color: var(--text-primary); padding: 0 12px; font-size: 13px; margin-bottom: 10px; }
    textarea.live-input { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
    .live-label { display: block; font-size: 11px; color: var(--text-secondary); font-weight: 600; margin-bottom: 6px; }
    .live-btn { width: 100%; height: 40px; border-radius: 8px; border: none; background: var(--btn-gold-bg); color: var(--btn-gold-text); font-size: 13px; font-weight: 800; cursor: pointer; }
    .live-btn[disabled] { background: var(--bg-elevated); color: var(--text-muted); cursor: not-allowed; }
    .live-btn.ghost { background: var(--bg-app); color: var(--text-secondary); border: 1px solid var(--border-card); font-weight: 700; }
    .live-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; margin-bottom: 7px; }
    .live-row > span:first-child { color: var(--text-muted); }
    .live-row > strong, .live-row > span:last-child { color: var(--text-primary); font-weight: 700; text-align: left; overflow-wrap: anywhere; }
    .live-err { font-size: 11px; color: var(--accent-red); margin: 6px 0 10px; min-height: 0; }
    .live-err:empty { display: none; }
    .live-chip { height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--border-card); background: var(--bg-app); color: var(--text-secondary); font-size: 10.5px; font-weight: 700; cursor: pointer; }
    .live-chip.on { border-color: rgba(252,213,53,0.55); background: var(--accent-gold-soft); color: var(--accent-gold); }

    /* === TopUp UI standard: popups (owner decision 2026-11-15) ===
       1) every popup is centered on screen (no bottom sheets)
       2) width fits the content: 392px phone, wider on tablet/desktop (media rules above)
       3) header always has ✕; multi-step flows add a back arrow (live.ui.sheetHeader)
       4) no visible scrollbars inside popups (content still scrolls by touch/wheel) */
    .modal-backdrop.sheet-bottom { align-items: center; padding: 12px; }
    .modal-backdrop.sheet-bottom .modal-sheet { border-radius: 14px; border-bottom: 1px solid var(--border-card); padding: 14px; }
    .modal-sheet, .modal-sheet * { scrollbar-width: none; -ms-overflow-style: none; }
    .modal-sheet::-webkit-scrollbar, .modal-sheet *::-webkit-scrollbar { display: none; width: 0; height: 0; }
    .modal-sheet { animation: tusPop .16s ease-out; }
    @keyframes tusPop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
