/* =====================================================
   MyAds - Modern Clean Theme (Design Reference)
   ===================================================== */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #a78bfa;
    --bg: #f8f9fa;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --red: #ef4444;
    --orange: #f97316;
    --purple: #8b5cf6;
    --green: #10b981;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}
body.sidebar-open { overflow: hidden; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 16px; }
.main-content { padding-top: 60px; padding-bottom: 80px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: none; border-radius: 12px;
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); text-decoration: none; line-height: 1; font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,0.4); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }

/* Forms */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-control {
    width: 100%; padding: 11px 14px; font-size: 0.88rem;
    border: 1.5px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text); outline: none; font-family: inherit; transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236b7280' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}

/* Alerts */
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 0.82rem; font-weight: 500; }
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; }
.alert-danger { background: rgba(239,68,68,0.1); color: #991b1b; }

/* ============ SIDEBAR ============ */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 1999;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; left: -280px; bottom: 0;
    width: 280px; background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%); z-index: 2000;
    display: flex; flex-direction: column;
    box-shadow: 4px 0 24px rgba(0,0,0,0.3);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open { left: 0; }

.sidebar-header {
    padding: 20px 18px 16px; display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo { font-weight: 800; font-size: 1.2rem; color: #f472b6; }
.sidebar-close {
    background: none; border: none; cursor: pointer; color: #64748b;
    padding: 6px; border-radius: 8px; display: flex; transition: var(--transition);
}
.sidebar-close:hover { background: rgba(255,255,255,0.1); color: #f1f5f9; }

.sidebar-user {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px; margin: 0 14px; border-radius: 14px; background: rgba(255,255,255,0.08);
}
.sidebar-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #fb923c);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-user-info { min-width: 0; }
.sidebar-user-name { font-weight: 700; font-size: 0.88rem; color: #f1f5f9; }
.sidebar-user-sub { font-size: 0.72rem; color: #94a3b8; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-link {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 18px; color: #94a3b8; font-size: 0.88rem; font-weight: 500;
    transition: var(--transition); text-decoration: none; margin: 2px 0;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #f1f5f9; }
.sidebar-link.active { background: rgba(244,114,182,0.15); color: #f472b6; font-weight: 700; }
.sidebar-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-badge {
    margin-left: auto; background: #ef4444; color: #fff;
    font-size: 0.62rem; font-weight: 700; padding: 2px 7px;
    border-radius: 8px; min-width: 18px; text-align: center; line-height: 1.4;
}

.sidebar-bottom { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-logout { color: #ef4444 !important; }
.sidebar-logout:hover { background: rgba(239,68,68,0.1) !important; }

/* ============ TOP BAR ============ */
.top-bar {
    background: #fff; border-bottom: 1px solid var(--border);
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
}
.top-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 480px; margin: 0 auto; padding: 12px 16px;
}
.top-bar-logo { text-decoration: none; font-weight: 800; font-size: 1.1rem; color: var(--red); }

.hamburger-btn {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; padding: 6px; border-radius: 8px;
}
.hamburger-btn span { display: block; width: 20px; height: 2.5px; background: var(--text); border-radius: 2px; }
.hamburger-btn:hover { background: #f1f5f9; }

.notif-bell {
    background: none; border: none; cursor: pointer; position: relative;
    padding: 6px; border-radius: 8px; display: flex; color: var(--text);
}
.notif-bell:hover { background: #f1f5f9; }
.notif-bell-badge {
    position: absolute; top: 2px; right: 2px; width: 8px; height: 8px;
    background: var(--danger); border-radius: 50%; border: 2px solid #fff;
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: #fff; border-top: 1px solid var(--border);
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 0; padding-bottom: env(safe-area-inset-bottom, 8px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    text-decoration: none; color: var(--text-muted); font-size: 0.65rem;
    font-weight: 600; padding: 4px 12px; border-radius: 8px; transition: var(--transition);
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--red); }

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 50%, #fef2f2 100%);
}
.auth-box {
    width: 100%; max-width: 400px; background: #fff;
    border-radius: 24px; padding: 40px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    animation: authBoxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authBoxIn {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-box .logo { text-align: center; margin-bottom: 32px; }
.auth-box .logo .logo-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; color: #fff;
    box-shadow: 0 8px 24px rgba(239,68,68,0.3);
}
.auth-box .logo h1 { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.auth-box .logo p { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

.auth-input-group { position: relative; margin-bottom: 16px; }
.auth-input-group .input-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; pointer-events: none; display: flex; align-items: center;
}
.auth-input-group input {
    width: 100%; padding: 14px 14px 14px 44px; font-size: 0.9rem;
    border: 1.5px solid var(--border); border-radius: 12px;
    background: #f8fafc; color: var(--text); outline: none; font-family: inherit; transition: var(--transition);
}
.auth-input-group input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
.auth-input-group input::placeholder { color: #94a3b8; }

.auth-submit {
    width: 100%; padding: 14px; font-size: 0.95rem; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; box-shadow: 0 4px 16px rgba(239,68,68,0.3);
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px;
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(239,68,68,0.4); }
.auth-submit:active { transform: translateY(0); }

.auth-forgot {
    text-align: right; margin-top: 8px; font-size: 0.82rem;
}
.auth-forgot a { color: var(--red); font-weight: 600; text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }

.auth-terms {
    display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; font-size: 0.8rem; color: var(--text-muted);
}
.auth-terms input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--red); }
.auth-terms a { color: var(--red); font-weight: 600; }

.auth-footer {
    text-align: center; margin-top: 20px; padding-top: 18px;
    border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted);
}
.auth-footer a { color: var(--red); font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

/* ============ COLORFUL STAT CARDS (2x2) ============ */
.dash-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px;
}
.dash-stat-card {
    border-radius: 16px; padding: 16px 14px; color: #fff;
    animation: fadeUp 0.35s ease both; position: relative; overflow: hidden;
}
.dash-stat-card::after {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.dash-stat-card:nth-child(1) { animation-delay: 0.03s; }
.dash-stat-card:nth-child(2) { animation-delay: 0.06s; }
.dash-stat-card:nth-child(3) { animation-delay: 0.09s; }
.dash-stat-card:nth-child(4) { animation-delay: 0.12s; }
.dash-stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.dash-stat-card.green { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.dash-stat-card.orange { background: linear-gradient(135deg, #f97316, #fb923c); box-shadow: 0 4px 16px rgba(249,115,22,0.3); }
.dash-stat-card:active { transform: scale(0.97); }
.dash-stat-label { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin-bottom: 4px; }
.dash-stat-value { font-size: 1.05rem; font-weight: 800; }

/* ============ BANNERS ============ */
.banner-congrats {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 14px; padding: 14px 16px; color: #fff; margin-bottom: 10px;
    display: flex; align-items: flex-start; gap: 12px;
    box-shadow: 0 4px 16px rgba(16,185,129,0.25); animation: fadeUp 0.35s ease both;
}
.banner-welcome {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 14px; padding: 14px 16px; color: #fff; margin-bottom: 14px;
    display: flex; align-items: flex-start; gap: 12px;
    box-shadow: 0 4px 16px rgba(245,158,11,0.25); animation: fadeUp 0.35s ease both; animation-delay: 0.05s;
}
.banner-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.banner-info { flex: 1; min-width: 0; }
.banner-title { font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
.banner-status {
    display: inline-block; margin-top: 4px; padding: 2px 8px;
    background: rgba(255,255,255,0.2); border-radius: 6px; font-size: 0.68rem; font-weight: 700;
}

/* ============ SECTION CARDS ============ */
.section-card {
    background: #fff; border-radius: 14px; box-shadow: var(--shadow);
    overflow: hidden; animation: fadeUp 0.35s ease both; margin-bottom: 14px;
}
.section-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid #f1f5f9;
}
.section-card-header h3 { font-size: 0.88rem; font-weight: 700; color: var(--text); }
.section-card-header a { font-size: 0.75rem; color: var(--primary); font-weight: 600; }
.section-card-body { padding: 0; }

/* ============ AD ITEM ============ */
.ad-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid #f8fafc; transition: var(--transition);
}
.ad-item:last-child { border-bottom: none; }
.ad-item:hover { background: #fafafe; }
.ad-item-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.ad-item-info { flex: 1; min-width: 0; }
.ad-item-name { font-weight: 600; font-size: 0.82rem; color: var(--text); }
.ad-item-meta { font-size: 0.7rem; color: var(--text-muted); }
.ad-item-reward { font-weight: 700; font-size: 0.82rem; color: var(--text); white-space: nowrap; }
.ad-item-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--green), #34d399);
    color: #fff; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.ad-item-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }

/* ============ EARN PAGE ============ */
.earn-top-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.earn-stat-card {
    border-radius: 14px; padding: 16px; color: #fff;
    display: flex; align-items: center; gap: 12px; animation: fadeUp 0.35s ease both;
}
.earn-stat-card.green { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.earn-stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.earn-stat-icon {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.earn-stat-icon svg { width: 20px; height: 20px; }
.earn-stat-info { flex: 1; }
.earn-stat-label { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin-bottom: 2px; }
.earn-stat-value { font-size: 1.1rem; font-weight: 800; }

.earn-progress-section {
    background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.earn-progress-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.earn-progress-label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.earn-progress-text { font-size: 0.75rem; color: var(--text-muted); }
.earn-progress-bar { width: 100%; height: 6px; background: #e2e8f0; border-radius: 10px; overflow: hidden; }
.earn-progress-fill {
    height: 100%; background: linear-gradient(90deg, var(--red), var(--orange));
    border-radius: 10px; transition: width 0.5s ease;
}

/* ============ AD LIST ITEM ============ */
.ad-list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: #fff; border-radius: 12px;
    margin: 0 16px 10px; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
    border: 1px solid #f1f5f9; transition: var(--transition);
}
.ad-list-item:hover { border-color: var(--primary-light); }
.ad-list-num {
    width: 28px; height: 28px; border-radius: 8px;
    background: #f1f5f9; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted); flex-shrink: 0;
}
.ad-list-info { flex: 1; min-width: 0; }
.ad-list-name { font-weight: 700; font-size: 0.82rem; color: var(--text); }
.ad-list-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.ad-list-reward { font-weight: 700; font-size: 0.82rem; color: var(--text); white-space: nowrap; }
.ad-list-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--green), #34d399);
    color: #fff; font-size: 0.72rem; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.ad-list-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16,185,129,0.25); }

.countdown-btn {
    padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    background: #f8fafc; color: var(--text); font-size: 0.72rem; font-weight: 700; cursor: default; white-space: nowrap;
}
.claim-btn {
    padding: 6px 14px !important; border: none !important; border-radius: 8px !important;
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #fff !important; font-size: 0.72rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); white-space: nowrap; text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.claim-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(16,185,129,0.25); color: #fff !important; }
.waiting-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    background: rgba(102,126,234,0.08); color: var(--primary);
    font-size: 0.72rem; font-weight: 700; cursor: default; white-space: nowrap;
}
.ad-done-badge {
    padding: 6px 14px; border-radius: 8px;
    background: rgba(16,185,129,0.08); color: #10b981;
    font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}

/* ============ WALLET ============ */
.wallet-balance-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.wallet-card { border-radius: 14px; padding: 18px; color: #fff; animation: fadeUp 0.35s ease both; position: relative; overflow: hidden; }
.wallet-card::after {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.wallet-card.green { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.wallet-card.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.wallet-card-label { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin-bottom: 4px; }
.wallet-card-value { font-size: 1.15rem; font-weight: 800; }
.wallet-notice { font-size: 0.75rem; color: var(--text-muted); padding: 4px 0 14px; display: flex; align-items: center; gap: 6px; }
.wallet-warning {
    font-size: 0.78rem; color: #92400e; background: #fef3c7; padding: 10px 14px;
    border-radius: 10px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}

/* ============ PROFILE ============ */
.profile-card {
    background: #fff; border-radius: 20px; padding: 28px 16px; text-align: center;
    margin-bottom: 14px; box-shadow: var(--shadow-md); animation: fadeUp 0.35s ease both;
}
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 700; margin: 0 auto 12px;
    box-shadow: 0 6px 20px rgba(239,68,68,0.3);
}
.profile-name { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.profile-joined { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }

.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.profile-stat {
    border-radius: 14px; padding: 16px; color: #fff; text-align: center;
    animation: fadeUp 0.35s ease both; position: relative; overflow: hidden;
}
.profile-stat::after {
    content: ''; position: absolute; top: -15px; right: -15px;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.profile-stat.green { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.profile-stat.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.profile-stat.orange { background: linear-gradient(135deg, #f97316, #fb923c); box-shadow: 0 4px 16px rgba(249,115,22,0.3); }
.profile-stat-val { font-weight: 800; font-size: 1rem; }
.profile-stat-lbl { font-size: 0.68rem; opacity: 0.9; margin-top: 2px; }

/* ============ REFER ============ */
.refer-link-card {
    background: #fff; border-radius: 14px; padding: 18px; margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.refer-link-label { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.refer-input-group { position: relative; margin-bottom: 10px; }
.refer-input-group .form-control {
    width: 100%; padding: 11px 14px; padding-right: 85px; font-size: 0.82rem;
    border: 1.5px solid var(--border); border-radius: 10px; background: #f8fafc; color: var(--text); font-family: inherit;
}
.refer-copy-btn {
    display: block; width: 100%; padding: 11px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.refer-copy-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
.refer-copy-btn.copied { background: linear-gradient(135deg, #10b981, #34d399); }

.refer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.refer-stat-card { border-radius: 14px; padding: 18px; color: #fff; text-align: center; animation: fadeUp 0.35s ease both; position: relative; overflow: hidden; }
.refer-stat-card::after {
    content: ''; position: absolute; top: -15px; right: -15px;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.refer-stat-card.green { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.refer-stat-card.purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 4px 16px rgba(139,92,246,0.3); }
.refer-stat-label { font-size: 0.72rem; font-weight: 600; opacity: 0.9; margin-bottom: 4px; }
.refer-stat-value { font-size: 1.3rem; font-weight: 800; }

.share-section { background: #fff; border-radius: 14px; padding: 18px; text-align: center; margin-bottom: 14px; box-shadow: var(--shadow); }
.share-title { font-size: 0.85rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.share-icons { display: flex; gap: 12px; justify-content: center; }
.share-btn {
    width: 48px; height: 48px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: var(--transition);
}
.share-btn:active { transform: scale(0.9); }
.share-btn.whatsapp { background: #25D366; color: #fff; }
.share-btn.facebook { background: #1877F2; color: #fff; }
.share-btn.twitter { background: #000; color: #fff; }
.share-btn.telegram { background: #0088CC; color: #fff; }

/* ============ NOTIFICATIONS ============ */
.notif-tabs { display: flex; gap: 0; margin-bottom: 14px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.notif-tab {
    flex: 1; padding: 10px 8px; border: none; background: transparent;
    font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
    cursor: pointer; transition: var(--transition); font-family: inherit; text-align: center; text-decoration: none;
}
.notif-tab.active { background: var(--red); color: #fff; }
.notif-tab:hover:not(.active) { background: #f1f5f9; }

.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; background: #fff; border-radius: 14px;
    margin-bottom: 10px; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
}
.notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.notif-dot.green { background: var(--success); }
.notif-dot.blue { background: var(--info); }
.notif-dot.yellow { background: var(--warning); }
.notif-dot.purple { background: var(--purple); }
.notif-info { flex: 1; }
.notif-title { font-weight: 700; font-size: 0.82rem; color: var(--text); }
.notif-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notif-time { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* ============ SETTINGS ============ */
.settings-group { margin-bottom: 16px; }
.settings-group-title { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 4px; margin-bottom: 8px; }
.settings-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; background: #fff; border-radius: 14px;
    margin-bottom: 8px; box-shadow: var(--shadow); cursor: pointer;
    transition: var(--transition); text-decoration: none; color: var(--text);
}
.settings-item:hover { background: #f8fafc; }
.settings-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.settings-icon svg { width: 18px; height: 18px; }
.settings-info { flex: 1; }
.settings-title { font-weight: 700; font-size: 0.88rem; color: var(--text); }
.settings-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; }
.settings-arrow { color: #cbd5e1; }

/* ============ WITHDRAWAL ============ */
.withdraw-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid #f1f5f9; transition: var(--transition);
}
.withdraw-item:last-child { border-bottom: none; }
.withdraw-item:hover { background: #fafafe; }
.withdraw-info { flex: 1; }
.withdraw-title { font-weight: 600; font-size: 0.85rem; }
.withdraw-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }
.status-badge.pending { background: rgba(245,158,11,0.1); color: #92400e; }
.status-badge.approved { background: rgba(16,185,129,0.1); color: #065f46; }
.status-badge.rejected { background: rgba(239,68,68,0.1); color: #991b1b; }

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-muted); }
.empty-state h3 { font-size: 0.92rem; margin-bottom: 4px; color: var(--text); }
.empty-state p { font-size: 0.82rem; }

/* ============ REFERRAL LIST ============ */
.ref-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.ref-list-item:last-child { border-bottom: none; }
.ref-list-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.ref-list-info { flex: 1; }
.ref-list-name { font-weight: 600; font-size: 0.85rem; }
.ref-list-meta { font-size: 0.68rem; color: var(--text-muted); }
.ref-list-amount { font-weight: 700; font-size: 0.82rem; color: var(--success); white-space: nowrap; }

/* ============ EARNER ITEM ============ */
.earner-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f1f5f9; }
.earner-item:last-child { border-bottom: none; }
.earner-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.earner-info { flex: 1; }
.earner-name { font-weight: 600; font-size: 0.85rem; }
.earner-meta { font-size: 0.68rem; color: var(--text-muted); }
.earner-amount { font-weight: 700; font-size: 0.82rem; color: var(--success); white-space: nowrap; }

/* ============ WHATSAPP POPUP ============ */
.wa-popup-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(4px);
}
.wa-popup-overlay.show { display: flex; }
.wa-popup-box {
    background: #fff; border-radius: 20px; padding: 32px 24px;
    max-width: 340px; width: 100%; text-align: center;
    position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-popup-close { position: absolute; top: 12px; right: 16px; font-size: 1.5rem; color: #94a3b8; cursor: pointer; }
.wa-popup-icon { width: 72px; height: 72px; border-radius: 50%; background: rgba(37,211,102,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.wa-popup-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.wa-popup-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.wa-popup-btn {
    display: block; width: 100%; padding: 13px; border: none; border-radius: 12px;
    background: #25D366; color: #fff; font-size: 0.92rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); text-decoration: none; text-align: center;
}
.wa-popup-btn:hover { background: #20ba5a; color: #fff; }
.wa-popup-dismiss { margin-top: 12px; font-size: 0.82rem; color: #94a3b8; cursor: pointer; }

/* ============ TICKER ============ */
.ticker-wrap { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ticker-strip { display: flex; align-items: center; border-radius: 12px; overflow: hidden; height: 40px; box-shadow: var(--shadow); }
.ticker-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; }
.ticker-icon svg { width: 16px; height: 16px; }
.ticker-track { flex: 1; overflow: hidden; position: relative; height: 100%; display: flex; align-items: center; }
.ticker-content { display: flex; white-space: nowrap; animation: tickerScroll 25s linear infinite; gap: 50px; }
.ticker-item { font-size: 0.75rem; font-weight: 600; color: #fff; padding: 0 25px; }
.ticker-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ticker-gold .ticker-icon { background: rgba(0,0,0,0.12); }
.ticker-blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.ticker-blue .ticker-icon { background: rgba(0,0,0,0.12); }
.ticker-green { background: linear-gradient(135deg, #10b981, #059669); }
.ticker-green .ticker-icon { background: rgba(0,0,0,0.12); }
.ticker-purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ticker-purple .ticker-icon { background: rgba(0,0,0,0.12); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============ UTILITIES ============ */
.text-center { text-align: center; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-20 { margin-bottom: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .dash-stat-card { padding: 16px 14px; }
    .dash-stat-value { font-size: 0.95rem; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); }
    .wallet-balance-cards { grid-template-columns: 1fr 1fr; }
}
