
    :root {
      --navy:    #0D1B2A;
      --red:     #C1121F;
      --gold:    #E6A817;
      --white:   #FFFFFF;
      --success: #1A7A4A;
      --radius:  10px;
      --shadow:  0 4px 24px rgba(13,27,42,0.12);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: 'Inter', sans-serif; background: var(--navy); color: var(--white); min-height: 100vh; -webkit-font-smoothing: antialiased; }

    nav {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.1rem 2.5rem;
      background: rgba(255,255,255,0.03);
      border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    .logo { font-family: 'DM Sans', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 8px; }
    .logo span { color: var(--red); }
    
    .nav-user { display: flex; align-items: center; gap: 15px; }
    .logout-btn { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 0.4rem 0.9rem; border-radius: 6px; cursor: pointer; font-size: 0.85rem; transition: 0.2s; }
    .logout-btn:hover { background: var(--red); border-color: var(--red); }

    main { max-width: 1100px; margin: 2.5rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; }
    @media (max-width: 850px) { main { grid-template-columns: 1fr; } }

    .card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); height: fit-content; }
    .card-title { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 10px; }
    
    .kyc-banner { background: var(--gold); color: var(--navy); padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-weight: 600; display: none; font-size: 0.9rem; align-items: center; justify-content: space-between; }
    .kyc-banner.show { display: flex; }
    .kyc-link { background: var(--navy); color: var(--white); text-decoration: none; padding: 0.3rem 0.8rem; border-radius: 5px; font-size: 0.8rem; }

    .form-group { margin-bottom: 1.2rem; }
    label { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 0.4rem; font-weight: 500; }
    input, select { width: 100%; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.15); border-radius: 6px; padding: 0.75rem; color: var(--white); font-size: 0.95rem; font-family: inherit; transition: 0.2s; }
    input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(230,168,23,0.15); }
    
    .rate-box { background: rgba(230,168,23,0.07); border: 1px solid rgba(230,168,23,0.2); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; display: flex; justify-content: space-between; align-items: center; }
    .rate-box strong { color: var(--gold); font-size: 1.1rem; }

    .breakdown { background: rgba(0,0,0,0.15); border-radius: 6px; padding: 1rem; margin-bottom: 1.5rem; font-size: 0.85rem; border: 1px solid rgba(255,255,255,0.03); }
    .breakdown-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
    .breakdown-row:last-child { margin-bottom: 0; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-weight: 600; font-size: 0.95rem; }
    .breakdown-row.total-htg { color: var(--gold); }

    .btn { width: 100%; background: var(--red); color: var(--white); border: none; padding: 0.9rem; font-size: 1rem; font-weight: 600; border-radius: 6px; cursor: pointer; transition: 0.2s; font-family: inherit; }
    .btn:hover { background: #d91624; transform: translateY(-1px); }
    .btn:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; transform: none; }

    /* File upload design */
    .upload-area { border: 2px dashed rgba(255,255,255,0.2); padding: 1.5rem; border-radius: var(--radius); text-align: center; cursor: pointer; transition: 0.2s; }
    .upload-area:hover { border-color: var(--gold); background: rgba(230,168,23,0.02); }
    .upload-area.has-file { border-color: var(--success); background: rgba(26,122,74,0.05); }
    .upload-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
    .upload-title { font-size: 0.9rem; font-weight: 500; }
    .upload-sub { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }

    .error-msg { color: #ff4d4d; font-size: 0.8rem; margin-top: 0.3rem; display: none; }
    
    /* Historial Section Design */
    .history-section { grid-column: 1 / -1; margin-top: 1rem; }
    .stats-counter { display: inline-flex; align-items: center; background: rgba(26,122,74,0.15); border: 1px solid rgba(26,122,74,0.3); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; color: #4ade80; margin-bottom: 1rem; }
    .table-wrapper { width: 100%; overflow-x: auto; background: rgba(0,0,0,0.15); border: 1px solid rgba(255,255,255,0.06); border-radius: 6px; }
    table { width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: left; min-width: 600px; }
    th, td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
    th { font-family: 'DM Sans', sans-serif; font-weight: 600; color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.02); }
    tr:last-child td { border-bottom: none; }
    .status-badge { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
    .status-pending { background: rgba(230,168,23,0.15); color: var(--gold); }
    .status-processing { background: rgba(59,130,246,0.15); color: #60a5fa; }
    .status-completed { background: rgba(26,122,74,0.15); color: #4ade80; }
    .status-failed { background: rgba(193,18,31,0.15); color: #f87171; }
    .empty-history { text-align: center; padding: 2rem; color: rgba(255,255,255,0.4); font-size: 0.9rem; }

    .toast { position: fixed; bottom: 2rem; right: 2rem; padding: 1rem 1.5rem; border-radius: 6px; font-weight: 500; font-size: 0.9rem; transform: translateY(100px); opacity: 0; transition: 0.3s; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
    .toast.success { background: var(--success); color: var(--white); }
    .toast.error { background: var(--red); color: var(--white); }
    .toast.show { transform: translateY(0); opacity: 1; }
  
.auth-page { min-height: calc(100vh - 70px); display:flex; align-items:center; justify-content:center; padding:2rem; }
.auth-card { width:100%; max-width:480px; }
.auth-links { text-align:center; margin-top:1rem; font-size:.9rem; color:rgba(255,255,255,.65); }
.auth-links a { color:var(--gold); text-decoration:none; font-weight:700; }
.nav-link { color: rgba(255,255,255,.8); text-decoration:none; margin-left:1rem; font-weight:600; }
.hero { max-width:900px; margin:5rem auto; padding:0 1.5rem; text-align:center; }
.hero h1 { font-family:'DM Sans',sans-serif; font-size:clamp(2.3rem,5vw,4rem); line-height:1.05; margin-bottom:1rem; }
.hero p { color:rgba(255,255,255,.68); font-size:1.05rem; line-height:1.7; max-width:680px; margin:0 auto 2rem; }
.hero-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
.btn.secondary { background:transparent; border:1px solid rgba(255,255,255,.25); }
.payment-note { margin-top: .8rem; color: rgba(255,255,255,.55); font-size: .82rem; text-align:center; }

.product-switch { grid-column: 1 / -1; margin-bottom: 1rem; }
.product-options { display:grid; grid-template-columns: 1fr 1fr; gap:1rem; }
.product-option { text-align:left; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:var(--white); border-radius:var(--radius); padding:1rem; cursor:pointer; display:flex; flex-direction:column; gap:.25rem; font-family:inherit; }
.product-option.active { border-color:var(--gold); box-shadow:0 0 0 3px rgba(230,168,23,.12); }
.product-option strong { font-size:1rem; }
.product-option small { color:rgba(255,255,255,.55); }
.product-icon { font-size:1.5rem; }
.product-flow { margin-top:1rem; }
.history-tabs { display:flex; gap:.7rem; margin-bottom:1rem; flex-wrap:wrap; }
.history-tab { border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.04); color:var(--white); padding:.55rem .9rem; border-radius:20px; cursor:pointer; font-weight:700; }
.history-tab.active { background:var(--gold); color:var(--navy); border-color:var(--gold); }
.status-unpaid,.status-not_started { background:rgba(230,168,23,0.15); color:var(--gold); }
.status-paid,.status-successful { background:rgba(26,122,74,0.15); color:#4ade80; }
.status-manual_required { background:rgba(255,255,255,0.1); color:rgba(255,255,255,.75); }
@media(max-width:700px){ .product-options{grid-template-columns:1fr;} }
