/* ═══════ Reset & Variables ═══════ */
:root {
    --bg: #09090b;
    --bg-secondary: #0f0f12;
    --bg-card: #18181b;
    --bg-card-hover: #1e1e22;
    --border: #27272a;
    --border-light: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #a855f7;
    --accent-dim: rgba(168, 85, 247, 0.15);
    --accent-glow: rgba(168, 85, 247, 0.25);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.15);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --orange: #f97316;
    --orange-dim: rgba(249, 115, 22, 0.15);
    --yellow: #eab308;
    --yellow-dim: rgba(234, 179, 8, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --cyan: #06b6d4;
    --cyan-dim: rgba(6, 182, 212, 0.15);
    --indigo: #6366f1;
    --indigo-dim: rgba(99, 102, 241, 0.15);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .4);
    --transition: .2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

#app {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* ═══════ Pages ═══════ */
.page { display: none; min-height: 100vh; padding-bottom: 80px; }
.page.active { display: block; }

/* ═══════ Loader ═══════ */
.loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9, 9, 11, .7);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.loader.active { display: flex; }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════ Top Header ═══════ */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
}
.top-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.shop-logo {
    width: 36px; height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    flex-shrink: 0;
}
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 45%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
}
.top-header-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}
.top-header-btn:active { background: var(--bg-card-hover); }
.top-header-btn svg { width: 18px; height: 18px; }

/* ═══════ Banner ═══════ */
.banner {
    margin: 0 16px 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/7;
    background: var(--bg-card);
}
.banner img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}
.banner-text h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}
.banner-text p {
    font-size: 12px;
    color: rgba(255,255,255,.7);
}

/* ═══════ Section Header ═══════ */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.section-header svg {
    width: 18px; height: 18px;
    color: var(--accent);
}

/* ═══════ Search Box ═══════ */
.search-box {
    margin: 0 16px 16px;
    position: relative;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}
.search-box input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px 12px 42px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus { border-color: var(--accent); }

/* ═══════ Categories Grid ═══════ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 20px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 14px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.category-card:active { background: var(--bg-card-hover); transform: scale(.97); }
.category-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 22px;
}
.category-icon img {
    width: 32px; height: 32px;
    object-fit: contain;
    border-radius: 6px;
}
.category-icon.blue { background: var(--blue-dim); color: var(--blue); }
.category-icon.green { background: var(--green-dim); color: var(--green); }
.category-icon.purple { background: var(--accent-dim); color: var(--accent); }
.category-icon.gray { background: rgba(161, 161, 170, .15); color: var(--text-secondary); }
.category-icon.cyan { background: var(--cyan-dim); color: var(--cyan); }
.category-icon.red { background: var(--red-dim); color: var(--red); }
.category-icon.yellow { background: var(--yellow-dim); color: var(--yellow); }
.category-icon.indigo { background: var(--indigo-dim); color: var(--indigo); }
.category-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text);
}
.category-count {
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════ Product Card (Store style) ═══════ */
.products-list {
    padding: 0 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.product-card-store {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: var(--transition);
}
.product-card-store:active { background: var(--bg-card-hover); }
.product-card-store-img {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.product-card-placeholder {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.product-card-placeholder img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.product-card-store-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.product-card-store-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-store-desc {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.product-card-store-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}
.product-card-store-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
}
.btn-buy-small {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-buy-small:active { opacity: .85; transform: scale(.95); }

/* ═══════ Positions List ═══════ */
.positions-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.subcategory-header {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 0 4px;
    margin-top: 8px;
}

/* ═══════ Product Detail ═══════ */
.product-details { padding: 0 16px; }
.product-card-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.product-hero-image-wrap {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 14px;
}
.product-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.product-price-big {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.product-stock-badge {
    background: var(--green-dim);
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.product-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}
.product-discount-hint {
    margin: 2px 0 12px;
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
}
.product-actions {
    margin-top: auto;
}
.btn-buy {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-buy:active { opacity: .85; transform: scale(.98); }

/* ═══════ Header (Back) ═══════ */
.header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 50;
}
.header h1, .header h2 {
    font-size: 18px;
    font-weight: 700;
}
.back-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.back-btn:active { background: var(--bg-card); }
.back-btn svg { width: 22px; height: 22px; }

/* ═══════ Info Links ═══════ */
.info-links {
    display: flex;
    gap: 10px;
    padding: 8px 16px 20px;
}
.info-link-btn {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}
.info-link-btn:active { background: var(--bg-card-hover); }
.info-link-icon { font-size: 20px; }

/* ═══════ Footer Bar ═══════ */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 6px 0 env(safe-area-inset-bottom, 8px);
    z-index: 100;
}
.footer-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.footer-btn svg { width: 22px; height: 22px; }
.footer-btn.active {
    color: var(--accent);
}
.footer-btn.active::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ═══════ Profile ═══════ */
.profile-content { padding: 0 16px 20px; }

/* Profile Hero */
.profile-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
}
.profile-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.profile-avatar-ring {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #7c3aed);
    padding: 2px;
    flex-shrink: 0;
}
.profile-hero-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    padding: 2px;
}
.profile-hero-avatar-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.profile-hero-avatar-inner svg {
    width: 28px; height: 28px;
    color: var(--text-muted);
}

.profile-avatar-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.profile-hero-name {
    font-size: 18px;
    font-weight: 700;
}
.profile-hero-badges {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.badge-level {
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Balance Card */
.profile-balance-card {
    background: linear-gradient(135deg, #202025 0%, #18181b 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.profile-balance-glow {
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.profile-balance-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.profile-balance-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}
.btn-topup {
    background: #fff;
    color: #09090b;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.btn-topup:active { opacity: .85; transform: scale(.95); }
.btn-topup svg { width: 18px; height: 18px; }

/* Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
}
.profile-stat-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.profile-stat-icon svg { width: 18px; height: 18px; }
.profile-stat-icon.blue { background: var(--blue-dim); color: var(--blue); }
.profile-stat-icon.green { background: var(--green-dim); color: var(--green); }
.profile-stat-icon.purple { background: var(--accent-dim); color: var(--accent); }
.profile-stat-icon.yellow { background: var(--yellow-dim); color: var(--yellow); }
.profile-stat-value {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}
.profile-stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

/* Referral Card */
.referral-card {
    background: linear-gradient(135deg, #1a1025 0%, var(--bg-card) 100%);
    border: 1px solid rgba(168, 85, 247, .25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
    position: relative;
    overflow: hidden;
}
.referral-card-glow {
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(168, 85, 247, .2) 0%, transparent 70%);
    border-radius: 50%;
}
.referral-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.referral-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}
.referral-card-header p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.referral-header-icon {
    background: var(--accent-dim);
    border-radius: 12px;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}
.referral-header-icon svg { width: 22px; height: 22px; }
.referral-stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}
.referral-stat {
    flex: 1;
    background: rgba(255, 255, 255, .05);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.referral-stat-value {
    font-size: 18px;
    font-weight: 700;
    display: block;
}
.referral-stat-value.green { color: var(--green); }
.referral-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}
.referral-link-box {
    margin-top: 12px;
}
.referral-link-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}
.referral-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.referral-link-code {
    flex: 1;
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.referral-copy-btn {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    flex-shrink: 0;
    transition: var(--transition);
}
.referral-copy-btn:active { opacity: .8; }
.referral-copy-btn svg { width: 16px; height: 16px; }

/* Profile Actions Grid */
.profile-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.profile-action-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.profile-action-btn:active { background: var(--bg-card-hover); transform: scale(.95); }
.profile-action-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-action-icon svg { width: 20px; height: 20px; }
.profile-action-icon.purple { background: var(--accent-dim); color: var(--accent); }
.profile-action-icon.orange { background: var(--orange-dim); color: var(--orange); }
.profile-action-icon.green { background: var(--green-dim); color: var(--green); }

/* Profile Menu */
.profile-menu {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}
.profile-menu-item:active { background: var(--bg-card-hover); }
.profile-menu-item svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.profile-menu-item span { flex: 1; text-align: left; }
.profile-menu-item .chevron { color: var(--text-muted); }
.profile-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 0 16px;
}

/* ═══════ Refill Page ═══════ */
.refill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
}
.refill-card-emoji {
    font-size: 48px;
    margin-bottom: 10px;
}
.refill-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}
.refill-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.refill-amounts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.refill-amount-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}
.refill-amount-btn:active, .refill-amount-btn.selected {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}
.refill-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    outline: none;
    text-align: center;
    margin-bottom: 20px;
    transition: var(--transition);
}
.refill-input::placeholder { color: var(--text-muted); font-weight: 400; }
.refill-input:focus { border-color: var(--accent); }
.refill-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 10px;
}
.refill-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.refill-method-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}
.refill-method-btn:active { background: var(--bg-card-hover); border-color: var(--accent); }
.refill-method-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.refill-method-icon.yoomoney { background: var(--blue-dim); }
.refill-method-icon.crypto { background: var(--orange-dim); }
.refill-method-info {
    flex: 1;
    text-align: left;
}
.refill-method-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.refill-method-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}
.chevron {
    width: 18px; height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Crypto Assets */
.crypto-assets-panel {
    margin-top: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    animation: fadeSlide .2s ease;
}
.crypto-assets-panel h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-align: left;
}
.crypto-assets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.crypto-asset-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}
.crypto-asset-btn:active { background: var(--accent-dim); border-color: var(--accent); }
.crypto-emoji { font-size: 20px; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Payment Pending */
.payment-pending-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    animation: fadeSlide .3s ease;
}
.payment-pending-spinner {
    width: 50px; height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}
.payment-pending-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.payment-pending-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.payment-pending-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    display: block;
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.btn-primary:active { opacity: .85; }
.btn-check-payment {
    display: block;
    width: 100%;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 8px;
}
.btn-check-payment:active { opacity: .85; }
.btn-cancel-payment {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.btn-cancel-payment:active { background: var(--bg-card-hover); }

/* Payment Result */
.payment-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius);
    animation: fadeSlide .3s ease;
}
.payment-success {
    text-align: center;
    color: var(--green);
}
.payment-success h3 {
    margin-bottom: 4px;
    font-size: 18px;
}
.payment-success p {
    color: var(--text-secondary);
    font-size: 14px;
}
.payment-fail {
    text-align: center;
    color: var(--orange);
}
.payment-fail p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ═══════ Empty State ═══════ */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}
.empty-state-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.empty-state-icon svg { width: 28px; height: 28px; color: var(--text-muted); }
.empty-state h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.empty-state p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ═══════ Purchases ═══════ */
.purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
}
.purchase-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.purchase-name {
    font-size: 14px;
    font-weight: 600;
}
.purchase-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
}
.purchase-card-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* ═══════ Coupon ═══════ */
.coupon-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
}
.coupon-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.coupon-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.coupon-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text);
    text-align: center;
    outline: none;
    margin-bottom: 12px;
    transition: var(--transition);
}
.coupon-input::placeholder { color: var(--text-muted); }
.coupon-input:focus { border-color: var(--accent); }
.btn-coupon-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}
.btn-coupon-submit:active { opacity: .85; }
.coupon-result {
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    animation: fadeSlide .3s ease;
}

/* ═══════ FAQ ═══════ */
.page-hero {
    text-align: center;
    padding: 24px 0 20px;
}
.page-hero-emoji { font-size: 48px; margin-bottom: 10px; }
.page-hero h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.page-hero p { font-size: 13px; color: var(--text-secondary); }
.faq-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

/* Accordion */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 600;
}
.accordion-arrow {
    width: 18px; height: 18px;
    color: var(--text-muted);
    transition: transform .2s ease;
    flex-shrink: 0;
}
.accordion-item.open .accordion-arrow { transform: rotate(180deg); }
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.accordion-item.open .accordion-body {
    max-height: 300px;
    padding: 0 16px 14px;
}
.accordion-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-notice {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}
.faq-notice p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.faq-notice p + p { margin-top: 6px; }

/* ═══════ Guarantee ═══════ */
.guarantee-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}
.guarantee-card.highlight {
    border-color: rgba(168, 85, 247, .3);
    background: linear-gradient(135deg, rgba(168, 85, 247, .08) 0%, var(--bg-card) 100%);
}
.guarantee-card-icon {
    font-size: 24px;
    width: 44px; height: 44px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.guarantee-card-content h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.guarantee-card-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════ Content Scroll ═══════ */
.content-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ═══════ Scrollbar ═══════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ═══════ Tap highlight ═══════ */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}
input, textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
