:root {
    /* Color System - Premium Neon Cyan */
    --primary: #70FFD1;
    --primary-rgb: 112, 255, 209;
    --primary-hover: #50E6B8;
    --bg-deep: #020606;
    --bg-card: #0A1111;
    --bg-secondary: #0F1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #8E9A9A;
    --text-muted: #4F5E5E;

    /* Semantic Colors */
    --success: #70FFD1;
    --warning: #FFD700;
    --danger: #FF4D4D;
    --info: #00D1FF;
    --info-rgb: 0, 209, 255;
    --admin-accent: #00D1FF;
    --admin-accent-rgb: 0, 209, 255;

    /* Spacing Scale */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-neon: 0 0 20px rgba(var(--primary-rgb), 0.15);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);

    --header-bg: rgba(2, 6, 6, 0.5);

    /* Minimal Sidebar Variables (Dark Default) */

    /* Minimal Sidebar Variables (Dark Default) */
    --ms-bg: #050505;
    --ms-border: rgba(255, 255, 255, 0.05);
    --ms-text: #888888;
    --ms-text-hover: #FFFFFF;
    --ms-hover-bg: rgba(255, 255, 255, 0.03);
    --ms-active-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    --ms-active-border: rgba(255, 255, 255, 0.08);
    --ms-active-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --profile-bg: #0A0A0A;
    --profile-border: rgba(255, 255, 255, 0.05);
    --profile-hover-border: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    /* High Contrast Premium Colors for Light Mode */
    --primary: #00BF96;
    /* Darker, richer mint/teal for white backgrounds */
    --primary-rgb: 0, 191, 150;
    --primary-hover: #009E7C;

    --bg-deep: #F5F7FA;
    --bg-card: #FFFFFF;
    --bg-secondary: #EDF2F7;

    --text-primary: #1A202C;
    /* Deep sharp black-blue */
    --text-secondary: #4A5568;
    --text-muted: #718096;

    --shadow-neon: 0 4px 20px rgba(0, 191, 150, 0.15);
    /* Soft colored shadow */
    --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.03);
    /* Very subtle card shadow */

    /* Minimal Sidebar Variables (Light Mode) */
    --ms-bg: #FFFFFF;
    --ms-border: rgba(0, 0, 0, 0.05);
    --ms-text: #666666;
    --ms-text-hover: #000000;
    --ms-hover-bg: rgba(0, 0, 0, 0.03);
    --ms-active-bg: linear-gradient(180deg, rgba(112, 255, 209, 0.1) 0%, rgba(112, 255, 209, 0.02) 100%);
    --ms-active-border: rgba(112, 255, 209, 0.2);
    --ms-active-shadow: 0 4px 12px rgba(112, 255, 209, 0.15);
    --profile-bg: #F8F9FA;
    --profile-border: rgba(0, 0, 0, 0.05);
    --profile-hover-border: rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color var(--transition);
    background-image: radial-gradient(circle at 50% 1px, rgba(112, 255, 209, 0.05) 0, transparent 400px);
}

/* Layout System */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Adjust main content when minimal sidebar is present */
.dashboard-container:has(.minimal-sidebar) .main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    transition: margin-left 0.3s ease;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid rgba(112, 255, 209, 0.05);
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-content {
    flex: 1;
    padding: var(--space-7) var(--space-6);
    background: var(--bg-deep);
}

/* Grain Texture Overlay */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Dashboard Header */
.dashboard-header {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: var(--space-4) var(--space-5);
    margin: -48px -32px 48px -32px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.05);
}

.dashboard-header-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.dashboard-header-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Wallet Badge */
.wallet-badge {
    background: var(--bg-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.05);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.wallet-badge i {
    color: var(--primary);
}

.wallet-badge-amount {
    font-weight: 800;
    font-size: 14px;
}

/* Icon Button (Square) */
.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Action Button */
.btn-action {
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
}

/* Hidden Form Utility */
.hidden-form {
    display: none;
}

/* Components */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    border: 1px solid rgba(112, 255, 209, 0.05);
    transition: all var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(112, 255, 209, 0.2);
    box-shadow: var(--shadow-neon);
}

.card:hover::before {
    opacity: 0.5;
}

/* Premium Buttons - As seen in the images */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    gap: var(--space-2);
    font-size: 14px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #010A0A;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(var(--primary-rgb), 0.2);
}

.btn-ghost:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-neon);
}

.btn-ghost.active {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: inset 0 0 10px rgba(var(--primary-rgb), 0.1);
}

/* Premium Pills */
.pill {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
}

.pill-success {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.1);
}

.pill-info {
    background: rgba(var(--info-rgb), 0.05);
    color: var(--info);
    border-color: rgba(var(--info-rgb), 0.2);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        padding: var(--space-5);
    }
}

/* Utils */
.flex {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-secondary {
    color: var(--text-secondary);
}

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

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-6 {
    margin-bottom: var(--space-6);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

/* Custom Animations */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 15px rgba(112, 255, 209, 0.1);
    }

    50% {
        box-shadow: 0 0 30px rgba(112, 255, 209, 0.2);
    }

    100% {
        box-shadow: 0 0 15px rgba(112, 255, 209, 0.1);
    }
}

.glow-effect {
    animation: pulse-glow 3s infinite;
}

.admin-badge {
    background: rgba(var(--admin-accent-rgb), 0.15);
    color: var(--admin-accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--admin-accent-rgb), 0.1);
    font-size: 10px;
}

.admin-pill {
    padding: 8px 16px;
    background: rgba(var(--admin-accent-rgb), 0.1);
    color: var(--admin-accent);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(var(--admin-accent-rgb), 0.2);
}

/* Admin Panel Specific Overrides */
.admin-panel .btn-primary {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
    color: #000;
}

.admin-panel .btn-ghost.active {
    color: var(--admin-accent);
    border-color: var(--admin-accent);
}

.pagination-container {
    padding: 24px 0;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.pagination-container nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
}

/* Hide the Mobile Navigation (Previous/Next simple links) */
.pagination-container nav>div:first-child {
    display: none !important;
}

/* Hide the "Showing X to Y results" text container */
/* This is typically the first child of the second div in desktop view */
.pagination-container nav>div:nth-child(2)>div:first-child {
    display: none !important;
}

/* Ensure the Desktop Navigation Wrapper is visible and centered */
.pagination-container nav>div:nth-child(2) {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    gap: 8px !important;
}

/* The wrapper for the actual links (span with relative z-0 inline-flex) */
.pagination-container span.relative.z-0 {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Individual Link Styling */
.pagination-container a,
.pagination-container span[aria-current="page"]>span,
.pagination-container span[aria-disabled="true"]>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 16px;
    background: rgba(10, 17, 17, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(112, 255, 209, 0.1);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 0 2px;
}

/* Hover State */
/* Minimal Premium Sidebar Styles */
.minimal-sidebar {
    width: 260px;
    height: 100vh;
    background: var(--ms-bg);
    border-right: 1px solid var(--ms-border);
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.minimal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 32px;
    padding-left: 12px;
}

.minimal-logo span {
    color: var(--primary);
}

.minimal-logo .badge {
    font-size: 10px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.minimal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    /* Tight spacing like reference */
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--ms-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--ms-text-hover);
    background: var(--ms-hover-bg);
}

.nav-item.active {
    background: var(--ms-active-bg);
    color: var(--primary);
    border: 1px solid var(--ms-active-border);
    box-shadow: var(--ms-active-shadow);
    font-weight: 600;
}

/* Specific active style for Admin Panel */
.admin-panel .nav-item.active {
    color: var(--admin-accent);
}

.nav-item.active i {
    filter: drop-shadow(0 0 5px rgba(112, 255, 209, 0.4));
}

.user-profile-section {
    background: var(--profile-bg);
    border: 1px solid var(--profile-border);
    border-radius: 16px;
    /* Pill/Capsule shape */
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    cursor: pointer;
    transition: border-color 0.2s;
}

.user-profile-section:hover {
    border-color: var(--profile-hover-border);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    /* Circle avatar inside pill */
    background: linear-gradient(135deg, #1a1a1a, #000);
    border: 1px solid var(--profile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

[data-theme="light"] .user-avatar {
    background: #fff;
    color: var(--primary-hover);
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

[data-theme="light"] .user-name {
    color: #000;
}

.user-email {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pagination-container a:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(var(--primary-rgb), 0.05);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.15);
}

/* Active State */
.pagination-container span[aria-current="page"]>span {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.05));
    border: 1.5px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.2), inset 0 0 10px rgba(var(--primary-rgb), 0.1);
    transform: translateY(-2px);
}

/* Disabled State */
.pagination-container span[aria-disabled="true"]>span {
    opacity: 0.25;
    cursor: default;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

/* SVG Icon Size */
.pagination-container svg {
    width: 20px;
    height: 20px;
}