/* CSS Variables */
:root {
    /* Colors */
    --primary-blue: #57a8ea;
    --primary-purple: #764ba2;
    --accent-green: #43e97b;
    --accent-pink: #f093fb;
    --accent-orange: #ff6b6b;
    
    --primary-gradient: linear-gradient(135deg, #1968c1 0%, #83c1e8 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    
    /* Light Theme */
    --light-bg: #f8fafc;
    --light-card: #ffffff;
    --light-surface: #f1f5f9;
    --light-border: #e2e8f0;
    --light-hover: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    
    /* Shadows */
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Fonts */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Consolas', monospace;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme */
body.dark-mode {
    --light-bg: #0f172a;
    --light-card: #1e293b;
    --light-surface: #334155;
    --light-border: #475569;
    --light-hover: #334155;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Navbar Styles */
body.dark-mode .light-nav {
    background: var(--light-card) !important;
    border-bottom: 1px solid var(--light-border) !important;
    backdrop-filter: blur(10px);
}

body.dark-mode .light-nav .navbar-brand {
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .nav-link {
    color: var(--text-secondary) !important;
}

body.dark-mode .light-nav .nav-link:hover {
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .sidebar-toggle-btn {
    background: none !important;
    border: none !important;
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .sidebar-toggle-btn:hover {
    background: var(--light-hover) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .dark-mode-btn {
    background: var(--light-surface) !important;
    border-color: var(--light-border) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .dark-mode-btn:hover {
    background: var(--light-hover) !important;
    border-color: var(--primary-blue) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .light-nav .dark-mode-btn.active {
    background: var(--light-surface) !important;
    border-color: var(--light-border) !important;
    color: var(--text-primary) !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Shared App Styles for All Pages */

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: var(--light-card);
    border-right: 1px solid var(--light-border);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    z-index: 1002; /* Higher than navbar to overlay it */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    transform: translateX(0);
    overflow-y: auto; /* Make sidebar scrollable */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.dashboard-sidebar.collapsed {
    transform: translateX(-100%);
    width: 250px; /* Keep width for smooth animation */
}

/* Desktop sidebar positioning */
@media (min-width: 769px) {
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 250px;
        height: 100vh;
    }
    
    .dashboard-sidebar.collapsed {
        transform: translateX(-100%);
    }
}

.dashboard-sidebar.collapsed .brand-text,
.dashboard-sidebar.collapsed .menu-title,
.dashboard-sidebar.collapsed .sidebar-item span,
.dashboard-sidebar.collapsed .user-name,
.dashboard-sidebar.collapsed .user-status {
    opacity: 0;
    visibility: hidden;
}

.dashboard-sidebar.collapsed .sidebar-item {
    justify-content: center;
}

.dashboard-sidebar.collapsed .user-info {
    justify-content: center;
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--light-border);
    background: var(--light-surface);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-blue);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.sidebar-brand i {
    font-size: 1.5rem;
}

.brand-text {
    transition: all 0.3s ease;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--light-hover);
    color: var(--text-primary);
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Ensure dropdowns are part of sidebar flow */
.sidebar-menu .sidebar-dropdown {
    position: static;
}

.menu-section {
    margin-bottom: 2rem;
}

.menu-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-item:hover {
    background: var(--light-surface);
    color: var(--text-primary);
    border-left-color: var(--primary-blue);
}

.sidebar-item.active {
    background: var(--primary-gradient);
    color: white;
    border-left-color: var(--primary-blue);
    box-shadow: var(--shadow-light);
}

.sidebar-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-item span {
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Custom Sidebar Dropdown Styles */
.sidebar-dropdown {
    position: static;
}

.sidebar-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.sidebar-dropdown .dropdown-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: static;
    width: 100%;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.sidebar-dropdown.active .sidebar-dropdown-menu {
    max-height: 200px;
    opacity: 1;
}

.sidebar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: static;
    width: 100%;
    transform: translateY(-10px);
    opacity: 0;
}

.currency-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon .currency-icon {
    width: 40px;
    height: 40px;
}

.sidebar-dropdown.active .sidebar-dropdown-item {
    transform: translateY(0);
    opacity: 1;
}

.sidebar-dropdown-item:hover {
    background: var(--light-surface);
    color: var(--text-primary);
    border-left-color: var(--primary-blue);
}

.sidebar-dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-dropdown-item span {
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Dark mode dropdown styles */
body.dark-mode .sidebar-dropdown-menu {
    background: transparent;
    border: none;
}

body.dark-mode .sidebar-dropdown-item {
    color: var(--text-secondary);
    border-left-color: transparent;
}

body.dark-mode .sidebar-dropdown-item:hover {
    background: var(--dark-surface);
    color: var(--text-primary);
    border-left-color: var(--primary-blue);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--light-border);
    background: var(--light-surface);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-border);
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Withdrawal table avatars cycle through these instead of all using the same
   blue gradient. */
.user-avatar.avatar-blue { background: linear-gradient(135deg, #2196F3 0%, #6ec1f7 100%); }
.user-avatar.avatar-green { background: linear-gradient(135deg, #34C38F 0%, #6fe0b8 100%); }
.user-avatar.avatar-indigo { background: linear-gradient(135deg, #1B55E2 0%, #5b85f5 100%); }
.user-avatar.avatar-purple { background: linear-gradient(135deg, #5C1AC3 0%, #9a6ae0 100%); }

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-status {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Above navbar (1001) to overlay it */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Design for Sidebar */
@media (max-width: 768px) {
    /* Sidebar for mobile - overlays navbar */
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        transform: translateX(-100%);
        z-index: 1003; /* Highest - above overlay and navbar */
        transition: transform 0.3s ease;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto; /* Make sidebar scrollable */
        overflow-x: hidden;
    }
    
    .dashboard-sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    }
    
    /* Enhanced sidebar header on mobile */
    .dashboard-sidebar.mobile-open .sidebar-header {
        background: var(--primary-gradient);
        color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .dashboard-sidebar.mobile-open .sidebar-brand {
        color: white;
        font-weight: 700;
    }
    
    .dashboard-sidebar.mobile-open .sidebar-brand i {
        color: white;
    }
    
    /* Show all text and elements on mobile when sidebar is open */
    .dashboard-sidebar.mobile-open .brand-text,
    .dashboard-sidebar.mobile-open .menu-title,
    .dashboard-sidebar.mobile-open .sidebar-item span,
    .dashboard-sidebar.mobile-open .user-name,
    .dashboard-sidebar.mobile-open .user-status {
        opacity: 1;
        visibility: visible;
    }
    
    .dashboard-sidebar.mobile-open .sidebar-item {
        justify-content: flex-start;
    }
    
    .dashboard-sidebar.mobile-open .user-info {
        justify-content: flex-start;
    }
    
    /* Navbar for mobile - less focused */
    #topNavbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        z-index: 1000; /* Lower than overlay (1001) */
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode #topNavbar {
        background: var(--light-card) !important;
        border-bottom: 1px solid var(--light-border) !important;
    }
    
    /* Make navbar elements less prominent on mobile */
    #topNavbar .navbar-brand {
        font-size: 0.9rem;
        opacity: 0.8;
    }
    
    #topNavbar .sidebar-toggle-btn {
        opacity: 0.8;
        border: none;
    }

    #topNavbar .dark-mode-btn {
        opacity: 0.8;
        border: 1px solid rgba(0, 0, 0, 0.2);
    }

    #topNavbar .nav-link {
        opacity: 0.8;
        font-size: 0.85rem;
    }

    body.dark-mode #topNavbar .sidebar-toggle-btn {
        background: none !important;
        border: none !important;
        color: var(--text-primary) !important;
    }

    body.dark-mode #topNavbar .dark-mode-btn {
        background: var(--light-surface) !important;
        border: 1px solid var(--light-border) !important;
        color: var(--text-primary) !important;
    }
    
    /* Main content for mobile */
    .main-content-area {
        margin-left: 0;
        padding: 1rem;
        top: 70px;
    }
}

/* Main Content Layout */
.main-content {
    padding: 0;
    background: var(--light-bg);
    padding-top: var(--header-h, 70px); /* Account for fixed navbar's real height */
    transition: all 0.3s ease;
    flex: 1 0 auto; /* grows to fill the viewport on short pages, pushing the
                        footer to the bottom - see the body rule below */
}

/* Sticky footer: on a page shorter than the viewport, this pushes the
   footer flush to the bottom instead of leaving a gap below it (the old
   fix for that gap was `.main-content { min-height: 100vh }`, which instead
   forced a full screen of space before the footer no matter how short the
   real content was). The fixed/absolute-positioned nav, sidebar and modals
   aren't part of normal flow, so they're unaffected by body becoming flex. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Desktop Layout */
@media (min-width: 769px) {
    /* Main Content Area */
    .main-content-area {
        margin-left: 250px;
        padding: 2rem;
        transition: all 0.3s ease;
    }

    /* When sidebar is collapsed, content takes full width */
    body.sidebar-collapsed .main-content-area {
        margin-left: 0;
    }

    /* Top navbar positioning */
    #topNavbar {
        left: 250px;
        right: 0;
        transition: all 0.3s ease;
    }

    body.sidebar-collapsed #topNavbar {
        left: 0;
    }

    /* Footer positioning */
    .light-footer {
        margin-left: 250px;
        transition: all 0.3s ease;
    }

    body.sidebar-collapsed .light-footer {
        margin-left: 0;
    }
}

/* Footer Styles */
.light-footer {
    background: var(--light-card);
    border-top: 1px solid var(--light-border);
    padding: 0rem 0;
    margin-top: 0rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Top Navigation Styles */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background: var(--light-hover);
    color: var(--text-primary);
}

.dark-mode-btn {
    background: none;
    border: 1px solid var(--light-border);
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.dark-mode-btn:hover {
    background: var(--light-hover);
    color: var(--text-primary);
    border-color: var(--primary-blue);
}

.dark-mode-btn.active {
    background: none;
    border-color: var(--light-border);
}

/* Sun/moon swap - moon shows (dark-colored) in light mode, sun shows
   (yellow) once dark mode is active, instead of one static moon icon. */
.dark-mode-btn .icon-sun { display: none; }
.dark-mode-btn .icon-moon { display: inline-block; color: var(--text-primary); }
body.dark-mode .dark-mode-btn .icon-moon { display: none; }
body.dark-mode .dark-mode-btn .icon-sun { display: inline-block; color: #fbbf24; }

/* Page Headers */
.page-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.dashboard-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 3rem;
}

.welcome-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.welcome-icon {
    width: 120px;
    height: 120px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

.welcome-vector {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.welcome-text {
    flex: 1;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.user-name {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.welcome-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.welcome-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    gap: 0.75rem;
}

.welcome-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.welcome-btn.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.welcome-btn.btn-primary:hover {
    background: var(--primary-gradient);
    filter: brightness(1.1);
}

.welcome-btn.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.welcome-btn.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-3px);
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

/* Faucet Info Cards */
.faucet-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* Remove gradient background only for currency cards */
.info-card:has(.currency-icon) .info-icon {
    background: transparent;
}

.info-content {
    flex: 1;
}

.info-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sitewide stat cards (Happy Users / Claims / Challenges / Online Users),
   shown on both the homepage and the dashboard - a colored number band on
   top of a plain card body, each stat its own accent color, matching
   onlyfaucet's stat cards exactly. Separate from .info-card (used for
   currency rows elsewhere) so that component is untouched. */
.site-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.site-stat-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.site-stat-band {
    padding: 0.85rem 1rem;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}

.site-stat-body {
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.site-stat-body .feather {
    width: 26px;
    height: 26px;
    stroke-width: 2.25;
}

.site-stat-body span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.site-stat-blue .site-stat-band { background: #2196F3; }
.site-stat-blue .site-stat-body .feather { color: #2196F3; }

.site-stat-green .site-stat-band { background: #34C38F; }
.site-stat-green .site-stat-body .feather { color: #34C38F; }

.site-stat-indigo .site-stat-band { background: #1B55E2; }
.site-stat-indigo .site-stat-body .feather { color: #1B55E2; }

.site-stat-purple .site-stat-band { background: #5C1AC3; }
.site-stat-purple .site-stat-body .feather { color: #5C1AC3; }

/* Faucet Claim Section */
.faucet-claim-section {
    margin-bottom: 2rem;
}

.claim-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.claim-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.claim-header {
    text-align: center;
    margin-bottom: 2rem;
}

.claim-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.claim-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.claim-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.captcha-image {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    padding: 1rem;
    min-height: 60px;
}

.captcha-question {
    flex: 1;
    text-align: center;
}

.captcha-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.captcha-refresh {
    margin-left: 1rem;
    padding: 0.5rem;
    border: 1px solid var(--light-border);
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: var(--light-hover);
    color: var(--primary-blue);
}

.claim-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-claim {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
    justify-content: center;
}

.btn-claim:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-claim:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Dark mode styles for faucet */
body.dark-mode .info-card {
    background: var(--light-card);
    border-color: var(--light-border);
}

body.dark-mode .claim-card {
    background: var(--light-card);
    border-color: var(--light-border);
}

body.dark-mode .form-control {
    background: var(--light-bg);
    border-color: var(--light-border);
    color: var(--text-primary);
}

body.dark-mode .captcha-image {
    background: var(--light-bg);
    border-color: var(--light-border);
}

body.dark-mode .captcha-refresh {
    border-color: var(--light-border);
    color: var(--text-secondary);
}

body.dark-mode .captcha-refresh:hover {
    background: var(--light-hover);
    color: var(--primary-blue);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

/* Referral page stat icons get their own colors instead of both using the
   same blue gradient. */
.referral-stats .stat-card:nth-of-type(1) .stat-icon { background: linear-gradient(135deg, #2196F3 0%, #6ec1f7 100%); }
.referral-stats .stat-card:nth-of-type(2) .stat-icon { background: linear-gradient(135deg, #5C1AC3 0%, #9a6ae0 100%); }

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-primary);
}

.stat-label {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    display: block;
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.action-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.action-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Currency Cards */
.currency-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.currency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
}

.currency-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.currency-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.currency-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}

.currency-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
}

.currency-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

.currency-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.currency-actions .btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* User preferred currency styling */
.currency-card.user-preferred {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 2px rgba(67, 233, 123, 0.1);
}

.currency-card.user-preferred::before {
    background: var(--success-gradient);
}

.currency-card.user-preferred .currency-logo {
    border: 2px solid var(--accent-green);
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Recent Activity */
.recent-activity {
    margin-bottom: 2rem;
}

.activity-list {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    background: var(--light-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.activity-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-family: var(--font-primary);
}

.activity-content p {
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
}

.activity-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Referral Styles */
.referral-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.referral-link-section {
    margin-bottom: 2rem;
}

.referral-link-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.referral-link-input {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.referral-link-input .form-control {
    flex: 1;
}

.referral-note {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.referral-benefits {
    margin-bottom: 2rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.referrals-table {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

/* Faucet Styles */
.faucet-timer-section {
    margin-bottom: 2rem;
}

.timer-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-light);
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--light-surface);
    border: 4px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-gradient) 0deg, transparent 0deg);
    transition: all 0.1s ease;
}

.timer-content {
    text-align: center;
    z-index: 1;
}

.timer-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
    margin: 0;
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin: 0;
}

.timer-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.timer-info p {
    color: var(--text-secondary);
    margin: 0;
}

.faucet-claim-section {
    margin-bottom: 2rem;
}

.claim-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.claim-header {
    text-align: center;
    margin-bottom: 2rem;
}

.claim-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

.reward-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-primary);
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.claim-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.captcha-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.captcha-image {
    width: 120px;
    height: 40px;
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
}

.btn-claim {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.faucet-stats {
    margin-bottom: 2rem;
}

.faucet-rules {
    margin-bottom: 2rem;
}

.rules-list {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-border);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-item i {
    color: var(--success-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rule-item span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Challenge Styles */
.challenge-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.challenges-section {
    margin-bottom: 2rem;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    cursor: pointer;
}

.challenge-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.challenge-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-primary);
}

.challenge-difficulty {
    background: var(--accent-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.challenge-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.challenge-reward {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reward-amount {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success-color);
    font-family: var(--font-primary);
}

.challenge-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.challenge-btn {
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
}

.leaderboard-section {
    margin-bottom: 2rem;
}

.leaderboard-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.leaderboard-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-primary);
}

.leaderboard-period select {
    width: 150px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-border);
}

.leaderboard-rank {
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.leaderboard-user {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.leaderboard-score {
    font-weight: 600;
    color: var(--success-color);
    font-family: var(--font-primary);
}

.challenge-rules {
    margin-bottom: 2rem;
}

/* Contact Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.contact-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.contact-form-section {
    margin-bottom: 2rem;
}

.contact-form-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    background: var(--light-bg);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.btn-submit {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.faq-preview {
    margin-bottom: 2rem;
}

.faq-list {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-light);
}

.faq-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.faq-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.faq-link {
    text-align: center;
}

/* FAQ Styles */
.faq-search {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box .form-control {
    padding-left: 3rem;
}

.faq-categories {
    margin-bottom: 2rem;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--light-border);
    background: var(--light-card);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    background: var(--light-hover);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-blue);
}

.faq-items {
    margin-bottom: 2rem;
}

.faq-item {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--light-hover);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-primary);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.help-section {
    margin-bottom: 2rem;
}

.help-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.help-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Shortlinks Specific Styles */
.totals-section {
    margin-bottom: 2rem;
}

.totals-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
}

.total-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.total-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-blue);
}

.total-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.total-content {
    flex: 1;
}

.total-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
    margin: 0;
    line-height: 1;
}

.total-label {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.shortlinks-section {
    margin-bottom: 2rem;
}

/* Shared with the faucet claim page's coin header / help button (faucet.php
   has its own copy of these two rules inline for historical reasons - kept
   here too so other pages, like Shortlinks, can use the same look). */
.faucet-coin-header { text-align: center; margin-bottom: 1.5rem; }
.faucet-coin-header img { width: 44px; height: 44px; margin-bottom: 0.5rem; }
.faucet-coin-header h2 { font-weight: 700; margin: 0; color: var(--text-primary); }

.help-link-btn {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.5rem;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.85rem;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
}
.help-link-btn:hover { background: #c82333; color: #fff; }

/* Shortlinks page - onlyfaucet-style earn summary + reset notice + per-provider
   cards, in place of the old badge-heavy card layout. */
.earn-summary-box {
    max-width: 560px;
    margin: 0 auto 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    color: var(--text-primary);
    font-size: 1.05rem;
}
.earn-summary-box strong { color: var(--primary-blue); }
.earn-summary-box .earn-summary-count { color: #dc3545; }

.resets-banner {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    padding: 0.85rem 1.25rem;
    text-align: center;
    border-radius: var(--border-radius-lg);
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, #1B55E2 0%, #5C1AC3 100%);
}

/* Admin-editable claim-page banner + fixed-time ban auto-unban marquee -
   shared by the faucet and shortlink claim pages (faucet.php also has its
   own copy inline for historical reasons, kept in sync with this one). */
.claim-banner {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.25rem;
    background: #0000FF;
    color: #fff;
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    text-align: center;
    font-weight: 700;
}

.unban-marquee {
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.25rem;
    overflow: hidden;
    background: #000;
    border-radius: var(--border-radius);
    padding: 0.6rem 0;
}
.unban-marquee-track {
    display: inline-block;
    white-space: nowrap;
    color: #0f0;
    font-weight: 700;
    padding-left: 100%;
    animation: unban-marquee-scroll 18s linear infinite;
}
@keyframes unban-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.provider-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.provider-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.provider-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); }

.provider-name { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.4rem; }
.provider-reward { color: var(--text-secondary); margin: 0 0 1.1rem; font-size: 0.95rem; }

.provider-claim-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease;
}
.provider-claim-btn:hover { filter: brightness(1.08); color: #fff; }
.provider-claim-btn .provider-claim-count {
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 0.1rem 0.6rem;
    font-size: 0.85rem;
}
.provider-claim-btn.done { background: var(--text-muted) !important; opacity: 0.7; cursor: not-allowed; }

.provider-blue .provider-claim-btn { background: #2196F3; }
.provider-green .provider-claim-btn { background: #34C38F; }
.provider-indigo .provider-claim-btn { background: #1B55E2; }
.provider-purple .provider-claim-btn { background: #5C1AC3; }

.shortlinks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shortlink-item {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.shortlink-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.shortlink-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-blue);
}

.shortlink-item:hover::before {
    transform: scaleX(1);
}

.shortlink-item.completed {
    opacity: 0.6;
    pointer-events: none;
}

.shortlink-item.completed::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--success-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.shortlink-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.shortlink-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: var(--font-primary);
}

.shortlink-category {
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.shortlink-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.shortlink-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reward-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reward-amount {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-primary);
}

.reward-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timer-duration {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.timer-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shortlink-actions {
    display: flex;
    gap: 0.75rem;
}

.shortlink-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.shortlink-btn.primary {
    background: var(--primary-gradient);
    color: white;
}

.shortlink-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.shortlink-btn.secondary {
    background: var(--light-surface);
    color: var(--text-secondary);
    border: 1px solid var(--light-border);
}

.shortlink-btn.secondary:hover {
    background: var(--light-hover);
    color: var(--text-primary);
}

.shortlink-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Shortlink Modal */
.shortlink-modal .modal-content {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-large);
}

.shortlink-modal .modal-header {
    background: var(--light-surface);
    border-bottom: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.shortlink-modal .modal-title {
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.shortlink-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--light-surface);
    border-radius: var(--border-radius);
    border: 1px solid var(--light-border);
}

.shortlink-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shortlink-preview i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.shortlink-preview span {
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.timer-container {
    text-align: center;
    margin-bottom: 2rem;
}

.timer-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--light-surface);
    border: 4px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-gradient) 0deg, transparent 0deg);
    transition: all 0.1s ease;
}

.timer-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-primary);
    z-index: 1;
}

.timer-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.shortlink-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Loading States */
.shortlink-item.loading {
    opacity: 0.7;
    pointer-events: none;
}

.shortlink-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--light-border);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .dashboard-title {
        font-size: 1.8rem;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-message {
        font-size: 1rem;
    }
    
    .welcome-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .timer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 1.5rem;
    }
    
    .referral-link-input {
        flex-direction: column;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .leaderboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .leaderboard-period select {
        width: 100%;
    }
    
    .category-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .category-tab {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .total-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .total-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .total-number {
        font-size: 1.5rem;
    }
    
    .shortlink-item {
        padding: 1rem;
    }
    
    .shortlink-details {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .shortlink-actions {
        flex-direction: column;
    }
    
    .shortlink-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-text {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Shared member shell (header / sidebar / cards) - used by both the logged-in
   member template and the public homepage, so the two never drift apart.
   ========================================================================== */

/* Header: logo | dark-mode toggle | hamburger, separate from the sidebar */
.topbar-logo { display: flex; align-items: center; text-decoration: none; }
.topbar-logo .logo-icon-img { height: 36px; width: 36px; object-fit: contain; border-radius: 8px; }
.topbar-logo .logo-img { height: 32px; max-width: 160px; object-fit: contain; }
.topbar-logo .logo-dark { display: none; }
body.dark-mode .topbar-logo .logo-light { display: none; }
body.dark-mode .topbar-logo .logo-dark { display: inline-block; }

/* Same light/dark logo swap, generalized for any other logo on a page (the
   big logo on the dashboard/homepage card) - not just the header, which is
   scoped above via .topbar-logo. */
.page-logo-dark { display: none; }
body.dark-mode .page-logo-light { display: none; }
body.dark-mode .page-logo-dark { display: inline-block; }

.page-logo-light, .page-logo-dark {
    max-height: 110px;
    width: auto;
    max-width: 100%;
}

@media (max-width: 576px) {
    .page-logo-light, .page-logo-dark {
        max-height: 64px;
    }
}
.topbar-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Simple sidebar: generous spacing, line icons, no heavy fills. Uses the
   theme's own --light-card/--light-hover/--light-surface variables (not
   hardcoded colors) so it follows dark/light mode. */
.dashboard-sidebar { background: var(--light-card); }
.sidebar-menu { padding-top: 1.5rem; }
/* Inset rounded hover highlight (like onlyfaucet's sidebar) instead of an
   edge-to-edge rectangle - a margin on each item plus its own border-radius,
   filled by the hover/active background. */
.sidebar-item { padding: 1rem 1.5rem; margin: 0 0.6rem; border-radius: var(--border-radius); border-left: none; }
.sidebar-item:hover { background: var(--light-hover); border-left: none; }
.sidebar-item.active { background: var(--light-surface); color: var(--primary-blue); box-shadow: none; border-left: none; }

/* Header is always full-width and fixed, regardless of sidebar state -
   onlyfaucet keeps its header (logo/toggle/hamburger) completely fixed and
   lets only the MAIN CONTENT resize/reflow when the sidebar opens or closes.
   The sidebar sits above the mobile overlay (z-index 1002 > 1001). */
:root { --header-h: 70px; }
#topNavbar,
body.sidebar-collapsed #topNavbar {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
}
.dashboard-sidebar { top: var(--header-h) !important; height: calc(100vh - var(--header-h)) !important; z-index: 1002 !important; }
.mobile-overlay { top: var(--header-h) !important; height: calc(100vh - var(--header-h)) !important; }
.main-content { padding-top: var(--header-h) !important; }
.sidebar-item i { font-size: 1.25rem; color: inherit; }
.sidebar-item span { font-weight: 500; }
.menu-title { display: none; }
.menu-section { margin-bottom: 0.5rem; }

/* Feather icons: thin consistent line-icon look, sized to sit with text */
.feather { width: 1.15em; height: 1.15em; stroke-width: 2; vertical-align: -0.2em; flex-shrink: 0; }
.sidebar-item .feather { width: 20px; height: 20px; }
.sidebar-subitem .feather { width: 16px; height: 16px; }

.sidebar-submenu { display: none; padding-left: 1rem; }
.sidebar-submenu.open { display: block; }
.sidebar-subitem { padding: 0.75rem 1.5rem; font-size: 0.9rem; opacity: 0.85; }
.submenu-chevron { transition: transform 0.15s ease; font-size: 0.8rem; }
.sidebar-submenu-toggle.open .submenu-chevron { transform: rotate(90deg); }

/* onlyfaucet-style cards: a plain static shadow, no hover-triggered
   top-border animation or border-color/lift effect */
.shortlink-item { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }
.shortlink-item::before { display: none; }
.shortlink-item:hover { transform: none; box-shadow: 0 2px 10px rgba(0,0,0,0.08); border-color: var(--light-border); }
body.dark-mode .shortlink-item { box-shadow: 0 2px 10px rgba(0,0,0,0.35); }

/* Every prominent action button (Login/Register, Logout, Go claim/Go links,
   etc.) uses this same outline style, plus a soft shadow. Each button keeps
   its own accent color via its border - only the border/text color changes,
   never the page background - so the site reads as colorful without a
   uniform blue-everywhere look. */
.btn.btn-outline-primary, .btn.btn-outline-purple, .btn.btn-outline-orange { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.btn-outline-purple {
    color: var(--primary-purple);
    border: 1px solid var(--primary-purple);
    background: transparent;
}
.btn-outline-purple:hover {
    color: #fff;
    background: var(--primary-purple);
    border-color: var(--primary-purple);
}

.btn-outline-orange {
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange);
    background: transparent;
}
.btn-outline-orange:hover {
    color: #fff;
    background: var(--accent-orange);
    border-color: var(--accent-orange);
}

/* One shared card look, used for every "boxed" section across every member
   page and the homepage (dashboard/homepage logo card, faucet stats/claim
   cards, coupon cards, etc.) instead of each page defining its own
   slightly-off border-radius/shadow/padding - matches .info-card's existing
   values so it's consistent with the original info-card sections too. */
.onlyfaucet-card {
    background: var(--light-card);
    border: 1px solid var(--light-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    padding: 1.5rem;
}
.dashboard-logo-card { padding: 2rem 1.5rem; margin-bottom: 1.5rem; }

/* ==========================================================================
   Withdrawal proof - shown identically on the homepage and the member
   dashboard. The stats above it reuse the existing .info-card component.
   ========================================================================== */

/* app.css's .user-info rule (meant for the sidebar footer card) is unscoped,
   so it would also box up the withdrawal table's avatar+email - undo that
   just inside the withdrawal table. */
.withdrawal-table .user-info {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
}

/* Admin-editable rotating banner - shown on the homepage and the member
   dashboard, below the coin icons (home.php has its own copy of this too,
   kept in sync, for historical reasons). */
.home-rotating-banner {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1rem;
    background: #0000FF;
    color: #fff;
    border-radius: var(--border-radius);
    padding: 0.85rem 1rem;
    text-align: center;
    font-weight: 700;
    position: relative;
    min-height: 1.4em;
}
.home-rotating-banner-line {
    display: none;
}
.home-rotating-banner-line.active {
    display: block;
}
@media (min-width: 768px) {
    .home-rotating-banner {
        max-width: 700px;
        white-space: nowrap;
    }
}

/* Footer social bar - dark strip with a centered Telegram button, a divider,
   and the copyright line, all inside the same dark background. */
.footer-social-bar {
    background: #111319;
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
}
.footer-telegram-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    color: #2AABEE;
    margin-bottom: 1.25rem;
    background-color:#ffffff;
    border-radius: 15px;
    border: 5px solid #ffffff;
}
.footer-telegram-btn:hover {
    color: #229ed9;
}
.footer-divider {
    max-width: 1200px;
    margin: 0 auto 1rem;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}
.footer-brand {
    color: var(--primary-blue, #1B55E2);
    font-weight: 600;
}
