:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --secondary: #0f172a;
    --accent: #10b981;
    --accent-dark: #047857;
    --accent-light: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --surface: #ffffff;
    --surface-ground: #f8fafc;
    --border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--surface-ground);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0f172a;
    color: #f8fafc;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar .brand {
    padding: 1.25rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.sidebar .brand .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.sidebar .nav-section-title {
    padding: 1.25rem 1.5rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-link i {
    font-size: 1.15rem;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-link:hover i {
    color: #38bdf8;
}

.sidebar .nav-link.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.2), rgba(2, 132, 199, 0.02));
    border-left-color: #0284c7;
    font-weight: 600;
}

.sidebar .nav-link.active i {
    color: #38bdf8;
}

/* Main Content Area */
.main-wrapper {
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.topbar {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.content-body {
    padding: 2rem;
    flex: 1;
}

/* Cards & Widgets */
.stat-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    margin-top: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badge Styles */
.badge-status-active {
    background-color: #dcfce7;
    color: #15803d;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

.badge-status-pending {
    background-color: #fef3c7;
    color: #b45309;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

.badge-status-suspended,
.badge-status-expired,
.badge-status-cancelled {
    background-color: #fee2e2;
    color: #b91c1c;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.35rem 0.75rem;
}

/* Digital Membership Card Preview */
.membership-card-preview {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0284c7 100%);
    color: #ffffff;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.membership-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

/* QR Code Display Card */
.qr-box {
    background: #fff;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .topbar {
        padding: 0 1rem;
    }

    .content-body {
        padding: 1rem;
    }
}

/* ========================================================= */
/* MARKET STANDARD MODERN FRONT-END STYLES & UTILITIES       */
/* ========================================================= */

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Glassmorphism System */
.glass-nav {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Text Gradients */
.text-gradient-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #ffffff 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Mesh & Ambient Light Orbs */
.hero-mesh {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(2, 132, 199, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.8) 0%, transparent 60%),
                linear-gradient(135deg, #090e17 0%, #0f172a 50%, #0369a1 100%);
}

.hero-orb-1 {
    position: absolute;
    width: 450px;
    height: 450px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    animation: floatOrb 8s ease-in-out infinite alternate;
}

.hero-orb-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 40px) scale(1.1); }
}

/* 3D Holographic Card Stage */
.holographic-card-stage {
    perspective: 1200px;
}

.holographic-card {
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    transform: rotateY(-6deg) rotateX(4deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.25);
}

.holographic-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.4);
}

/* Micro-interaction Hover Cards */
.partner-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12) !important;
    border-color: #cbd5e1;
}

.step-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -8px rgba(2, 132, 199, 0.15) !important;
}

.step-number-badge {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Trust Stats Bar */
.trust-stats-bar {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

/* Custom Scrollbar for Carousel Pills */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Floating Action Badge */
.pulse-badge {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
