/* Xia-omi / DRIPLY Premium Fintech Theme */
:root {
    --brown-primary: #8B4513;
    --brown-dark: #6B3410;
    --brown-light: #B86B2C;
    --gold: #DEA407;
    --success: #22C55E;
    --bg: #F8F9FC;
    --white: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --radius-xl: 28px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 8px 32px rgba(107, 52, 16, 0.08);
    --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.06);
    --shadow-nav: 0 -4px 24px rgba(107, 52, 16, 0.12);
    --gradient-header: linear-gradient(165deg, var(--brown-light) 0%, var(--brown-primary) 45%, var(--brown-dark) 100%);
    --gradient-btn: linear-gradient(135deg, var(--brown-light) 0%, var(--brown-primary) 55%, var(--brown-dark) 100%);
    --glass: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.28);
    --nav-height: 80px;
    --page-max: 480px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.driply-body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.driply-page {
    max-width: var(--page-max);
    margin: 0 auto;
    min-height: 100vh;
}

/* ── Header ── */
.driply-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 14px 18px 72px;
    position: relative;
}

.driply-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.driply-lang-btn,
.driply-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease), background 0.2s;
    color: #fff;
    flex-shrink: 0;
}

.driply-lang-btn:hover,
.driply-icon-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.driply-lang-btn img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.driply-icon-btn svg { width: 20px; height: 20px; }

/* ── Balance card (glass) ── */
.driply-balance-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    text-align: center;
    color: #fff;
    animation: driplyFadeUp 0.5s var(--ease);
}

.driply-balance-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.92;
    margin-bottom: 8px;
}

.driply-balance-label svg { width: 16px; height: 16px; opacity: 0.9; }

.driply-balance-amount {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.driply-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.95;
}

.driply-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: driplyPulse 2s infinite;
}

/* ── Quick actions ── */
.driply-content {
    padding: 0 16px 24px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.driply-quick-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 20px 12px 16px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    animation: driplyFadeUp 0.55s var(--ease) 0.05s both;
}

.driply-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s var(--ease);
    text-decoration: none;
    color: var(--text-primary);
}

.driply-quick-item:hover { transform: translateY(-3px); }
.driply-quick-item:active { transform: scale(0.96); }

.driply-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s var(--ease);
}

.driply-quick-icon svg { width: 24px; height: 24px; }

.driply-quick-icon--recharge { background: #DCFCE7; color: #16A34A; }
.driply-quick-icon--withdraw { background: #FCE7F3; color: #DB2777; }
.driply-quick-icon--checkin { background: #FEF9C3; color: #CA8A04; }
.driply-quick-icon--share { background: #EDE9FE; color: #7C3AED; }

.driply-quick-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* ── Banner slider ── */
.driply-banner-wrap {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    animation: driplyFadeUp 0.6s var(--ease) 0.1s both;
}

.driply-banner-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.driply-banner-slider::-webkit-scrollbar { display: none; }

.driply-banner-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    min-height: 140px;
    background: var(--gradient-header);
}

.driply-banner-slide img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.driply-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(107, 52, 16, 0.75) 0%, transparent 60%);
    display: flex;
    align-items: center;
    padding: 20px;
    pointer-events: none;
}

.driply-banner-text {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.25;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.driply-banner-text span { color: var(--gold); }

.driply-banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.driply-banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D1D5DB;
    transition: background 0.3s, width 0.3s;
}

.driply-banner-dot.active {
    width: 18px;
    border-radius: 3px;
    background: var(--brown-primary);
}

/* ── Section headers ── */
.driply-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    animation: driplyFadeUp 0.65s var(--ease) 0.15s both;
}

.driply-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.driply-section-title .live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: driplyPulse 2s infinite;
}

.driply-badge-realtime {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    background: #DCFCE7;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ── Live withdrawal feed ── */
.driply-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.driply-feed-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    animation: driplyFadeUp 0.5s var(--ease) both;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.driply-feed-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.driply-feed-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.125rem;
}

.driply-feed-avatar--1 { background: #FCE7F3; }
.driply-feed-avatar--2 { background: #FFEDD5; }
.driply-feed-avatar--3 { background: #EDE9FE; }
.driply-feed-avatar--4 { background: #DBEAFE; }

.driply-feed-body { flex: 1; min-width: 0; }

.driply-feed-user {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.driply-feed-msg {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.driply-feed-msg .check { color: var(--success); font-weight: 700; }

.driply-feed-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── Cards ── */
.driply-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px 16px;
    margin-bottom: 16px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.driply-card:hover {
    box-shadow: var(--shadow-soft);
}

.driply-card--interactive:hover { transform: translateY(-2px); }

/* ── Plan cards ── */
.driply-plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px;
    margin-bottom: 16px;
    border: 1px solid rgba(139, 69, 19, 0.08);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
    animation: driplyFadeUp 0.5s var(--ease) both;
}

.driply-plan-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.driply-plan-card.soldout { opacity: 0.6; pointer-events: none; }

.driply-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.driply-plan-name {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brown-primary);
    margin: 0;
}

.driply-plan-badge {
    background: linear-gradient(135deg, var(--gold), #F59E0B);
    color: var(--brown-dark);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.driply-plan-img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    background: #F9FAFB;
}

.driply-plan-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.driply-plan-stat {
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    padding: 12px;
    border-left: 3px solid var(--brown-primary);
}

.driply-plan-stat-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.driply-plan-stat-value {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
}

.driply-progress {
    height: 6px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 16px;
}

.driply-progress-bar {
    height: 100%;
    background: var(--gradient-btn);
    border-radius: 999px;
    transition: width 0.6s var(--ease);
}

/* ── Buttons ── */
.driply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.driply-btn--primary {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
}

.driply-btn--primary:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.38);
    color: #fff;
}

.driply-btn--secondary {
    background: var(--gold);
    color: var(--brown-dark);
    box-shadow: 0 4px 14px rgba(222, 164, 7, 0.35);
}

.driply-btn--secondary:hover { transform: scale(1.02); color: var(--brown-dark); }

.driply-btn:disabled,
.driply-btn.disabled {
    background: #9CA3AF;
    box-shadow: none;
    pointer-events: none;
    cursor: not-allowed;
}

/* ── Page hero (inner pages) ── */
.driply-page-hero {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 20px 40px;
    color: #fff;
}

.driply-page-hero h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.driply-page-hero p {
    margin: 6px 0 0;
    font-size: 0.875rem;
    opacity: 0.9;
}

.driply-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    margin-bottom: 14px;
    transition: transform 0.2s;
}

.driply-back-btn:hover { transform: scale(1.05); }
.driply-back-btn svg { width: 20px; height: 20px; }

/* ── Tabs ── */
.driply-tabs {
    display: flex;
    gap: 8px;
    padding: 0 16px;
    margin: -20px 0 16px;
    position: relative;
    z-index: 3;
}

.driply-tab {
    flex: 1;
    padding: 11px 8px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s var(--ease);
}

.driply-tab.active,
.driply-tab.cur {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.25);
}

/* ── Profile ── */
.driply-profile-card {
    margin: -28px 16px 16px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.driply-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(139, 69, 19, 0.15);
    flex-shrink: 0;
}

.driply-avatar img { width: 100%; height: 100%; object-fit: cover; }

.driply-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--success);
    background: #DCFCE7;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 4px;
}

.driply-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.driply-stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--brown-primary);
}

.driply-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brown-primary);
    margin-bottom: 4px;
    word-break: break-word;
}

.driply-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.driply-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.driply-menu-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.driply-menu-item:hover { transform: translateY(-2px); }

.driply-menu-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.driply-menu-icon svg { width: 20px; height: 20px; }

.driply-menu-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.driply-list-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 16px;
}

.driply-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background 0.15s;
}

.driply-list-item:hover { background: #F9FAFB; }
.driply-list-item + .driply-list-item { border-top: 1px solid #F3F4F6; }
.driply-list-item svg { width: 18px; height: 18px; color: #9CA3AF; }

.driply-sign-out {
    display: block;
    text-align: center;
    padding: 14px;
    font-weight: 700;
    color: #DC2626;
    font-size: 0.875rem;
}

/* ── Team ── */
.driply-team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: -32px 16px 16px;
    position: relative;
    z-index: 2;
}

.driply-team-stat {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.driply-team-stat .val {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brown-primary);
}

.driply-team-stat .lbl {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.driply-ref-code {
    background: var(--gradient-btn);
    border-radius: var(--radius-md);
    padding: 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.driply-ref-code .code {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.driply-copy-btn {
    background: #fff;
    color: var(--brown-primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.driply-copy-btn:hover { transform: scale(1.04); }

/* ── Auth ── */
.driply-auth-hero {
    padding: 48px 24px 80px;
    text-align: center;
}

.driply-auth-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.95);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.driply-auth-logo img { width: 100%; height: 100%; object-fit: cover; }

.driply-auth-hero h1 {
    margin: 0 0 6px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.driply-auth-hero p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.driply-auth-form {
    margin: -48px 16px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.driply-field { margin-bottom: 18px; }

.driply-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.driply-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #F9FAFB;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.driply-input:focus {
    outline: none;
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.driply-auth-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.driply-auth-link a {
    color: var(--brown-primary);
    font-weight: 700;
}

/* ── Login page (v2) ── */
.login-v2-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.login-v2-hero {
    background: var(--gradient-header);
    padding: 28px 20px 72px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
}

.login-v2-hero::before,
.login-v2-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.login-v2-hero::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -40px;
}

.login-v2-hero::after {
    width: 120px;
    height: 120px;
    bottom: 20px;
    left: -30px;
}

.login-v2-hero-inner {
    position: relative;
    z-index: 1;
}

.login-v2-logo {
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border: 3px solid rgba(255, 255, 255, 0.35);
}

.login-v2-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-v2-hero h1 {
    margin: 0 0 6px;
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-v2-hero p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.45;
}

.login-v2-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.login-v2-badge {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.login-v2-body {
    flex: 1;
    padding: 0 16px 32px;
    margin-top: -44px;
    position: relative;
    z-index: 2;
}

.login-v2-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 26px 22px 22px;
    animation: driplyFadeUp 0.45s var(--ease);
}

.login-v2-card-head {
    margin-bottom: 22px;
}

.login-v2-card-head h2 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
}

.login-v2-card-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.login-v2-field {
    margin-bottom: 16px;
}

.login-v2-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.login-v2-label-optional {
    font-weight: 500;
    color: var(--text-secondary);
}

.login-v2-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.login-v2-input-group:focus-within {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.login-v2-input-icon {
    width: 18px;
    height: 18px;
    color: var(--brown-primary);
    flex-shrink: 0;
}

.login-v2-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    height: 48px;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
}

.login-v2-input-group input::placeholder {
    color: #9CA3AF;
}

.login-v2-prefix {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--brown-dark);
    padding-right: 10px;
    border-right: 1px solid #E5E7EB;
    flex-shrink: 0;
}

.login-v2-pw-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.login-v2-pw-wrap input {
    width: 100%;
    padding-right: 40px;
}

.login-v2-toggle-pw {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-v2-toggle-pw svg { width: 20px; height: 20px; }

.login-v2-forgot {
    text-align: right;
    margin: -6px 0 16px;
}

.login-v2-forgot a {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brown-primary);
}

.login-v2-submit {
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: var(--gradient-btn);
    box-shadow: 0 6px 20px rgba(107, 52, 16, 0.32);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-v2-submit:hover { transform: scale(1.02); }
.login-v2-submit svg { width: 18px; height: 18px; }

.login-v2-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.login-v2-footer a {
    color: var(--brown-primary);
    font-weight: 800;
}

.login-v2-trust {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: 14px;
    padding: 14px;
}

.login-v2-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--white);
    color: var(--brown-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
}

.login-v2-trust-icon svg { width: 18px; height: 18px; }

.login-v2-trust p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

body.driply-body--auth {
    padding-bottom: 24px;
}

/* ── Bottom nav ── */
.driply-nav {
    position: fixed;
    z-index: 9999;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: var(--page-max);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-nav);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}

.driply-nav-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.driply-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 4px;
    text-decoration: none;
    min-width: 0;
    transition: transform 0.2s;
}

.driply-nav-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    color: var(--text-secondary);
}

.driply-nav-icon svg { width: 22px; height: 22px; }

.driply-nav-item p {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.driply-nav-item.active .driply-nav-icon {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.driply-nav-item.active p {
    color: var(--brown-primary);
    font-weight: 700;
}

/* ── Support FAB ── */
.driply-fab {
    position: fixed;
    right: max(16px, calc(50% - var(--page-max) / 2 + 16px));
    bottom: calc(var(--nav-height) + 12px);
    z-index: 9998;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
    text-decoration: none;
}

.driply-fab:hover { transform: scale(1.08); color: #fff; }
.driply-fab svg { width: 22px; height: 22px; }

/* ── Popup ── */
.driply-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(31, 41, 55, 0.45);
    backdrop-filter: blur(6px);
}

.driply-overlay.active {
    display: flex;
    align-items: flex-start;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
}

.driply-popup {
    width: min(400px, 96vw);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    position: relative;
}

.driply-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #FEF3C7;
    color: var(--brown-primary);
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
}

/* ── Welcome popup (IITA brown theme) ── */
.driply-welcome-popup {
    display: flex;
    flex-direction: column;
    max-height: min(88vh, 720px);
    padding: 0;
    overflow: hidden;
    border: 2px solid #8B6914;
    background: linear-gradient(180deg, #FFF9F0 0%, #FFFDF8 100%);
}

.driply-welcome-popup__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.driply-welcome-popup__footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    background: #FFFDF8;
    border-top: 1px solid #E8D5B0;
}

.driply-welcome-popup__close {
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.92);
    color: #6B4F1D;
    box-shadow: 0 2px 8px rgba(62, 39, 7, 0.15);
}

.driply-welcome-popup__header {
    padding: 24px 20px 18px;
    text-align: center;
    background: linear-gradient(135deg, #6B4F1D 0%, #8B6914 45%, #A67C00 100%);
    color: #FFF9F0;
}

.driply-welcome-popup__rocket {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.driply-welcome-popup__title {
    margin: 0 0 12px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #FFF9F0;
}

.driply-welcome-popup__launch {
    margin: 0;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 249, 240, 0.35);
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFE8B3;
}

.driply-welcome-popup__launch-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}

.driply-welcome-popup__intro {
    margin: 0;
    padding: 16px 18px 0;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: #5C4A2A;
    text-align: center;
}

.driply-welcome-popup__section {
    margin: 14px 16px 0;
    padding: 14px;
    border-radius: 14px;
    background: #FFF;
    border: 1px solid #E8D5B0;
    box-shadow: 0 4px 14px rgba(107, 79, 29, 0.08);
}

.driply-welcome-popup__section--team {
    background: linear-gradient(180deg, #FFF8EB 0%, #FFFCF5 100%);
}

.driply-welcome-popup__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #4A3728;
    border-bottom: 1px dashed #EDD9B8;
}

.driply-welcome-popup__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.driply-welcome-popup__row:first-child {
    padding-top: 0;
}

.driply-welcome-popup__icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.driply-welcome-popup__row strong {
    color: #6B4F1D;
}

.driply-welcome-popup__team-title {
    margin: 0 0 8px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #6B4F1D;
    line-height: 1.45;
}

.driply-welcome-popup__team-desc {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: #5C4A2A;
    line-height: 1.5;
}

.driply-welcome-popup__levels {
    margin: 0;
    padding: 0;
    list-style: none;
}

.driply-welcome-popup__levels li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.8125rem;
    color: #4A3728;
    border-bottom: 1px dashed #EDD9B8;
}

.driply-welcome-popup__levels li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.driply-welcome-popup__levels strong {
    color: #8B6914;
}

.driply-welcome-popup__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #6B4F1D 0%, #8B6914 100%);
    color: #FFF9F0 !important;
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(107, 79, 29, 0.35);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.driply-welcome-popup__cta svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.driply-welcome-popup__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(107, 79, 29, 0.42);
    color: #FFF9F0;
}

/* ── Utilities ── */
.driply-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 24px;
}

.driply-inner { padding: 0 16px 24px; }
.driply-inner--offset { margin-top: -12px; }

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

@keyframes driplyPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (min-width: 768px) {
    .driply-page { box-shadow: 0 0 0 1px #E5E7EB; }
    .driply-nav { border-left: 1px solid #E5E7EB; border-right: 1px solid #E5E7EB; }
}

@media (min-width: 1024px) {
    :root { --page-max: 520px; }
}

/* ── Team extras ── */
.driply-team-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}

.driply-team-summary-grid li {
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    border: 1px solid #F3F4F6;
}

.driply-team-summary-grid h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--brown-primary);
}

.driply-team-summary-grid p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.driply-team-panel { display: none; }
.driply-team-panel.active { display: block; }

tbody.driply-team-panel { display: none; }
tbody.driply-team-panel.active { display: table-row-group; }

.driply-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid #F3F4F6;
}

.driply-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.driply-table thead { background: #FFFBEB; }

.driply-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--brown-primary);
}

.driply-table td {
    padding: 10px 12px;
    border-top: 1px solid #F3F4F6;
    color: var(--text-primary);
}

.driply-toast {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--brown-dark);
    color: #fff;
    padding: 14px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10001;
    box-shadow: var(--shadow-soft);
}

.driply-toast.show { display: block; }

.driply-yield-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F9FAFB;
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 10px;
}

.driply-yield-item:last-child { margin-bottom: 0; }

.driply-link-box {
    background: #FFFBEB;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: 12px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.driply-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.driply-outline-btn {
    border: 2px solid var(--brown-primary);
    background: #fff;
    color: var(--brown-primary);
    border-radius: var(--radius-sm);
    padding: 12px 10px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.driply-outline-btn svg { width: 16px; height: 16px; }

.driply-section-bar {
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: var(--brown-primary);
    flex-shrink: 0;
}

.driply-section-head-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.driply-phone-row {
    display: flex;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: #F9FAFB;
    overflow: hidden;
}

.driply-phone-row:focus-within {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
}

.driply-phone-prefix {
    padding: 14px;
    font-weight: 600;
    color: var(--brown-primary);
    border-right: 1px solid #E5E7EB;
    background: #fff;
}

.driply-phone-row input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    outline: none;
}

.driply-password-wrap { position: relative; }

.driply-password-wrap .driply-input { padding-right: 48px; }

.driply-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    color: #9CA3AF;
    padding: 6px;
}

.driply-toggle-pw svg { width: 20px; height: 20px; }

/* ── Plans page (reference layout) ── */
.plans-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 14px 18px 22px;
    color: #fff;
}

.plans-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.plans-header-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.plans-header-icon svg { width: 22px; height: 22px; }

.plans-header-title {
    flex: 1;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plans-header-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease), background 0.2s;
}

.plans-header-action:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.plans-header-action svg { width: 20px; height: 20px; }

.plans-header-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    text-align: center;
    line-height: 1.4;
}

.plans-header-hint svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.9;
}

.plans-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.plans-tabs::-webkit-scrollbar { display: none; }

.plans-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: var(--white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all 0.2s var(--ease);
}

.plans-tab.active {
    background: var(--gradient-btn);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.28);
}

.plans-list {
    padding: 16px 16px 24px;
}

.plans-card {
    background: var(--white);
    border-radius: 26px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    padding: 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.45s var(--ease) both;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.plans-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(107, 52, 16, 0.1);
}

.plans-card.soldout {
    opacity: 0.65;
    pointer-events: none;
}

.plans-card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.plans-card-img-wrap {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #F5E6D3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plans-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plans-card-info {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.plans-name-badge {
    display: inline-block;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plans-invest-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.plans-invest-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.plans-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.plans-stat {
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
}

.plans-stat-value {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.plans-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.plans-stat-label span { font-size: 0.75rem; }

.plans-stat--daily {
    background: #ECFDF5;
}

.plans-stat--daily .plans-stat-value { color: #16A34A; }

.plans-stat--total {
    background: #EFF6FF;
}

.plans-stat--total .plans-stat-value { color: #2563EB; }

.plans-stat--days {
    background: #F5F3FF;
}

.plans-stat--days .plans-stat-value { color: #7C3AED; }

.plans-invest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 16px;
    background: var(--gradient-btn);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.plans-invest-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 22px rgba(139, 69, 19, 0.38);
    color: #fff;
}

.plans-invest-btn.disabled {
    background: #9CA3AF;
    box-shadow: none;
    pointer-events: none;
}

.plans-invest-btn svg { width: 18px; height: 18px; }

.plans-countdown {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.plans-empty-end {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 8px 0 4px;
}

/* ── Team page (reference layout) ── */
.team-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 18px 18px 28px;
    color: #fff;
}

.team-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.team-header-top svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    opacity: 0.95;
}

.team-header-top h1 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
}

.team-header-sub {
    margin: 0 0 18px 28px;
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.88;
}

.team-invite-glass {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-invite-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.92;
    margin-bottom: 8px;
}

.team-invite-label svg {
    width: 14px;
    height: 14px;
}

.team-invite-code {
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    word-break: break-all;
    line-height: 1.2;
}

.team-copy-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: var(--brown-primary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s var(--ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.team-copy-btn:hover { transform: scale(1.04); }

.team-copy-btn svg { width: 16px; height: 16px; }

.team-levels {
    padding: 18px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.team-level-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    animation: driplyFadeUp 0.45s var(--ease) both;
}

.team-level-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.team-level-head--1 { background: #FEF3C7; }
.team-level-head--2 { background: #DBEAFE; }
.team-level-head--3 { background: #D1FAE5; }

.team-level-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.team-level-num--1 { background: #F59E0B; }
.team-level-num--2 { background: #3B82F6; }
.team-level-num--3 { background: #10B981; }

.team-level-titles {
    flex: 1;
    min-width: 0;
}

.team-level-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.team-level-subtitle {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: 2px;
}

.team-level-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.team-reward-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.team-reward-badge--1 { background: #FDE68A; color: #92400E; }
.team-reward-badge--2 { background: #BFDBFE; color: #1E40AF; }
.team-reward-badge--3 { background: #A7F3D0; color: #065F46; }

.team-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: #1F2937;
    color: #fff;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.team-view-btn:hover {
    transform: scale(1.03);
    background: #111827;
}

.team-level-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #F3F4F6;
}

.team-level-stat {
    padding: 16px 10px;
    text-align: center;
}

.team-level-stat + .team-level-stat {
    border-left: 1px solid #F3F4F6;
}

.team-level-stat-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
}

.team-level-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.team-level-stat-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.team-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(31, 41, 55, 0.5);
    backdrop-filter: blur(4px);
}

.team-modal-overlay.active {
    display: flex;
}

.team-modal {
    width: 100%;
    max-width: var(--page-max);
    max-height: 75vh;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: driplyFadeUp 0.3s var(--ease);
}

.team-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.team-modal-head h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
}

.team-modal-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F3F4F6;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
}

.team-modal-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ── Invite page ── */
.invite-header {
    background: linear-gradient(165deg, #B86B2C 0%, #8B4513 55%, #6B3410 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 16px 22px;
    color: #fff;
}

.invite-header-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.invite-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.invite-back-btn svg {
    width: 20px;
    height: 20px;
}

.invite-header-text h1 {
    margin: 0 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
}

.invite-header-text p {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.9;
}

.invite-link-card {
    margin-top: 12px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.invite-link-label {
    margin: 0 0 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.88;
}

.invite-link-url {
    margin: 0 0 12px;
    font-size: 0.75rem;
    line-height: 1.45;
    word-break: break-all;
    opacity: 0.95;
}

.invite-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: var(--brown-primary);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.invite-share-btn svg {
    width: 18px;
    height: 18px;
}

.invite-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 14px;
    margin-top: -18px;
    position: relative;
    z-index: 2;
}

.invite-summary-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid #F3E8D8;
}

.invite-summary-icon {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 6px;
}

.invite-summary-value {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--brown-primary);
    line-height: 1.25;
    word-break: break-word;
}

.invite-summary-label {
    margin-top: 4px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.invite-commission-banner {
    margin: 16px 14px 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #FFF8EB 0%, #FFFCF5 100%);
    border: 1px solid #E8D5B0;
}

.invite-commission-banner h2 {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--brown-dark);
}

.invite-commission-banner p {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.invite-commission-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invite-commission-pills span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #EDD9B8;
    font-size: 0.75rem;
    color: var(--brown-dark);
}

.invite-commission-pills strong {
    color: var(--brown-primary);
}

.team-level-head--1 { background: #FEF3C7; }
.team-level-head--2 { background: #FFEDD5; }
.team-level-head--3 { background: #FDE68A; }

.team-level-num--1 { background: #8B4513; }
.team-level-num--2 { background: #A0522D; }
.team-level-num--3 { background: #6B3410; }

.team-reward-badge--1 { background: #FDE68A; color: #6B3410; }
.team-reward-badge--2 { background: #FED7AA; color: #7C2D12; }
.team-reward-badge--3 { background: #FEF3C7; color: #78350F; }

.team-view-btn {
    background: var(--brown-primary);
}

.team-view-btn:hover {
    background: var(--brown-dark);
}

/* ── Profile page (reference layout) ── */
.profile-header {
    position: relative;
    background: linear-gradient(180deg, #4A2511 0%, #8B4513 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 18px 18px 72px;
    overflow: hidden;
}

.profile-header::before,
.profile-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.profile-header::before {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -30px;
}

.profile-header::after {
    width: 120px;
    height: 120px;
    bottom: 20px;
    left: -40px;
}

.profile-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-header-row h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.profile-notify-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
}

.profile-notify-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.profile-notify-btn svg { width: 20px; height: 20px; }

.profile-main-card {
    position: relative;
    z-index: 2;
    margin: -52px 16px 16px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    padding: 18px 16px 0;
    animation: driplyFadeUp 0.45s var(--ease);
}

.profile-user-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}

.profile-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-circle svg { width: 32px; height: 32px; }

.profile-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--success);
    border: 2px solid #fff;
}

.profile-user-info {
    flex: 1;
    min-width: 0;
}

.profile-phone {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.2;
}

.profile-user-id {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-user-id svg {
    width: 14px;
    height: 14px;
    color: var(--brown-primary);
    flex-shrink: 0;
}

.profile-edit-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-primary);
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.profile-edit-btn:hover {
    transform: scale(1.05);
    background: #E5E7EB;
}

.profile-edit-btn svg { width: 18px; height: 18px; }

.profile-finance-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #F3F4F6;
}

.profile-finance-item {
    padding: 16px 8px;
    text-align: center;
}

.profile-finance-item + .profile-finance-item {
    border-left: 1px solid #F3F4F6;
}

.profile-finance-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
    word-break: break-word;
}

.profile-finance-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-finance-label svg {
    width: 14px;
    height: 14px;
    color: var(--brown-primary);
}

.profile-section-label {
    padding: 0 16px;
    margin: 8px 0 10px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.profile-links-card {
    margin: 0 16px 16px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.profile-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.profile-link-item:hover { background: #F9FAFB; }

.profile-link-item + .profile-link-item {
    border-top: 1px solid #F3F4F6;
}

.profile-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.profile-link-icon svg { width: 22px; height: 22px; }

.profile-link-icon--gift { background: #F59E0B; }
.profile-link-icon--income { background: #22C55E; }
.profile-link-icon--withdraw { background: #EC4899; }
.profile-link-icon--recharge { background: #3B82F6; }
.profile-link-icon--security { background: #8B5CF6; }

.profile-link-text {
    flex: 1;
    min-width: 0;
}

.profile-link-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-link-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.profile-link-chevron {
    flex-shrink: 0;
    color: #D1D5DB;
}

.profile-link-chevron svg { width: 18px; height: 18px; }

.profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 16px 24px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    animation: driplyFadeUp 0.55s var(--ease) 0.1s both;
}

.profile-logout-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.38);
    color: #fff;
}

.profile-logout-btn svg { width: 20px; height: 20px; }

/* ── Ordered / Active Plans page ── */
.ordered-header {
    background: linear-gradient(180deg, #0B0E11 0%, #1A1F2E 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 18px 18px 24px;
    color: #fff;
}

.ordered-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ordered-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.ordered-header-title svg {
    width: 22px;
    height: 22px;
    color: #F59E0B;
    flex-shrink: 0;
}

.ordered-header-title h1 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ordered-add-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s, background 0.2s;
}

.ordered-add-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.ordered-add-btn svg { width: 20px; height: 20px; }

.ordered-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ordered-summary-item {
    padding: 16px 10px;
    text-align: center;
}

.ordered-summary-item + .ordered-summary-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ordered-summary-value {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ordered-summary-value--green { color: #22C55E; }

.ordered-summary-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
}

.ordered-summary-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #22C55E;
}

.ordered-summary-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
}

.ordered-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 16px 0;
}

.ordered-tab {
    border: none;
    border-radius: 12px;
    padding: 11px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--white);
    color: var(--text-secondary);
    box-shadow: var(--shadow-card);
    transition: all 0.2s;
}

.ordered-tab.active {
    background: #1A1F2E;
    color: #fff;
}

.ordered-list {
    padding: 16px 16px 24px;
}

.ordered-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    padding: 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.45s var(--ease) both;
}

.ordered-card.inactive-item { display: none; }

.ordered-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ECFDF5;
}

.ordered-status-row.expired {
    border-bottom-color: #F3F4F6;
}

.ordered-status-active {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #16A34A;
    letter-spacing: 0.04em;
}

.ordered-status-active .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
}

.ordered-status-expired {
    font-size: 0.75rem;
    font-weight: 800;
    color: #9CA3AF;
    letter-spacing: 0.04em;
}

.ordered-auto-claim {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #16A34A;
}

.ordered-auto-claim svg {
    width: 14px;
    height: 14px;
}

.ordered-card-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.ordered-card-img {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #F5E6D3;
    overflow: hidden;
}

.ordered-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ordered-card-info { flex: 1; min-width: 0; }

.ordered-name-badge {
    display: inline-block;
    background: #1A1F2E;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ordered-invest-label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ordered-invest-amount {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.ordered-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.ordered-stat {
    border-radius: 14px;
    padding: 12px 8px;
    text-align: center;
}

.ordered-stat-value {
    font-size: 0.9375rem;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.ordered-stat-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ordered-stat--daily { background: #ECFDF5; }
.ordered-stat--daily .ordered-stat-value { color: #16A34A; }
.ordered-stat--total { background: #EFF6FF; }
.ordered-stat--total .ordered-stat-value { color: #2563EB; }
.ordered-stat--days { background: #F5F3FF; }
.ordered-stat--days .ordered-stat-value { color: #7C3AED; }

.ordered-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: center;
}

.ordered-action-btn.claimed {
    background: #ECFDF5;
    color: #15803D;
    cursor: default;
}

.ordered-action-btn.claimable {
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
    transition: transform 0.2s;
}

.ordered-action-btn.claimable:hover { transform: scale(1.02); }

.ordered-action-btn.countdown {
    background: #F3F4F6;
    color: var(--text-secondary);
    cursor: default;
}

.ordered-action-btn.expired {
    background: #F3F4F6;
    color: #9CA3AF;
    cursor: default;
}

.ordered-action-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.ordered-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}

.ordered-empty svg {
    width: 48px;
    height: 48px;
    color: #D1D5DB;
    margin-bottom: 12px;
}

/* ── Spin / Gift Code page ── */
.spin-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 18px 72px;
    position: relative;
    overflow: hidden;
}

.spin-header::before,
.spin-header::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.spin-header::before {
    width: 140px;
    height: 140px;
    top: -30px;
    right: -20px;
}

.spin-header::after {
    width: 100px;
    height: 100px;
    bottom: 10px;
    left: -30px;
}

.spin-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.spin-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.spin-back-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.spin-back-btn svg { width: 20px; height: 20px; }

.spin-header-title {
    flex: 1;
    text-align: center;
    margin-right: 38px;
}

.spin-header-title h1 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.spin-header-title p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.spin-balance-card {
    position: relative;
    z-index: 2;
    margin: -48px 16px 16px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 20px;
    text-align: center;
    animation: driplyFadeUp 0.45s var(--ease);
}

.spin-balance-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.spin-balance-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brown-primary);
    letter-spacing: -0.02em;
}

.spin-form-card {
    margin: 0 16px 16px;
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    padding: 22px 18px;
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.spin-gift-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D97706;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.2);
}

.spin-gift-icon svg { width: 32px; height: 32px; }

.spin-form-title {
    margin: 0 0 6px;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
}

.spin-form-sub {
    margin: 0 0 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.45;
}

.spin-field { margin-bottom: 14px; }

.spin-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.spin-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #F9FAFB;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.spin-input:focus {
    outline: none;
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.spin-input::placeholder { color: #9CA3AF; }

.spin-claim-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-btn);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spin-claim-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 22px rgba(139, 69, 19, 0.38);
}

.spin-claim-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spin-claim-btn svg { width: 20px; height: 20px; }

.spin-history-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brown-primary);
    text-decoration: none;
}

.spin-history-link svg { width: 16px; height: 16px; }

.spin-tips {
    margin: 0 16px 24px;
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    animation: driplyFadeUp 0.55s var(--ease) 0.1s both;
}

.spin-tips p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.spin-tips strong { color: var(--brown-primary); }

.spin-toast {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: min(320px, 90vw);
    max-width: 90vw;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    z-index: 10001;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
    animation: driplyFadeUp 0.3s var(--ease);
}

.spin-toast.show { display: block; }

.spin-toast.success {
    background: #ECFDF5;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.spin-toast.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

.spin-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(31, 41, 55, 0.35);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}

.spin-loading.active { display: flex; }

.spin-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--brown-primary);
    border-radius: 50%;
    animation: spinRotate 0.8s linear infinite;
}

@keyframes spinRotate {
    to { transform: rotate(360deg); }
}

/* ── Settings page ── */
.settings-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 18px 28px;
    position: relative;
    overflow: hidden;
}

.settings-header::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.settings-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.settings-back-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.settings-back-btn svg { width: 20px; height: 20px; }

.settings-header-text {
    flex: 1;
    text-align: center;
    margin-right: 38px;
}

.settings-header-text h1 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.settings-header-text p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

/* ── Change password page ── */
.password-content {
    padding: 0 16px 24px;
    margin-top: -12px;
    position: relative;
    z-index: 2;
}

.password-security-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #6B4F1D 0%, #8B6914 100%);
    color: #FFF9F0;
    box-shadow: var(--shadow-card);
}

.password-security-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.password-security-icon svg {
    width: 24px;
    height: 24px;
}

.password-security-card h2 {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 800;
}

.password-security-card p {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.92;
    line-height: 1.45;
}

.password-form-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    padding: 22px 18px;
    border: 1px solid #F3E8D8;
}

.password-tips {
    margin: 0 0 18px;
    padding: 12px 14px 12px 28px;
    border-radius: var(--radius-md);
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    font-size: 0.75rem;
    color: #78350F;
    line-height: 1.55;
}

.password-tips li + li {
    margin-top: 4px;
}

.password-submit-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.9375rem;
}

.settings-content {
    padding: 16px 16px 24px;
}

.settings-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    padding: 18px 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.45s var(--ease) both;
}

.settings-section-title {
    margin: 0 0 14px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.settings-account-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.settings-account-row + .settings-account-row {
    border-top: 1px solid #F3F4F6;
}

.settings-account-row .label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-account-row .value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    word-break: break-all;
}

.settings-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.settings-link-item:hover { opacity: 0.85; }

.settings-link-item + .settings-link-item {
    border-top: 1px solid #F3F4F6;
}

.settings-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.settings-link-icon svg { width: 22px; height: 22px; }

.settings-link-icon--lock { background: #8B5CF6; }
.settings-link-icon--bank { background: #3B82F6; }
.settings-link-icon--user { background: #22C55E; }
.settings-link-icon--help { background: #F59E0B; }

.settings-link-body { flex: 1; min-width: 0; }

.settings-link-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.settings-link-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.settings-link-chevron {
    color: #D1D5DB;
    flex-shrink: 0;
}

.settings-link-chevron svg { width: 18px; height: 18px; }

.settings-form-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.settings-field {
    margin-bottom: 14px;
}

.settings-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.settings-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #F9FAFB;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.settings-field input:focus {
    outline: none;
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.settings-submit-btn {
    width: 100%;
    margin-top: 6px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-btn);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s;
}

.settings-submit-btn:hover { transform: scale(1.02); }

.settings-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 32px);
    margin: 0 16px 24px;
    padding: 16px 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(90deg, #8B4513 0%, #A0522D 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s;
    animation: driplyFadeUp 0.55s var(--ease) 0.1s both;
}

.settings-logout-btn:hover {
    transform: scale(1.02);
    color: #fff;
}

.settings-logout-btn svg { width: 20px; height: 20px; }

/* ── Add Bank / Gateway Setup page ── */
.bank-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 18px 72px;
    position: relative;
    overflow: hidden;
}

.bank-header::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.bank-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bank-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.bank-back-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.bank-back-btn svg { width: 20px; height: 20px; }

.bank-header-text {
    flex: 1;
    text-align: center;
    margin-right: 38px;
}

.bank-header-text h1 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.bank-header-text p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.bank-content {
    padding: 0 16px 24px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.bank-card-preview {
    background: linear-gradient(135deg, #6B3410 0%, #8B4513 45%, #B86B2C 100%);
    border-radius: 22px;
    padding: 22px 18px;
    color: #fff;
    box-shadow: 0 12px 32px rgba(107, 52, 16, 0.35);
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    animation: driplyFadeUp 0.45s var(--ease);
}

.bank-card-preview::before,
.bank-card-preview::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.bank-card-preview::before {
    width: 140px;
    height: 140px;
    top: -40px;
    right: -30px;
}

.bank-card-preview::after {
    width: 90px;
    height: 90px;
    bottom: -20px;
    left: -20px;
}

.bank-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.bank-card-label {
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
}

.bank-card-bank-name {
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.2;
}

.bank-card-chip {
    width: 38px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.bank-card-number {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.bank-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.bank-card-value {
    font-size: 0.875rem;
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
}

.bank-form-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 20px 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.bank-field {
    margin-bottom: 16px;
}

.bank-field:last-of-type {
    margin-bottom: 0;
}

.bank-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.bank-field select,
.bank-field input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    background: #F9FAFB;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bank-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238B4513' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.bank-field select:focus,
.bank-field input:focus {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.bank-verified {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--success);
}

.bank-verified.show { display: flex; }

.bank-verified-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.bank-verified-icon svg { width: 14px; height: 14px; }

.bank-save-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-btn);
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.32);
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bank-save-btn:hover { transform: scale(1.02); }

.bank-save-btn svg { width: 20px; height: 20px; }

.bank-rules {
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    animation: driplyFadeUp 0.55s var(--ease) 0.1s both;
}

.bank-rules p {
    margin: 0 0 8px;
    font-size: 0.75rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.bank-rules p:last-child { margin-bottom: 0; }

.bank-rules strong { color: var(--brown-primary); }

.bank-loading {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(31, 41, 55, 0.45);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
}

.bank-loading.show { display: flex; }

.bank-loading-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinRotate 0.8s linear infinite;
}

/* ── Withdraw page ── */
.withdraw-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 18px 72px;
    position: relative;
    overflow: hidden;
}

.withdraw-header::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.withdraw-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.withdraw-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.withdraw-back-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.withdraw-back-btn svg { width: 20px; height: 20px; }

.withdraw-header-text {
    flex: 1;
    text-align: center;
    margin-right: 38px;
}

.withdraw-header-text h1 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.withdraw-header-text p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.withdraw-content {
    padding: 0 16px 24px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}

.withdraw-balance-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 20px 16px;
    margin-bottom: 16px;
    text-align: center;
    animation: driplyFadeUp 0.45s var(--ease);
}

.withdraw-balance-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.withdraw-balance-value {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--brown-dark);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.withdraw-mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.withdraw-mini-stat {
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.08);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.withdraw-mini-stat .label {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 600;
}

.withdraw-mini-stat .value {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--brown-primary);
}

.withdraw-notice {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 16px;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #92400E;
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.withdraw-notice a {
    color: var(--brown-dark);
    font-weight: 800;
    text-decoration: none;
}

.withdraw-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 18px 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.withdraw-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.withdraw-section-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-section-bar {
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: var(--brown-primary);
}

.withdraw-section-head h2,
.withdraw-panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.withdraw-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brown-primary);
    text-decoration: none;
}

.withdraw-edit-link svg { width: 16px; height: 16px; }

.withdraw-account-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.withdraw-account-row:last-child { margin-bottom: 0; }

.withdraw-account-row.plain { display: block; }

.withdraw-bank-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-btn);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.withdraw-bank-icon svg { width: 20px; height: 20px; }

.withdraw-field-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.withdraw-field-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}

.withdraw-pct-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.withdraw-pct-btn {
    border: 1.5px solid var(--brown-primary);
    background: #fff;
    color: var(--brown-dark);
    border-radius: 12px;
    padding: 10px 4px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.withdraw-pct-btn:hover:not(:disabled) {
    background: #FFFBEB;
}

.withdraw-pct-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.withdraw-amount-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 0 16px;
    margin-bottom: 14px;
    background: #F9FAFB;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.withdraw-amount-wrap:focus-within {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.withdraw-amount-wrap span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brown-dark);
}

.withdraw-amount-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    height: 48px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    min-width: 0;
    color: var(--text-primary);
}

.withdraw-amount-wrap input::placeholder {
    color: #9CA3AF;
    font-weight: 500;
}

.withdraw-amount-wrap input:disabled { opacity: 0.6; }

.withdraw-submit-btn {
    width: 100%;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: var(--gradient-btn);
    box-shadow: 0 6px 18px rgba(139, 69, 19, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

.withdraw-submit-btn:hover:not(:disabled) { transform: scale(1.02); }

.withdraw-submit-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.withdraw-submit-btn svg { width: 18px; height: 18px; }

.withdraw-info-card {
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.12);
    border-radius: 22px;
    padding: 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.55s var(--ease) 0.1s both;
}

.withdraw-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.withdraw-info-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brown-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.withdraw-info-icon svg { width: 18px; height: 18px; }

.withdraw-info-head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--brown-dark);
}

.withdraw-info-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.withdraw-info-list strong { color: var(--text-primary); }

.withdraw-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.withdraw-recent-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdraw-recent-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.withdraw-view-all {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--brown-primary);
    text-decoration: none;
}

.withdraw-tx-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--brown-primary);
    padding: 14px 16px;
    margin-bottom: 10px;
    animation: driplyFadeUp 0.5s var(--ease) both;
}

.withdraw-tx-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.withdraw-tx-amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brown-dark);
}

.withdraw-status-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}

.withdraw-status-badge.approved {
    background: #D1FAE5;
    color: #065F46;
}

.withdraw-status-badge.pending {
    background: #FEF3C7;
    color: #92400E;
}

.withdraw-status-badge.rejected {
    background: #FEE2E2;
    color: #991B1B;
}

.withdraw-tx-bank {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.withdraw-tx-date {
    font-size: 0.75rem;
    color: #9CA3AF;
}

.withdraw-empty {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 24px 16px;
}

/* ── Deposit / Recharge page ── */
.deposit-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 8px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(248, 249, 252, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.deposit-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s;
}

.deposit-back-btn:hover { transform: scale(1.04); color: var(--text-primary); }
.deposit-back-btn svg { width: 20px; height: 20px; }

.deposit-topbar-text { flex: 1; min-width: 0; }
.deposit-topbar-text h1 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--text-primary);
}

.deposit-topbar-text p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.deposit-history-link {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown-primary);
    white-space: nowrap;
}

.deposit-wrap {
    padding: 8px 16px calc(var(--nav-height) + 88px);
}

.deposit-wallet-card {
    background: var(--gradient-header);
    border-radius: 22px;
    padding: 20px 18px;
    color: #fff;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(107, 52, 16, 0.28);
    animation: driplyFadeUp 0.4s var(--ease);
}

.deposit-wallet-card::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    top: -50px;
    right: -30px;
    pointer-events: none;
}

.deposit-wallet-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.deposit-wallet-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}

.deposit-wallet-value {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.deposit-wallet-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.deposit-wallet-icon svg { width: 22px; height: 22px; }

.deposit-wallet-foot {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.deposit-wallet-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
}

.deposit-wallet-stat .label {
    font-size: 0.625rem;
    opacity: 0.8;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.deposit-wallet-stat .value {
    font-size: 0.875rem;
    font-weight: 800;
}

.deposit-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.deposit-step {
    flex: 1;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 8px 6px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    transition: all 0.2s;
}

.deposit-step.active {
    background: #FFFBEB;
    border-color: #FCD34D;
    color: var(--brown-dark);
}

.deposit-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px 16px;
    margin-bottom: 14px;
    animation: driplyFadeUp 0.45s var(--ease);
}

.deposit-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.deposit-card-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.deposit-card-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFBEB;
    color: var(--brown-primary);
    font-size: 0.6875rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.deposit-card-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.deposit-quick-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.deposit-quick-scroll::-webkit-scrollbar { display: none; }

.deposit-quick-chip {
    flex: 0 0 auto;
    min-width: 96px;
    scroll-snap-align: start;
    border: 1.5px solid #E5E7EB;
    background: #F9FAFB;
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s;
}

.deposit-quick-chip:hover { border-color: #FCD34D; }
.deposit-quick-chip.active {
    border-color: var(--brown-primary);
    background: #FFFBEB;
    box-shadow: 0 4px 14px rgba(107, 52, 16, 0.15);
}

.deposit-quick-chip .tier {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.deposit-quick-chip .amt {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--brown-dark);
}

.deposit-amount-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    border: 2px solid #E5E7EB;
    border-radius: 18px;
    padding: 4px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.deposit-amount-box:focus-within {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 4px rgba(139, 69, 19, 0.12);
    background: #fff;
}

.deposit-amount-prefix {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--brown-primary);
    flex-shrink: 0;
}

.deposit-amount-input {
    flex: 1;
    border: none;
    background: transparent;
    height: 52px;
    font-family: inherit;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    outline: none;
    min-width: 0;
    letter-spacing: -0.02em;
}

.deposit-amount-input::placeholder {
    color: #9CA3AF;
    font-weight: 600;
    font-size: 1rem;
}

.deposit-min-note {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.deposit-min-note strong { color: var(--brown-dark); }

.deposit-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deposit-method {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid #E5E7EB;
    border-radius: 16px;
    padding: 12px 14px;
    cursor: pointer;
    background: #FAFAFA;
    transition: all 0.18s;
}

.deposit-method:hover { border-color: #FCD34D; }
.deposit-method.active {
    border-color: var(--brown-primary);
    background: #FFFBEB;
    box-shadow: 0 4px 16px rgba(107, 52, 16, 0.12);
}

.deposit-method-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
}

.deposit-method.active .deposit-method-radio {
    border-color: var(--brown-primary);
    background: var(--brown-primary);
}

.deposit-method.active .deposit-method-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.deposit-method-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid #E5E7EB;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deposit-method-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deposit-method-logo svg {
    width: 20px;
    height: 20px;
    color: var(--brown-primary);
}

.deposit-method-body { flex: 1; min-width: 0; }
.deposit-method-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.deposit-method-tag {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.deposit-method-badge {
    font-size: 0.625rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    background: #FFFBEB;
    color: var(--brown-dark);
    flex-shrink: 0;
}

.deposit-notes {
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.deposit-notes summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
}

.deposit-notes summary::-webkit-details-marker { display: none; }

.deposit-notes-body {
    padding: 0 16px 14px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.55;
    background: var(--white);
}

.deposit-notes-body p { margin: 0 0 8px; }

.deposit-sticky-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(var(--nav-height) + 8px);
    width: min(100%, var(--page-max));
    padding: 0 16px;
    z-index: 30;
    pointer-events: none;
}

.deposit-sticky-inner {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.deposit-summary {
    flex: 1;
    min-width: 0;
}

.deposit-summary-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.deposit-summary-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deposit-summary-method {
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.deposit-submit-btn {
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    background: var(--gradient-btn);
    box-shadow: 0 4px 16px rgba(107, 52, 16, 0.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.deposit-submit-btn:hover { transform: scale(1.02); }
.deposit-submit-btn svg { width: 18px; height: 18px; }

.deposit-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 0.6875rem;
    color: var(--text-secondary);
    margin-top: 10px;
}

.deposit-trust svg {
    width: 14px;
    height: 14px;
    color: var(--brown-primary);
}

/* ── Recharge / Deposit history page ── */
.recharge-hist-wrap {
    padding: 8px 16px calc(var(--nav-height) + 24px);
}

.recharge-hist-summary {
    background: var(--gradient-header);
    border-radius: 22px;
    padding: 18px 16px;
    color: #fff;
    margin-bottom: 14px;
    box-shadow: 0 12px 32px rgba(107, 52, 16, 0.22);
    animation: driplyFadeUp 0.4s var(--ease);
}

.recharge-hist-summary-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 4px;
}

.recharge-hist-summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.recharge-hist-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.recharge-hist-stat {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
}

.recharge-hist-stat .val {
    font-size: 0.9375rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 3px;
}

.recharge-hist-stat .lbl {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.82;
}

.recharge-hist-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 16px;
    margin-bottom: 14px;
}

.recharge-hist-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: none;
}

.recharge-hist-tabs::-webkit-scrollbar { display: none; }

.recharge-hist-tab {
    flex-shrink: 0;
    border: 1.5px solid #E5E7EB;
    background: #F9FAFB;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s;
}

.recharge-hist-tab:hover { border-color: #FCD34D; }

.recharge-hist-tab.active {
    background: #FFFBEB;
    border-color: var(--brown-primary);
    color: var(--brown-dark);
}

.recharge-hist-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    border: 1.5px solid #E5E7EB;
    border-radius: 14px;
    padding: 0 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.recharge-hist-search:focus-within {
    border-color: var(--brown-primary);
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: #fff;
}

.recharge-hist-search svg {
    width: 18px;
    height: 18px;
    color: var(--brown-primary);
    flex-shrink: 0;
}

.recharge-hist-search input {
    flex: 1;
    border: none;
    background: transparent;
    height: 44px;
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    min-width: 0;
    color: var(--text-primary);
}

.recharge-hist-time-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recharge-hist-time-tab {
    border: 1px solid #E5E7EB;
    background: #fff;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 7px 12px;
    font-family: inherit;
    font-size: 0.6875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
}

.recharge-hist-time-tab.active {
    background: var(--brown-primary);
    color: #fff;
    border-color: var(--brown-primary);
}

.recharge-hist-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recharge-hist-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--brown-primary);
    padding: 14px 16px;
    animation: driplyFadeUp 0.45s var(--ease) both;
}

.recharge-hist-item.hidden { display: none; }

.recharge-hist-item.status-approved { border-left-color: #22C55E; }
.recharge-hist-item.status-pending { border-left-color: var(--gold); }
.recharge-hist-item.status-rejected { border-left-color: #EF4444; }

.recharge-hist-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.recharge-hist-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.recharge-hist-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-primary);
    flex-shrink: 0;
}

.recharge-hist-icon svg { width: 20px; height: 20px; }

.recharge-hist-ref {
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--text-primary);
    word-break: break-all;
    line-height: 1.3;
}

.recharge-hist-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.recharge-hist-badge {
    flex-shrink: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recharge-hist-badge.approved { background: #D1FAE5; color: #065F46; }
.recharge-hist-badge.pending { background: #FEF3C7; color: #92400E; }
.recharge-hist-badge.rejected { background: #FEE2E2; color: #991B1B; }

.recharge-hist-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: #FFFBEB;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid rgba(139, 69, 19, 0.08);
}

.recharge-hist-meta .label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.recharge-hist-meta .value {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.recharge-hist-meta .value.amount {
    color: var(--brown-dark);
    font-size: 0.9375rem;
    font-weight: 800;
}

.recharge-hist-meta .value.withdraw-out {
    color: #DC2626;
    font-size: 0.9375rem;
    font-weight: 800;
}

.withdraw-hist-icon {
    background: #FEE2E2 !important;
    border-color: rgba(220, 38, 38, 0.15) !important;
    color: #DC2626 !important;
}

.recharge-hist-empty,
.recharge-hist-filter-empty {
    text-align: center;
    padding: 36px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.recharge-hist-empty svg,
.recharge-hist-filter-empty svg {
    width: 52px;
    height: 52px;
    color: var(--text-secondary);
    opacity: 0.35;
    margin-bottom: 12px;
}

.recharge-hist-empty p,
.recharge-hist-filter-empty p {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.recharge-hist-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 14px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(107, 52, 16, 0.3);
    transition: transform 0.2s;
}

.recharge-hist-cta:hover {
    transform: scale(1.02);
    color: #fff;
}

.recharge-hist-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.recharge-hist-list-head h2 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text-primary);
}

.recharge-hist-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brown-primary);
    background: #FFFBEB;
    padding: 4px 10px;
    border-radius: 999px;
}

/* ── Personal Details page ── */
.personal-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.personal-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6B3410, #8B4513);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.personal-avatar svg { width: 28px; height: 28px; }

.personal-profile-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.personal-profile-meta strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.personal-profile-meta span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.personal-tip-card {
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.personal-tip-card p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.personal-tip-card a {
    color: var(--brown-primary);
    font-weight: 700;
    text-decoration: none;
}

/* ── Help Center / Service page ── */
.service-header {
    background: var(--gradient-header);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 16px 18px 56px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-header::before {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -40px;
    right: -30px;
    pointer-events: none;
}

.service-header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.service-back-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

.service-back-btn svg { width: 20px; height: 20px; }

.service-header-text {
    flex: 1;
    text-align: center;
    margin-right: 38px;
}

.service-header-text h1 {
    margin: 0 0 4px;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
}

.service-header-text p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}

.service-hero-icon {
    width: 52px;
    height: 52px;
    margin: 20px auto 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    z-index: 1;
}

.service-hero-icon svg { width: 26px; height: 26px; }

.service-content {
    padding: 0 16px 24px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: var(--white);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    padding: 18px 16px;
    margin-bottom: 16px;
    animation: driplyFadeUp 0.45s var(--ease);
}

.service-card-title {
    margin: 0 0 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-item:hover {
    border-color: rgba(139, 69, 19, 0.2);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.08);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.service-icon.telegram { background: #229ED9; }
.service-icon.whatsapp { background: #25D366; }
.service-icon.default { background: var(--gradient-btn); }

.service-icon svg { width: 24px; height: 24px; }

.service-body {
    flex: 1;
    min-width: 0;
}

.service-name {
    margin: 0 0 4px;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

.service-desc {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}

.service-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
    transition: transform 0.2s;
}

.service-action:hover {
    transform: scale(1.04);
    color: #fff;
}

.service-empty {
    text-align: center;
    padding: 28px 16px;
}

.service-empty svg {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    opacity: 0.45;
    margin-bottom: 12px;
}

.service-empty p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-info-card {
    background: #FFFBEB;
    border: 1px solid rgba(139, 69, 19, 0.12);
    animation: driplyFadeUp 0.5s var(--ease) 0.05s both;
}

.service-info-card p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #92400E;
}
