:root {
      --bg-1: #0b0918;
      --bg-2: #1a1433;
      --bg-3: #12102a;
      --card: rgba(255,255,255,0.06);
      --card-solid: #16132b;
      --card-border: rgba(255,255,255,0.08);
      --accent: #00e8a0;
      --accent-soft: rgba(0,232,160,0.15);
      --accent-glow: rgba(0,232,160,0.35);
      --purple: #7c5cfc;
      --text: #f5f5f7;
      --muted: rgba(255,255,255,0.55);
      --ease: cubic-bezier(0.22,1,0.36,1);
    }

    * { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
    html, body { height:100%; width:100%; overflow-x:hidden; }
    body {
      font-family:'Inter',system-ui,-apple-system,sans-serif;
      background:var(--bg-1);
      color:var(--text);
      display:flex;
      justify-content:center;
      -webkit-font-smoothing:antialiased;
    }
    body::before {
      content:'';
      position:fixed; inset:0;
      background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0,232,160,0.1), transparent 50%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(99,102,241,0.12), transparent 45%);
      pointer-events:none; z-index:0;
    }

    .app {
      width:100%; max-width:400px; min-height:100vh;
      min-height: 100dvh;
      position:relative; z-index:1;
      display:flex; flex-direction:column;
      padding-bottom:100px;
      padding-top: env(safe-area-inset-top, 0px);
      background:linear-gradient(180deg,var(--bg-2) 0%,var(--bg-1) 40%,var(--bg-3) 100%);
      box-sizing: border-box;
    }

    .page { display:none; flex-direction:column; flex:1; animation: pageIn 0.35s var(--ease); overflow-y:auto; -webkit-overflow-scrolling:touch; }
    #page-wallet { padding-bottom: 20px; }
    #page-profile {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 20px;
    }
    .page.active { display:flex; }
    #page-home {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }

    @keyframes pageIn {
      from { opacity:0; transform:translateY(12px); }
      to { opacity:1; transform:translateY(0); }
    }

    /* HOME */
    .top-tabs {
      display:flex; gap:6px;
      padding: 20px 14px 12px;
      overflow-x:auto;
      overflow-y: visible;
      scrollbar-width:none;
      flex-shrink: 0;
      -webkit-overflow-scrolling: touch;
      position: relative;
      z-index: 5;
    }
    .top-tabs::-webkit-scrollbar { display:none; }
    .tab {
      flex-shrink:0; display:flex; align-items:center; gap:5px;
      padding:9px 14px; border-radius:999px; font-size:12.5px; font-weight:500;
      background:var(--card); border:1px solid var(--card-border);
      color:var(--muted); cursor:pointer; transition:all 0.25s;
      line-height: 1.2;
      min-height: 34px;
      box-sizing: border-box;
    }
    .tab.active {
      background:var(--accent-soft); border-color:rgba(0,232,160,0.45);
      color:var(--accent); box-shadow:0 0 16px var(--accent-glow);
    }
    .tab svg { width:13px; height:13px; flex-shrink: 0; }
    .tab-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 18px;
      height: 18px;
      padding: 0 5px;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      margin-left: 2px;
      box-shadow: 0 0 0 2px rgba(18,24,42,0.9);
    }
    .tab.active .tab-badge {
      box-shadow: 0 0 0 2px rgba(0,232,160,0.15);
    }

    .balance-card {
      margin: 8px 14px 14px;
      padding: 18px 16px 16px;
      border-radius: 18px;
      background: #12182a;
      border: 1.5px solid rgba(0, 220, 180, 0.35);
      position: relative;
      box-sizing: border-box;
      min-height: 130px;
      overflow: visible;
    }
    .balance-card::after {
      content: '';
      position: absolute;
      top: -20%;
      right: -10%;
      width: 100px;
      height: 100px;
      background: radial-gradient(circle, rgba(0,232,160,0.3), transparent 70%);
      pointer-events: none;
      z-index: 0;
    }
    .balance-label {
      font-size: 12px;
      color: rgba(255,255,255,0.5);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 8px;
      position: relative;
      z-index: 2;
    }
    .eye-btn {
      background: none;
      border: none;
      color: rgba(255,255,255,0.5);
      cursor: pointer;
      padding: 2px;
      display: flex;
    }
    .balance-amount {
      display: block !important;
      font-size: 32px !important;
      font-weight: 800 !important;
      letter-spacing: -0.5px;
      line-height: 1.25 !important;
      margin: 0 0 6px 0 !important;
      min-height: 40px !important;
      height: auto !important;
      color: #00e8a0 !important;
      opacity: 1 !important;
      visibility: visible !important;
      position: relative;
      z-index: 2;
    }
    .balance-sub {
      font-size: 11.5px;
      color: rgba(255,255,255,0.4);
      position: relative;
      z-index: 2;
    }
    .brand {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, #00e8a0, #00b4d8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 15px;
      color: #0b0918;
      box-shadow: 0 4px 16px rgba(0,232,160,0.35);
      z-index: 3;
    }

    .action-row {
      display:grid; grid-template-columns:1fr 1fr;
      gap:10px; padding:0 14px 18px;
    }
    .btn {
      display:flex; align-items:center; justify-content:center; gap:7px;
      padding:13px 12px; border-radius:13px; font-size:13.5px;
      font-weight:600; border:none; cursor:pointer; transition:transform 0.2s;
    }
    .btn:active { transform:scale(0.96); }
    .btn-primary {
      background:linear-gradient(135deg,var(--accent),#00c48c);
      color:#0b0918; box-shadow:0 4px 20px var(--accent-glow);
    }
    .btn-secondary {
      background:var(--card); border:1px solid var(--card-border); color:var(--text);
    }
    .btn svg { width:16px; height:16px; }

    .stats-row {
      display:grid; grid-template-columns:1fr 1fr;
      gap:10px; padding:0 14px 18px;
    }
    .stat-card {
      padding:14px; border-radius:14px;
      background:var(--card); border:1px solid var(--card-border);
    }
    .stat-label { font-size:11px; color:var(--muted); margin-bottom:5px; }
    .stat-value { font-size:17px; font-weight:700; }
    .stat-value.green { color:var(--accent); }

    .section-title { font-size:13.5px; font-weight:600; padding:0 14px 10px; }
    .quick-grid {
      display:grid; grid-template-columns:repeat(4,1fr);
      gap:8px; padding:0 14px 20px;
    }
    .quick-item {
      display:flex; flex-direction:column; align-items:center;
      gap:7px; cursor:pointer;
    }
    .quick-item:active { transform:scale(0.93); }
    .quick-icon {
      width:48px; height:48px; border-radius:14px;
      background:var(--card); border:1px solid var(--card-border);
      display:flex; align-items:center; justify-content:center;
    }
    .quick-icon.promo {
      background:var(--accent-soft); border-color:rgba(0,232,160,0.35);
    }
    .quick-icon svg { width:20px; height:20px; }
    .quick-label {
      font-size:10.5px; color:var(--muted); text-align:center; font-weight:500;
    }

    /* TASKS */
    .tasks-header {
      padding:14px 16px;
      border-bottom:1px solid rgba(255,255,255,0.06);
      background:rgba(12,10,26,0.92);
    }
    .tasks-header h1 { font-size:17px; font-weight:700; }
    .tasks-header p { font-size:12px; color:var(--muted); margin-top:2px; }

    .task-list {
      padding:16px 14px;
      display:flex; flex-direction:column; gap:12px;
    }
    .task-card {
      background:var(--card-solid);
      border:1px solid var(--card-border);
      border-radius:16px; padding:14px;
      display:flex; flex-direction:column; gap:10px;
    }
    .task-top { display:flex; align-items:flex-start; gap:12px; }
    .task-icon {
      width:42px; height:42px; border-radius:12px;
      display:flex; align-items:center; justify-content:center; flex-shrink:0;
    }
    .task-icon.ads { background:#1a1a1a; color:#fff; }
    .task-icon.whatsapp { background:#25D366; color:#fff; }
    .task-icon.youtube { background:#FF0000; color:#fff; }
    .task-icon.telegram { background:#2AABEE; color:#fff; }
    .task-icon.react { background:#2AABEE; color:#fff; }
    .task-icon.facebook { background:#1877F2; color:#fff; }
    .task-icon.ytlike { background:#FF0000; color:#fff; }
    .task-info { flex:1; min-width:0; }
    .task-tag {
      font-size:10px; font-weight:600; text-transform:uppercase;
      letter-spacing:0.04em; color:var(--muted); margin-bottom:3px;
    }
    .task-title { font-size:14.5px; font-weight:600; line-height:1.3; margin-bottom:2px; }
    .task-desc { font-size:12px; color:var(--muted); line-height:1.4; }
    .task-reward { text-align:right; flex-shrink:0; }
    .reward-amount { font-size:15px; font-weight:700; color:var(--accent); }
    .reward-label { font-size:10px; color:var(--muted); margin-top:1px; }

    .task-progress { display:flex; align-items:center; gap:10px; }
    .progress-bar {
      flex:1; height:5px; background:rgba(255,255,255,0.08);
      border-radius:999px; overflow:hidden;
    }
    .progress-fill {
      height:100%; background:linear-gradient(90deg,var(--accent),#00b4d8);
      border-radius:999px; width:0%; transition:width 0.4s var(--ease);
    }
    .progress-text { font-size:11px; color:var(--muted); white-space:nowrap; }

    .task-bottom { display:flex; justify-content:flex-end; }
    .start-btn {
      background:var(--purple); color:#fff; border:none;
      border-radius:10px; padding:9px 16px; font-size:13px;
      font-weight:600; cursor:pointer; transition:transform 0.15s;
    }
    .start-btn:active { transform:scale(0.96); }
    .start-btn.done {
      background:rgba(0,232,160,0.15); color:var(--accent); pointer-events:none;
    }

    /* ========== WALLET / WITHDRAWAL PAGE ========== */
    .wallet-header {
      padding: 16px 16px 8px;
      border-bottom: none;
    }
    .wallet-header h1 {
      display: none !important;
    }
    .wallet-header p {
      font-size: 13.5px;
      color: rgba(180, 190, 210, 0.7);
      margin: 0;
      font-weight: 400;
    }

    .wallet-balance {
      margin: 12px 14px 20px;
      padding: 22px 20px;
      border-radius: 18px;
      background: #111827;
      border: 1.5px solid #0d9488;
      position: relative;
      overflow: hidden;
      min-height: 110px;
      box-sizing: border-box;
    }
    .wallet-balance::before {
      content: '';
      position: absolute;
      top: -40px;
      right: -30px;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background: rgba(0, 232, 160, 0.25);
      filter: blur(30px);
      pointer-events: none;
      z-index: 0;
    }
    .wallet-balance-label {
      display: block !important;
      font-size: 13px !important;
      font-weight: 400 !important;
      color: #94a3b8 !important;
      margin: 0 0 8px 0 !important;
      position: relative;
      z-index: 2;
      opacity: 1 !important;
      visibility: visible !important;
      height: auto !important;
    }
    .wallet-balance-amount {
      display: block !important;
      font-size: 36px !important;
      font-weight: 800 !important;
      letter-spacing: -1px !important;
      color: #00e8a0 !important;
      line-height: 1.2 !important;
      margin: 0 !important;
      padding: 0 !important;
      position: relative;
      z-index: 2;
      opacity: 1 !important;
      visibility: visible !important;
      height: auto !important;
      min-height: 42px !important;
    }
    .wallet-balance-note {
      display: block !important;
      font-size: 12px !important;
      color: #64748b !important;
      margin: 8px 0 0 0 !important;
      position: relative;
      z-index: 2;
      opacity: 1 !important;
      visibility: visible !important;
      height: auto !important;
    }

    .withdraw-form {
      padding:0 14px 130px;
      display:flex;
      flex-direction:column;
      gap:16px;
    }

    .form-group {
      animation: fadeUp 0.5s var(--ease) both;
    }
    .form-group:nth-child(1) { animation-delay:0.05s; }
    .form-group:nth-child(2) { animation-delay:0.1s; }
    .form-group:nth-child(3) { animation-delay:0.15s; }
    .form-group:nth-child(4) { animation-delay:0.2s; }
    .form-group:nth-child(5) { animation-delay:0.25s; }

    .form-label {
      font-size:12.5px;
      font-weight:600;
      color:var(--muted);
      margin-bottom:8px;
      display:block;
    }

    .amount-input-wrap {
      position:relative;
    }
    .amount-prefix {
      position: absolute;
      left: 16px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      font-weight: 700;
      color: #00e8a0;
      pointer-events: none;
      z-index: 1;
    }
    .amount-input {
      width: 100%;
      background: #16132b;
      border: 1.5px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 16px 16px 16px 42px;
      font-size: 18px;
      font-weight: 600;
      color: var(--text);
      outline: none;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .amount-input:focus {
      border-color:var(--accent);
      box-shadow:0 0 0 3px var(--accent-soft);
    }
    .amount-input::placeholder { color:rgba(255,255,255,0.25); font-weight:500; }

    .quick-amounts {
      display:flex;
      gap:8px;
      margin-top:10px;
      flex-wrap:wrap;
    }
    .quick-amount {
      padding:8px 14px;
      border-radius:999px;
      background:var(--card);
      border:1px solid var(--card-border);
      color:var(--muted);
      font-size:12.5px;
      font-weight:600;
      cursor:pointer;
      transition:all 0.2s;
    }
    .quick-amount:hover, .quick-amount.active {
      background:var(--accent-soft);
      border-color:rgba(0,232,160,0.4);
      color:var(--accent);
    }

    .form-input, .form-select {
      width:100%;
      background:var(--card-solid);
      border:1.5px solid var(--card-border);
      border-radius:14px;
      padding:14px 16px;
      font-size:14.5px;
      font-weight:500;
      color:var(--text);
      outline:none;
      transition:border-color 0.25s, box-shadow 0.25s;
      appearance:none;
    }
    .form-input:focus, .form-select:focus {
      border-color:var(--accent);
      box-shadow:0 0 0 3px var(--accent-soft);
    }
    .form-input::placeholder { color:rgba(255,255,255,0.3); }
    .form-input.name-ok, .auth-field input.name-ok {
      border-color: rgba(0,232,160,0.55) !important;
      color: #00e8a0 !important;
    }
    .form-input.name-err, .auth-field input.name-err {
      border-color: rgba(248,113,113,0.5) !important;
    }

    .select-wrap {
      position:relative;
    }
    .select-wrap::after {
      content:'▾';
      position:absolute;
      right:16px;
      top:50%;
      transform:translateY(-50%);
      color:var(--muted);
      pointer-events:none;
      font-size:12px;
    }

    .fee-row {
      display:flex;
      justify-content:space-between;
      align-items:center;
      padding:12px 14px;
      background:rgba(255,255,255,0.03);
      border-radius:12px;
      border:1px solid var(--card-border);
      font-size:13px;
    }
    .fee-row .fee-label { color:var(--muted); }
    .fee-row .fee-value { font-weight:600; color:var(--accent); }

    .withdraw-btn {
      width:100%;
      padding:16px;
      border:none;
      border-radius:14px;
      background:linear-gradient(135deg, var(--accent), #00c48c);
      color:#0b0918;
      font-size:15.5px;
      font-weight:700;
      cursor:pointer;
      box-shadow:0 6px 24px var(--accent-glow);
      transition:transform 0.2s, box-shadow 0.25s;
      display:flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      margin-top:8px;
      position:relative;
      overflow:hidden;
    }
    .withdraw-btn:hover {
      box-shadow:0 8px 32px rgba(0,232,160,0.5);
      transform:translateY(-1px);
    }
    .withdraw-btn:active { transform:scale(0.97); }
    .withdraw-btn:disabled {
      opacity:0.6;
      cursor:not-allowed;
      transform:none;
    }
    .withdraw-btn .spinner {
      width:18px; height:18px;
      border:2.5px solid rgba(11,9,24,0.3);
      border-top-color:#0b0918;
      border-radius:50%;
      animation:spin 0.7s linear infinite;
      display:none;
    }
    .withdraw-btn.loading .spinner { display:block; }
    .withdraw-btn.loading .btn-text { display:none; }

    .pending-withdrawals {
      margin: 8px 14px 24px;
      padding: 16px;
      border-radius: 16px;
      background: var(--card, #12182a);
      border: 1px solid var(--card-border, rgba(255,255,255,0.08));
    }
    .pending-wd-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .pending-wd-header h3 {
      margin: 0;
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      letter-spacing: 0.01em;
    }
    .pending-wd-count {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 22px;
      height: 22px;
      padding: 0 7px;
      border-radius: 999px;
      background: rgba(251, 146, 60, 0.2);
      border: 1px solid rgba(251, 146, 60, 0.45);
      color: #fb923c;
      font-size: 11px;
      font-weight: 700;
    }
    .pending-wd-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .pending-wd-empty {
      text-align: center;
      padding: 18px 12px;
      color: rgba(255,255,255,0.4);
      font-size: 13px;
    }
    .pending-wd-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      border-radius: 12px;
      background: rgba(255,255,255,0.03);
      border: 1px solid rgba(255,255,255,0.06);
    }
    .pending-wd-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      background: rgba(251, 146, 60, 0.15);
      color: #fb923c;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .pending-wd-icon svg { width: 18px; height: 18px; }
    .pending-wd-body { flex: 1; min-width: 0; }
    .pending-wd-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 4px;
    }
    .pending-wd-amount {
      font-size: 15px;
      font-weight: 700;
      color: #fff;
    }
    .pending-wd-status {
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 3px 8px;
      border-radius: 999px;
      background: rgba(251, 146, 60, 0.18);
      color: #fb923c;
      white-space: nowrap;
    }
    .pending-wd-status.paid {
      background: rgba(0, 232, 160, 0.15);
      color: #00e8a0;
    }
    .pending-wd-meta {
      font-size: 12px;
      color: rgba(255,255,255,0.45);
      line-height: 1.45;
    }
    .pending-wd-meta strong {
      color: rgba(255,255,255,0.65);
      font-weight: 600;
    }

    @keyframes spin { to { transform:rotate(360deg); } }
    @keyframes fadeUp {
      from { opacity:0; transform:translateY(14px); }
      to { opacity:1; transform:translateY(0); }
    }

    .success-overlay {
      position:fixed; inset:0;
      background:rgba(0,0,0,0.75);
      backdrop-filter:blur(10px);
      display:flex; align-items:center; justify-content:center;
      z-index:110;
      opacity:0; visibility:hidden;
      transition:0.3s;
      padding:20px;
    }
    .success-overlay.show { opacity:1; visibility:visible; }
    .success-card {
      background:linear-gradient(165deg, #1e1a36, #15122a);
      border-radius:24px;
      padding:32px 24px;
      text-align:center;
      max-width:300px;
      width:100%;
      border:1px solid rgba(0,232,160,0.2);
      box-shadow:0 24px 60px rgba(0,0,0,0.5);
      transform:scale(0.85);
      transition:transform 0.4s var(--ease);
    }
    .success-overlay.show .success-card { transform:scale(1); }
    .success-icon {
      width:72px; height:72px;
      border-radius:50%;
      background:linear-gradient(135deg, var(--accent), #00b4d8);
      display:flex; align-items:center; justify-content:center;
      margin:0 auto 18px;
      box-shadow:0 8px 28px var(--accent-glow);
      animation: successPop 0.5s var(--ease) 0.15s both;
    }
    @keyframes successPop {
      0% { transform:scale(0); opacity:0; }
      70% { transform:scale(1.1); }
      100% { transform:scale(1); opacity:1; }
    }
    .success-icon svg { width:34px; height:34px; color:#0b0918; }
    .success-card h3 {
      font-size:18px;
      font-weight:700;
      margin-bottom:8px;
    }
    .success-card p {
      font-size:13px;
      color:var(--muted);
      line-height:1.5;
      margin-bottom:20px;
    }
    .success-amount {
      font-size:24px;
      font-weight:800;
      color:var(--accent);
      margin-bottom:20px;
    }
    .success-btn {
      width:100%;
      padding:13px;
      border:none;
      border-radius:12px;
      background:var(--accent);
      color:#0b0918;
      font-weight:700;
      font-size:14px;
      cursor:pointer;
    }


    /* ========== PROFILE / MORE PAGE ========== */

    /* ========== PROFILE PAGE ========== */
    .profile-header {
      padding: 24px 16px 12px;
      text-align: center;
    }
    .profile-avatar-wrap {
      position: relative;
      width: 88px;
      height: 88px;
      margin: 0 auto 14px;
    }
    .profile-avatar {
      width: 88px;
      height: 88px;
      border-radius: 50%;
      background: linear-gradient(145deg, #00e8a0, #00b4d8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 34px;
      font-weight: 800;
      color: #0b0918;
      box-shadow: 0 8px 28px rgba(0,232,160,0.35);
    }
    .avatar-edit {
      position: absolute;
      bottom: 0;
      right: 0;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: #7c5cfc;
      border: 2px solid #0b0918;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
    }
    .avatar-edit svg { width: 13px; height: 13px; }
    .profile-name {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      margin-bottom: 4px;
    }
    .profile-email {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      margin-bottom: 10px;
    }
    .profile-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 14px;
      border-radius: 999px;
      background: rgba(0,232,160,0.12);
      border: 1px solid rgba(0,232,160,0.3);
      color: #00e8a0;
      font-size: 12px;
      font-weight: 600;
    }
    .profile-badge svg { width: 13px; height: 13px; }

    .profile-stats {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
      padding: 18px 14px 8px;
    }
    .profile-stat {
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 14px 8px;
      text-align: center;
    }
    .profile-stat-value {
      font-size: 16px;
      font-weight: 700;
      color: #00e8a0;
      margin-bottom: 3px;
    }
    .profile-stat-label {
      font-size: 10.5px;
      color: rgba(255,255,255,0.45);
    }

    .profile-menu {
      padding: 12px 14px 100px;
    }
    .profile-menu-group {
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      margin-bottom: 12px;
      overflow: hidden;
    }
    .profile-menu-heading {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.4);
      padding: 12px 16px 4px;
    }
    .profile-menu-item {
      display: flex;
      align-items: center;
      padding: 13px 16px;
      border-top: 1px solid rgba(255,255,255,0.05);
      cursor: pointer;
      gap: 12px;
    }
    .profile-menu-item:first-of-type {
      border-top: none;
    }
    .profile-menu-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(0,232,160,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: #00e8a0;
    }
    .profile-menu-icon svg {
      width: 17px;
      height: 17px;
    }
    .profile-menu-text {
      flex: 1;
      min-width: 0;
    }
    .profile-menu-text strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #f5f5f7;
      margin-bottom: 1px;
    }
    .profile-menu-text span {
      display: block;
      font-size: 12px;
      color: rgba(255,255,255,0.45);
    }
    .profile-menu-chevron {
      color: rgba(255,255,255,0.3);
      flex-shrink: 0;
    }
    .profile-menu-chevron svg {
      width: 16px;
      height: 16px;
    }

    .logout-btn {
      width: 100%;
      margin-top: 4px;
      padding: 15px;
      border-radius: 14px;
      border: 1.5px solid rgba(239,68,68,0.4);
      background: rgba(239,68,68,0.08);
      color: #f87171;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }
    .logout-btn svg {
      width: 18px;
      height: 18px;
    }

    #page-profile {
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
    }



    /* ========== NOTIFICATIONS PAGE ========== */
    #page-notifications {
      display: none;
      flex-direction: column;
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    #page-notifications.active {
      display: flex !important;
    }
    .notif-header {
      padding: 16px 16px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .notif-header h1 {
      font-size: 18px;
      font-weight: 700;
    }
    .notif-clear {
      font-size: 12.5px;
      color: #00e8a0;
      background: none;
      border: none;
      font-weight: 600;
      cursor: pointer;
    }
    .notif-list {
      padding: 12px 14px 100px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .notif-item {
      display: flex;
      gap: 12px;
      padding: 14px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .notif-item:active { background: rgba(255,255,255,0.04); }
    .notif-item.unread {
      border-color: rgba(0,232,160,0.25);
      background: rgba(0,232,160,0.04);
    }
    .notif-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .notif-icon.green { background: rgba(0,232,160,0.15); color: #00e8a0; }
    .notif-icon.purple { background: rgba(124,92,252,0.15); color: #a78bfa; }
    .notif-icon.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
    .notif-icon.orange { background: rgba(251,146,60,0.15); color: #fb923c; }
    .notif-icon svg { width: 18px; height: 18px; }
    .notif-content { flex: 1; min-width: 0; }
    .notif-content h3 {
      font-size: 13.5px;
      font-weight: 600;
      margin-bottom: 3px;
      color: #f5f5f7;
    }
    .notif-content p {
      font-size: 12px;
      color: rgba(255,255,255,0.45);
      line-height: 1.4;
    }

    .notif-filters {
      display: flex;
      gap: 8px;
      padding: 12px 14px 4px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .notif-filters::-webkit-scrollbar { display: none; }
    .notif-filter {
      flex-shrink: 0;
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.04);
      color: rgba(255,255,255,0.55);
      font-size: 12.5px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .notif-filter.active {
      background: rgba(0,232,160,0.15);
      border-color: rgba(0,232,160,0.4);
      color: #00e8a0;
    }
    .notif-icon.admin {
      background: rgba(239,68,68,0.15);
      color: #f87171;
    }
    .notif-badge {
      display: inline-block;
      font-size: 9.5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 2px 7px;
      border-radius: 6px;
      margin-bottom: 4px;
    }
    .notif-badge.admin {
      background: rgba(239,68,68,0.18);
      color: #f87171;
    }
    .notif-badge.system {
      background: rgba(59,130,246,0.18);
      color: #60a5fa;
    }
    .notif-item[data-type="admin"] {
      border-color: rgba(239,68,68,0.2);
    }
    .notif-item[data-type="admin"].unread {
      background: rgba(239,68,68,0.05);
      border-color: rgba(239,68,68,0.3);
    }
    .notif-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00e8a0;
      box-shadow: 0 0 6px rgba(0,232,160,0.6);
    }
    .notif-item[data-type="admin"] .notif-dot {
      background: #f87171;
      box-shadow: 0 0 6px rgba(248,113,113,0.6);
    }

    .notif-time {
      font-size: 10.5px;
      color: rgba(255,255,255,0.3);
      flex-shrink: 0;
      margin-top: 2px;
    }
    .notif-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #00e8a0;
      flex-shrink: 0;
      margin-top: 6px;
    }


    /* ========== REFERRAL PAGE ========== */
    #page-referral {
      display: none;
      flex-direction: column;
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 110px;
    }
    #page-referral.active {
      display: flex !important;
    }

    .ref-header {
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .ref-back {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      border: none;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    .ref-back svg { width: 18px; height: 18px; }
    .ref-header h1 {
      font-size: 17px;
      font-weight: 700;
    }

    .ref-hero {
      margin: 16px 14px 0;
      padding: 28px 18px 24px;
      border-radius: 20px;
      background: linear-gradient(145deg, rgba(124,92,252,0.2), rgba(0,232,160,0.1));
      border: 1px solid rgba(124,92,252,0.3);
      text-align: center;
      position: relative;
      overflow: visible;
    }
    .ref-hero::before {
      content: '';
      position: absolute;
      top: -40px; right: -40px;
      width: 120px; height: 120px;
      background: radial-gradient(circle, rgba(0,232,160,0.25), transparent 70%);
      pointer-events: none;
    }
    .ref-hero-icon {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, #7c5cfc, #00e8a0);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
      box-shadow: 0 6px 24px rgba(124,92,252,0.4);
    }
    .ref-hero-icon svg { width: 26px; height: 26px; color: #fff; }
    .ref-hero h2 {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .ref-hero p {
      font-size: 13px;
      color: rgba(255,255,255,0.55);
      line-height: 1.45;
    }
    .ref-hero .ref-reward {
      display: inline-block;
      margin-top: 12px;
      padding: 6px 14px;
      border-radius: 999px;
      background: rgba(0,232,160,0.15);
      border: 1px solid rgba(0,232,160,0.35);
      color: #00e8a0;
      font-size: 13px;
      font-weight: 700;
    }

    .ref-stats {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 10px;
      padding: 16px 14px 8px;
    }
    .ref-stat {
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 14px 8px;
      text-align: center;
    }
    .ref-stat-value {
      font-size: 18px;
      font-weight: 800;
      color: #00e8a0;
      margin-bottom: 3px;
    }
    .ref-stat-label {
      font-size: 10.5px;
      color: rgba(255,255,255,0.45);
    }

    .ref-code-section {
      margin: 12px 14px;
      padding: 18px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
    }
    .ref-code-label {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: rgba(255,255,255,0.4);
      margin-bottom: 10px;
    }
    .ref-code-box {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(0,0,0,0.3);
      border: 1.5px dashed rgba(0,232,160,0.4);
      border-radius: 12px;
      padding: 12px 14px;
    }
    .ref-code {
      flex: 1;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 3px;
      color: #00e8a0;
      font-variant-numeric: tabular-nums;
    }
    .ref-copy-btn {
      padding: 8px 14px;
      border-radius: 10px;
      border: none;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-size: 12.5px;
      font-weight: 700;
      cursor: pointer;
      white-space: nowrap;
    }
    .ref-copy-btn:active { transform: scale(0.96); }

    .ref-share-label {
      font-size: 12.5px;
      font-weight: 600;
      color: rgba(255,255,255,0.45);
      margin: 16px 14px 10px;
    }
    .ref-share-row {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr 1fr;
      gap: 10px;
      padding: 0 14px;
    }
    .ref-share-btn {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      padding: 14px 8px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      cursor: pointer;
      color: #f5f5f7;
      font-size: 11px;
      font-weight: 600;
      transition: transform 0.15s, background 0.2s;
    }
    .ref-share-btn:active {
      transform: scale(0.94);
      background: rgba(255,255,255,0.06);
    }
    .ref-share-icon {
      width: 40px; height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .ref-share-icon svg { width: 20px; height: 20px; }
    .ref-share-icon.wa { background: rgba(37,211,102,0.15); color: #25D366; }
    .ref-share-icon.tg { background: rgba(42,171,238,0.15); color: #2AABEE; }
    .ref-share-icon.x { background: rgba(255,255,255,0.08); color: #fff; }
    .ref-share-icon.copy { background: rgba(0,232,160,0.12); color: #00e8a0; }

    .ref-how {
      margin: 20px 14px 16px;
      padding: 18px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
    }
    .ref-how h3 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 14px;
    }
    .ref-step {
      display: flex;
      gap: 12px;
      margin-bottom: 14px;
      align-items: flex-start;
    }
    .ref-step:last-child { margin-bottom: 0; }
    .ref-step-num {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: rgba(0,232,160,0.15);
      color: #00e8a0;
      font-size: 13px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .ref-step-text {
      flex: 1;
    }
    .ref-step-text strong {
      display: block;
      font-size: 13.5px;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .ref-step-text span {
      font-size: 12px;
      color: rgba(255,255,255,0.45);
      line-height: 1.4;
    }

    .ref-list {
      margin: 0 14px 30px;
      padding-bottom: 20px;
    }
    .ref-list h3 {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 10px;
      padding: 0 2px;
    }
    .ref-friend {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 12px;
      margin-bottom: 8px;
    }
    .ref-friend-avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #7c5cfc, #00b4d8);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 15px;
      color: #fff;
      flex-shrink: 0;
    }
    .ref-friend-info { flex: 1; min-width: 0; }
    .ref-friend-info strong {
      display: block;
      font-size: 13.5px;
      font-weight: 600;
    }
    .ref-friend-info span {
      font-size: 11.5px;
      color: rgba(255,255,255,0.4);
    }
    .ref-friend-earn {
      font-size: 13px;
      font-weight: 700;
      color: #00e8a0;
    }

    /* ========== PROFILE DETAIL PAGE ========== */
    #page-detail {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    #page-detail.active {
      display: flex !important;
    }

    .detail-header {
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      position: sticky;
      top: 0;
      background: rgba(12,10,26,0.95);
      backdrop-filter: blur(12px);
      z-index: 10;
    }
    .detail-back {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      border: none;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
    }
    .detail-back svg { width: 18px; height: 18px; }
    .detail-header h1 {
      font-size: 17px;
      font-weight: 700;
      flex: 1;
    }

    .detail-body {
      padding: 24px 16px 120px;
    }

    .detail-icon-wrap {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      background: rgba(0,232,160,0.12);
      border: 1px solid rgba(0,232,160,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
      color: #00e8a0;
    }
    .detail-icon-wrap svg { width: 28px; height: 28px; }

    .detail-field-label {
      font-size: 12px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: rgba(255,255,255,0.4);
      margin-bottom: 8px;
      text-align: center;
    }
    .detail-field-value {
      font-size: 20px;
      font-weight: 700;
      color: #fff;
      text-align: center;
      margin-bottom: 8px;
      word-break: break-all;
      line-height: 1.35;
    }
    .detail-field-hint {
      font-size: 12.5px;
      color: rgba(255,255,255,0.4);
      text-align: center;
      margin-bottom: 28px;
      line-height: 1.45;
    }

    .detail-card {
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 4px 0;
      margin-bottom: 16px;
    }
    .detail-card-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 14px 16px;
      border-top: 1px solid rgba(255,255,255,0.05);
      gap: 12px;
    }
    .detail-card-row:first-child { border-top: none; }
    .detail-card-row .label {
      font-size: 13px;
      color: rgba(255,255,255,0.45);
      flex-shrink: 0;
    }
    .detail-card-row .value {
      font-size: 13.5px;
      font-weight: 600;
      color: #f5f5f7;
      text-align: right;
      word-break: break-all;
    }
    .detail-card-row .value.green { color: #00e8a0; }

    .detail-input {
      width: 100%;
      background: #16132b;
      border: 1.5px solid rgba(255,255,255,0.1);
      border-radius: 14px;
      padding: 16px;
      font-size: 16px;
      font-weight: 600;
      color: #fff;
      outline: none;
      text-align: center;
      margin-bottom: 12px;
      transition: border-color 0.25s;
    }
    .detail-input:focus {
      border-color: #00e8a0;
      box-shadow: 0 0 0 3px rgba(0,232,160,0.12);
    }

    .detail-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }
    .detail-btn {
      width: 100%;
      padding: 15px;
      border-radius: 14px;
      border: none;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: transform 0.15s;
    }
    .detail-btn:active { transform: scale(0.97); }
    .detail-btn.primary {
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      box-shadow: 0 4px 20px rgba(0,232,160,0.3);
    }
    .detail-btn.secondary {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: #f5f5f7;
    }

    .detail-status {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: 999px;
      font-size: 12.5px;
      font-weight: 600;
      margin: 0 auto 24px;
    }
    .detail-status.verified {
      background: rgba(0,232,160,0.12);
      border: 1px solid rgba(0,232,160,0.3);
      color: #00e8a0;
    }
    .detail-status.pending {
      background: rgba(251,191,36,0.12);
      border: 1px solid rgba(251,191,36,0.3);
      color: #fbbf24;
    }

    /* ========== SUPPORT + LIVE CHAT ========== */
    .support-header {
      padding: 16px 16px 12px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .support-back {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: rgba(255,255,255,0.06);
      border: none;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
    }
    .support-back svg { width: 18px; height: 18px; }
    .support-header-info { flex: 1; }
    .support-header-info h1 {
      font-size: 17px;
      font-weight: 700;
    }
    .support-status {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }
    .status-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px var(--accent);
      animation: pulseDot 1.8s ease-in-out infinite;
    }
    @keyframes pulseDot {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.6; transform: scale(0.85); }
    }

    .chat-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    .chat-messages {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 16px 14px 12px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .msg {
      max-width: 82%;
      animation: msgIn 0.35s var(--ease) both;
    }
    @keyframes msgIn {
      from { opacity: 0; transform: translateY(10px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .msg.agent { align-self: flex-start; }
    .msg.user { align-self: flex-end; }

    .msg-bubble {
      padding: 12px 14px;
      border-radius: 16px;
      font-size: 13.5px;
      line-height: 1.45;
      position: relative;
    }
    .msg.agent .msg-bubble {
      background: var(--card-solid);
      border: 1px solid var(--card-border);
      border-bottom-left-radius: 4px;
      color: var(--text);
    }
    .msg.user .msg-bubble {
      background: linear-gradient(135deg, var(--accent), #00c48c);
      color: #0b0918;
      font-weight: 500;
      border-bottom-right-radius: 4px;
      box-shadow: 0 4px 14px var(--accent-glow);
    }

    .msg-meta {
      font-size: 10.5px;
      color: var(--muted);
      margin-top: 4px;
      padding: 0 4px;
    }
    .msg.user .msg-meta { text-align: right; }

    .msg-agent-row {
      display: flex;
      align-items: flex-end;
      gap: 8px;
    }
    .agent-avatar {
      width: 28px; height: 28px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--purple), #5b3fd4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      flex-shrink: 0;
    }

    .typing-indicator {
      display: none;
      align-self: flex-start;
      padding: 12px 16px;
      background: var(--card-solid);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      border-bottom-left-radius: 4px;
      gap: 5px;
    }
    .typing-indicator.show { display: flex; }
    .typing-indicator span {
      width: 7px; height: 7px;
      border-radius: 50%;
      background: var(--muted);
      animation: typingBounce 1.2s ease-in-out infinite;
    }
    .typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
    .typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
    @keyframes typingBounce {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
      30% { transform: translateY(-5px); opacity: 1; }
    }

    .quick-replies {
      display: flex;
      gap: 8px;
      padding: 0 14px 10px;
      overflow-x: auto;
      scrollbar-width: none;
    }
    .quick-replies::-webkit-scrollbar { display: none; }
    .quick-reply {
      flex-shrink: 0;
      padding: 8px 14px;
      border-radius: 999px;
      background: var(--card);
      border: 1px solid var(--card-border);
      color: var(--text);
      font-size: 12.5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    .quick-reply:active {
      background: var(--accent-soft);
      border-color: rgba(0,232,160,0.4);
      color: var(--accent);
    }

    .chat-input-bar {
      padding: 10px 14px 12px;
      border-top: 1px solid rgba(255,255,255,0.06);
      background: rgba(13,11,26,0.95);
      display: flex;
      align-items: center;
      gap: 10px;
      padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    }
    .chat-input {
      flex: 1;
      background: var(--card-solid);
      border: 1.5px solid var(--card-border);
      border-radius: 24px;
      padding: 12px 16px;
      font-size: 14px;
      color: var(--text);
      outline: none;
      transition: border-color 0.25s;
    }
    .chat-input:focus {
      border-color: var(--accent);
    }
    .chat-input::placeholder { color: rgba(255,255,255,0.3); }

    .chat-send {
      width: 46px; height: 46px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--accent), #00c48c);
      border: none;
      color: #0b0918;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 16px var(--accent-glow);
      transition: transform 0.2s, box-shadow 0.25s;
      flex-shrink: 0;
    }
    .chat-send:active { transform: scale(0.92); }
    .chat-send svg { width: 20px; height: 20px; }

    /* Support landing cards (before chat) */
    .support-landing {
      padding: 16px 14px 100px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .support-hero {
      background: linear-gradient(145deg, rgba(124,92,252,0.15), rgba(0,232,160,0.08));
      border: 1px solid rgba(124,92,252,0.25);
      border-radius: 18px;
      padding: 22px 18px;
      text-align: center;
      animation: fadeUp 0.5s var(--ease);
    }
    .support-hero-icon {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--purple), #5b3fd4);
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 14px;
      box-shadow: 0 6px 24px rgba(124,92,252,0.4);
    }
    .support-hero-icon svg { width: 26px; height: 26px; color: #fff; }
    .support-hero h2 {
      font-size: 17px;
      font-weight: 700;
      margin-bottom: 6px;
    }
    .support-hero p {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.45;
      margin-bottom: 16px;
    }
    .start-chat-btn {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--purple), #5b3fd4);
      color: #fff;
      font-size: 14.5px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 6px 20px rgba(124,92,252,0.35);
      transition: transform 0.2s;
    }
    .start-chat-btn:active { transform: scale(0.97); }
    .start-chat-btn svg { width: 18px; height: 18px; }

    .support-option {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 16px;
      background: var(--card-solid);
      border: 1px solid var(--card-border);
      border-radius: 14px;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
      animation: fadeUp 0.5s var(--ease) both;
    }
    .support-option:nth-child(2) { animation-delay: 0.08s; }
    .support-option:nth-child(3) { animation-delay: 0.14s; }
    .support-option:nth-child(4) { animation-delay: 0.2s; }
    .support-option:active {
      background: rgba(255,255,255,0.04);
      transform: scale(0.98);
    }
    .support-option-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .support-option-icon.faq { background: rgba(0,232,160,0.12); color: var(--accent); }
    .support-option-icon.email { background: rgba(59,130,246,0.12); color: #60a5fa; }
    .support-option-icon.tg { background: rgba(42,171,238,0.12); color: #2AABEE; }
    .support-option-icon svg { width: 20px; height: 20px; }
    .support-option-text { flex: 1; }
    .support-option-text h3 {
      font-size: 14.5px;
      font-weight: 600;
      margin-bottom: 2px;
    }
    .support-option-text p {
      font-size: 12px;
      color: var(--muted);
    }
    .support-option-arrow { color: var(--muted); opacity: 0.5; }
    .support-option-arrow svg { width: 16px; height: 16px; }

    #page-support {
      display: none;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      overflow: hidden;
    }
    #page-support.active {
      display: flex;
    }
    #page-support.chat-mode .support-landing { display: none; }
    #page-support.chat-mode .chat-container { display: flex; }
    #page-support:not(.chat-mode) .chat-container { display: none; }


    /* ========== HOME QUIZ ========== */
    .quiz-section {
      margin: 8px 14px 100px;
      padding: 16px;
      background: #16132b;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
    }
    .quiz-section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .quiz-section-header h3 {
      font-size: 15px;
      font-weight: 700;
    }
    .quiz-earn-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(0,232,160,0.12);
      border: 1px solid rgba(0,232,160,0.3);
      color: #00e8a0;
    }
    .quiz-meta {
      display: flex;
      justify-content: space-between;
      font-size: 12px;
      color: rgba(255,255,255,0.45);
      margin-bottom: 12px;
    }
    .quiz-meta strong { color: #00e8a0; }
    .quiz-progress-bar {
      height: 6px;
      background: rgba(255,255,255,0.08);
      border-radius: 99px;
      overflow: hidden;
      margin-bottom: 14px;
    }
    .quiz-progress-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #00e8a0, #00c48c);
      border-radius: 99px;
      transition: width 0.3s ease;
    }
    .quiz-question {
      font-size: 14.5px;
      font-weight: 600;
      line-height: 1.4;
      margin-bottom: 14px;
      color: #f5f5f7;
    }
    .quiz-options {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .quiz-option {
      width: 100%;
      text-align: left;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1.5px solid rgba(255,255,255,0.1);
      background: rgba(255,255,255,0.03);
      color: #f5f5f7;
      font-size: 13.5px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    .quiz-option:active { transform: scale(0.98); }
    .quiz-option.correct {
      border-color: rgba(0,232,160,0.5);
      background: rgba(0,232,160,0.12);
      color: #00e8a0;
    }
    .quiz-option.wrong {
      border-color: rgba(248,113,113,0.5);
      background: rgba(248,113,113,0.1);
      color: #f87171;
    }
    .quiz-option:disabled { cursor: default; opacity: 0.9; }
    .quiz-next-row {
      margin-top: 12px;
      display: none;
    }
    .quiz-next-row.show { display: block; }
    .quiz-next-btn {
      width: 100%;
      padding: 12px;
      border: none;
      border-radius: 12px;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }
    .quiz-done {
      text-align: center;
      padding: 20px 10px;
      display: none;
    }
    .quiz-done.show { display: block; }
    .quiz-done h4 {
      font-size: 16px;
      margin-bottom: 6px;
    }
    .quiz-done p {
      font-size: 13px;
      color: rgba(255,255,255,0.5);
    }

    /* BOTTOM NAV */
    .bottom-nav {
      position:fixed; bottom:0; left:50%; transform:translateX(-50%);
      width:100%; max-width:400px; height:68px;
      background:#0d0b1a; border-top:1px solid rgba(255,255,255,0.06);
      display:flex; align-items:center; justify-content:space-between;
      padding:0 6px; z-index:50; box-sizing:border-box;
    }
    .nav-item {
      flex:1; display:flex; flex-direction:column;
      align-items:center; justify-content:center; gap:2px;
      font-size:10px; font-weight:500; color:rgba(255,255,255,0.4);
      cursor:pointer; height:100%; min-width:0;
    }
    .nav-item.active { color:var(--accent); }
    .nav-item svg { width:22px; height:22px; flex-shrink:0; }
    .nav-item span { white-space:nowrap; font-size:10px; }

    .nav-center-wrap {
      flex:1; display:flex; align-items:center; justify-content:center; height:100%;
    }
    .nav-center {
      width:50px; height:50px; border-radius:50%;
      background:linear-gradient(145deg,#00f0b0,#00c4d8);
      display:flex; align-items:center; justify-content:center;
      box-shadow:0 0 0 5px rgba(0,232,160,0.12),0 4px 16px rgba(0,232,160,0.4);
      color:#0b0918; cursor:pointer; margin-top:-16px; flex-shrink:0;
    }
    .nav-center:active { transform:scale(0.94); }
    .nav-center svg { width:24px; height:24px; stroke-width:2.6; }

    /* MODAL */
    .overlay {
      position:fixed; inset:0; background:rgba(0,0,0,0.7);
      backdrop-filter:blur(8px); display:flex; align-items:center;
      justify-content:center; z-index:100; opacity:0; visibility:hidden;
      transition:0.3s; padding:20px;
    }
    .overlay.show { opacity:1; visibility:visible; }
    .modal {
      width:100%; max-width:320px;
      background:linear-gradient(165deg,#1e1a36,#15122a);
      border-radius:22px; padding:26px 22px 20px; text-align:center;
      position:relative; border:1px solid rgba(255,255,255,0.08);
      box-shadow:0 24px 60px rgba(0,0,0,0.5);
      transform:scale(0.9) translateY(20px); opacity:0;
      transition:0.35s var(--ease);
    }
    .overlay.show .modal { transform:scale(1) translateY(0); opacity:1; }
    .modal-close {
      position:absolute; top:12px; right:12px; width:30px; height:30px;
      border-radius:50%; background:rgba(255,255,255,0.06);
      border:1px solid var(--card-border); color:var(--muted);
      cursor:pointer; font-size:16px;
      display:flex; align-items:center; justify-content:center;
    }
    .modal-icon {
      width:58px; height:58px; border-radius:50%;
      background:linear-gradient(135deg,var(--accent),#00b4d8);
      display:flex; align-items:center; justify-content:center;
      margin:0 auto 16px; box-shadow:0 8px 28px var(--accent-glow);
    }
    .modal-icon svg { width:26px; height:26px; color:#0b0918; }
    .modal h2 { font-size:18px; font-weight:700; margin-bottom:8px; }
    .modal p { font-size:12.5px; color:var(--muted); line-height:1.55; margin-bottom:16px; }
    .bonus-pill {
      display:inline-flex; background:linear-gradient(135deg,#fbbf24,#f59e0b);
      color:#1a1200; font-weight:700; font-size:13px;
      padding:9px 18px; border-radius:999px; margin-bottom:18px;
      box-shadow:0 4px 18px rgba(251,191,36,0.4);
    }
    .social-btns { display:flex; gap:8px; margin-bottom:12px; }
    .social-btn {
      flex:1; display:flex; align-items:center; justify-content:center;
      gap:6px; padding:12px 8px; border-radius:11px;
      font-size:12.5px; font-weight:600; border:none; cursor:pointer;
    }
    .social-btn.tg { background:#2AABEE; color:white; }
    .social-btn.x { background:#111; color:white; border:1px solid rgba(255,255,255,0.15); }
    .social-btn svg { width:15px; height:15px; }
    .later-link {
      font-size:12.5px; color:var(--muted); background:none;
      border:none; cursor:pointer; padding:8px;
    }

    .toast {
      position:fixed; bottom:85px; left:50%;
      transform:translateX(-50%) translateY(12px);
      background:#1a1730; border:1px solid rgba(0,232,160,0.4);
      color:var(--accent); padding:11px 18px; border-radius:11px;
      font-size:12.5px; font-weight:500; opacity:0; visibility:hidden;
      transition:0.3s; z-index:200; white-space:nowrap;
    }
    .toast.show {
      opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
    }

    /* ========== PRIZE BOX FLOAT ========== */
    .prize-float {
      position: fixed;
      right: 14px;
      bottom: 90px;
      z-index: 60;
      width: 64px;
      height: 64px;
      border: none;
      border-radius: 18px;
      cursor: pointer;
      padding: 0;
      background: linear-gradient(145deg, #00e8a0, #00c48c 45%, #7c5cfc);
      box-shadow:
        0 0 0 3px rgba(0, 232, 160, 0.25),
        0 8px 28px rgba(0, 232, 160, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.25);
      display: flex;
      align-items: center;
      justify-content: center;
      animation: prizeBounce 1.6s ease-in-out infinite;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .prize-float:hover {
      transform: scale(1.08) translateY(-2px);
      box-shadow:
        0 0 0 4px rgba(0, 232, 160, 0.4),
        0 12px 36px rgba(124, 92, 252, 0.45),
        inset 0 1px 0 rgba(255,255,255,0.3);
      animation-play-state: paused;
    }
    .prize-float:active { transform: scale(0.94); }
    .prize-float.hidden { display: none !important; }
    .prize-float-inner {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 1px;
      position: relative;
    }
    .prize-float-icon {
      font-size: 26px;
      line-height: 1;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
      animation: prizeWiggle 2.2s ease-in-out infinite;
    }
    .prize-float-tag {
      font-size: 8px;
      font-weight: 800;
      letter-spacing: 0.04em;
      color: #0b0918;
      text-transform: uppercase;
      background: rgba(255,255,255,0.9);
      padding: 1px 5px;
      border-radius: 999px;
    }
    .prize-float-pulse {
      position: absolute;
      inset: -4px;
      border-radius: 20px;
      border: 2px solid rgba(0, 232, 160, 0.55);
      animation: prizePulse 1.6s ease-out infinite;
      pointer-events: none;
    }
    @keyframes prizeBounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-12px); }
    }
    @keyframes prizeWiggle {
      0%, 100% { transform: rotate(-6deg); }
      50% { transform: rotate(6deg); }
    }
    @keyframes prizePulse {
      0% { transform: scale(1); opacity: 0.8; }
      100% { transform: scale(1.35); opacity: 0; }
    }

    .prize-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: center;
      z-index: 130;
      opacity: 0; visibility: hidden;
      transition: 0.3s;
      padding: 20px;
    }
    .prize-overlay.show { opacity: 1; visibility: visible; }
    .prize-modal {
      background: linear-gradient(165deg, #1e1a36, #15122a);
      border-radius: 24px;
      padding: 28px 22px 22px;
      text-align: center;
      max-width: 320px;
      width: 100%;
      border: 1px solid rgba(0, 232, 160, 0.3);
      box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 40px rgba(0, 232, 160, 0.12);
      position: relative;
      transform: scale(0.9);
      transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    }
    .prize-overlay.show .prize-modal { transform: scale(1); }
    .prize-modal-close {
      position: absolute; top: 12px; right: 12px;
      width: 32px; height: 32px; border-radius: 50%;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.5);
      cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
    }
    .prize-box-art {
      width: 88px; height: 88px;
      margin: 0 auto 16px;
      border-radius: 20px;
      background: linear-gradient(145deg, #00e8a0, #00c48c 50%, #7c5cfc);
      display: flex; align-items: center; justify-content: center;
      font-size: 42px;
      box-shadow: 0 10px 32px rgba(0, 232, 160, 0.4);
      animation: prizeWiggle 2s ease-in-out infinite;
    }
    .prize-modal h2 {
      font-size: 18px; font-weight: 700; margin-bottom: 6px;
    }
    .prize-reward-pill {
      display: inline-block;
      margin: 8px 0 14px;
      padding: 8px 16px;
      border-radius: 999px;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-weight: 800;
      font-size: 15px;
      box-shadow: 0 4px 18px rgba(0, 232, 160, 0.35);
    }
    .prize-modal p {
      font-size: 13px;
      color: rgba(255,255,255,0.55);
      line-height: 1.5;
      margin-bottom: 12px;
      text-align: left;
    }
    .prize-steps {
      text-align: left;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 16px;
      font-size: 12.5px;
      color: rgba(255,255,255,0.65);
      line-height: 1.55;
    }
    .prize-steps strong { color: #00e8a0; }
    .prize-actions {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .prize-btn-primary {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-size: 14.5px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(0, 232, 160, 0.35);
    }
    .prize-btn-secondary {
      width: 100%;
      padding: 12px;
      border-radius: 14px;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.05);
      color: #f5f5f7;
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
    }

    @media (max-width:360px) {
      .balance-amount, .wallet-balance-amount { font-size:28px; }
      .quick-icon { width:44px; height:44px; }
      .nav-item span { font-size:9px; }
      .nav-center { width:46px; height:46px; margin-top:-12px; }
    }

    /* ========== LUCKY SPINNER ========== */
    .spin-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.8);
      backdrop-filter: blur(12px);
      display: flex; align-items: center; justify-content: center;
      z-index: 120;
      opacity: 0; visibility: hidden;
      transition: 0.3s;
      padding: 20px;
    }
    .spin-overlay.show { opacity: 1; visibility: visible; }
    .spin-modal {
      background: linear-gradient(165deg, #1e1a36, #15122a);
      border-radius: 24px;
      padding: 28px 20px 24px;
      text-align: center;
      max-width: 320px;
      width: 100%;
      border: 1px solid rgba(0,232,160,0.2);
      box-shadow: 0 24px 60px rgba(0,0,0,0.55);
      position: relative;
      transform: scale(0.9);
      transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
    }
    .spin-overlay.show .spin-modal { transform: scale(1); }
    .spin-close {
      position: absolute; top: 12px; right: 12px;
      width: 32px; height: 32px; border-radius: 50%;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.5);
      cursor: pointer; font-size: 18px;
      display: flex; align-items: center; justify-content: center;
    }
    .spin-modal h2 {
      font-size: 18px; font-weight: 700; margin-bottom: 4px;
    }
    .spin-modal .spin-sub {
      font-size: 12.5px; color: rgba(255,255,255,0.45);
      margin-bottom: 18px;
    }
    .spin-wheel-wrap {
      position: relative;
      width: 260px; height: 260px;
      margin: 0 auto 20px;
    }
    .spin-pointer {
      position: absolute;
      top: -8px; left: 50%;
      transform: translateX(-50%);
      width: 0; height: 0;
      border-left: 11px solid transparent;
      border-right: 11px solid transparent;
      border-top: 20px solid #00e8a0;
      z-index: 6;
      filter: drop-shadow(0 2px 6px rgba(0,232,160,0.5));
    }
    .spin-wheel {
      width: 260px; height: 260px;
      border-radius: 50%;
      border: 4px solid rgba(0,232,160,0.35);
      box-shadow: 0 0 0 6px rgba(0,232,160,0.08), 0 8px 32px rgba(0,0,0,0.4);
      position: relative;
      overflow: hidden;
      transition: transform 4.2s cubic-bezier(0.15, 0.85, 0.25, 1);
      background: conic-gradient(
        from -22.5deg,
        #252045 0deg 45deg,
        #0a4a3c 45deg 90deg,
        #252045 90deg 135deg,
        #0d5544 135deg 180deg,
        #252045 180deg 225deg,
        #123a5c 225deg 270deg,
        #252045 270deg 315deg,
        #3a2a5c 315deg 360deg
      );
    }
    .spin-wheel.spinning {
      pointer-events: none;
    }
    .spin-seg-label {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 72px;
      height: 20px;
      margin-left: -36px;
      margin-top: -10px;
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      text-align: center;
      line-height: 20px;
      pointer-events: none;
      white-space: nowrap;
      text-shadow: 0 1px 4px rgba(0,0,0,0.75);
      letter-spacing: 0.02em;
    }
    .spin-seg-label.win-label {
      color: #00e8a0;
      font-size: 13px;
      font-weight: 800;
    }
    .spin-hub {
      position: absolute;
      left: 50%; top: 50%;
      transform: translate(-50%, -50%);
      width: 48px; height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      border: 3px solid #0b0918;
      box-shadow: 0 4px 16px rgba(0,232,160,0.4);
      z-index: 4;
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 14px; color: #0b0918;
      pointer-events: none;
    }
    .spin-btn {
      width: 100%;
      padding: 14px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 6px 24px rgba(0,232,160,0.35);
      transition: transform 0.15s, opacity 0.2s;
    }
    .spin-btn:active { transform: scale(0.97); }
    .spin-btn:disabled {
      opacity: 0.55;
      cursor: not-allowed;
      transform: none;
    }
    .spin-result {
      margin-top: 14px;
      min-height: 24px;
      font-size: 15px;
      font-weight: 700;
      color: #00e8a0;
    }
    .spin-result.lose { color: rgba(255,255,255,0.5); }
    .spin-result.win { color: #00e8a0; }

    /* ========== AUTH (Login / Signup / Bank) ========== */
    .auth-screen {
      position: fixed; inset: 0;
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px 16px;
      background: linear-gradient(165deg, #1a1433 0%, #0b0918 45%, #12102a 100%);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .auth-screen.show { display: flex; }
    .auth-screen::before {
      content: '';
      position: fixed; inset: 0;
      background:
        radial-gradient(ellipse 70% 40% at 20% 0%, rgba(0,232,160,0.12), transparent 50%),
        radial-gradient(ellipse 50% 35% at 90% 10%, rgba(124,92,252,0.15), transparent 45%);
      pointer-events: none;
    }
    .auth-card {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 380px;
      background: rgba(22, 19, 43, 0.92);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 24px;
      padding: 28px 22px 24px;
      box-shadow: 0 24px 60px rgba(0,0,0,0.45);
      margin: auto;
    }
    .auth-logo {
      width: 56px; height: 56px;
      border-radius: 16px;
      background: linear-gradient(135deg, #00e8a0, #00b4d8);
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 22px; color: #0b0918;
      margin: 0 auto 14px;
      box-shadow: 0 8px 28px rgba(0,232,160,0.35);
    }
    .auth-card h1 {
      text-align: center;
      font-size: 22px;
      font-weight: 800;
      margin-bottom: 4px;
    }
    .auth-card .auth-lead {
      text-align: center;
      font-size: 13px;
      color: rgba(255,255,255,0.5);
      margin-bottom: 22px;
      line-height: 1.4;
    }
    .auth-panel { display: none; }
    .auth-panel.active { display: block; animation: pageIn 0.35s cubic-bezier(0.22,1,0.36,1); }
    .auth-field { margin-bottom: 14px; }
    .auth-field label {
      display: block;
      font-size: 12px;
      font-weight: 600;
      color: rgba(255,255,255,0.5);
      margin-bottom: 7px;
    }
    .auth-field input,
    .auth-field select {
      width: 100%;
      background: #12102a;
      border: 1.5px solid rgba(255,255,255,0.1);
      border-radius: 12px;
      padding: 13px 14px;
      font-size: 14.5px;
      font-weight: 500;
      color: #f5f5f7;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      appearance: none;
      font-family: inherit;
    }
    .auth-field input:focus,
    .auth-field select:focus {
      border-color: #00e8a0;
      box-shadow: 0 0 0 3px rgba(0,232,160,0.12);
    }
    .auth-field input::placeholder { color: rgba(255,255,255,0.28); }
    .auth-select-wrap { position: relative; }
    .auth-select-wrap::after {
      content: '▾';
      position: absolute;
      right: 14px; top: 50%;
      transform: translateY(-50%);
      color: rgba(255,255,255,0.4);
      pointer-events: none;
      font-size: 12px;
    }
    .auth-btn {
      width: 100%;
      padding: 15px;
      border: none;
      border-radius: 14px;
      background: linear-gradient(135deg, #00e8a0, #00c48c);
      color: #0b0918;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      margin-top: 6px;
      box-shadow: 0 6px 24px rgba(0,232,160,0.3);
    }
    .auth-btn:active { transform: scale(0.98); }
    .auth-btn.secondary {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: #f5f5f7;
      box-shadow: none;
      margin-top: 10px;
    }
    .auth-switch {
      text-align: center;
      margin-top: 18px;
      font-size: 13px;
      color: rgba(255,255,255,0.45);
    }
    .auth-switch a {
      color: #00e8a0;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
    }
    .auth-error {
      display: none;
      background: rgba(248,113,113,0.12);
      border: 1px solid rgba(248,113,113,0.35);
      color: #f87171;
      font-size: 12.5px;
      padding: 10px 12px;
      border-radius: 10px;
      margin-bottom: 12px;
      line-height: 1.4;
    }
    .auth-error.show { display: block; }
    .auth-steps {
      display: flex;
      gap: 6px;
      justify-content: center;
      margin-bottom: 18px;
    }
    .auth-step-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      background: rgba(255,255,255,0.15);
    }
    .auth-step-dot.on {
      background: #00e8a0;
      box-shadow: 0 0 8px rgba(0,232,160,0.5);
    }
    .auth-bank-note {
      font-size: 12px;
      color: rgba(255,255,255,0.4);
      line-height: 1.45;
      margin-bottom: 14px;
      text-align: center;
    }
    .auth-pitch {
      background: linear-gradient(145deg, rgba(0,232,160,0.1), rgba(124,92,252,0.08));
      border: 1px solid rgba(0,232,160,0.22);
      border-radius: 14px;
      padding: 14px 14px 12px;
      margin-bottom: 18px;
      text-align: left;
    }
    .auth-pitch-title {
      font-size: 13px;
      font-weight: 700;
      color: #00e8a0;
      margin-bottom: 8px;
    }
    .auth-pitch p {
      font-size: 12.5px;
      color: rgba(255,255,255,0.55);
      line-height: 1.45;
      margin-bottom: 10px;
    }
    .auth-pitch-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .auth-pitch-list li {
      font-size: 12.5px;
      color: rgba(255,255,255,0.7);
      line-height: 1.35;
      display: flex;
      gap: 8px;
      align-items: flex-start;
    }
    .auth-pitch-list li::before {
      content: '✓';
      color: #00e8a0;
      font-weight: 800;
      flex-shrink: 0;
    }
    .auth-trust {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .auth-trust span {
      flex: 1;
      text-align: center;
      font-size: 10.5px;
      color: rgba(255,255,255,0.4);
      font-weight: 600;
      line-height: 1.3;
    }
    .auth-trust strong {
      display: block;
      color: #00e8a0;
      font-size: 12px;
      margin-bottom: 2px;
    }
    body.auth-locked .app { visibility: hidden; pointer-events: none; }
    body.auth-locked .prize-float { display: none !important; }


/* Profile avatar photo */
.profile-avatar {
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.profile-avatar.has-photo {
  color: transparent !important;
  font-size: 0 !important;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-btn.secondary {
  background: transparent;
  border: 1px solid rgba(0,232,160,0.35);
  color: #00e8a0;
}


/* About page — ensure full content always visible */
#page-detail .detail-body {
  padding-bottom: 160px !important;
}
#aboutContent {
  display: block !important;
  visibility: visible !important;
}
#aboutContent .detail-card,
#aboutHighlightsCard,
#aboutPrivacyCard,
#aboutTermsCard,
#aboutEmailRow {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}
#aboutEmailRow {
  display: flex !important;
}
#aboutHighlightsList {
  display: block !important;
  list-style: disc !important;
  padding-left: 18px !important;
  margin: 0 !important;
}
