/* ============================================================
   Tech Radix — Premium Light Theme Global Styles
   Clean · Glassmorphic · SaaS-grade
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;700&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    --primary:          #0057bd;
    --primary-light:    #eff6ff;
    --primary-glow:     rgba(0, 87, 189, 0.15);
    --secondary:        #7c3aed;
    --secondary-glow:   rgba(124, 58, 237, 0.15);
    --accent:           #06b6d4;
    --accent-glow:      rgba(6, 182, 212, 0.15);
    --rose:             #f43f5e;
    --tertiary:         #059669;
    --background:       #f5f7fa;
    --surface:          #ffffff;
    --on-surface:       #0f172a;
    --on-surface-variant: #64748b;
    --border:           rgba(0, 0, 0, 0.06);
    /* Gradient palette */
    --grad-blue-violet: linear-gradient(135deg, #0057bd 0%, #7c3aed 100%);
    --grad-violet-rose: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
    --grad-cyan-blue:   linear-gradient(135deg, #06b6d4 0%, #0057bd 100%);
    --grad-green-cyan:  linear-gradient(135deg, #059669 0%, #06b6d4 100%);
    --grad-full:        linear-gradient(135deg, #0057bd 0%, #7c3aed 50%, #f43f5e 100%);
    --grad-aurora:      linear-gradient(135deg, #e0f2fe 0%, #ede9fe 35%, #fce7f3 65%, #dcfce7 100%);
    /* Shadows */
    --shadow-sm:        0 2px 8px rgba(0,0,0,0.04);
    --shadow-md:        0 8px 25px rgba(0,0,0,0.08);
    --shadow-lg:        0 20px 50px rgba(0,0,0,0.12);
    --shadow-glow:      0 8px 30px rgba(0,87,189,0.25);
    --shadow-violet:    0 8px 30px rgba(124,58,237,0.25);
    --shadow-rose:      0 8px 30px rgba(244,63,94,0.25);
    /* Radii */
    --radius:           1rem;
    --radius-lg:        1.5rem;
    --radius-xl:        2rem;
    --transition:       0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Material Icons ─────────────────────────────────────────── */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* ─── Rich Multi-Layer Gradient Background ───────────────────── */
body {
    background-color: #f0f4ff;
    background-image:
        radial-gradient(ellipse 80% 60% at 10% 0%,   rgba(99,102,241,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 10%,  rgba(6,182,212,0.10)  0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 80% 90%,  rgba(124,58,237,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 10% 90%,  rgba(16,185,129,0.08) 0%, transparent 55%),
        radial-gradient(ellipse 40% 30% at 50% 50%,  rgba(244,63,94,0.05)  0%, transparent 70%),
        linear-gradient(160deg, #f0f4ff 0%, #ede9fe 40%, #e0f9f0 100%);
    background-attachment: fixed;
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Ambient Aurora Orbs (decorative, behind all content) ───── */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: orbDrift 18s ease-in-out infinite alternate;
}
body::before {
    width: 600px; height: 600px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, rgba(6,182,212,0.10) 50%, transparent 70%);
    animation-duration: 20s;
}
body::after {
    width: 500px; height: 500px;
    bottom: -180px; right: -120px;
    background: radial-gradient(circle, rgba(124,58,237,0.16) 0%, rgba(244,63,94,0.08) 50%, transparent 70%);
    animation-duration: 25s;
    animation-direction: alternate-reverse;
}
@keyframes orbDrift {
    0%   { transform: translate(0,   0)   scale(1); }
    33%  { transform: translate(40px, 30px) scale(1.08); }
    66%  { transform: translate(-20px, 50px) scale(0.96); }
    100% { transform: translate(30px, -20px) scale(1.04); }
}

/* Ensure all page content sits above orbs */
body > * { position: relative; z-index: 1; }

/* ─── Page Entry Animation ──────────────────────────────────── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
body > header,
body > main,
body > section,
body > div:not(.mesh-gradient-bg) {
    animation: pageIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ─── Navbar Spacing ─────────────────────────────────────────── */
body.has-navbar { padding-top: 6rem; }   /* extra room for floating pill */
body.has-navbar main.ml-64 { padding-top: 2rem; }

/* ─── Header / Navbar ────────────────────────────────────────── */
header {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Desktop: floating pill ─────────────────────────────────── */
header.fixed, header.sticky {
    position: fixed !important;
    top: 1rem !important;            /* float 1rem below top edge */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 3rem) !important;
    max-width: 1100px !important;
    height: 3.75rem !important;
    border-radius: 9999px !important; /* full pill */
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    z-index: 9999 !important;
    /* Glass pill */
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 0 0 1px rgba(99,102,241,0.08) !important;
}

/* Subtle gradient ring on the pill border */
header.fixed::before,
header.sticky::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9999px;
    background: linear-gradient(135deg,
        rgba(0,87,189,0.3),
        rgba(124,58,237,0.2),
        rgba(6,182,212,0.2),
        rgba(0,87,189,0.1)
    );
    z-index: -1;
    opacity: 0.6;
}

/* Remove old ::after accent bar on pill (doesn't look right) */
header.fixed::after,
header.sticky::after {
    display: none !important;
}

/* Deepen glass + glow on scroll */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99,102,241,0.12) !important;
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
    padding: 0 1.75rem;  /* inner padding inside the pill */
}

/* ── Mobile: floating pill navbar ──────────────────────────── */
@media (max-width: 768px) {
    header.fixed, header.sticky {
        top: 0.75rem !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: calc(100% - 2rem) !important;
        height: 3.75rem !important;
        border-radius: 999px !important;
        border: 1px solid rgba(255,255,255,0.6) !important;
        background: rgba(255,255,255,0.90) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 0 rgba(255,255,255,0.8) inset !important;
        padding: 0 1rem !important;
        transform: none !important;
    }
    .header-container {
        padding: 0 0.5rem;
    }
    header.fixed::before,
    header.sticky::before { display: none; }
    body.has-navbar { padding-top: 5.5rem; }

    /* Mobile nav panel drops just below the pill */
    .mobile-nav-panel {
        top: 5.25rem !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        border-radius: 1.5rem !important;
        border: 1px solid rgba(255,255,255,0.6) !important;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12) !important;
    }
}

/* ─── Centered Nav (Desktop) ─────────────────────────────────── */
@media (min-width: 769px) {
    .navbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

/* ─── Nav Links ──────────────────────────────────────────────── */
.nav-link {
    position: relative;
    transition: color var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 99px;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--primary) !important; }

/* ─── Mesh Background ────────────────────────────────────────── */
.mesh-gradient-bg {
    background: radial-gradient(at 0% 0%,   #e5c6ff 0px, transparent 50%),
                radial-gradient(at 100% 0%,  #6e9fff 0px, transparent 50%),
                radial-gradient(at 100% 100%, #6bff8f 0px, transparent 50%),
                radial-gradient(at 0% 100%,  #c7d2fe 0px, transparent 50%);
    filter: blur(80px);
    opacity: 0.3;
    background-size: 200% 200%;
}

/* ─── Glass Panels ───────────────────────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

/* Main card component — used everywhere */
.glass-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}
.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Frosted list items / table rows */
.frosted-row {
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: var(--radius);
    transition: background var(--transition), box-shadow var(--transition);
}
.frosted-row:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: var(--shadow-sm);
}

/* ─── Elevated Cards (Feature / Stat cards) ──────────────────── */
.elevated-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.elevated-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ─── Text Gradient (animated) ───────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--tertiary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 6s ease infinite;
}
@keyframes gradient-flow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
button, .btn {
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

/* Primary action buttons */
button[onclick], button.btn-primary {
    transition: transform var(--transition), box-shadow var(--transition);
}
button[onclick]:hover, button.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-glow);
}
button[onclick]:active, button.btn-primary:active {
    transform: scale(0.97);
}

/* ─── Inputs ─────────────────────────────────────────────────── */
input, textarea, select {
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--primary-glow), var(--shadow-sm) !important;
}

.search-input {
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.search-input:focus {
    width: 250px !important;
    background: white !important;
    box-shadow: 0 10px 25px -5px rgba(0, 87, 189, 0.1) !important;
}

/* ─── Typing cursor ──────────────────────────────────────────── */
.typing-cursor::after {
    content: "|";
    animation: blink 1s step-end infinite;
    margin-left: 2px;
    color: var(--primary);
}
@keyframes blink { from, to { opacity: 1; } 50% { opacity: 0; } }

/* ─── Nav Icon & Profile ─────────────────────────────────────── */
.nav-icon-wrapper {
    transition: all var(--transition);
    border-radius: 50%;
}
.nav-icon-wrapper:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}
.profile-ring {
    transition: all var(--transition);
    box-shadow: 0 0 0 0px rgba(0, 87, 189, 0);
}
.profile-container:hover .profile-ring {
    box-shadow: 0 0 0 4px rgba(0, 87, 189, 0.18);
    transform: scale(1.05);
}

/* ─── Cyber Grid ─────────────────────────────────────────────── */
.cyber-grid {
    background-image:
        linear-gradient(rgba(0, 87, 189, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 87, 189, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ─── Keyframe Animations ────────────────────────────────────── */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

.animate-fade-in      { animation: fade-in 0.6s ease-out forwards; }
.animate-fade-in-up   { animation: fade-in-up 0.7s ease-out forwards; }
.animate-scale-in     { animation: scale-in 0.5s ease-out forwards; }
.animate-float        { animation: float 4s ease-in-out infinite; }
.animate-bounce-slow  { animation: float 3s ease-in-out infinite; }

/* Staggered children */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 80ms; }
.stagger-children > *:nth-child(3) { animation-delay: 160ms; }
.stagger-children > *:nth-child(4) { animation-delay: 240ms; }
.stagger-children > *:nth-child(5) { animation-delay: 320ms; }

/* ─── Shimmer skeleton ───────────────────────────────────────── */
.shimmer {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* ─── Mobile Navigation ──────────────────────────────────────── */
.mobile-nav-panel {
    position: fixed;
    top: 5rem;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 1.5rem 2rem;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.mobile-nav-panel[data-open="true"] {
    display: flex;
    animation: slideDown 0.3s ease-out;
}

/* ─── Scrollbar (webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

/* ─── Selection color ────────────────────────────────────────── */
::selection { background: rgba(0,87,189,0.15); color: var(--on-surface); }

/* ─── Focus-visible ring ─────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ─── Page Sections ──────────────────────────────────────────── */
section { scroll-margin-top: 6rem; }

/* ─── Tables (Admin) ─────────────────────────────────────────── */
table { border-collapse: separate; border-spacing: 0; }
th {
    background: rgba(248,250,252,0.9);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: #94a3b8;
}
tr {
    transition: background var(--transition);
}
tbody tr:hover {
    background: rgba(239,246,255,0.5);
}

/* ─── Form Cards (Admin) ─────────────────────────────────────── */
.form-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: box-shadow var(--transition);
}
.form-card:focus-within {
    box-shadow: var(--shadow-lg);
}

/* ─── Global Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .max-w-7xl, .max-w-5xl { padding: 0 1.5rem; }
    .grid-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .hidden-mobile { display: none !important; }
    .flex-mobile-col { flex-direction: column !important; }
    .text-center-mobile { text-align: center !important; }

    aside { display: none !important; }
    main.ml-64 { margin-left: 0 !important; padding: 1.5rem !important; padding-top: 6rem !important; }

    h1 { font-size: 2.5rem !important; line-height: 1.1 !important; }
    h2 { font-size: 1.75rem !important; }

    .glass-card { padding: 1.5rem !important; }
    .hamburger-btn { display: flex !important; }

    /* Reduce blur on mobile for perf */
    .glass-card, .glass-panel, .mobile-nav-panel {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem !important; }
    .px-8, .p-12, .p-10 { padding: 1rem !important; }
    .stack-mobile { flex-direction: column !important; align-items: stretch !important; }
    .mobile-full-width { width: 100% !important; }
    #cert-area { padding: 2rem 1rem !important; border-width: 8px !important; }
    #cert-user-name { font-size: 2.5rem !important; }

    /* Disable blur on very low-end / small screens */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ─── Reduce motion for accessibility ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RICH GRADIENT UTILITIES — applied globally
   ═══════════════════════════════════════════════════════════════ */

/* ─── Gradient Text Variants ────────────────────────────────── */
.text-gradient {
    background: linear-gradient(135deg, #0057bd 0%, #7c3aed 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 6s ease infinite;
}
.text-gradient-violet {
    background: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-warm {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Gradient Navbar Accent Bar ─────────────────────────────── */
header.fixed::after,
header.sticky::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0,87,189,0.4)  15%,
        rgba(124,58,237,0.6) 40%,
        rgba(6,182,212,0.5)  65%,
        rgba(16,185,129,0.3) 85%,
        transparent 100%
    );
    animation: shimmerBar 4s ease infinite;
    background-size: 200% 100%;
}
@keyframes shimmerBar {
    0%   { background-position: -100% 0; }
    100% { background-position:  200% 0; }
}

/* ─── Gradient Buttons ───────────────────────────────────────── */
.btn-gradient {
    background: var(--grad-blue-violet);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    border-radius: inherit;
}
.btn-gradient:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0,87,189,0.35), 0 4px 12px rgba(124,58,237,0.2);
    filter: brightness(1.08);
}

.btn-gradient-violet {
    background: var(--grad-violet-rose);
    box-shadow: var(--shadow-violet);
}
.btn-gradient-violet:hover {
    box-shadow: 0 12px 35px rgba(124,58,237,0.4);
}

/* ─── Gradient Cards ─────────────────────────────────────────── */
.gradient-card {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.95) 0%,
        rgba(238,242,255,0.85) 100%
    );
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.9);
    transition: transform var(--transition), box-shadow var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.gradient-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99,102,241,0.15);
}

/* Stat / metric card with gradient top border */
.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-blue-violet);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stat-card:nth-child(2)::before { background: var(--grad-violet-rose); }
.stat-card:nth-child(3)::before { background: var(--grad-green-cyan); }
.stat-card:nth-child(4)::before { background: linear-gradient(135deg,#f59e0b,#ef4444); }

/* ─── Gradient Badge / Tag ───────────────────────────────────── */
.badge-gradient {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0,87,189,0.1), rgba(124,58,237,0.1));
    border: 1px solid rgba(99,102,241,0.2);
    font-size: 11px;
    font-weight: 700;
    color: #5b21b6;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ─── Gradient Section Divider ───────────────────────────────── */
.gradient-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(99,102,241,0.3) 20%,
        rgba(124,58,237,0.4) 50%,
        rgba(6,182,212,0.3)  80%,
        transparent 100%
    );
    border: none;
    margin: 2rem 0;
}

/* ─── Gradient Icon Wrappers ─────────────────────────────────── */
.icon-grad-blue   { background: linear-gradient(135deg,#0057bd,#06b6d4); color:white; border-radius:0.875rem; display:flex; align-items:center; justify-content:center; }
.icon-grad-violet { background: linear-gradient(135deg,#7c3aed,#f43f5e); color:white; border-radius:0.875rem; display:flex; align-items:center; justify-content:center; }
.icon-grad-green  { background: linear-gradient(135deg,#059669,#06b6d4); color:white; border-radius:0.875rem; display:flex; align-items:center; justify-content:center; }
.icon-grad-warm   { background: linear-gradient(135deg,#f59e0b,#ef4444); color:white; border-radius:0.875rem; display:flex; align-items:center; justify-content:center; }

/* ─── Hero Section Glow Blob ─────────────────────────────────── */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: glowPulse 5s ease-in-out infinite alternate;
}
.hero-glow-blue {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(0,87,189,0.18), transparent 70%);
}
.hero-glow-violet {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
}
@keyframes glowPulse {
    0%   { transform: scale(1)   translateY(0); }
    100% { transform: scale(1.12) translateY(-15px); }
}

/* ─── Gradient Progress Bars ─────────────────────────────────── */
.progress-bar {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #0057bd, #7c3aed, #06b6d4);
    background-size: 200% 100%;
    animation: progressShimmer 2.5s ease infinite;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes progressShimmer {
    0%   { background-position: 100% 0; }
    100% { background-position:  -100% 0; }
}

/* ─── Gradient Selection Highlight ──────────────────────────── */
::selection {
    background: linear-gradient(135deg, rgba(0,87,189,0.25), rgba(124,58,237,0.18));
    color: var(--on-surface);
}

/* ─── Mobile: disable heavy effects ─────────────────────────── */
@media (max-width: 768px) {
    body::before, body::after { display: none; }
    .hero-glow { filter: blur(40px); }
}

