:root {
        --bg: #0A0C10; --bg-soft: #0E1118;
        --surface: #141821; --surface-2: #1C2230; --surface-3: #232A38;
        --primary: #E50914; --primary-hover: #F40612;
        --primary-soft: rgba(229, 9, 20, 0.12);
        --primary-glow: rgba(229, 9, 20, 0.35);
        --gold: #F5C518; --gold-soft: rgba(245, 197, 24, 0.12);
        --text: #F5F7FA; --text-muted: #8B92A5; --text-dim: #5A6274;
        --border: #232A38; --border-soft: #1A2030;
        --success: #10B981; --success-soft: rgba(16, 185, 129, 0.12);
        --warning: #F59E0B; --warning-soft: rgba(245, 158, 11, 0.12);
        --danger: #F87171; --danger-soft: rgba(248, 113, 113, 0.1);
        --radius-sm: 10px; --radius: 14px; --radius-lg: 20px;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        --shadow-glow: 0 8px 24px rgba(229, 9, 20, 0.35);
    }
    *, *::before, *::after {
        margin: 0; padding: 0; box-sizing: border-box;
        font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
        -webkit-tap-highlight-color: transparent;
    }
    html, body { height: 100%; }
    body {
        background: var(--bg);
        background-image:
            radial-gradient(ellipse 60% 40% at 50% -10%, rgba(229, 9, 20, 0.18), transparent 60%),
            radial-gradient(ellipse 40% 30% at 90% 10%, rgba(245, 197, 24, 0.06), transparent 60%);
        background-attachment: fixed;
        color: var(--text); min-height: 100vh;
        display: flex; flex-direction: column; align-items: center;
        padding-bottom: 40px; overflow-x: hidden;
    }
    .site-header {
        width: 100%; max-width: 480px; padding: 16px 20px;
        display: flex; justify-content: space-between; align-items: center;
        position: sticky; top: 0; z-index: 100;
        background: rgba(10, 12, 16, 0.75);
        backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border-soft);
    }
    .brand { display: flex; align-items: center; gap: 10px; }
        .brand-logo {
        width: 38px; height: 38px; border-radius: 10px;
        background: #000;
        display: flex; align-items: center; justify-content: center;
        padding: 2px;
        box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4), inset 0 0 0 1px rgba(229, 9, 20, 0.25);
        flex-shrink: 0;
        overflow: hidden;
    }
    .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
    .brand-icon {
        width: 34px; height: 34px; border-radius: 10px;
        background: linear-gradient(145deg, var(--primary), #A80710);
        display: flex; align-items: center; justify-content: center;
        box-shadow: var(--shadow-glow);
    }
    .brand-icon svg { width: 18px; height: 18px; stroke: #fff; fill: #fff; }
    .brand-text { display: flex; flex-direction: column; line-height: 1; }
    .brand-name { font-size: 1rem; font-weight: 800; letter-spacing: -0.3px; }
    .brand-badge { font-size: 0.55rem; font-weight: 800; color: var(--gold); letter-spacing: 2px; margin-top: 3px; }
    .icon-btn {
        width: 38px; height: 38px; border-radius: 10px;
        background: var(--surface); border: 1px solid var(--border);
        color: var(--text-muted); display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: 0.2s;
    }
    .icon-btn:hover { color: var(--text); border-color: var(--surface-3); }
    .icon-btn svg { width: 18px; height: 18px; }
    .container {
        width: 100%; max-width: 480px; padding: 24px 20px 0;
        display: flex; flex-direction: column; gap: 20px;
    }
    .hero { text-align: center; padding: 8px 0 4px; }
    .hero h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -0.8px; line-height: 1.15; margin-bottom: 10px; }
    .gradient-text {
        background: linear-gradient(90deg, #FF2D4A 0%, #E50914 50%, #F5C518 100%);
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .hero p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; max-width: 340px; margin: 0 auto 16px; }
    .trust-row { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
    .trust-chip {
        display: inline-flex; align-items: center; gap: 5px;
        background: var(--surface); border: 1px solid var(--border);
        color: var(--text-muted); padding: 6px 11px; border-radius: 20px;
        font-size: 0.68rem; font-weight: 600;
    }
    .trust-chip svg { width: 12px; height: 12px; color: var(--success); }
    .tabs-nav {
        display: flex; background: var(--surface); border-radius: var(--radius);
        padding: 5px; border: 1px solid var(--border); gap: 4px;
    }
    .tab-btn {
        flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
        background: transparent; border: none; color: var(--text-muted);
        padding: 11px 8px; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
        cursor: pointer; transition: 0.25s; white-space: nowrap;
    }
    .tab-btn svg { width: 14px; height: 14px; }
    .tab-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-glow); }
    .panel { display: none; flex-direction: column; gap: 16px; }
    .panel.active { display: flex; animation: fadeUp 0.35s ease both; }
    @keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
    .products-grid { display: flex; flex-direction: column; gap: 16px; }
    .product-card {
        position: relative; background: linear-gradient(160deg, var(--surface) 0%, #0E1219 100%);
        border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
        overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
        display: flex; flex-direction: column;
    }
    .product-card::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(circle at 100% 0%, rgba(229, 9, 20, 0.12), transparent 55%);
        pointer-events: none;
    }
    .product-card:hover { transform: translateY(-2px); border-color: var(--surface-3); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
    .product-card.product-premium {
        border-color: rgba(245, 197, 24, 0.25);
        background: linear-gradient(160deg, #1A1712 0%, #0E1219 100%);
    }
    .product-card.product-premium::before { background: radial-gradient(circle at 100% 0%, rgba(245, 197, 24, 0.14), transparent 55%); }
    .product-badge {
        position: absolute; top: 16px; right: 16px;
        display: inline-flex; align-items: center; gap: 4px;
        background: linear-gradient(135deg, #F5C518, #B8860B); color: #1A1408;
        padding: 4px 9px; border-radius: 20px; font-size: 0.6rem; font-weight: 800;
        letter-spacing: 0.5px; box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
    }
    .product-badge svg { width: 10px; height: 10px; fill: #1A1408; }
    .product-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-right: 70px; }
    .product-icon {
        width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
        background: var(--primary-soft); border: 1px solid rgba(229, 9, 20, 0.25);
        display: flex; align-items: center; justify-content: center;
    }
    .product-premium .product-icon { background: var(--gold-soft); border-color: rgba(245, 197, 24, 0.3); }
    .product-icon svg { width: 22px; height: 22px; color: var(--primary); }
    .product-premium .product-icon svg { color: var(--gold); }
    .product-head h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 2px; }
    .product-sub { font-size: 0.7rem; color: var(--text-muted); line-height: 1.3; }
    .feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
    .feature-list li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-muted); }
    .feature-list li svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; }
    .price-block { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; margin-top: auto; }
    .price { font-size: 1.7rem; font-weight: 900; letter-spacing: -1px; line-height: 1; }
    .price.loading {
        display: inline-block;
        width: 140px; height: 28px;
        background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
        background-size: 200% 100%;
        animation: shimmer 1.4s infinite linear;
        border-radius: 6px;
        color: transparent;
        font-size: 0 !important;
        letter-spacing: 0;
        vertical-align: middle;
    }
    .price-unit { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }
    .trust-strip {
        display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 14px 10px;
    }
    .trust-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 5px; }
    .trust-item svg { width: 18px; height: 18px; color: var(--primary); }
    .trust-item strong { font-size: 0.7rem; font-weight: 700; display: block; }
    .trust-item small { font-size: 0.62rem; color: var(--text-muted); line-height: 1.3; display: block; }
    .redeem-card {
        background: linear-gradient(160deg, var(--surface) 0%, #0E1219 100%);
        border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px;
    }
    .redeem-head { text-align: center; margin-bottom: 20px; }
    .redeem-icon {
        width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 16px;
        background: var(--primary-soft); border: 1px solid rgba(229, 9, 20, 0.3);
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.2);
    }
    .redeem-icon svg { width: 26px; height: 26px; color: var(--primary); }
    .redeem-head h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
    .redeem-head p { font-size: 0.75rem; color: var(--text-muted); max-width: 260px; margin: 0 auto; line-height: 1.4; }
    .input-group { position: relative; margin-bottom: 12px; }
    .input-group .paste-btn {
        position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
        width: 36px; height: 36px; background: var(--surface-2);
        border: 1px solid var(--border); border-radius: 8px;
        color: var(--text-muted); cursor: pointer;
        display: flex; align-items: center; justify-content: center; transition: 0.2s;
    }
    .input-group .paste-btn:hover { color: var(--primary); border-color: var(--primary); }
    .input-group .paste-btn svg { width: 15px; height: 15px; }
    .input-group .input { padding-right: 52px; }
    .input {
        width: 100%; background: var(--bg); border: 1px solid var(--border);
        color: var(--text); padding: 14px; border-radius: var(--radius-sm);
        font-size: 0.88rem; outline: none; font-family: inherit;
        transition: 0.2s; text-align: center;
    }
    .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
    .input-code { text-transform: uppercase; letter-spacing: 2px; font-weight: 800; font-size: 1.05rem; }
    .btn {
        width: 100%; border: none; padding: 14px 18px; border-radius: var(--radius-sm);
        font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: 0.2s;
        font-family: inherit; display: inline-flex; justify-content: center;
        align-items: center; gap: 8px; text-decoration: none;
        position: relative; overflow: hidden;
    }
    .btn svg { width: 16px; height: 16px; }
    .btn:active:not(:disabled) { transform: scale(0.98); }
    .btn:disabled { opacity: 0.55; cursor: not-allowed; }
    .btn-primary {
        background: linear-gradient(135deg, var(--primary) 0%, #B8070F 100%);
        color: white; box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35);
    }
    .btn-primary:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(229, 9, 20, 0.5); }
    .btn-success {
        background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
        color: white; box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
    }
    .btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
    .btn-outline:hover { border-color: var(--text-muted); }
    .btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
    .btn-ghost:hover { color: var(--text); }
    .btn-danger { background: linear-gradient(135deg, #DC2626, #991B1B); color: white; }
    .btn-sm { padding: 9px 14px; font-size: 0.75rem; border-radius: 8px; }
    .btn-sm svg { width: 13px; height: 13px; }
    .msg { font-size: 0.75rem; margin-top: 10px; text-align: center; display: none; padding: 8px; border-radius: 8px; }
    .msg.show { display: block; }
    .msg.err { color: var(--danger); background: var(--danger-soft); }
    .msg.ok { color: var(--success); background: var(--success-soft); }
    .msg.warn { color: var(--warning); background: var(--warning-soft); }
    .success-check {
        width: 68px; height: 68px; margin: 0 auto 14px; background: var(--success-soft);
        border-radius: 50%; display: flex; align-items: center; justify-content: center;
        animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .success-check svg { width: 34px; height: 34px; color: var(--success); }
    .success-check.small { width: 54px; height: 54px; }
    .success-check.small svg { width: 26px; height: 26px; }
    .modal-overlay {
        position: fixed; inset: 0; background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
        z-index: 999; display: none; align-items: center; justify-content: center; padding: 16px;
    }
    .modal-overlay.active { display: flex; }
    .modal-box {
        background: var(--surface); width: 100%; max-width: 400px;
        border-radius: var(--radius-lg); padding: 24px 20px; position: relative;
        border: 1px solid var(--border); animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        max-height: 94vh; overflow-y: auto;
    }
    @keyframes popIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
    .modal-close {
        position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
        border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border);
        color: var(--text-muted); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: 0.2s; z-index: 2;
    }
    .modal-close:hover { color: var(--text); }
    .modal-close svg { width: 16px; height: 16px; }
    .modal-steps { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 18px; }
    .step { display: flex; align-items: center; gap: 5px; font-size: 0.65rem; font-weight: 700; color: var(--text-dim); }
    .step span {
        width: 20px; height: 20px; border-radius: 50%; background: var(--surface-2);
        border: 1px solid var(--border); display: flex; align-items: center;
        justify-content: center; font-size: 0.6rem;
    }
    .step.active { color: var(--primary); }
    .step.active span { background: var(--primary); border-color: var(--primary); color: white; }
    .step-line { flex: 1; max-width: 22px; height: 1px; background: var(--border); }
    .modal-title { text-align: center; font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; }
    .timer-box {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        background: var(--primary-soft); border: 1px solid rgba(229, 9, 20, 0.3);
        color: var(--primary); font-weight: 800; font-size: 1.35rem;
        padding: 10px; border-radius: var(--radius-sm); margin-bottom: 8px;
        font-variant-numeric: tabular-nums;
    }
    .timer-box svg { width: 18px; height: 18px; }
    .timer-box.urgent { animation: urgentPulse 1s infinite; }
    @keyframes urgentPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.4); }
        50% { box-shadow: 0 0 0 8px rgba(229, 9, 20, 0); }
    }
    .timer-progress { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-bottom: 16px; }
    .timer-progress > div {
        height: 100%; width: 100%;
        background: linear-gradient(90deg, var(--primary), #FF2D4A);
        transition: width 1s linear;
    }
    .nominal-box {
        background: var(--bg); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 14px; text-align: center; margin-bottom: 16px;
    }
    .nominal-label { font-size: 0.7rem; color: var(--text-muted); display: block; margin-bottom: 6px; font-weight: 600; }
    .nominal-value { display: flex; align-items: center; justify-content: center; gap: 8px; }
    .nominal-value strong { font-size: 1.5rem; font-weight: 900; color: var(--warning); letter-spacing: -0.8px; }
    .copy-small {
        width: 28px; height: 28px; background: var(--surface-2);
        border: 1px solid var(--border); border-radius: 7px;
        color: var(--text-muted); cursor: pointer;
        display: flex; align-items: center; justify-content: center; transition: 0.2s;
    }
    .copy-small:hover { color: var(--primary); border-color: var(--primary); }
    .copy-small svg { width: 13px; height: 13px; }
    .nominal-note { font-size: 0.65rem; color: var(--warning); margin-top: 8px; line-height: 1.4; }
    .qris-box {
        background: var(--surface-2); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 16px; text-align: center; margin-bottom: 16px;
    }
    .qris-frame {
        background: white; border-radius: 12px; padding: 14px;
        display: flex; align-items: center; justify-content: center;
        min-height: 220px; position: relative;
    }
    .qris-frame::before, .qris-frame::after {
        content: ''; position: absolute; width: 18px; height: 18px;
        border: 2px solid var(--primary);
    }
    .qris-frame::before { top: 6px; left: 6px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
    .qris-frame::after { bottom: 6px; right: 6px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }
    #qrisCanvas { display: flex; justify-content: center; }
    #qrisCanvas img, #qrisCanvas canvas { max-width: 100%; height: auto !important; }
    .qris-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 10px; font-weight: 600; }
    .qris-logos { display: flex; justify-content: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
    .qris-logos span {
        font-size: 0.6rem; font-weight: 800; color: var(--text-dim);
        background: var(--surface-3); padding: 3px 8px; border-radius: 4px; letter-spacing: 0.3px;
    }
    .success-result {
        display: none; text-align: center; background: var(--success-soft);
        padding: 20px; border-radius: var(--radius);
        border: 1px solid rgba(16, 185, 129, 0.3); margin-top: 16px;
    }
    .success-result p { font-size: 0.82rem; margin-bottom: 10px; font-weight: 600; }
    .voucher-code {
        display: block; font-size: 1.3rem; font-weight: 900; color: var(--success);
        letter-spacing: 2px; padding: 12px; background: var(--bg);
        border: 1px dashed rgba(16, 185, 129, 0.4);
        border-radius: var(--radius-sm); margin-bottom: 14px; word-break: break-all;
    }
    .login-actions { display: flex; flex-direction: column; gap: 8px; }
    .spinner {
        width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.25);
        border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .site-footer { width: 100%; max-width: 480px; padding: 24px 20px; text-align: center; margin-top: 20px; }
    .site-footer p { font-size: 0.65rem; color: var(--text-dim); line-height: 1.6; }
    #adminPanel {
        display: none; position: fixed; inset: 0; background: var(--bg);
        background-image: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(229, 9, 20, 0.12), transparent 60%);
        z-index: 1000; overflow-y: auto; padding: 20px;
    }
    .admin-container { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
    .admin-header {
        display: flex; justify-content: space-between; align-items: center;
        padding-bottom: 14px; border-bottom: 1px solid var(--border);
    }
    .admin-header h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; font-weight: 800; }
    .admin-header h2 svg { width: 18px; height: 18px; color: var(--primary); }
    .admin-header-actions { display: flex; gap: 8px; }
    #adminLoginView { display: flex; justify-content: center; padding: 20px 0 40px; }
    .login-card {
        width: 100%; max-width: 380px; background: var(--surface);
        border: 1px solid var(--border); border-radius: var(--radius-lg);
        padding: 32px 24px; text-align: center; position: relative; overflow: hidden;
    }
    .login-card::before {
        content: ''; position: absolute; inset: 0;
        background: radial-gradient(circle at 50% 0%, rgba(229,9,20,0.1), transparent 60%);
        pointer-events: none;
    }
    .login-icon {
        width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
        background: var(--primary-soft); border: 1px solid rgba(229, 9, 20, 0.3);
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.2); position: relative;
    }
    .login-icon svg { width: 28px; height: 28px; color: var(--primary); }
    .login-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; position: relative; }
    .login-card > p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; position: relative; }
    .login-input-wrap { position: relative; margin-bottom: 12px; }
    .login-input-wrap .input { padding-right: 46px; text-align: left; }
    .login-toggle-eye {
        position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
        width: 34px; height: 34px; background: transparent; border: none;
        color: var(--text-muted); cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        border-radius: 6px; transition: 0.2s;
    }
    .login-toggle-eye:hover { color: var(--text); }
    .login-toggle-eye svg { width: 16px; height: 16px; }
    .login-hint {
        margin-top: 18px; font-size: 0.65rem; color: var(--text-dim);
        line-height: 1.5; position: relative;
    }
    .login-hint code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 0.62rem; color: var(--text-muted); font-family: ui-monospace, monospace; }
    .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 12px 10px; text-align: center;
    }
    .stat-card span { font-size: 0.62rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
    .stat-card strong { display: block; font-size: 1.3rem; font-weight: 900; margin-top: 4px; color: var(--text); }
    .stat-card:nth-child(2) strong { color: var(--success); }
    .stat-card:nth-child(3) strong { color: var(--text-muted); }
    .admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); overflow-x: auto; }
    .admin-tab {
        display: flex; align-items: center; gap: 6px; background: transparent; border: none;
        color: var(--text-muted); font-weight: 700; cursor: pointer;
        padding: 10px 12px; font-family: inherit; font-size: 0.82rem;
        border-bottom: 2px solid transparent; margin-bottom: -1px;
        transition: 0.2s; white-space: nowrap; position: relative;
    }
    .admin-tab svg { width: 14px; height: 14px; }
    .admin-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
    .admin-tab .tab-badge {
        min-width: 16px; height: 16px; padding: 0 4px;
        background: var(--warning); color: #1A1408;
        font-size: 0.55rem; font-weight: 900;
        border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;
        margin-left: 2px;
    }
    .admin-card {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius); padding: 16px;
    }
    .admin-card h3 { font-size: 0.88rem; margin-bottom: 12px; font-weight: 800; }
    .admin-card label { font-size: 0.72rem; color: var(--text-muted); display: block; margin-bottom: 6px; font-weight: 600; }
    .admin-card .input { text-align: left; }
    .form-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; margin-bottom: 12px; }
    .form-row .input { padding: 12px; }
    .form-group { position: relative; margin-bottom: 12px; text-align: left; }
    .form-group label { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
    .form-group .input { text-align: left; }
    .voucher-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-bottom: 10px; align-items: center; }
    .voucher-toolbar .input { padding: 10px 12px; font-size: 0.8rem; text-align: left; }
    .voucher-toolbar select.input { min-width: 100px; padding-right: 8px; }
    .voucher-toolbar .icon-btn { width: 40px; height: 40px; }
    .voucher-item {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 12px 14px;
        display: flex; justify-content: space-between; align-items: center;
        gap: 10px; margin-bottom: 8px;
    }
    .voucher-info { flex: 1; min-width: 0; }
    .voucher-code-text { font-weight: 800; font-size: 0.85rem; letter-spacing: 0.5px; word-break: break-all; margin-bottom: 4px; }
    .voucher-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
    .voucher-plan { font-size: 0.62rem; color: var(--text-muted); font-weight: 600; }
    .chip { font-size: 0.58rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
    .chip-active { background: var(--success-soft); color: var(--success); }
    .chip-used { background: var(--surface-2); color: var(--text-dim); }
    .chip-pending { background: var(--warning-soft); color: var(--warning); }
    .voucher-actions { display: flex; gap: 6px; flex-shrink: 0; }
    .voucher-actions .btn { width: auto; padding: 7px 10px; font-size: 0.68rem; border-radius: 7px; }
    .voucher-actions .btn svg { width: 12px; height: 12px; }
    .empty-state { text-align: center; padding: 30px 20px; color: var(--text-muted); font-size: 0.8rem; line-height: 1.5; }
    .empty-state svg { width: 36px; height: 36px; color: var(--text-dim); margin-bottom: 8px; }
    .stock-main {
        text-align: center; padding: 22px;
        background: linear-gradient(135deg, rgba(229,9,20,.12), rgba(245,197,24,.08));
        border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px;
    }
    .stock-main-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
    .stock-main-value { font-size: 2rem; font-weight: 900; margin-top: 6px; color: var(--gold); letter-spacing: -1px; }
    .stock-detail {
        background: var(--bg); border: 1px solid var(--border);
        border-radius: 10px; padding: 12px;
    }
    .stock-row {
        display: flex; justify-content: space-between; padding: 8px 0;
        border-bottom: 1px solid var(--border-soft); font-size: 0.78rem;
    }
    .stock-row:last-child { border-bottom: none; }
    .stock-row span { color: var(--text-muted); }
    .stock-row strong { word-break: break-all; text-align: right; max-width: 55%; }

    /* ============================================ */
    /* ADMIN RESELLER                               */
    /* ============================================ */
    .reseller-subtabs {
        display: flex; gap: 6px; margin-bottom: 14px;
        border-bottom: 1px solid var(--border); overflow-x: auto;
    }
    .reseller-subtab {
        background: transparent; border: none;
        color: var(--text-muted); font-weight: 700; cursor: pointer;
        padding: 8px 12px; font-family: inherit; font-size: 0.78rem;
        border-bottom: 2px solid transparent; margin-bottom: -1px;
        transition: 0.2s; white-space: nowrap;
        display: flex; align-items: center; gap: 6px;
    }
    .reseller-subtab svg { width: 13px; height: 13px; }
    .reseller-subtab.active { color: var(--primary); border-bottom-color: var(--primary); }

    .reseller-item {
        background: var(--surface); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 12px 14px;
        margin-bottom: 8px;
        display: flex; justify-content: space-between; align-items: center;
        gap: 10px; cursor: pointer; transition: 0.2s;
    }
    .reseller-item:hover { border-color: var(--surface-3); background: var(--surface-2); }
    .reseller-item-info { flex: 1; min-width: 0; }
    .reseller-item-name {
        font-weight: 800; font-size: 0.88rem; margin-bottom: 4px;
        display: flex; align-items: center; gap: 6px;
    }
    .reseller-status-dot {
        width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
    }
    .reseller-status-dot.active { background: var(--success); box-shadow: 0 0 6px var(--success); }
    .reseller-status-dot.pending { background: var(--warning); box-shadow: 0 0 6px var(--warning); }
    .reseller-status-dot.suspended { background: var(--danger); box-shadow: 0 0 6px var(--danger); }
    .reseller-item-meta {
        font-size: 0.65rem; color: var(--text-muted); line-height: 1.5;
        display: flex; gap: 8px; flex-wrap: wrap;
    }
    .reseller-item-saldo {
        font-weight: 900; font-size: 0.9rem; color: var(--gold);
        text-align: right; white-space: nowrap;
    }
    .reseller-item-saldo small {
        display: block; font-size: 0.6rem; font-weight: 600;
        color: var(--text-muted); margin-bottom: 2px;
    }
    .reseller-actions {
        display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
    }
    .reseller-actions .btn {
        width: auto; padding: 6px 10px; font-size: 0.68rem; border-radius: 6px;
    }
    .reseller-actions .btn svg { width: 12px; height: 12px; }

    .refund-item {
        background: var(--surface); border: 1px solid rgba(245, 158, 11, 0.3);
        border-radius: var(--radius-sm); padding: 14px;
        margin-bottom: 10px;
    }
    .refund-item-head {
        display: flex; justify-content: space-between; align-items: center;
        margin-bottom: 8px; gap: 8px;
    }
    .refund-item-head strong { font-size: 0.85rem; color: var(--warning); }
    .refund-item-body {
        font-size: 0.72rem; color: var(--text-muted); line-height: 1.6;
        margin-bottom: 10px;
    }
    .refund-item-body code {
        background: var(--bg); padding: 1px 6px; border-radius: 4px;
        font-family: ui-monospace, monospace; font-size: 0.7rem;
        color: var(--gold);
    }
    .refund-item-actions { display: flex; gap: 8px; }
    .refund-item-actions .btn { width: auto; flex: 1; padding: 9px 12px; font-size: 0.75rem; }

    .detail-section {
        background: var(--bg); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 14px;
        margin-bottom: 12px;
    }
    .detail-section h4 {
        font-size: 0.78rem; font-weight: 800; margin-bottom: 10px;
        color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px;
    }
    .detail-row {
        display: flex; justify-content: space-between;
        padding: 6px 0; font-size: 0.78rem;
        border-bottom: 1px solid var(--border-soft);
    }
    .detail-row:last-child { border-bottom: none; }
    .detail-row span { color: var(--text-muted); }
    .detail-row strong { color: var(--text); text-align: right; word-break: break-all; }

    .detail-header {
        display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
    }
    .detail-header .avatar {
        width: 48px; height: 48px; border-radius: 12px;
        background: linear-gradient(135deg, var(--primary), #A80710);
        display: flex; align-items: center; justify-content: center;
        font-weight: 900; font-size: 1.2rem; color: white;
        box-shadow: 0 4px 12px rgba(229, 9, 20, 0.3);
    }
    .detail-header-text { flex: 1; min-width: 0; }
    .detail-header-text h3 { font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
    .detail-header-text p { font-size: 0.7rem; color: var(--text-muted); }

    .voucher-mini-item {
        display: flex; justify-content: space-between; align-items: center;
        padding: 8px 10px; background: var(--surface); border: 1px solid var(--border);
        border-radius: 6px; margin-bottom: 6px; font-size: 0.75rem;
    }
    .voucher-mini-item code {
        font-family: ui-monospace, monospace; font-weight: 800;
        color: var(--gold); font-size: 0.72rem;
    }

    /* RIWAYAT */
    .history-card {
        background: linear-gradient(160deg, var(--surface) 0%, #0E1219 100%);
        border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
    }
    .history-head { text-align: center; margin-bottom: 18px; }
    .history-head h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
    .history-head p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }
    .history-list { display: flex; flex-direction: column; gap: 10px; }
    .history-item {
        background: var(--bg); border: 1px solid var(--border);
        border-radius: var(--radius-sm); padding: 14px;
        display: flex; flex-direction: column; gap: 10px;
    }
    .history-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
    .history-plan {
        font-size: 0.62rem; font-weight: 800; letter-spacing: 0.5px;
        text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
        background: var(--primary-soft); color: var(--primary); flex-shrink: 0;
    }
    .history-plan.standard { background: var(--surface-2); color: var(--text-muted); }
    .history-date { font-size: 0.65rem; color: var(--text-dim); }
    .history-code {
        font-family: ui-monospace, monospace; font-size: 0.78rem; font-weight: 800;
        letter-spacing: 1px; color: var(--gold); word-break: break-all;
    }
    .history-email {
        font-size: 0.75rem; color: var(--text); word-break: break-all;
        background: var(--surface-2); padding: 8px 10px; border-radius: 6px;
        display: flex; align-items: center; justify-content: space-between; gap: 8px;
    }
    .history-email span { flex: 1; min-width: 0; }
    .history-email button {
        background: transparent; border: none; color: var(--text-muted);
        cursor: pointer; padding: 2px; display: flex;
    }
    .history-email button:hover { color: var(--primary); }
    .history-email button svg { width: 13px; height: 13px; }
    .history-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .history-actions .btn { padding: 9px 10px; font-size: 0.72rem; border-radius: 7px; }
    .history-actions .btn svg { width: 12px; height: 12px; }
    .history-item-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
    .history-link { font-size: 0.65rem; color: var(--text-dim); line-height: 1.4; flex: 1; }
    .history-delete {
        background: transparent; border: none; color: var(--text-dim);
        cursor: pointer; font-size: 0.68rem; font-weight: 600; padding: 2px 4px;
        flex-shrink: 0;
    }
    .history-delete:hover { color: var(--danger); }

    #redeemModal .modal-box { max-width: 420px; }
    #redeemModal .nominal-value strong { text-align: left; }

    #toastContainer {
        position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
        z-index: 2000; display: flex; flex-direction: column; gap: 8px;
        pointer-events: none; width: calc(100% - 32px); max-width: 400px;
    }
    .toast {
        background: var(--surface-2); border: 1px solid var(--border);
        border-left: 3px solid var(--primary); color: var(--text);
        padding: 12px 14px; border-radius: var(--radius-sm);
        font-size: 0.8rem; font-weight: 600; box-shadow: var(--shadow);
        animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex; align-items: center; gap: 8px;
    }
    .toast.success { border-left-color: var(--success); }
    .toast.error { border-left-color: var(--danger); }
    .toast svg { width: 16px; height: 16px; flex-shrink: 0; }
    .toast.success svg { color: var(--success); }
    .toast.error svg { color: var(--danger); }
    .toast.info svg { color: var(--primary); }
    @keyframes toastIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }
    .toast.hiding { animation: toastOut 0.25s forwards; }
    @keyframes toastOut { to { opacity: 0; transform: translateY(-15px); } }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .hidden { display: none !important; }

    .btn:focus-visible,
    .tab-btn:focus-visible,
    .icon-btn:focus-visible,
    .admin-tab:focus-visible,
    .reseller-subtab:focus-visible,
    .input:focus-visible,
    .modal-close:focus-visible,
    .copy-small:focus-visible,
    .paste-btn:focus-visible,
    .history-delete:focus-visible,
    .login-toggle-eye:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
    }

    @media (min-width: 768px) {
        body { padding-bottom: 60px; }
        .site-header { max-width: 1100px; padding: 18px 32px; }
        .brand-icon { width: 40px; height: 40px; border-radius: 12px; }
        .brand-icon svg { width: 20px; height: 20px; }
        .brand-logo { width: 46px; height: 46px; border-radius: 12px; padding: 3px; }
        .brand-name { font-size: 1.15rem; }
        .brand-badge { font-size: 0.6rem; letter-spacing: 2.5px; }
        .icon-btn { width: 42px; height: 42px; }
        .icon-btn svg { width: 20px; height: 20px; }
        .container { max-width: 1100px; padding: 48px 32px 0; gap: 28px; }
        .hero { padding: 16px 0 12px; }
        .hero h1 { font-size: 2.6rem; letter-spacing: -1.5px; margin-bottom: 14px; }
        .hero p { font-size: 0.95rem; max-width: 560px; margin-bottom: 22px; }
        .trust-row { gap: 10px; }
        .trust-chip { font-size: 0.76rem; padding: 8px 14px; gap: 6px; }
        .trust-chip svg { width: 14px; height: 14px; }
        .tabs-nav { max-width: 520px; width: 100%; margin: 0 auto; padding: 6px; }
        .tab-btn { font-size: 0.85rem; padding: 13px 10px; }
        .tab-btn svg { width: 15px; height: 15px; }
        .products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .product-card { padding: 26px; }
        .product-head { gap: 14px; margin-bottom: 18px; padding-right: 80px; }
        .product-head h3 { font-size: 1.15rem; }
        .product-sub { font-size: 0.78rem; }
        .product-icon { width: 50px; height: 50px; border-radius: 14px; }
        .product-icon svg { width: 24px; height: 24px; }
        .product-badge { top: 18px; right: 18px; font-size: 0.65rem; padding: 5px 11px; }
        .feature-list { gap: 10px; margin-bottom: 22px; }
        .feature-list li { font-size: 0.85rem; }
        .feature-list li svg { width: 15px; height: 15px; }
        .price { font-size: 2rem; }
        .price.loading { width: 170px; height: 34px; }
        .price-unit { font-size: 0.78rem; }
        .btn { padding: 15px 20px; font-size: 0.92rem; }
        .btn svg { width: 17px; height: 17px; }
        .trust-strip { padding: 20px 16px; gap: 16px; }
        .trust-item svg { width: 22px; height: 22px; }
        .trust-item strong { font-size: 0.82rem; }
        .trust-item small { font-size: 0.72rem; }
        #panelTukar .redeem-card { max-width: 580px; margin: 0 auto; padding: 36px 32px; }
        .redeem-head { margin-bottom: 26px; }
        .redeem-icon { width: 66px; height: 66px; border-radius: 18px; margin-bottom: 16px; }
        .redeem-icon svg { width: 30px; height: 30px; }
        .redeem-head h2 { font-size: 1.3rem; }
        .redeem-head p { font-size: 0.82rem; max-width: 320px; }
        .input-group .input { padding: 16px; font-size: 1rem; }
        .input-code { font-size: 1.2rem; }
        .modal-overlay { padding: 24px; }
        .modal-box { max-width: 460px; padding: 32px 28px; }
        .modal-title { font-size: 1.2rem; }
        .modal-steps { margin-bottom: 22px; gap: 10px; }
        .step { font-size: 0.72rem; }
        .step span { width: 22px; height: 22px; font-size: 0.65rem; }
        .step-line { max-width: 30px; }
        .timer-box { font-size: 1.55rem; padding: 12px; }
        .nominal-box { padding: 18px; }
        .nominal-value strong { font-size: 1.75rem; }
        .qris-box { padding: 20px; }
        .qris-frame { min-height: 240px; padding: 18px; }
        .voucher-code { font-size: 1.5rem; padding: 14px; }
        .site-footer { max-width: 1100px; padding: 32px 32px 0; margin-top: 32px; }
        .site-footer p { font-size: 0.72rem; }
        #adminPanel { padding: 32px; }
        .admin-container { max-width: 720px; gap: 20px; }
        .admin-header h2 { font-size: 1.2rem; }
        .admin-header h2 svg { width: 20px; height: 20px; }
        .stat-card { padding: 16px 12px; }
        .stat-card span { font-size: 0.68rem; }
        .stat-card strong { font-size: 1.55rem; }
        .admin-card { padding: 20px; }
        .admin-card h3 { font-size: 0.95rem; }
        .voucher-item { padding: 14px 16px; }
        .voucher-code-text { font-size: 0.92rem; }
        .login-card { max-width: 420px; padding: 40px 32px; }
        .stock-main-value { font-size: 2.4rem; }
        .history-card { max-width: 640px; margin: 0 auto; padding: 28px; }
        .history-head h2 { font-size: 1.3rem; }
        .history-head p { font-size: 0.82rem; }
        .history-item { padding: 18px; gap: 12px; }
        .history-code { font-size: 0.85rem; }
        .history-email { font-size: 0.8rem; padding: 10px 12px; }
        .history-actions .btn { padding: 11px 14px; font-size: 0.78rem; }
    }
    @media (min-width: 1280px) {
        .hero h1 { font-size: 3rem; }
        .container { gap: 32px; }
        .products-grid { gap: 24px; }
        .product-card { padding: 32px; }
        .price { font-size: 2.2rem; }
        .admin-container { max-width: 820px; }
    }