/* ==========================================================================
   Space University - Modern Cosmic Design System & Theme Stylesheet
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-dark: #070913;
    --bg-card: rgba(15, 20, 38, 0.65);
    --bg-card-hover: rgba(22, 30, 56, 0.85);
    --border-glass: rgba(0, 242, 255, 0.15);
    --border-glow: rgba(0, 242, 255, 0.4);
    
    --primary-cyan: #00f2ff;
    --primary-blue: #3b82f6;
    --primary-purple: #8a2be2;
    --accent-pink: #ff007f;
    --accent-gold: #fbbf24;
    --accent-green: #10b981;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-glow: 0 0 25px rgba(0, 242, 255, 0.25);
    --shadow-purple: 0 0 25px rgba(138, 43, 226, 0.25);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Canvas & Background Effects */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.space-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--border-glow);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #38ef7d 50%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary-cyan);
    text-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
}

.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

/* Buttons & Controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: #040817;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 242, 255, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-outline:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.glow-button:hover::after {
    opacity: 1;
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

/* Hero Section */
.hero-section {
    max-width: 1280px;
    margin: 140px auto 80px;
    padding: 0 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 255, 0.08);
    border: 1px solid rgba(0, 242, 255, 0.25);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 16px var(--primary-cyan); }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: 24px;
}

.hero-subtitle {
    max-width: 760px;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.notice-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    max-width: 840px;
    margin-bottom: 40px;
    text-align: left;
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.notice-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 840px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 4px;
}

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

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Sections */
.section {
    max-width: 1280px;
    margin: 100px auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Classes Starting Soon Section */
.class-filters {
    padding: 16px 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.1);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    padding: 8px 14px;
    border-radius: 8px;
    min-width: 260px;
}

.search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    width: 100%;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

/* Course Card */
.course-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-cyan), var(--primary-purple));
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.course-code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-seats {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.course-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.course-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.course-details-list {
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 500;
}

.course-footer {
    display: flex;
    gap: 12px;
    align-items: center;
}

.course-footer .btn {
    flex: 1;
}

/* Coming Soon Badge */
.badge-coming-soon {
    background: rgba(255, 184, 0, 0.15);
    color: #ffb800;
    border: 1px solid rgba(255, 184, 0, 0.4);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Foundational Courses Section Styles - Designer 2-Column Grid */
.foundational-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 28px;
}

@media (max-width: 992px) {
    .foundational-grid {
        grid-template-columns: 1fr;
    }
}

.foundational-card {
    padding: 36px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 20, 36, 0.85), rgba(7, 11, 24, 0.9));
    border: 1px solid rgba(0, 242, 255, 0.22);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.foundational-card:hover {
    border-color: rgba(0, 242, 255, 0.55);
    box-shadow: 0 16px 48px rgba(0, 242, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.foundational-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.dept-tag {
    font-size: 0.78rem;
    font-weight: 700;
    color: #00f2ff;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: rgba(0, 242, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.course-code-highlight {
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.35), rgba(0, 242, 255, 0.2));
    color: #e2b6ff;
    border: 1px solid rgba(121, 40, 202, 0.5);
    padding: 4px 14px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.foundational-title {
    font-size: 1.45rem;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.foundational-overview {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.syllabus-modules {
    background: rgba(5, 10, 24, 0.75);
    border-radius: 14px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.syllabus-heading {
    font-size: 0.92rem;
    color: #00f2ff;
    margin-bottom: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.module-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .module-list {
        grid-template-columns: 1fr;
    }
}

.module-list li {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-start;
}

.module-list .bullet {
    color: #00f2ff;
    font-weight: bold;
    margin-right: 8px;
    font-size: 1rem;
    line-height: 1;
}

.foundational-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.lab-box, .reading-box {
    background: rgba(0, 242, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.15);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.reading-box {
    background: rgba(121, 40, 202, 0.05);
    border-color: rgba(121, 40, 202, 0.2);
}

/* Faculties Grid */
.faculties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

@media (max-width: 650px) {
    .faculties-grid {
        grid-template-columns: 1fr;
    }
}

.faculty-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 16px;
    background: rgba(13, 20, 36, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.faculty-card:hover {
    border-color: rgba(0, 242, 255, 0.5);
    transform: translateY(-4px);
}

.faculty-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.faculty-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.3;
}

.faculty-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
    flex-grow: 1;
}

.faculty-list {
    list-style: none;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0;
    margin: 0;
}

.faculty-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.faculty-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-cyan);
}

/* Signup Section & Auto-Generation UI */
.signup-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    padding: 48px;
}

@media (max-width: 900px) {
    .signup-container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.signup-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.signup-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.perks-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.perk-item {
    display: flex;
    gap: 16px;
}

.perk-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.15);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.perk-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.perk-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.signup-card {
    background: rgba(7, 9, 19, 0.6);
    border: 1px solid var(--border-glass);
    padding: 32px;
    border-radius: 14px;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.label-with-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.label-with-hint label {
    margin-bottom: 0;
}

.handle-status {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.input-with-button {
    display: flex;
    gap: 8px;
}

.input-with-button input {
    flex-grow: 1;
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.3);
    color: var(--primary-cyan);
    font-weight: 600;
}

.help-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.25);
}

select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input {
    accent-color: var(--primary-cyan);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.error-msg {
    display: none;
    color: var(--accent-pink);
    font-size: 0.75rem;
    margin-top: 4px;
}

.form-group.error input {
    border-color: var(--accent-pink);
}

.form-group.error .error-msg {
    display: block;
}

/* Modals */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-cyan);
}

.modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.modal-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.form-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 24px;
}

.forgot-link {
    color: var(--primary-cyan);
    text-decoration: none;
}

.demo-notice {
    margin-top: 20px;
    padding: 12px;
    background: rgba(0, 242, 255, 0.05);
    border: 1px dashed rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Dashboard View Inside Modal */
.hidden {
    display: none !important;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.cadet-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #000;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cadet-id {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.dash-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.dash-tab.active {
    color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.1);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 16px;
    text-align: center;
}

.m-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.m-val {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: bold;
}

.text-cyan { color: var(--primary-cyan); }
.text-purple { color: var(--primary-purple); }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }

.enrolled-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enrolled-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.c-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-cyan);
    padding: 2px 6px;
    border-radius: 4px;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-blue { background: rgba(59, 130, 246, 0.15); color: var(--primary-blue); }

.schedule-timeline {
    list-style: none;
}

.schedule-timeline li {
    padding: 14px;
    border-left: 2px solid var(--primary-cyan);
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 8px 8px 0;
}

.schedule-timeline .time {
    display: block;
    font-size: 0.75rem;
    color: var(--primary-cyan);
    font-family: var(--font-mono);
}

.grades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.grades-table th, .grades-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grades-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.telemetry-box {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.telemetry-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

/* AI Floating Widget */
.ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 340px;
    z-index: 99;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 242, 255, 0.3);
}

.ai-header {
    background: rgba(0, 242, 255, 0.1);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ai-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
}

.ai-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.ai-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    transition: max-height 0.3s ease;
}

.ai-body.collapsed {
    display: none;
}

.ai-chat {
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.85rem;
}

.msg {
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 85%;
}

.bot-msg {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    align-self: flex-start;
}

.user-msg {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.3);
    align-self: flex-end;
}

.ai-input-group {
    display: flex;
    gap: 8px;
}

.ai-input-group input {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.ai-input-group button {
    background: var(--primary-cyan);
    border: none;
    border-radius: 8px;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-input-group button svg {
    width: 16px;
    height: 16px;
    stroke: #000;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--primary-cyan);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 6, 14, 0.9);
    padding: 60px 24px 30px;
    margin-top: 100px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 800px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

.footer-col h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--primary-cyan);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Faculty Profiles & Leadership Styles - Designer 2-Column Grid
   ========================================================================== */
.faculty-profiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 28px;
}

@media (max-width: 900px) {
    .faculty-profiles-grid {
        grid-template-columns: 1fr;
    }
}

.dean-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(121, 40, 202, 0.25), rgba(0, 242, 255, 0.18));
    border: 1px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 255, 0.15);
    padding: 40px;
    border-radius: 20px;
}

.faculty-profile-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.faculty-profile-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-cyan);
    box-shadow: 0 12px 32px rgba(0, 242, 255, 0.15);
}

.dean-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.25) 0%, rgba(0, 242, 255, 0.15) 100%);
    border: 1px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 12px 36px rgba(138, 43, 226, 0.25);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.avatar-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 16px rgba(0, 242, 255, 0.3);
}

.dean-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
    border: 2px solid var(--accent-gold, #ffb703);
    box-shadow: 0 0 24px rgba(255, 183, 3, 0.4);
}

.badge-dean {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(255, 183, 3, 0.2);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.5);
    display: inline-block;
    margin-bottom: 6px;
}

.badge-dept {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-cyan);
    border: 1px solid rgba(0, 242, 255, 0.3);
    display: inline-block;
    margin-bottom: 4px;
}

.faculty-name {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.faculty-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.faculty-degrees {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 6px;
}

.faculty-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.faculty-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

