/* SmartEarn - Main Stylesheet */
/* Design: Blue/White theme matching provided mockups */

:root {
    --primary: #1A56FF;
    --primary-dark: #1040CC;
    --primary-light: #E8EEFF;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --bg: #F0F4FF;
    --white: #FFFFFF;
    --card-shadow: 0 4px 24px rgba(26,86,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar-w: 260px;
    --font: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ─── TYPOGRAPHY ─── */
h1 { font-size: 2.4rem; font-weight: 800; }
h2 { font-size: 1.8rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,255,0.35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-icon { padding: 10px 14px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── CARDS ─── */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26,86,255,0.06);
}
.card-sm { padding: 18px 22px; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: var(--text-dark);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,255,0.12); }
.form-control.no-icon { padding-left: 16px; }
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}
.input-action {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
}

/* ─── ALERTS ─── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #DCFCE7; color: #166534; border-left: 4px solid var(--success); }
.alert-danger { background: #FEE2E2; color: #991B1B; border-left: 4px solid var(--danger); }
.alert-warning { background: #FEF3C7; color: #92400E; border-left: 4px solid var(--warning); }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }

/* ─── BADGE ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-success { background: #DCFCE7; color: #166534; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-muted { background: #F1F5F9; color: var(--text-muted); }

/* ─── NAVBAR (public) ─── */
.navbar {
    background: var(--white);
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 20px 20px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; }
.navbar-brand .logo-box {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.navbar-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { background: var(--primary); color: #fff; }

/* ─── HERO ─── */
.hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #EEF2FF 0%, #DBEAFE 50%, #E0F2FE 100%);
}
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(26,86,255,0.08);
}
.hero h1 span { color: var(--primary); }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 540px; margin: 18px auto 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ─── STATS SECTION ─── */
.stats-section { padding: 40px 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--card-shadow);
}
.stat-icon-box {
    width: 60px; height: 60px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.stat-icon-box.blue { background: var(--primary-light); }
.stat-icon-box.green { background: #DCFCE7; }
.stat-icon-box.purple { background: #F3E8FF; }
.stat-icon-box.orange { background: #FEF3C7; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-dark); }
.stat-value.primary { color: var(--primary); }
.stat-value.success { color: var(--success); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ─── TESTIMONIALS ─── */
.testimonials-section { padding: 40px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--card-shadow);
    text-align: center;
}
.testimonial-card .avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
}
.quote-icon { color: var(--primary); font-size: 1.4rem; margin-bottom: 8px; }
.stars { color: #F59E0B; font-size: 0.9rem; margin-bottom: 10px; }
.testimonial-text { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }
.testimonial-name { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* ─── FOOTER ─── */
footer {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 20px;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* ─── AUTH PAGES ─── */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #EEF2FF 0%, #DBEAFE 60%, #E0F2FE 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}
.auth-card {
    background: var(--white);
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 12px 48px rgba(26,86,255,0.14);
    position: relative;
    z-index: 1;
}
.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo .logo-box {
    width: 60px; height: 60px;
    background: var(--primary);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
    margin: 0 auto 12px;
}
.auth-logo h1 { font-size: 1.6rem; }
.auth-title { text-align: center; margin-bottom: 28px; }
.auth-title h2 { font-size: 1.4rem; font-weight: 700; }
.auth-title p { color: var(--text-muted); font-size: 0.9rem; margin-top: 5px; }

/* CAPTCHA */
.captcha-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}
.captcha-display {
    flex: 1;
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
}
.captcha-display .shield-icon { color: var(--primary); font-size: 1.2rem; }
.captcha-chars span {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 3px;
    display: inline-block;
}
.captcha-chars span:nth-child(odd) { color: var(--primary); transform: rotate(-5deg); }
.captcha-chars span:nth-child(even) { color: #6D28D9; transform: rotate(5deg); }
.captcha-chars span:nth-child(3) { color: var(--success); transform: rotate(-3deg); }
.captcha-refresh {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}
.captcha-refresh:hover { border-color: var(--primary); color: var(--primary); }

/* Remember me & forgot */
.auth-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.875rem;
}
.checkbox-wrap { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}
.forgot-link { color: var(--primary); font-weight: 600; }
.auth-switch { text-align: center; margin-top: 20px; font-size: 0.9rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary); font-weight: 600; }

/* Auth decorations */
.auth-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(26,86,255,0.10);
    pointer-events: none;
}

/* Auth wave bottom */
.auth-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(26,86,255,0.05), transparent);
    pointer-events: none;
}

/* ─── DASHBOARD LAYOUT ─── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; bottom: 0; left: 0;
    z-index: 200;
    transition: transform 0.3s;
    box-shadow: 2px 0 16px rgba(26,86,255,0.06);
}
.sidebar-brand {
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
}
.sidebar-brand .logo-box {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1rem;
    flex-shrink: 0;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 14px; }
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
    transition: all 0.2s;
    cursor: pointer;
}
.sidebar-nav-item:hover { background: var(--primary-light); color: var(--primary); }
.sidebar-nav-item.active { background: var(--primary); color: #fff; }
.sidebar-nav-item .nav-icon { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 14px 6px; }

/* Main content */
.main-content { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }

/* Top bar */
.topbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--text-dark); font-size: 1.3rem; }
.topbar-title { font-size: 1.1rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.balance-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
}
.user-avatar {
    width: 38px; height: 38px;
    background: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    font-size: 1rem;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    min-width: 160px;
    overflow: hidden;
    z-index: 500;
    display: none;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: background 0.15s;
}
.dropdown-item:hover { background: var(--primary-light); color: var(--primary); }
.dropdown-item.text-danger:hover { background: #FEE2E2; color: var(--danger); }

/* Dashboard content padding */
.page-body { padding: 28px 32px; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 1.4rem; }
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ─── DASHBOARD STAT CARDS ─── */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(26,86,255,0.06);
}
.dash-stat-card .ds-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; margin-bottom: 8px; }
.dash-stat-card .ds-value { font-size: 1.7rem; font-weight: 800; margin-bottom: 4px; }
.dash-stat-card .ds-sub { font-size: 0.78rem; color: var(--text-muted); }
.ds-icon-wrap { display: flex; justify-content: space-between; align-items: flex-start; }
.ds-icon { font-size: 1.4rem; opacity: 0.7; }

/* ─── STATISTICS TABLE / CHART ─── */
.stats-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); overflow: hidden; margin-bottom: 24px; }
.stats-card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.stats-table th { padding: 12px 18px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); background: #FAFBFF; border-bottom: 1px solid var(--border); }
.stats-table td { padding: 12px 18px; border-bottom: 1px solid rgba(226,232,240,0.6); color: var(--text-dark); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:hover td { background: #FAFBFF; }

/* Earn type cards */
.earn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.earn-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}
.earn-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.earn-card-icon { font-size: 2.8rem; margin-bottom: 16px; }
.earn-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.earn-card p { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 16px; }

/* ─── SHORT/LONG VIEW PAGE ─── */
.view-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #EEF2FF 0%, #DBEAFE 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px;
}
.view-topbar {
    width: 100%;
    max-width: 800px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    margin-bottom: 28px;
}
.site-info { display: flex; align-items: center; gap: 12px; }
.site-favicon { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.site-name { font-weight: 700; font-size: 1rem; }
.timer-badge {
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    min-width: 60px;
    text-align: center;
}

/* Captcha overlay */
.captcha-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}
.captcha-modal {
    background: var(--white);
    border-radius: 20px;
    padding: 36px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(26,86,255,0.2);
}
.captcha-modal h3 { margin-bottom: 8px; }
.captcha-modal p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 24px; }
.icon-captcha-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.icon-captcha-item {
    padding: 16px 8px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #FAFBFF;
}
.icon-captcha-item:hover { border-color: var(--primary); background: var(--primary-light); }
.icon-captcha-item.selected { border-color: var(--primary); background: var(--primary); }

/* Tap game */
.tap-game-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.85);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    backdrop-filter: blur(6px);
}
.tap-game-box {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 420px;
    width: 95%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tap-progress { margin: 16px 0; }
.tap-progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 8px;
}
.tap-progress-fill { height: 100%; background: var(--primary); border-radius: 50px; transition: width 0.1s; }
.tap-btn {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    cursor: pointer;
    font-size: 2.5rem;
    margin: 20px auto;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.1s, box-shadow 0.1s;
    box-shadow: 0 8px 24px rgba(26,86,255,0.4);
    color: white;
    user-select: none;
    -webkit-user-select: none;
}
.tap-btn:active { transform: scale(0.93); box-shadow: 0 4px 12px rgba(26,86,255,0.3); }
.tap-round-indicator { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.tap-round-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background 0.3s; }
.tap-round-dot.done { background: var(--success); }
.tap-round-dot.active { background: var(--primary); }

/* Ad iframe wrapper */
.ad-iframe-wrap {
    position: fixed; inset: 0;
    z-index: 9997;
    background: #000;
    display: flex; flex-direction: column;
}
.ad-iframe-wrap iframe { flex: 1; border: none; width: 100%; }
.ad-topbar {
    background: var(--white);
    padding: 10px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--border);
}
.ad-timer-txt { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.get-link-btn { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.get-link-btn.show { opacity: 1; pointer-events: all; }

/* ─── REFERRAL PAGE ─── */
.ref-link-box {
    background: var(--primary-light);
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.ref-link-box input { flex: 1; background: none; border: none; font-size: 0.9rem; color: var(--primary); font-weight: 600; outline: none; }
.ref-link-box button { background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.85rem; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; }
.page-btn { padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--white); cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ─── LINKS PAGE ─── */
.link-form-card { margin-bottom: 24px; }
.link-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #FAFBFF;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}
.link-row .link-code { font-family: monospace; color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.link-row .link-dest { flex: 1; font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-row .link-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
.link-copy-btn { background: var(--primary-light); color: var(--primary); border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 600; }

/* ─── WITHDRAW PAGE ─── */
.wallet-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 14px;
}
.wallet-option.selected { border-color: var(--primary); background: var(--primary-light); }
.wallet-option input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; }
.wallet-name { font-weight: 700; }
.wallet-min { font-size: 0.82rem; color: var(--text-muted); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 14px 20px; }
    .navbar-nav .nav-link:not(.active) { display: none; }

    .hero { padding: 40px 20px 60px; }
    .hero h1 { font-size: 1.8rem; }

    .stats-section, .testimonials-section { padding: 24px 20px 0; }
    .testimonials-section { padding: 24px 20px; }

    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: block; }
    .main-content { margin-left: 0; }
    .hamburger { display: flex; }

    .page-body { padding: 20px 16px; }
    .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .earn-cards { grid-template-columns: 1fr; }
    .topbar { padding: 12px 16px; }

    .auth-card { padding: 30px 24px; }
    .icon-captcha-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .icon-captcha-item { padding: 12px 4px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-stat-card .ds-value { font-size: 1.4rem; }
    h1 { font-size: 1.8rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .stat-card { padding: 18px; }
    .stat-value { font-size: 1.5rem; }
}

/* ─── COUNTING ANIMATION ─── */
.count-up { display: inline-block; }

/* ─── OVERLAY sidebar ─── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 199;
}
.sidebar-overlay.show { display: block; }

/* ─── SCROLL CUSTOM ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
