/* ═══════════════════════════════════════════════════════════
   COLLEGE COMPASS — World-Class Design System v2.0
   Vibrant · Animated · Premium · Mobile-First
   ═══════════════════════════════════════════════════════════ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Design Tokens ─── */
:root {
    /* Color Palette — Exact College Compass Brand Colors */
    --primary:        #0066FF;  /* Royal Blue (Hat & Compass Outer) */
    --primary-light:  #3B82F6;
    --primary-dark:   #0048BA;
    --secondary:      #FF7A00;  /* Vibrant Orange (Compass Needle & Tassel) */
    --secondary-light:#FFA043;
    --secondary-dark: #EA580C;
    --accent:         #10B981;
    --danger:         #EF4444;
    --info:           #0EA5E9;

    /* Gradients */
    --grad-primary:   linear-gradient(135deg, #0066FF 0%, #0048BA 100%);
    --grad-orange:    linear-gradient(135deg, #FF7A00 0%, #EA580C 100%);
    --grad-fusion:    linear-gradient(135deg, #0066FF 0%, #FF7A00 100%);
    --grad-aurora:    linear-gradient(135deg, #0066FF 0%, #0284C7 35%, #FF7A00 70%, #EA580C 100%);
    --grad-warm:      linear-gradient(135deg, #FF7A00 0%, #FF5200 100%);
    --grad-cool:      linear-gradient(135deg, #0066FF 0%, #10B981 100%);
    --grad-hero:      radial-gradient(ellipse at 20% 50%, rgba(0,102,255,0.18) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(255,122,0,0.15) 0%, transparent 50%),
                      radial-gradient(ellipse at 60% 80%, rgba(14,165,233,0.12) 0%, transparent 50%);
    --grad-dark:      linear-gradient(135deg, #061122 0%, #0B2142 50%, #07152B 100%);
    --grad-sidebar:   linear-gradient(180deg, #07152B 0%, #0B2142 50%, #061224 100%);

    /* Surfaces */
    --surface:        #FFFFFF;
    --surface-2:      #F8FAFF;
    --surface-3:      #EEF2FF;
    --bg:             #F4F6FF;
    --dark-bg:        #0B0D1A;
    --dark-card:      rgba(255,255,255,0.04);

    /* Glass */
    --glass-bg:       rgba(255,255,255,0.72);
    --glass-border:   rgba(255,255,255,0.45);
    --glass-shadow:   0 8px 32px rgba(79,70,229,0.08);
    --glass-blur:     blur(20px);

    /* Text */
    --text-h:         #0D0D2B;
    --text-body:      #374151;
    --text-muted:     #9CA3AF;
    --text-white:     #FFFFFF;

    /* Spacing & Shape */
    --radius-sm:      8px;
    --radius:         14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    999px;

    /* Shadows */
    --shadow-xs:      0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm:      0 4px 16px rgba(79,70,229,0.08);
    --shadow:         0 8px 32px rgba(79,70,229,0.12);
    --shadow-lg:      0 16px 56px rgba(79,70,229,0.18);
    --shadow-glow:    0 0 40px rgba(79,70,229,0.35);

    /* Transitions */
    --ease:           cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast:         0.15s var(--ease);
    --t:              0.3s var(--ease);
    --t-slow:         0.5s var(--ease);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-body);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-h);
    letter-spacing: -0.02em;
}

/* ─── Noise Texture Overlay ─── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* ─── Selection ─── */
::selection {
    background: rgba(79, 70, 229, 0.25);
    color: var(--primary-dark);
}

/* ═══════════════════════════
   GLASSMORPHISM COMPONENTS
   ═══════════════════════════ */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: transform var(--t), box-shadow var(--t);
}
.glass-panel:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.glass-dark {
    background: rgba(15, 12, 41, 0.65);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
}

/* ═══════════════════════════
   NAVBAR — Frosted Glass Pro
   ═══════════════════════════ */
.navbar-custom {
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(79,70,229,0.10);
    box-shadow: 0 2px 24px rgba(79,70,229,0.06);
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    transition: background var(--t), box-shadow var(--t);
}
.navbar-custom.scrolled {
    background: rgba(255,255,255,0.97) !important;
    box-shadow: 0 4px 32px rgba(79,70,229,0.12);
}
.navbar-brand-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    background: var(--grad-fusion);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-logo {
    height: 38px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.25);
    transition: transform var(--t-fast);
}
.navbar-logo:hover { transform: rotate(-5deg) scale(1.05); }

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-body) !important;
    position: relative;
    transition: color var(--t-fast);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: transform var(--t-fast) var(--ease-bounce);
}
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-link:hover { color: var(--primary) !important; }

/* ═══════════════════════════
   BUTTONS — Vibrant System
   ═══════════════════════════ */
.btn-primary-custom {
    background: var(--grad-primary);
    color: #fff !important;
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all var(--t) var(--ease-bounce);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.35);
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    border-radius: inherit;
}
.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease);
    border-radius: 50%;
}
.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(0, 102, 255, 0.5);
}
.btn-primary-custom:hover::after { transform: translate(-50%, -50%) scale(1); }
.btn-primary-custom:active { transform: translateY(0) scale(0.98); }

.btn-secondary-custom, .btn-orange-custom {
    background: var(--grad-orange);
    color: #fff !important;
    border: none;
    padding: 11px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--t) var(--ease-bounce);
    box-shadow: 0 4px 20px rgba(255, 122, 0, 0.35);
}
.btn-secondary-custom:hover, .btn-orange-custom:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 122, 0, 0.55);
}

.btn-outline-orange {
    border: 2px solid var(--secondary);
    color: var(--secondary) !important;
    background: transparent;
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: all var(--t);
}
.btn-outline-orange:hover {
    background: var(--grad-orange);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    background: transparent;
    padding: 9px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: all var(--t);
}
.btn-outline-primary:hover {
    background: var(--grad-primary);
    color: #fff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.btn-aurora {
    background: var(--grad-aurora);
    background-size: 200% auto;
    color: #fff !important;
    border: none;
    padding: 13px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--t), background-position 0.5s;
    box-shadow: 0 6px 28px rgba(0, 102, 255, 0.4);
    animation: aurora-shift 4s linear infinite;
}
.btn-aurora:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(255, 122, 0, 0.55);
}

.btn-glass {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff !important;
    padding: 11px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--t);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

/* ═══════════════════════════
   HERO SECTION — Aurora Mesh
   ═══════════════════════════ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--dark-bg);
    padding-top: 90px;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 40%, rgba(0, 102, 255, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(255, 122, 0, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 70% 85%, rgba(14, 165, 233, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 30% 80%, rgba(0, 102, 255, 0.20) 0%, transparent 55%);
    z-index: 0;
    animation: aurora-breathe 10s ease-in-out infinite alternate;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    padding: 7px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: slideInDown 0.6s var(--ease-bounce) 0.2s both;
}
.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse-glow 2s ease infinite;
}

.hero-h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #fff;
    margin-bottom: 1.25rem;
    animation: slideInUp 0.7s var(--ease-bounce) 0.35s both;
}
.hero-h1 .gradient-text {
    background: linear-gradient(135deg, #0066FF 0%, #38BDF8 45%, #FF7A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin-bottom: 2rem;
    line-height: 1.75;
    animation: slideInUp 0.7s var(--ease-bounce) 0.5s both;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 2.5rem;
    animation: slideInUp 0.7s var(--ease-bounce) 0.7s both;
}
.hero-stat-item .num {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.hero-stat-item .label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.hero-stat-divider {
    width: 1px;
    background: rgba(255,255,255,0.15);
    align-self: stretch;
}

/* ─── Hero Visual & Floating Badges ─── */
.hero-visual-wrap {
    position: relative;
    padding: 30px 36px;
}

.hero-visual {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
}

/* Central hero card */
.hero-main-card {
    background: rgba(10, 22, 45, 0.85);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(0, 102, 255, 0.32);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 102, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 2;
}

.hero-card-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #94A3B8;
    margin-bottom: 2px;
}

.hero-main-card .score-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #0066FF 0%, #38BDF8 50%, #FF7A00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.score-unit {
    font-size: 0.78rem;
    color: #64748B;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.hero-main-card .match-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34D399;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.hero-matches-header {
    font-size: 0.74rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-match-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.25s ease;
}
.hero-match-row:hover {
    background: rgba(0, 102, 255, 0.12);
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateX(4px);
}

.match-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.match-name {
    font-size: 0.86rem;
    line-height: 1.2;
}

.match-branch {
    font-size: 0.72rem;
    color: #94A3B8 !important;
}

.match-cutoff {
    font-size: 0.88rem;
}

.match-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 2px;
}

/* Floating Telemetry Badges */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(7, 21, 43, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 102, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 102, 255, 0.2);
    color: #FFFFFF;
    z-index: 10;
    min-width: 175px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.floating-card:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 30px rgba(0, 102, 255, 0.35);
    border-color: rgba(255, 122, 0, 0.5);
}

.floating-card .fc-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fc-icon-blue {
    background: rgba(0, 102, 255, 0.2);
    color: #60A5FA;
    border: 1px solid rgba(0, 102, 255, 0.4);
}
.fc-icon-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.fc-icon-orange {
    background: rgba(255, 122, 0, 0.2);
    color: #FF7A00;
    border: 1px solid rgba(255, 122, 0, 0.4);
}
.fc-icon-cyan {
    background: rgba(14, 165, 233, 0.2);
    color: #38BDF8;
    border: 1px solid rgba(14, 165, 233, 0.4);
}

.floating-card .fc-text h6 {
    color: #FFFFFF;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 1px;
    white-space: nowrap;
}
.floating-card .fc-text small {
    color: #94A3B8;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Absolute Corner Offsets Outside Main Card */
.fc-top-left {
    top: -26px;
    left: -42px;
    animation: heroFloat1 6s ease-in-out infinite;
}
.fc-top-right {
    top: -22px;
    right: -36px;
    animation: heroFloat2 7s ease-in-out infinite 1s;
}
.fc-bottom-left {
    bottom: -22px;
    left: -42px;
    animation: heroFloat2 6.5s ease-in-out infinite 0.5s;
}
.fc-bottom-right {
    bottom: -22px;
    right: -36px;
    animation: heroFloat1 7.5s ease-in-out infinite 1.5s;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(10px); }
}

/* ═══════════════════════════
   SECTION LAYOUT
   ═══════════════════════════ */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(79,70,229,0.08) 0%, rgba(147,51,234,0.08) 100%);
    border: 1px solid rgba(79,70,229,0.15);
    border-radius: var(--radius-full);
    padding: 5px 16px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--text-h);
    line-height: 1.15;
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ═══════════════════════════
   FEATURE CARDS — Modern
   ═══════════════════════════ */
.feature-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid rgba(79,70,229,0.08);
    transition: all var(--t) var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
    border-radius: 3px 3px 0 0;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(79,70,229,0.2);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(147,51,234,0.08));
    transition: transform var(--t) var(--ease-bounce);
}
.feature-card:hover .feature-icon-wrap { transform: scale(1.12) rotate(-5deg); }

.feature-card h5 { font-size: 1.05rem; font-weight: 700; color: var(--text-h); margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ═══════════════════════════
   COURSE SELECTION CARDS
   ═══════════════════════════ */
.course-card {
    cursor: pointer;
    border: 2px solid rgba(79,70,229,0.10);
    background: var(--surface);
    border-radius: var(--radius-lg);
    transition: all var(--t) var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--t);
    z-index: 0;
}
.course-card.active, .course-card:hover {
    border-color: var(--primary);
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 12px 40px rgba(79,70,229,0.22);
}
.course-card.active::after { opacity: 1; }
.course-card.active * { position: relative; z-index: 1; }
.course-card.active h6 { color: #fff !important; }
.course-card.active .text-muted { color: rgba(255,255,255,0.75) !important; }
.course-card.active small { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.course-card.active .btn-primary-custom { background: rgba(255,255,255,0.25); box-shadow: none; }
.course-card.active i { color: #fff !important; }

/* ═══════════════════════════
   STATS COUNTER BAND
   ═══════════════════════════ */
.stats-band {
    background: var(--grad-primary);
    position: relative;
    overflow: hidden;
    padding: 64px 0;
}
.stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-counter-item { text-align: center; position: relative; z-index: 1; }
.stat-counter-item .num {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    display: block;
}
.stat-counter-item .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
}

/* ═══════════════════════════
   PREDICTION TABLE
   ═══════════════════════════ */
.predict-row-safe    { border-left: 4px solid #10B981; background: rgba(16,185,129,0.03); }
.predict-row-moderate{ border-left: 4px solid #F59E0B; background: rgba(245,158,11,0.03); }
.predict-row-dream   { border-left: 4px solid #EF4444; background: rgba(239,68,68,0.03); }

.badge-safe     { background: rgba(16,185,129,0.12); color: #059669; border: 1px solid rgba(16,185,129,0.2); }
.badge-moderate { background: rgba(245,158,11,0.12); color: #D97706; border: 1px solid rgba(245,158,11,0.2); }
.badge-dream    { background: rgba(239,68,68,0.12);  color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.badge-safe, .badge-moderate, .badge-dream {
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ═══════════════════════════
   DASHBOARD CARDS
   ═══════════════════════════ */
.dashboard-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all var(--t) var(--ease-bounce);
    border: 1px solid transparent;
}
.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.dashboard-card .card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.dashboard-card .card-value {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}
.dashboard-card .card-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}
.dashboard-card .card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    bottom: -30px;
    right: -30px;
    opacity: 0.15;
    filter: blur(20px);
}

.dc-blue   { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: var(--primary-dark); border-color: rgba(79,70,229,0.15); }
.dc-blue .card-icon   { background: rgba(79,70,229,0.15); color: var(--primary); }
.dc-blue .card-glow   { background: var(--primary); }

.dc-green  { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #065F46; border-color: rgba(16,185,129,0.15); }
.dc-green .card-icon  { background: rgba(16,185,129,0.15); color: var(--accent); }
.dc-green .card-glow  { background: var(--accent); }

.dc-orange { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: #78350F; border-color: rgba(245,158,11,0.15); }
.dc-orange .card-icon { background: rgba(245,158,11,0.15); color: var(--secondary); }
.dc-orange .card-glow { background: var(--secondary); }

.dc-red    { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); color: #7F1D1D; border-color: rgba(239,68,68,0.15); }
.dc-red .card-icon    { background: rgba(239,68,68,0.15); color: var(--danger); }
.dc-red .card-glow    { background: var(--danger); }

.dc-cyan   { background: linear-gradient(135deg, #ECFEFF, #CFFAFE); color: #164E63; border-color: rgba(6,182,212,0.15); }
.dc-cyan .card-icon   { background: rgba(6,182,212,0.15); color: var(--info); }
.dc-cyan .card-glow   { background: var(--info); }

/* ═══════════════════════════
   SIDEBAR / TAB NAVIGATION
   ═══════════════════════════ */
.sidebar-nav .nav-link {
    border-radius: var(--radius);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-body) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--t-fast);
    margin-bottom: 2px;
}
.sidebar-nav .nav-link::after { display: none; }
.sidebar-nav .nav-link:hover {
    background: rgba(79,70,229,0.07);
    color: var(--primary) !important;
}
.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(147,51,234,0.08));
    color: var(--primary) !important;
    box-shadow: inset 3px 0 0 var(--primary);
}
.sidebar-nav .nav-link i { width: 18px; text-align: center; }

/* ═══════════════════════════
   TABLE STYLING
   ═══════════════════════════ */
.table-custom thead th {
    background: linear-gradient(135deg, #4F46E5, #7C3AED) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none !important;
    padding: 14px 16px;
    white-space: nowrap;
}
.table-custom tbody tr {
    transition: background var(--t-fast), transform var(--t-fast);
    border-bottom: 1px solid rgba(79,70,229,0.06);
}
.table-custom tbody tr:hover {
    background: rgba(79,70,229,0.04) !important;
}
.table-custom td { vertical-align: middle; padding: 12px 16px; font-size: 0.9rem; }

/* DataTables Pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--grad-primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
}
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid rgba(79,70,229,0.2) !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1) !important;
}

/* ═══════════════════════════
   FOOTER — Dark Aurora
   ═══════════════════════════ */
.footer-fixed {
    background: #080B18;
    color: rgba(255,255,255,0.45);
    padding: 18px 0;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}
.footer-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-aurora);
    opacity: 0.5;
}
.footer-fixed a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-weight: 500;
    margin-left: 16px;
    transition: color var(--t-fast);
}
.footer-fixed a:hover { color: #A78BFA; }

/* ═══════════════════════════
   FORM INPUTS — Polished
   ═══════════════════════════ */
.form-control, .form-select {
    border: 1.5px solid rgba(79,70,229,0.15);
    border-radius: var(--radius);
    padding: 11px 16px;
    font-size: 0.92rem;
    transition: all var(--t-fast);
    background: var(--surface);
    color: var(--text-h);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
    outline: none;
}
.input-group .input-group-text {
    background: rgba(79,70,229,0.06);
    border: 1.5px solid rgba(79,70,229,0.15);
    color: var(--primary);
    font-size: 0.95rem;
    border-radius: var(--radius) 0 0 var(--radius);
}

.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-h);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

/* ═══════════════════════════
   BADGES — Modern Pills
   ═══════════════════════════ */
.badge-pill {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ═══════════════════════════
   ALERTS — Styled
   ═══════════════════════════ */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: rgba(16,185,129,0.1); color: #065F46; border-left: 4px solid #10B981; }
.alert-danger   { background: rgba(239,68,68,0.1);  color: #7F1D1D; border-left: 4px solid #EF4444; }
.alert-warning  { background: rgba(245,158,11,0.1); color: #78350F; border-left: 4px solid #F59E0B; }
.alert-info     { background: rgba(6,182,212,0.1);  color: #164E63; border-left: 4px solid #06B6D4; }

/* ═══════════════════════════
   OFFLINE ALERT BANNER
   ═══════════════════════════ */
#offlineAlert {
    background: linear-gradient(135deg, #EF4444, #DC2626) !important;
    color: #fff !important;
    border: none;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.88rem;
    box-shadow: 0 4px 20px rgba(239,68,68,0.4);
    animation: slideInDown 0.4s var(--ease-bounce);
}

/* ═══════════════════════════
   PRICING CARDS
   ═══════════════════════════ */
.pricing-card {
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    background: var(--surface);
    border: 2px solid rgba(79,70,229,0.10);
    transition: all var(--t) var(--ease-bounce);
    position: relative;
    overflow: hidden;
}
.pricing-card.featured {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(79,70,229,0.35);
}
.pricing-card:hover { transform: scale(1.04) translateY(-4px); }
.pricing-card.featured:hover { transform: scale(1.08) translateY(-4px); }
.pricing-card .price-amount {
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.pricing-card .popular-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

/* ═══════════════════════════
   ANIMATIONS
   ═══════════════════════════ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}

@keyframes aurora-shift {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes aurora-breathe {
    0%   { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(74,222,128,0.7); }
    50%       { opacity: 0.8; box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}

/* Entrance Animations */
.animate-fade-in  { animation: fadeIn 0.6s var(--ease) both; }
.animate-slide-up { animation: slideInUp 0.6s var(--ease-bounce) both; }
.animate-scale-in { animation: scaleIn 0.5s var(--ease-bounce) both; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll Reveal (JS-powered) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════
   PROGRESS BARS
   ═══════════════════════════ */
.progress {
    height: 8px;
    border-radius: var(--radius-full);
    background: rgba(79,70,229,0.1);
    overflow: visible;
}
.progress-bar {
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    position: relative;
}
.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: #fff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(79,70,229,0.35);
}

/* ═══════════════════════════
   CHAT ASSISTANT WIDGET
   ═══════════════════════════ */
#chatWidget {
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
    border: 1px solid rgba(79,70,229,0.15);
}
#chatToggle {
    background: var(--grad-aurora);
    background-size: 200% auto;
    animation: aurora-shift 5s linear infinite;
    border: none;
    box-shadow: 0 8px 32px rgba(79,70,229,0.45), 0 0 0 0 rgba(79,70,229,0);
    transition: all var(--t) var(--ease-bounce);
}
#chatToggle:hover {
    transform: scale(1.12) rotate(5deg);
    box-shadow: 0 12px 40px rgba(79,70,229,0.6);
}

/* ═══════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════ */
@media (max-width: 991px) {
    .hero-stats { gap: 16px; }
    .hero-h1 { font-size: 2.4rem; }
    .hero-sub { font-size: 1rem; }
}

@media (max-width: 768px) {
    body { padding-bottom: 0 !important; }

    .hero-section { min-height: auto; padding: 110px 0 60px; }
    .hero-h1 { font-size: 2rem; }
    .hero-stats { flex-wrap: wrap; gap: 12px; }
    .hero-stat-divider { display: none; }

    .floating-card { display: none; }

    .feature-card { padding: 24px 20px; }
    .section-title { font-size: 1.8rem; }

    .pricing-card.featured { transform: scale(1); margin-top: 20px; }

    .footer-fixed { padding: 14px 0; font-size: 0.8rem; text-align: center; }
    .footer-fixed a { margin-left: 8px; margin-right: 0; }
    .footer-fixed .row > div { text-align: center !important; margin-bottom: 6px; }

    .course-card { margin-bottom: 12px; }
    .dashboard-card { padding: 18px; }
    .dashboard-card .card-value { font-size: 1.8rem; }

    .sidebar-nav .nav-link { font-size: 0.82rem; padding: 8px 12px; }

    .table-responsive { font-size: 0.82rem; }
    .table-custom td, .table-custom thead th { padding: 10px 12px; }

    .btn-primary-custom, .btn-secondary-custom { padding: 10px 20px; font-size: 0.88rem; }
    .btn-aurora { padding: 11px 24px; font-size: 0.92rem; }
}

@media (max-width: 576px) {
    .hero-h1 { font-size: 1.75rem; }
    .stat-counter-item .num { font-size: 2.2rem; }
    .section-title { font-size: 1.55rem; }
    .glass-panel { border-radius: var(--radius); }
    .hero-main-card { padding: 22px; }
}

/* ═══════════════════════════
   PRINT STYLES
   ═══════════════════════════ */
@media print {
    .navbar, .footer-fixed, #chatWidget, #chatToggle,
    .btn, .no-print { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    .glass-panel { box-shadow: none !important; border: 1px solid #ddd !important; }
    table { border-collapse: collapse !important; }
    td, th { border: 1px solid #ddd !important; padding: 8px !important; }
}

/* ═══════════════════════════
   DARK MODE SUPPORT
   ═══════════════════════════ */
@media (prefers-color-scheme: dark) {
    body { background: #0B0D1A; color: #E5E7EB; }
    .glass-panel { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.08); }
    .feature-card { background: rgba(255,255,255,0.04); border-color: rgba(79,70,229,0.2); }
    .course-card { background: rgba(255,255,255,0.04); border-color: rgba(79,70,229,0.15); }
    h1, h2, h3, h4, h5, h6 { color: #F9FAFB; }
    .table-custom tbody tr:hover { background: rgba(79,70,229,0.08) !important; }
}

/* ═══════════════════════════════════════════════════════════
   SIDEBAR & DASHBOARD SUITE (Blue & Orange Brand Theme)
   ═══════════════════════════════════════════════════════════ */
.brand-college {
    color: #0066FF;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.brand-compass {
    color: #FF7A00;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #0066FF 0%, #38BDF8 50%, #FF7A00 100%) 1;
}

.avatar-ring {
    background: linear-gradient(135deg, #0066FF 0%, #FF7A00 100%);
    padding: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}
.avatar-inner {
    background: #0066FF;
    color: #FFFFFF;
    font-weight: 800;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

.sidebar {
    min-width: 230px;
    max-width: 230px;
    background: linear-gradient(180deg, #07152B 0%, #0C213F 60%, #061122 100%);
    color: #F8FAFC;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: calc(100vh - 76px);
    position: fixed;
    top: 76px;
    left: 0;
    z-index: 1000;
    border-right: 1px solid rgba(0, 102, 255, 0.18);
    box-shadow: 4px 0 24px rgba(7, 21, 43, 0.35);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-section-title {
    color: #38BDF8 !important;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    padding: 0 10px;
    margin-bottom: 4px;
    opacity: 0.95;
}

.sidebar .nav-link {
    color: #FFFFFF !important;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 2px;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    text-decoration: none;
}
.sidebar .nav-link span {
    color: #FFFFFF !important;
}

.sidebar .nav-link i {
    width: 22px;
    font-size: 0.95rem;
    color: #60A5FA;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar .nav-link:hover {
    color: #FFFFFF !important;
    background: rgba(0, 102, 255, 0.24);
    border-left-color: #FF7A00;
    transform: translateX(3px);
}
.sidebar .nav-link:hover span {
    color: #FFFFFF !important;
}
.sidebar .nav-link:hover i {
    color: #FF7A00;
    transform: scale(1.1);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.45) 0%, rgba(255, 122, 0, 0.25) 100%) !important;
    color: #FFFFFF !important;
    border-left: 4px solid #FF7A00 !important;
    box-shadow: 0 3px 15px rgba(0, 102, 255, 0.35);
}
.sidebar .nav-link.active span {
    color: #FFFFFF !important;
    font-weight: 700;
}
.sidebar .nav-link.active i {
    color: #FF7A00;
}

.sidebar-badge-orange {
    background: linear-gradient(135deg, #FF7A00 0%, #EA580C 100%);
    color: #FFFFFF;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 0.70rem;
    box-shadow: 0 2px 6px rgba(255, 122, 0, 0.3);
}

.sidebar-card-user {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-radius: 10px;
    padding: 10px;
    margin-top: auto;
    backdrop-filter: blur(12px);
}
.sidebar-card-user .text-muted {
    color: #94A3B8 !important;
}
.sidebar-card-user .text-light {
    color: #F8FAFC !important;
}

.main-content {
    width: calc(100% - 230px);
    flex: 1;
    min-width: 0;
    min-height: calc(100vh - 76px);
    padding: 16px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 230px;
    margin-top: 76px;
    background: var(--bg);
}

/* Metric stat card accents */
.metric-card-blue {
    border-left: 5px solid #0066FF !important;
    background: #FFFFFF;
}
.metric-card-orange {
    border-left: 5px solid #FF7A00 !important;
    background: #FFFFFF;
}
.metric-card-green {
    border-left: 5px solid #10B981 !important;
    background: #FFFFFF;
}
.metric-card-red {
    border-left: 5px solid #EF4444 !important;
    background: #FFFFFF;
}

.table-custom-header {
    background: linear-gradient(135deg, #07152B 0%, #0048BA 100%) !important;
    color: #FFFFFF !important;
}

.btn-chat-floating {
    background: linear-gradient(135deg, #0066FF 0%, #FF7A00 100%);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.45);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.btn-chat-floating:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(255, 122, 0, 0.6);
    color: #FFFFFF;
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -230px;
        top: 76px;
        height: calc(100vh - 76px);
    }
    .sidebar.active {
        margin-left: 0;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.5);
    }
    .main-content {
        margin-left: 0;
        width: 100% !important;
        padding: 20px 14px;
    }
    #sidebarCollapse {
        display: inline-flex !important;
    }
}
#sidebarCollapse {
    display: none;
}


/* ======================================================================
   COMPACT PANEL MODE — applied to Student Dashboard & College Dashboard
   Denser spacing / typography so more information fits without scrolling.
   ====================================================================== */

/* Tighter sidebar */
.panel-compact .sidebar {
    min-width: 200px;
    max-width: 200px;
    padding: 8px 8px;
}
.panel-compact .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    padding: 12px 12px;
}
.panel-compact .sidebar .nav-link {
    padding: 6px 10px;
    font-size: 0.82rem;
    margin-bottom: 1px;
}
.panel-compact .sidebar .nav-link i { width: 18px; font-size: 0.85rem; }
.panel-compact .sidebar-section-title { font-size: 0.66rem; margin-bottom: 2px; }
.panel-compact .sidebar-card-user { padding: 8px; }

/* Tighter cards / panels */
.panel-compact .glass-panel { padding: 16px !important; border-radius: 12px !important; }
.panel-compact .dashboard-card { padding: 14px !important; }
.panel-compact .card-icon { width: 40px !important; height: 40px !important; font-size: 1.05rem !important; }
.panel-compact h3 { font-size: 1.35rem; }
.panel-compact h5, .panel-compact h6 { font-size: 0.95rem; }
.panel-compact .small, .panel-compact small { font-size: 0.78rem; }

/* Tighter form controls */
.panel-compact .form-label { margin-bottom: 2px !important; font-size: 0.78rem; }
.panel-compact .form-control, .panel-compact .form-select { padding: 6px 10px; font-size: 0.85rem; }
.panel-compact .row.mb-3 { margin-bottom: 0.6rem !important; }
.panel-compact .row.mb-4 { margin-bottom: 0.75rem !important; }
.panel-compact .mb-4 { margin-bottom: 0.9rem !important; }
.panel-compact .mb-5 { margin-bottom: 1.1rem !important; }
.panel-compact .p-5 { padding: 1.75rem !important; }
.panel-compact .p-4 { padding: 1.1rem !important; }

/* Compact tables (bucket list, fee/seat matrix, student lists) */
.panel-compact .compact-table th,
.panel-compact .compact-table td,
.panel-compact .table-custom th,
.panel-compact .table-custom td {
    padding: 6px 10px !important;
    font-size: 0.82rem !important;
    vertical-align: middle;
}
.panel-compact .compact-table .form-control-sm { padding: 3px 8px; font-size: 0.8rem; }

/* Navbar / avatar tightened for compact panels */
.panel-compact .navbar-custom { padding-top: 4px !important; padding-bottom: 4px !important; }

/* College Panel: navbar is 58px tall instead of the usual 76px */
.college-panel .sidebar { top: 58px; height: calc(100vh - 58px); }
.college-panel .main-content { margin-top: 58px; min-height: calc(100vh - 58px); }

/* Mobile: sidebar collapses same as before, just narrower on desktop */
@media (max-width: 991.98px) {
    .panel-compact .sidebar { margin-left: -200px; }
    .panel-compact .sidebar.active { margin-left: 0; }
    .panel-compact .main-content { margin-left: 0 !important; width: 100% !important; }
}

/* =====================================================================
   v3 additions: bulk import dropzone, banner ads, premium colleges
   ===================================================================== */
.cc-dropzone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-height: 140px; padding: 24px; text-align: center; cursor: pointer;
    border: 2px dashed rgba(0, 102, 255, 0.35); border-radius: 16px;
    background: rgba(0, 102, 255, 0.03); transition: background .15s, border-color .15s;
}
.cc-dropzone:hover, .cc-dropzone.is-dragover { background: rgba(0, 102, 255, 0.08); border-color: #0066FF; }

.cc-ad-slot { position: relative; }
.cc-ad-slot .carousel, .cc-ad-slot .carousel-inner { border-radius: 16px; overflow: hidden; }
.cc-ad-link { display: block; position: relative; color: #fff; text-decoration: none; background: #0b1b33; }
.cc-ad-img { display: block; width: 100%; height: auto; }
.cc-ad-slot { margin-left: auto; margin-right: auto; }
.cc-ad-home_top, .cc-ad-home_middle { max-width: 1100px; }
.cc-ad-dashboard_top, .cc-ad-results_inline { max-width: 820px; }
.cc-ad-caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
    background: linear-gradient(0deg, rgba(7, 21, 43, .82), rgba(7, 21, 43, 0));
    display: flex; flex-direction: column; gap: 2px; font-size: .95rem;
}
.cc-ad-caption span { font-size: .82rem; opacity: .9; }
.cc-ad-badge {
    position: absolute; top: 10px; right: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .04em;
    background: rgba(255, 255, 255, .92); color: #07152B; padding: 2px 8px; border-radius: 999px;
}
@media (max-width: 576px) { .cc-ad-caption { padding: 8px 12px; font-size: .82rem; } }

tr.cc-premium-row > td { background: #FFF8EC !important; }
tr.cc-premium-row > td:first-child { box-shadow: inset 4px 0 0 #FF9F1C; }
.cc-premium-badge { background: linear-gradient(90deg, #FF9F1C, #FFBF47); color: #3b2300; font-weight: 700; }
.cc-sponsored-badge { background: #EEF2FF; color: #3730A3; border: 1px solid #C7D2FE; font-weight: 600; }
.cc-featured-card { border: 1px solid #FFD48A; background: #FFFBF3; border-radius: 14px; }

#predictionsTable th.cc-col-college, #predictionsTable td.cc-col-college { min-width: 300px; }
#predictionsTable th.cc-col-branch { min-width: 170px; }
