/* ===== LUCKY REWARDS - PREMIUM DARK THEME ===== */
:root {
    --bg-primary: #0B1020;
    --bg-secondary: #111827;
    --bg-card: #151C2E;
    --bg-card-hover: #1a2340;
    --bg-glass: rgba(21, 28, 46, 0.85);
    --bg-input: #1E2740;
    --accent-gold: #FFD700;
    --accent-orange: #FF8C00;
    --accent-blue: #3B82F6;
    --accent-purple: #8B5CF6;
    --success: #00D26A;
    --danger: #FF4D4F;
    --warning: #FBBF24;
    --text-primary: #FFFFFF;
    --text-secondary: #8A8FA0;
    --text-muted: #6B7280;
    --border: rgba(255, 215, 0, 0.12);
    --border-light: rgba(255, 255, 255, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 24px rgba(255, 215, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }

/* ===== GLASS EFFECT ===== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* ===== GRADIENTS ===== */
.gradient-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
}

.gradient-purple {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
}

.gradient-red {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #f87171 100%);
}

.gradient-card {
    position: relative;
    overflow: hidden;
}

.gradient-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,215,0,0.05), transparent);
    pointer-events: none;
}

/* ===== TEXT STYLES ===== */
.text-gold { color: var(--accent-gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-lg { font-size: 20px; }
.text-xl { font-size: 24px; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* ===== HEADER ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 16, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.avatar-sm { width: 32px; height: 32px; }

.header-greeting h2 {
    font-size: 16px;
    font-weight: 600;
}

.header-greeting p {
    font-size: 12px;
    color: var(--text-secondary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.notif-btn:hover {
    background: var(--bg-card-hover);
    color: var(--accent-gold);
}

.notif-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    border: 2px solid var(--bg-primary);
}

/* ===== BALANCE CARD ===== */
.balance-card {
    background: linear-gradient(135deg, #1a237e 0%, #151C2E 50%, #0B1020 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin: 16px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.08), transparent);
    border-radius: 50%;
}

.balance-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59,130,246,0.08), transparent);
    border-radius: 50%;
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 4px;
}

.balance-usd {
    font-size: 14px;
    color: var(--text-muted);
}

.balance-stats {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.balance-stat-item {
    flex: 1;
}

.balance-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-stat-value {
    font-size: 15px;
    font-weight: 700;
    margin-top: 2px;
}

/* ===== ACTION BUTTONS ===== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    margin: 0 16px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.action-label {
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    color: var(--text-secondary);
}

/* ===== SECTION TITLES ===== */
.section {
    padding: 20px 16px 8px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
}

.section-link {
    font-size: 13px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

/* ===== CAMPAIGN CARDS ===== */
.campaign-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.campaign-card:hover {
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.campaign-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.campaign-body {
    padding: 16px;
}

.campaign-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.campaign-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.campaign-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.campaign-prizes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.prize-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.prize-gold { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }
.prize-silver { background: rgba(192, 192, 192, 0.15); color: #C0C0C0; }
.prize-bronze { background: rgba(205, 127, 50, 0.15); color: #CD7F32; }
.prize-other { background: rgba(139, 92, 246, 0.15); color: #8B5CF6; }

.progress-section {
    margin-top: 12px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
    transition: width 0.5s ease;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
}

.btn-gold:hover {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
    transform: translateY(-1px);
}

.btn-blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #fff;
}

.btn-blue:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #00D26A, #059669);
    color: #fff;
}

.btn-success:hover {
    box-shadow: 0 4px 20px rgba(0, 210, 106, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #FF4D4F, #dc2626);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CARDS CONTAINER ===== */
.cards-container {
    padding: 0 16px 80px;
}

/* ===== LEADERBOARD ===== */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
}

.leaderboard-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #000; }
.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #000; }
.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }
.rank-default { background: var(--bg-input); color: var(--text-secondary); }

.leaderboard-info {
    flex: 1;
}

.leaderboard-name {
    font-size: 14px;
    font-weight: 600;
}

.leaderboard-points {
    font-size: 12px;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ===== TASK LIST ===== */
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.3s;
}

.task-item.completed {
    border-color: rgba(0, 210, 106, 0.3);
}

.task-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.task-check.checked {
    background: var(--success);
    border-color: var(--success);
}

.task-info {
    flex: 1;
}

.task-title {
    font-size: 14px;
    font-weight: 600;
}

.task-points {
    font-size: 11px;
    color: var(--accent-gold);
    font-weight: 600;
}

.task-action-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: var(--accent-gold);
    color: #000;
}

.task-action-btn:disabled {
    background: var(--bg-input);
    color: var(--text-muted);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 16, 32, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    transition: color 0.2s;
    min-width: 56px;
}

.nav-item.active {
    color: var(--accent-gold);
}

.nav-icon {
    font-size: 20px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color 0.2s;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-gold);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ===== GIFT BOX ===== */
.gift-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
}

.gift-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gift-box-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}

.gift-box-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.gift-box-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gift-box-price {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ===== WALLET PAGE ===== */
.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.wallet-action-btn {
    padding: 16px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ===== ADMIN ===== */
.admin-sidebar {
    width: 240px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
}

.admin-content {
    margin-left: 240px;
    padding: 20px;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== TABLE ===== */
.table-wrap {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-success { background: rgba(0, 210, 106, 0.15); color: var(--success); }
.badge-danger { background: rgba(255, 77, 79, 0.15); color: var(--danger); }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.badge-gold { background: rgba(255, 215, 0, 0.15); color: var(--accent-gold); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.empty-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== CONFETTI / WINNER ANIMATION ===== */
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.confetti {
    position: fixed;
    top: 0;
    pointer-events: none;
    z-index: 300;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.winner-animation {
    animation: pulse-gold 2s ease-in-out infinite;
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.count-up {
    animation: count-up 0.5s ease-out;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 300;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    pointer-events: auto;
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-gold { border-color: var(--accent-gold); }

/* ===== DRAWER (Slide-up Panel) ===== */
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom);
}

.drawer.show {
    transform: translateY(0);
}

.drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 4px;
    margin: 12px auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .balance-amount { font-size: 26px; }
    .action-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .action-label { font-size: 10px; }
    .action-icon { width: 40px; height: 40px; font-size: 18px; }
    .gift-box-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 768px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        border-left: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
        min-height: 100vh;
    }
    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
    .toast {
        max-width: 480px;
    }
}

/* ===== LOADING SPINNER ===== */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--bg-input);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ===== TRANSACTION LIST ===== */
.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tx-info { flex: 1; }
.tx-title { font-size: 14px; font-weight: 600; }
.tx-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.tx-amount { font-size: 14px; font-weight: 700; }

/* ===== NOTIFICATION LIST ===== */
.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: all 0.2s;
}

.notif-item.unread {
    border-left: 3px solid var(--accent-gold);
}

.notif-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-message { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
