/* =============================================
   TopUp Arena - Premium Design System CSS
   Gaming Top-Up Website Animations & Custom Styles
   ============================================= */

/* CSS Variables */
:root {
    --primary: #1D4ED8;
    --primary-light: #3B82F6;
    --primary-dark: #1E3A8A;
    --primary-pale: #EFF6FF;
    --primary-50: #DBEAFE;
    --white: #FFFFFF;
    --bg-main: #F0F7FF;
    --bg-card: #FFFFFF;
    --bg-dark: #0F172A;
    --text-dark: #0F172A;
    --text-mid: #374151;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --orange: #F97316;
    --orange-light: #FFF7ED;
    --purple: #8B5CF6;
    --gradient-blue: linear-gradient(135deg, #1D4ED8, #3B82F6);
    --gradient-card: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    --shadow-sm: 0 1px 3px rgba(29,78,216,0.08);
    --shadow-md: 0 4px 16px rgba(29,78,216,0.12);
    --shadow-lg: 0 8px 32px rgba(29,78,216,0.18);
    --shadow-xl: 0 16px 48px rgba(29,78,216,0.22);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    background: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}

/* App Container - Mobile First (480px centered) */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg-main);
    position: relative;
}

@media (min-width: 481px) {
    body { background: #E2E8F0; }
    .app-container {
        box-shadow: 0 0 60px rgba(29,78,216,0.15);
        border-left: 1px solid #DBEAFE;
        border-right: 1px solid #DBEAFE;
    }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* =============================================
   ANIMATIONS
   ============================================= */

/* Fade In */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

/* Slide Up (Bottom Sheet) */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.slide-up { animation: slideUp 0.35s cubic-bezier(0.32,0.72,0,1) forwards; }

/* Slide Down */
@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.slide-down { animation: slideDown 0.3s ease-out forwards; }

/* Slide In Left (Sidebar) */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
.slide-in-left { animation: slideInLeft 0.3s cubic-bezier(0.32,0.72,0,1) forwards; }

/* Scale In */
@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.scale-in { animation: scaleIn 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* Bounce In */
@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.bounce-in { animation: bounceIn 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }

/* Shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.shake { animation: shake 0.5s ease-in-out; }

/* Pulse */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.pulse { animation: pulse 2s ease-in-out infinite; }

/* Pulse Ring (FAB) */
@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* Shimmer (Skeleton) */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
    background: linear-gradient(90deg, #EFF6FF 25%, #DBEAFE 37%, #EFF6FF 63%);
    background-size: 200px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

/* Spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--primary-50);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

/* Counter Animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Marquee */
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.marquee-text {
    animation: marquee 15s linear infinite;
    white-space: nowrap;
}

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

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.float { animation: float 3s ease-in-out infinite; }

/* Glow */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(29,78,216,0.3); }
    50% { box-shadow: 0 0 20px rgba(29,78,216,0.5), 0 0 40px rgba(59,130,246,0.2); }
}

/* =============================================
   COMPONENTS
   ============================================= */

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    pointer-events: none;
}
@keyframes ripple-anim {
    to { transform: scale(4); opacity: 0; }
}

/* Buttons */
.btn-primary {
    background: var(--gradient-blue);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(29,78,216,0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-success {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(16,185,129,0.35); }

.btn-danger {
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(239,68,68,0.35); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.card:hover {
    box-shadow: var(--shadow-md);
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Floating Label Input */
.input-group {
    position: relative;
    margin-bottom: 20px;
}
.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 14px 16px;
    padding-left: 44px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', 'Hind Siliguri', sans-serif;
    transition: all 0.3s;
    background: white;
    outline: none;
    color: var(--text-dark);
}
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.input-group .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s;
}
.input-group input:focus ~ .input-icon {
    color: var(--primary);
}
.input-group .float-label {
    position: absolute;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    background: white;
    padding: 0 4px;
}
.input-group input:focus ~ .float-label,
.input-group input:not(:placeholder-shown) ~ .float-label {
    top: 0;
    left: 12px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    transition: color 0.3s;
    background: none;
    border: none;
}
.password-toggle:hover { color: var(--primary); }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 420px;
    width: 90%;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease-out;
    position: relative;
}
.toast-success { background: #059669; color: white; }
.toast-error { background: #DC2626; color: white; }
.toast-warning { background: #D97706; color: white; }
.toast-info { background: var(--primary); color: white; }
.toast .toast-close {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; opacity: 0.7; transition: opacity 0.3s; background: none; border: none; color: inherit; font-size: 16px;
}
.toast .toast-close:hover { opacity: 1; }

/* Modal / Bottom Sheet */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.6);
    backdrop-filter: blur(4px);
    z-index: 9990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 9995;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
    max-height: 85vh;
    overflow-y: auto;
}
.bottom-sheet.active { transform: translateX(-50%) translateY(0); pointer-events: auto; }
.bottom-sheet .sheet-handle {
    width: 40px; height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    margin: 12px auto;
}

.modal-center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 420px;
    width: 90%;
    background: white;
    border-radius: var(--radius-xl);
    z-index: 9995;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    padding: 24px;
}
.modal-center.active { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }

/* Status Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
}
.badge-hot { background: #FEE2E2; color: #DC2626; }
.badge-new { background: #DBEAFE; color: #1D4ED8; }
.badge-sale { background: #D1FAE5; color: #059669; }
.badge-popular { background: #FEF3C7; color: #D97706; }

/* Wallet Card Gradient */
.wallet-card {
    background: var(--gradient-blue);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: white;
    position: relative;
    overflow: hidden;
}
.wallet-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.wallet-card::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* Header */
.top-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    box-shadow: 0 2px 12px rgba(29,78,216,0.08);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(29,78,216,0.1);
    display: flex;
    z-index: 100;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
}
.bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}
.bottom-nav a.active {
    color: var(--primary);
}
.bottom-nav a.active::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}
.bottom-nav a i { font-size: 20px; }

/* FAB Button */
.fab-support {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fab-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #DC2626;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(220,38,38,0.4);
    position: relative;
    transition: transform 0.3s;
}
.fab-btn:hover { transform: scale(1.1); }
.fab-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(220,38,38,0.3);
    animation: pulseRing 1.5s ease-out infinite;
}
.fab-label {
    background: #DC2626;
    color: white;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(220,38,38,0.3);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}
.fab-support:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

@media (min-width: 481px) {
    .fab-support { right: calc(50% - 240px + 16px); }
    .bottom-nav { border-radius: 0; }
}

/* Product Card */
.product-card {
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.product-card.selected {
    border-color: var(--orange);
    background: #FFF7ED;
}
.product-card.stock-out {
    opacity: 0.5;
    pointer-events: none;
}
.product-card .product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Game Card */
.game-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
}
.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.game-card .game-info {
    padding: 10px 12px;
}
.game-card .game-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Order Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E5E7EB;
}
.timeline-item {
    position: relative;
    padding-bottom: 24px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #E5E7EB;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #E5E7EB;
    z-index: 1;
}
.timeline-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-item.completed::before {
    background: var(--success);
    box-shadow: 0 0 0 2px var(--success);
}
.timeline-item.cancelled::before {
    background: var(--danger);
    box-shadow: 0 0 0 2px var(--danger);
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.32,0.72,0,1);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}
.sidebar.active { transform: translateX(0); }

/* Quick Amount Chips */
.amount-chip {
    padding: 10px 20px;
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-full);
    background: white;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-mid);
    transition: all 0.3s;
    font-size: 14px;
}
.amount-chip:hover,
.amount-chip.active {
    border-color: var(--primary);
    background: var(--primary-pale);
    color: var(--primary);
}

/* Password Strength */
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #E5E7EB;
    margin-top: 6px;
    overflow: hidden;
}
.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s;
}
.strength-weak { width: 25%; background: #EF4444; }
.strength-fair { width: 50%; background: #F59E0B; }
.strength-good { width: 75%; background: #3B82F6; }
.strength-strong { width: 100%; background: #10B981; }

/* Admin Styles */
.admin-sidebar {
    width: 250px;
    background: var(--bg-dark);
    min-height: 100vh;
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s;
}
.admin-sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.admin-sidebar .menu-item:hover,
.admin-sidebar .menu-item.active {
    background: rgba(59,130,246,0.1);
    color: white;
    border-left-color: var(--primary-light);
}
.admin-sidebar .menu-item i { width: 20px; text-align: center; }

.admin-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: var(--bg-main);
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        z-index: 999;
    }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.data-table th {
    background: var(--primary-pale);
    color: var(--primary-dark);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}
.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #F1F5F9;
}
.data-table tr:hover td { background: #F8FAFC; }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.loading-overlay.active { display: flex; }

/* Staggered Animation */
.stagger > * {
    opacity: 0;
    animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* Disable Selection/Context Menu */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Page Content Padding for Bottom Nav */
.page-content {
    padding-bottom: 80px;
}

/* Notification Dot */
.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
}
.notif-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #EF4444;
    border-radius: 9px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

/* Success Checkmark Animation */
@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}
@keyframes checkmark-circle {
    0% { stroke-dashoffset: 330; }
    100% { stroke-dashoffset: 0; }
}
.success-checkmark {
    width: 80px;
    height: 80px;
}
.success-checkmark circle {
    stroke: var(--success);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 330;
    animation: checkmark-circle 0.6s ease-in-out forwards;
}
.success-checkmark path {
    stroke: var(--success);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmark 0.4s 0.4s ease-in-out forwards;
}

/* Slider */
.slider-container {
    overflow: hidden;
    border-radius: var(--radius-xl);
    position: relative;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.slider-track img {
    min-width: 100%;
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* Horizontal Scroll Section */
.scroll-section {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.scroll-section::-webkit-scrollbar { display: none; }
.scroll-section > * { scroll-snap-align: start; flex-shrink: 0; }

/* Quick Link Cards */
.quick-link {
    border-left: 4px solid;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.quick-link:hover { transform: translateY(-2px); }

/* CSS Chart Bars */
.chart-bar {
    background: var(--gradient-blue);
    border-radius: 4px 4px 0 0;
    min-width: 32px;
    transition: height 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Print styles */
@media print {
    .bottom-nav, .top-header, .fab-support, .sidebar, .sidebar-overlay { display: none !important; }
    .page-content { padding-bottom: 0; }
    body { background: white; }
}
