/* =====================================================
   MyAds - Clean Minimal Purple Theme
   ===================================================== */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --primary-bg: rgba(124, 58, 237, 0.08);
    --bg: #f5f6fa;
    --bg-card: #ffffff;
    --text: #1a1d2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --transition: all 0.2s 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: 960px; margin: 0 auto; padding: 0 14px; }
.main-content { padding-top: 56px; padding-bottom: 20px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 11px 20px; border: none; border-radius: 10px;
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: var(--transition); text-decoration: none; line-height: 1; font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; box-shadow: 0 2px 10px rgba(124,58,237,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(124,58,237,0.35); 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: 5px; color: var(--text); }
.form-control {
    width: 100%; padding: 10px 12px; 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 var(--primary-bg); }
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 10px center; padding-right: 30px;
}

/* Alerts */
.alert { padding: 10px 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.35); z-index: 1999;
    opacity: 0; visibility: hidden; transition: all 0.25s ease; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

.sidebar {
    position: fixed; top: 0; left: -260px; bottom: 0;
    width: 260px; background: #fff; z-index: 2000;
    display: flex; flex-direction: column;
    box-shadow: 2px 0 20px rgba(0,0,0,0.08);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar.open { left: 0; }

.sidebar-header {
    padding: 18px 18px 14px; display: flex; align-items: center; justify-content: space-between;
}
.sidebar-logo { font-weight: 800; font-size: 1.1rem; color: var(--primary); }
.sidebar-close {
    background: none; border: none; cursor: pointer; color: #9ca3af;
    padding: 4px; border-radius: 8px; display: flex; transition: var(--transition);
}
.sidebar-close:hover { background: #f3f4f6; color: var(--text); }

.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px; margin: 0 12px; border-radius: 12px; background: #f8f9ff;
}
.sidebar-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: #fff; font-weight: 700; font-size: 0.85rem;
    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.82rem; color: var(--text); }
.sidebar-user-sub { font-size: 0.7rem; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 8px 0; overflow-y: auto; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px; color: var(--text-muted); font-size: 0.82rem; font-weight: 500;
    transition: var(--transition); text-decoration: none; margin: 1px 0;
}
.sidebar-link:hover { background: #f8f9ff; color: var(--primary); }
.sidebar-link.active { background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-badge {
    margin-left: auto; background: var(--danger); color: #fff;
    font-size: 0.6rem; font-weight: 700; padding: 1px 6px;
    border-radius: 8px; min-width: 16px; text-align: center; line-height: 1.4;
}

.sidebar-bottom { padding: 10px 12px; border-top: 1px solid var(--border); }
.sidebar-logout { color: var(--danger) !important; }
.sidebar-logout:hover { background: rgba(239,68,68,0.05) !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: 960px; margin: 0 auto; padding: 10px 14px;
}
.top-bar-logo { text-decoration: none; font-weight: 800; font-size: 1rem; color: var(--primary); }

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

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative; overflow: hidden;
}
.auth-page::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: authBgMove 15s ease-in-out infinite;
}
@keyframes authBgMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}
.auth-box {
    width: 100%; max-width: 400px; background: #fff;
    border-radius: 20px; padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative; z-index: 1;
    animation: authBoxIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authBoxIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-box .logo { text-align: center; margin-bottom: 28px; }
.auth-box .logo .logo-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: #fff;
    box-shadow: 0 8px 24px rgba(102,126,234,0.35);
}
.auth-box .logo h1 { font-size: 1.4rem; font-weight: 800; color: #1a1d2e; letter-spacing: -0.5px; }
.auth-box .logo p { color: #6b7280; font-size: 0.85rem; 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: #9ca3af; pointer-events: none; display: flex; align-items: center;
}
.auth-input-group input {
    width: 100%; padding: 13px 14px 13px 42px; font-size: 0.9rem;
    border: 2px solid #e5e7eb; border-radius: 12px;
    background: #f9fafb; color: #1a1d2e; outline: none; font-family: inherit; transition: all 0.3s ease;
}
.auth-input-group input:focus { border-color: #667eea; background: #fff; box-shadow: 0 0 0 4px rgba(102,126,234,0.1); }
.auth-input-group input::placeholder { color: #9ca3af; }

.auth-submit {
    width: 100%; padding: 13px; font-size: 0.95rem; font-weight: 700;
    border: none; border-radius: 12px; cursor: pointer;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; box-shadow: 0 4px 16px rgba(102,126,234,0.35);
    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(102,126,234,0.45); }
.auth-submit:active { transform: translateY(0); }

.auth-footer {
    text-align: center; margin-top: 20px; padding-top: 18px;
    border-top: 1px solid #e5e7eb; font-size: 0.85rem; color: #6b7280;
}
.auth-footer a { color: #667eea; font-weight: 700; }
.auth-footer a:hover { text-decoration: underline; }

/* ============ DASHBOARD STATS ============ */
.dash-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px;
}
.dash-stat-card {
    background: #fff; border-radius: 12px; padding: 14px 12px; box-shadow: var(--shadow);
    transition: var(--transition); animation: fadeUp 0.35s ease both;
}
.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:active { transform: scale(0.98); }
.dash-stat-label { font-size: 0.68rem; font-weight: 500; color: var(--text-muted); margin-bottom: 4px; }
.dash-stat-value { font-size: 1rem; font-weight: 800; color: var(--text); }
.dash-stat-sub { font-size: 0.62rem; color: var(--success); font-weight: 600; margin-top: 2px; }

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

/* ============ DASHBOARD GRID ============ */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }

/* ============ AD ITEM ============ */
.ad-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f8f9fa; 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(--primary), #ec4899);
    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.8rem; color: var(--text); }
.ad-item-meta { font-size: 0.68rem; color: var(--text-muted); }
.ad-item-reward { font-weight: 700; font-size: 0.78rem; color: var(--text); white-space: nowrap; }
.ad-item-btn {
    padding: 5px 12px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 0.68rem; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.ad-item-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(124,58,237,0.25); }

/* ============ ACTIVITY ITEM ============ */
.activity-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid #f8f9fa;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.activity-dot.green { background: var(--success); }
.activity-dot.blue { background: var(--info); }
.activity-dot.yellow { background: var(--warning); }
.activity-dot.purple { background: var(--primary); }
.activity-info { flex: 1; }
.activity-title { font-weight: 600; font-size: 0.78rem; color: var(--text); }
.activity-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 1px; }
.activity-amount { font-weight: 700; font-size: 0.78rem; white-space: nowrap; color: var(--success); }

/* ============ QUICK ACTIONS ============ */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.quick-action {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 6px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow); text-decoration: none; color: var(--text);
    transition: var(--transition); animation: fadeUp 0.35s ease both;
}
.quick-action:active { transform: scale(0.96); }
.quick-action-icon {
    width: 40px; height: 40px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
}
.quick-action-icon svg { width: 18px; height: 18px; }
.quick-action-label { font-size: 0.68rem; font-weight: 600; text-align: center; }

/* ============ CONGRATS BANNER ============ */
.congrats-banner {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px; padding: 16px; color: #fff; margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 3px 12px rgba(5,150,105,0.25); animation: fadeUp 0.35s ease both;
}
.congrats-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.congrats-info { flex: 1; }
.congrats-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 1px; }
.congrats-text { font-size: 0.75rem; opacity: 0.9; }
.congrats-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;
}

/* ============ EARN PAGE ============ */
.earn-top-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.earn-stat-card {
    border-radius: 12px; padding: 14px; color: #fff;
    display: flex; align-items: center; gap: 10px; animation: fadeUp 0.35s ease both;
}
.earn-stat-card.green { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 3px 12px rgba(5,150,105,0.25); }
.earn-stat-card.purple { background: linear-gradient(135deg, #2563eb, #7c3aed); box-shadow: 0 3px 12px rgba(37,99,235,0.25); }
.earn-stat-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.earn-stat-icon svg { width: 18px; height: 18px; }
.earn-stat-info { flex: 1; }
.earn-stat-label { font-size: 0.68rem; font-weight: 500; opacity: 0.85; margin-bottom: 2px; }
.earn-stat-value { font-size: 1rem; font-weight: 800; }

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

/* ============ AD LIST ITEM ============ */
.ad-list-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; background: #fff; border-radius: 12px;
    margin-bottom: 8px; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
    border: 1px solid #f3f4f6; transition: var(--transition);
}
.ad-list-item:hover { border-color: var(--primary-light); }
.ad-list-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}
.ad-list-icon svg { width: 16px; height: 16px; }
.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.68rem; color: var(--text-muted); margin-top: 1px; }
.ad-list-reward { font-weight: 700; font-size: 0.8rem; color: var(--text); white-space: nowrap; margin-right: 2px; }
.ad-list-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    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(124,58,237,0.25); }

.countdown-btn {
    padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 8px;
    background: #f9fafb; 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, #059669, #10b981) !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(5,150,105,0.25); color: #fff !important; }
.waiting-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    background: rgba(37,99,235,0.08); color: var(--info);
    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: #059669;
    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: 12px; padding: 16px; color: #fff; animation: fadeUp 0.35s ease both; }
.wallet-card.green { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 3px 12px rgba(5,150,105,0.25); }
.wallet-card.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 3px 12px rgba(124,58,237,0.25); }
.wallet-card-label { font-size: 0.68rem; font-weight: 500; opacity: 0.85; margin-bottom: 3px; }
.wallet-card-value { font-size: 1.1rem; font-weight: 800; }
.wallet-notice { font-size: 0.72rem; color: var(--text-muted); padding: 4px 0 12px; display: flex; align-items: center; gap: 4px; }

/* ============ PROFILE ============ */
.profile-card {
    background: #fff; border-radius: 16px; padding: 24px 16px; text-align: center;
    margin-bottom: 12px; box-shadow: var(--shadow-sm); animation: fadeUp 0.35s ease both;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; font-weight: 700; margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}
.profile-name { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.profile-joined { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.profile-stat { background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both; }
.profile-stat-val { font-weight: 800; font-size: 0.9rem; color: var(--text); }
.profile-stat-lbl { font-size: 0.62rem; color: var(--text-muted); margin-top: 1px; }
.profile-ads-card { background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: var(--shadow); margin-bottom: 12px; }
.profile-ads-value { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.profile-ads-label { font-size: 0.75rem; color: var(--text-muted); }

/* ============ REFER ============ */
.refer-link-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.refer-link-label { font-size: 0.78rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.refer-input-group { position: relative; margin-bottom: 8px; }
.refer-input-group .form-control {
    width: 100%; padding: 10px 12px; padding-right: 80px; font-size: 0.8rem;
    border: 1.5px solid var(--border); border-radius: 10px; background: #f9fafb; color: var(--text); font-family: inherit;
}
.refer-copy-btn {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    padding: 6px 12px; border: none; border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.refer-copy-btn:hover { box-shadow: 0 2px 8px rgba(124,58,237,0.25); }
.refer-copy-btn.copied { background: linear-gradient(135deg, #059669, #10b981); }
.refer-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.refer-stat-card { border-radius: 12px; padding: 16px; color: #fff; text-align: center; animation: fadeUp 0.35s ease both; }
.refer-stat-card.green { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 3px 12px rgba(5,150,105,0.25); }
.refer-stat-card.purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); box-shadow: 0 3px 12px rgba(124,58,237,0.25); }
.refer-stat-label { font-size: 0.68rem; font-weight: 500; opacity: 0.85; margin-bottom: 3px; }
.refer-stat-value { font-size: 1.2rem; font-weight: 800; }
.share-section { background: #fff; border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; box-shadow: var(--shadow); }
.share-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.share-icons { display: flex; gap: 10px; justify-content: center; }
.share-btn {
    width: 44px; height: 44px; 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: 12px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.notif-tab {
    flex: 1; padding: 9px 6px; border: none; background: transparent;
    font-size: 0.72rem; 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(--primary); color: #fff; }
.notif-tab:hover:not(.active) { background: #f3f4f6; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; background: #fff; border-radius: 12px;
    margin-bottom: 8px; box-shadow: var(--shadow); animation: fadeUp 0.35s ease both;
}
.notif-dot { width: 8px; height: 8px; 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(--primary); }
.notif-info { flex: 1; }
.notif-title { font-weight: 700; font-size: 0.8rem; color: var(--text); }
.notif-desc { font-size: 0.72rem; color: var(--text-muted); margin-top: 1px; line-height: 1.4; }
.notif-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 3px; }

/* ============ WITHDRAWAL ITEM ============ */
.withdraw-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px; border-bottom: 1px solid #f8f9fa; 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.82rem; }
.withdraw-meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; }
.status-badge { padding: 3px 10px; border-radius: 20px; font-size: 0.68rem; 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: 28px 16px; color: var(--text-muted); }
.empty-state h3 { font-size: 0.88rem; margin-bottom: 3px; color: var(--text); }
.empty-state p { font-size: 0.78rem; }

/* ============ REFERRAL LIST ============ */
.ref-list-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f8f9fa; }
.ref-list-item:last-child { border-bottom: none; }
.ref-list-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.ref-list-info { flex: 1; }
.ref-list-name { font-weight: 600; font-size: 0.8rem; }
.ref-list-meta { font-size: 0.65rem; color: var(--text-muted); }
.ref-list-amount { font-weight: 700; font-size: 0.78rem; color: var(--success); white-space: nowrap; }

/* ============ EARNER ITEM ============ */
.earner-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f8f9fa; }
.earner-item:last-child { border-bottom: none; }
.earner-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.earner-info { flex: 1; }
.earner-name { font-weight: 600; font-size: 0.8rem; }
.earner-meta { font-size: 0.65rem; color: var(--text-muted); }
.earner-amount { font-weight: 700; font-size: 0.78rem; 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.45); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.wa-popup-overlay.show { display: flex; }
.wa-popup-box {
    background: #fff; border-radius: 18px; padding: 28px 20px;
    max-width: 320px; width: 100%; text-align: center;
    position: relative; box-shadow: 0 16px 48px rgba(0,0,0,0.18);
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wa-popup-close { position: absolute; top: 10px; right: 14px; font-size: 1.3rem; color: #9ca3af; cursor: pointer; }
.wa-popup-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(37,211,102,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.wa-popup-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.wa-popup-desc { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 18px; }
.wa-popup-btn {
    display: block; width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: #25D366; color: #fff; font-size: 0.88rem; 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: 10px; font-size: 0.78rem; color: #9ca3af; cursor: pointer; }

/* ============ TICKER ============ */
.ticker-wrap { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ticker-strip { display: flex; align-items: center; border-radius: 10px; overflow: hidden; height: 36px; box-shadow: var(--shadow); }
.ticker-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; }
.ticker-icon svg { width: 14px; height: 14px; }
.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.72rem; 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, #059669, #047857); }
.ticker-green .ticker-icon { background: rgba(0,0,0,0.12); }
.ticker-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.ticker-purple .ticker-icon { background: rgba(0,0,0,0.12); }

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    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: 768px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .dash-stats { grid-template-columns: repeat(2, 1fr); }
    .dash-stat-card { padding: 12px 10px; }
    .dash-stat-value { font-size: 0.88rem; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .congrats-banner { flex-direction: column; text-align: center; }
}
