/* ============================================================
   Cognira — Complete Application Stylesheet
   Modules: Landing Page, Auth, Student Dashboard, Company Portal
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
    --navy: #1a2744;
    --navy-deep: #0f1a2e;
    --navy-light: #243656;
    --orange: #f58220;
    --orange-hot: #ff6b00;
    --orange-glow: #ffaa4c;
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --cyan: #22d3ee;
    --purple: #a855f7;
    --green: #10b981;
    --red: #f43f5e;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --grey-50: #f8fafc;
    --grey-100: #e8edf3;
    --grey-200: #c4cdd9;
    --grey-400: #94a3b8;
    --grey-600: #6b7a8d;
    --grey-800: #334155;
    --text-primary: #0d1b2a;
    --text-secondary: #475569;
    --spark-gradient: linear-gradient(135deg, #ff6b00 0%, #f58220 40%, #ffaa4c 100%);
    --navy-gradient: linear-gradient(135deg, #0f1a2e 0%, #1a2744 50%, #243656 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
    --font-display: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    --header-height: 64px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text-primary); background: var(--off-white); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: 1280px; margin: 0 auto; width: 100%; }
.accent { color: var(--orange); }

/* ========================================
   LANDING PAGE STYLES
   ======================================== */

.landing-page { background: var(--off-white); }

/* --- Landing Nav --- */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.88); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26,39,68,0.06); transition: box-shadow 0.4s;
}
.logo-text { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.logo-text .accent { color: var(--orange); }
.logo-text.white { color: var(--white); }
.nav-logo-img { height: 38px; width: auto; display: block; }
.footer-logo-img { height: 34px; width: auto; display: block; margin-bottom: 8px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--navy); transition: color var(--transition); }
.nav-links a:hover { color: var(--orange); }
.btn-nav { padding: 10px 24px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; transition: all var(--transition); display: inline-flex; align-items: center; }
.btn-nav.outline { border: 2px solid var(--navy); color: var(--navy); }
.btn-nav.outline:hover { background: var(--navy); color: var(--white); }
.btn-nav.primary { background: var(--spark-gradient); color: var(--white); box-shadow: 0 4px 15px rgba(245,130,32,0.35); }
.btn-nav.primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(245,130,32,0.5); }

/* --- Hero --- */
.landing-page .hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--navy-gradient); overflow: hidden; padding: 120px 48px 80px;
}
.hero-bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.hero-text { color: var(--white); }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    background: rgba(245,130,32,0.12); border: 1px solid rgba(245,130,32,0.25); border-radius: var(--radius-full);
    font-family: var(--font-mono); font-size: 12px; color: var(--orange-glow); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 28px;
}
.hero-badge .pulse { width: 8px; height: 8px; background: var(--orange); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.5)} }

.hero h1 { font-family: var(--font-display); font-size: 58px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero h1 .highlight, .section-cta h2 .highlight { background: var(--spark-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.7); max-width: 520px; margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; }

.btn-hero { padding: 15px 32px; border-radius: var(--radius-full); font-family: var(--font-display); font-size: 16px; font-weight: 600; transition: all 0.35s; display: inline-flex; align-items: center; gap: 8px; }
.btn-hero.primary { background: var(--spark-gradient); color: var(--white); box-shadow: 0 8px 30px rgba(245,130,32,0.4); }
.btn-hero.primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(245,130,32,0.55); }
.btn-hero.secondary { background: rgba(255,255,255,0.08); color: var(--white); border: 1.5px solid rgba(255,255,255,0.2); }
.btn-hero.secondary:hover { background: rgba(255,255,255,0.15); }

.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat .number { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--orange-glow); }
.hero-stat .label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* --- Hero Visual (Spark Card) --- */
.hero-visual { position: relative; }
.spark-card {
    background: rgba(255,255,255,0.06); backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-2xl); padding: 32px;
    position: relative; overflow: hidden;
}
.spark-card::before { content:''; position: absolute; top:0; left:0; right:0; height: 3px; background: var(--spark-gradient); }
.spark-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.spark-card-header h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--white); }
.spark-score-badge { background: var(--spark-gradient); padding: 5px 14px; border-radius: 20px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--white); }
.spark-dimensions { display: flex; flex-direction: column; gap: 12px; }
.dimension-row { display: flex; align-items: center; gap: 12px; }
.dimension-label { width: 95px; font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }
.dimension-bar { flex: 1; height: 7px; background: rgba(255,255,255,0.08); border-radius: 10px; overflow: hidden; }
.dimension-fill { height: 100%; border-radius: 10px; transition: width 1.2s ease; }
.dimension-score { width: 30px; text-align: right; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.8); }
.spark-badges-row { display: flex; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.mini-badge { padding: 5px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.mini-badge.gold { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.2); }
.mini-badge.blue { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.mini-badge.green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }

/* --- Section Commons --- */
.section-label { font-family: var(--font-mono); font-size: 12px; color: var(--orange); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-bottom: 10px; display: block; }
.section-label.purple { color: #c084fc; }
.section-title { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.section-title.white { color: var(--white); }
.section-desc { font-size: 17px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }

/* --- How It Works --- */
.section-how { padding: 110px 48px; background: var(--off-white); }
.section-how .container { max-width: 1280px; margin: 0 auto; }
.section-how .section-title { margin-bottom: 56px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { background: var(--white); border-radius: var(--radius-xl); padding: 32px 24px; border: 1px solid var(--grey-100); transition: all 0.4s; }
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-number { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 20px; }
.step-icon { font-size: 26px; margin-bottom: 8px; }
.step-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* --- Features --- */
.section-features { padding: 110px 48px; background: var(--white); }
.section-features .container { max-width: 1280px; margin: 0 auto; }
.section-features .section-title { margin-bottom: 56px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { border-radius: var(--radius-2xl); padding: 36px 28px; border: 1px solid var(--grey-100); background: var(--white); transition: all 0.4s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card.featured { grid-column: span 2; background: var(--navy-gradient); border: none; color: var(--white); }
.feature-card.featured h3 { color: var(--white); }
.feature-card.featured p { color: rgba(255,255,255,0.7); }
.feature-icon { font-size: 28px; width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--off-white); margin-bottom: 20px; }
.feature-card.featured .feature-icon { background: rgba(245,130,32,0.15); }
.feature-card h3 { font-family: var(--font-display); font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* --- KBC Section --- */
.section-kbc { padding: 110px 48px; background: linear-gradient(170deg, #0f1a2e 0%, #1a1040 50%, #0f1a2e 100%); position: relative; overflow: hidden; }
.section-kbc::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 600px at 30% 20%, rgba(168,85,247,0.12), transparent), radial-gradient(ellipse 400px 400px at 70% 80%, rgba(245,130,32,0.1), transparent); }
.kbc-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; max-width: 1280px; margin: 0 auto; }
.kbc-features-list { display: flex; flex-direction: column; gap: 14px; }
.kbc-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); color: var(--white); transition: all 0.3s; }
.kbc-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(168,85,247,0.2); }
.kbc-item span:first-child { font-size: 20px; min-width: 32px; }
.kbc-item strong { font-family: var(--font-display); font-size: 14px; }
.kbc-item div { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.7); }

/* KBC Mock */
.kbc-mock { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-2xl); padding: 28px; backdrop-filter: blur(20px); }
.kbc-level { text-align: center; font-family: var(--font-mono); font-size: 12px; color: #c084fc; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.kbc-question-box { text-align: center; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--white); padding: 18px; background: rgba(168,85,247,0.08); border: 1px solid rgba(168,85,247,0.15); border-radius: var(--radius-lg); margin-bottom: 20px; line-height: 1.5; }
.kbc-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.kbc-opt { padding: 12px 16px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-md); font-size: 14px; color: rgba(255,255,255,0.8); text-align: center; }
.kbc-opt.correct { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.4); color: #34d399; }
.kbc-lifelines-row { display: flex; justify-content: center; gap: 14px; font-size: 20px; }
.kbc-lifelines-row span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); cursor: pointer; }
.kbc-lifelines-row span.used { opacity: 0.3; }

/* --- Dual Cards (Students / Companies) --- */
.section-dual { padding: 110px 48px; background: var(--off-white); }
.section-dual .container { max-width: 1280px; margin: 0 auto; }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.dual-card { border-radius: var(--radius-2xl); padding: 44px 36px; color: var(--white); }
.dual-card.student { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.dual-card.company { background: linear-gradient(135deg, var(--orange-hot), var(--orange)); }
.dual-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.dual-card > p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 24px; line-height: 1.6; }
.dual-card ul { margin-bottom: 28px; }
.dual-card li { font-size: 15px; font-weight: 500; padding: 6px 0; }
.btn-white { display: inline-flex; padding: 12px 28px; background: var(--white); border-radius: var(--radius-full); font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--navy); transition: all 0.3s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* --- CTA --- */
.section-cta { padding: 110px 48px; background: var(--navy-gradient); position: relative; overflow: hidden; text-align: center; }
.section-cta::before { content:''; position: absolute; inset: 0; background: radial-gradient(ellipse 800px 500px at 50% 100%, rgba(245,130,32,0.12), transparent); }
.cta-center { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-center h2 { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--white); letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.cta-center p { font-size: 17px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 36px; }
.cta-buttons { display: flex; justify-content: center; gap: 16px; }

/* --- Footer --- */
.landing-footer { background: var(--navy-deep); padding: 72px 48px 36px; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1280px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 10px; transition: color 0.3s; }
.footer-col a:hover { color: var(--orange-glow); }
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ========================================
   AUTH PAGE STYLES
   ======================================== */

.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-left { background: var(--navy-gradient); display: flex; align-items: center; justify-content: center; padding: 60px; position: relative; overflow: hidden; }
.auth-left::before { content:''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px; background: rgba(245,130,32,0.1); border-radius: 50%; filter: blur(80px); }
.auth-left.register-variant { background: linear-gradient(135deg, #0f1a2e, #1a1040); }
.auth-brand { position: relative; z-index: 2; }
.auth-brand .logo { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--white); display: inline-block; margin-bottom: 28px; }
.auth-brand .logo span { color: var(--orange); }
.auth-brand h1 { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.auth-brand p { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; max-width: 400px; }
.auth-features { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.auth-feature { font-size: 15px; color: rgba(255,255,255,0.75); font-weight: 500; padding: 8px 0; }
.auth-right { display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--white); }
.auth-form-container { width: 100%; max-width: 440px; }
.auth-form-container h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.auth-subtitle { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }

/* --- Role Selector --- */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.role-option { padding: 16px; border: 2px solid var(--grey-100); border-radius: var(--radius-lg); text-align: center; cursor: pointer; transition: all var(--transition); }
.role-option:hover { border-color: var(--grey-200); }
.role-option.active { border-color: var(--orange); background: rgba(245,130,32,0.04); }

/* reCAPTCHA */
.captcha-group { margin: 8px 0 16px; }
.captcha-group .validation-message { color: #dc2626; font-size: 0.82rem; margin-top: 6px; display: block; }
.role-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.role-label { font-size: 14px; font-weight: 600; color: var(--navy); }

/* --- Form Styles (Global) --- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group small { font-size: 12px; color: var(--grey-600); margin-top: 4px; display: block; }
.form-input {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--grey-100); border-radius: var(--radius-md);
    font-size: 15px; font-family: var(--font-body); color: var(--text-primary); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-input::placeholder { color: var(--grey-400); }
textarea.form-input { resize: vertical; min-height: 80px; }
select.form-input { cursor: pointer; }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full-width { grid-column: span 2; }
.form-section { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 28px; margin-bottom: 20px; }
.form-section h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--grey-100); }
.form-hint { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; padding: 20px 0; }

.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); cursor: pointer; }
.checkbox-label input[type="checkbox"] { accent-color: var(--orange); }

.validation-message { font-size: 12px; color: var(--red); margin-top: 4px; }

/* --- Buttons (Global) --- */
.btn-primary { padding: 12px 24px; background: var(--spark-gradient); color: var(--white); border: none; border-radius: var(--radius-full); font-size: 15px; font-weight: 600; font-family: var(--font-display); transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,130,32,0.4); }
.btn-primary:disabled { opacity: 0.6; pointer-events: none; }
.btn-outline { padding: 12px 24px; background: transparent; color: var(--navy); border: 2px solid var(--grey-200); border-radius: var(--radius-full); font-size: 15px; font-weight: 600; font-family: var(--font-display); transition: all var(--transition); }
.btn-outline:hover { border-color: var(--navy); background: var(--grey-50); }
.btn-accent { padding: 10px 20px; background: var(--blue); color: var(--white); border-radius: var(--radius-full); font-size: 14px; font-weight: 600; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 16px; font-size: 13px; font-weight: 600; border-radius: var(--radius-full); }
.btn-sm.btn-primary { background: var(--spark-gradient); color: var(--white); }
.btn-sm.btn-outline { border: 1.5px solid var(--grey-200); color: var(--text-secondary); }
.btn-sm.btn-danger { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }
.btn-sm.btn-sparked { background: rgba(245,130,32,0.1); color: var(--orange); border: 1px solid rgba(245,130,32,0.2); }
.link-accent { font-size: 14px; font-weight: 600; color: var(--orange); transition: color var(--transition); }
.link-accent:hover { color: var(--orange-hot); }

/* Auth extras */
.auth-divider { text-align: center; margin: 24px 0; position: relative; }
.auth-divider::before { content:''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--grey-100); }
.auth-divider span { background: var(--white); padding: 0 16px; font-size: 13px; color: var(--grey-400); position: relative; }
.auth-social { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-social { padding: 12px; border: 1.5px solid var(--grey-100); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--text-primary); width: 100%; transition: all var(--transition); }
.btn-social:hover { border-color: var(--grey-200); background: var(--grey-50); }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-secondary); }
.auth-switch a { color: var(--orange); font-weight: 600; }
.auth-terms { text-align: center; font-size: 12px; color: var(--grey-400); margin-bottom: 16px; }
.auth-terms a { color: var(--blue); }

/* --- Alerts --- */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.alert-error { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }
.alert-success { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.alert-warning { background: rgba(245,158,11,0.08); color: #b45309; border: 1px solid rgba(245,158,11,0.15); }

/* ========================================
   DASHBOARD LAYOUT
   ======================================== */

.dashboard-layout { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width); background: var(--navy-deep); display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; transition: width var(--transition); overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-header { padding: 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-logo { font-family: var(--font-display); font-weight: 800; display:flex; align-items:center; }
.sidebar-logo .sidebar-logo-img { height: 32px; width: auto; display: block; }
.sidebar-logo .logo-full { font-size: 20px; color: var(--white); }
.sidebar-logo .logo-full .accent { color: var(--orange); }
.sidebar-logo .logo-mini { font-size: 18px; color: var(--orange); font-weight: 800; display: none; }
.sidebar.collapsed .sidebar-logo-img { display: none; }
.sidebar.collapsed .logo-full { display: none; }
.sidebar.collapsed .logo-mini { display: block; }
.sidebar-toggle { color: rgba(255,255,255,0.4); font-size: 16px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.sidebar-toggle:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); color: rgba(255,255,255,0.55); font-size: 14px; font-weight: 500; transition: all var(--transition); white-space: nowrap; }
.nav-item:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.nav-item.active { background: rgba(245,130,32,0.12); color: var(--orange-glow); }
.nav-icon { font-size: 18px; min-width: 24px; text-align: center; }
.sidebar.collapsed .nav-text { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }

/* Nav Section Labels */
.nav-section-label { display:block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:rgba(255,255,255,0.25); padding:16px 14px 6px; margin-top:4px; }
.sidebar.collapsed .nav-section-label { display:none; }

/* Nav Group (collapsible folder) */
.nav-group { margin-bottom:2px; }
.nav-group-toggle { display:flex; align-items:center; gap:12px; width:100%; padding:12px 14px; border:none; background:transparent; border-radius:var(--radius-md); color:rgba(255,255,255,0.55); font-size:14px; font-weight:500; cursor:pointer; transition:all 0.15s; white-space:nowrap; text-align:left; }
.nav-group-toggle:hover { background:rgba(255,255,255,0.06); color:rgba(255,255,255,0.9); }
.nav-group-toggle.open { color:rgba(255,255,255,0.85); }
.nav-group-toggle .nav-icon { font-size:16px; width:20px; text-align:center; flex-shrink:0; }
.nav-group-toggle .nav-text { flex:1; }
.nav-chevron { font-size:14px; font-weight:700; transition:transform 0.2s; opacity:0.4; margin-left:auto; }
.nav-group-toggle.open .nav-chevron { transform:rotate(90deg); opacity:0.7; }

/* Sub-items (collapsed by default) */
.nav-group-items { max-height:0; overflow:hidden; transition:max-height 0.25s ease; }
.nav-group-items.show { max-height:500px; }
.nav-item.sub { padding:9px 14px 9px 46px; font-size:13px; color:rgba(255,255,255,0.45); gap:8px; }
.nav-item.sub:hover { color:rgba(255,255,255,0.85); background:rgba(255,255,255,0.04); }
.nav-item.sub.active { color:var(--orange-glow); background:rgba(245,130,32,0.08); }

/* Collapsed sidebar: hide groups, show only icons */
.sidebar.collapsed .nav-group-toggle .nav-text,
.sidebar.collapsed .nav-group-toggle .nav-chevron { display:none; }
.sidebar.collapsed .nav-group-toggle { justify-content:center; padding:12px; }
.sidebar.collapsed .nav-group-items { display:none; }

.sidebar-footer { padding: 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.logout-btn { width: 100%; }

/* --- Dashboard Main --- */
.dashboard-main { flex: 1; margin-left: var(--sidebar-width); transition: margin-left var(--transition); display: flex; flex-direction: column; }
.sidebar.collapsed ~ .dashboard-main { margin-left: var(--sidebar-collapsed); }
.dashboard-header { height: var(--header-height); background: var(--white); border-bottom: 1px solid var(--grey-100); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 50; }
.page-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--spark-gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.user-name { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.dashboard-content { flex: 1; padding: 28px 32px; }

/* ========================================
   DASHBOARD COMPONENTS
   ======================================== */

/* --- Cards --- */
.card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 20px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }

/* --- Welcome Banner --- */
.welcome-banner { background: var(--navy-gradient); border-radius: var(--radius-xl); padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; color: var(--white); }
.welcome-banner h1 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.welcome-banner p { font-size: 14px; color: rgba(255,255,255,0.65); }

/* --- Stats Row --- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 14px; transition: all var(--transition); }
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-card.spark { border-color: rgba(245,130,32,0.2); background: rgba(245,130,32,0.03); }
.stat-icon { font-size: 28px; }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--text-secondary); }

/* --- Completeness --- */
.completeness-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 24px; }
.completeness-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.completeness-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); }
.completeness-pct { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--orange); }
.completeness-bar { height: 8px; background: var(--grey-100); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.completeness-fill { height: 100%; background: var(--spark-gradient); border-radius: 10px; transition: width 1s ease; }
.completeness-card p { font-size: 13px; color: var(--text-secondary); }
.completeness-card a { color: var(--orange); font-weight: 600; }

/* --- Dashboard Grid --- */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

/* --- Activity Feed --- */
.activity-feed { display: flex; flex-direction: column; gap: 12px; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--grey-100); }
.activity-item:last-child { border-bottom: none; }
.activity-icon { font-size: 20px; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--off-white); border-radius: var(--radius-sm); }
.activity-info { display: flex; flex-direction: column; }
.activity-title { font-size: 14px; font-weight: 600; color: var(--navy); }
.activity-desc { font-size: 13px; color: var(--text-secondary); }
.activity-time { font-size: 12px; color: var(--grey-400); margin-top: 2px; }

/* --- Internship Cards (Student view) --- */
.internship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.internship-card, .internship-card-full { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; transition: all var(--transition); }
.internship-card:hover, .internship-card-full:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.intern-header, .intern-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.intern-company { display: flex; align-items: center; gap: 10px; flex: 1; }
.company-avatar, .company-avatar-sm { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--navy-gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 16px; font-weight: 700; flex-shrink: 0; }
.intern-header h4, .intern-title-block h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); }
.company-name, .company-name-text { font-size: 13px; color: var(--text-secondary); }
.intern-mode, .intern-mode-badge, .mode-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); }
.mode-remote { background: rgba(16,185,129,0.1); color: var(--green); }
.mode-onsite { background: rgba(59,130,246,0.1); color: var(--blue); }
.mode-hybrid { background: rgba(168,85,247,0.1); color: var(--purple); }
.intern-details, .intern-meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: 13px; color: var(--text-secondary); }
.meta-chip { background: var(--off-white); padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; }
.intern-footer, .intern-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--grey-100); }
.applications-count, .intern-card-meta span { font-size: 12px; color: var(--grey-400); }
.intern-card-meta { display: flex; gap: 12px; }

.internship-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.match-score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.match-label { font-size: 12px; color: var(--text-secondary); font-weight: 600; min-width: 80px; }
.match-bar { flex: 1; height: 6px; background: var(--grey-100); border-radius: 10px; overflow: hidden; }
.match-fill { height: 100%; background: var(--spark-gradient); border-radius: 10px; }
.match-pct { font-family: var(--font-mono); font-size: 13px; color: var(--orange); font-weight: 700; min-width: 36px; }

/* --- Tags --- */
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { padding: 4px 12px; background: var(--off-white); border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.tag.small { font-size: 11px; padding: 3px 10px; }
.tag.tag-accent { background: rgba(245,130,32,0.08); color: var(--orange); }

/* --- Tables --- */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--grey-600); text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--grey-100); }
.data-table td { padding: 14px; border-bottom: 1px solid var(--grey-100); font-size: 14px; color: var(--text-primary); }
.data-table tr:hover td { background: var(--grey-50); }
.status-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); }
.status-active { background: rgba(16,185,129,0.1); color: var(--green); }
.status-paused { background: rgba(245,158,11,0.1); color: #b45309; }
.status-closed { background: rgba(107,122,141,0.1); color: var(--grey-600); }
.status-draft { background: rgba(168,85,247,0.1); color: var(--purple); }
.action-btns { display: flex; gap: 6px; }

/* --- Quick Actions --- */
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.action-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 12px; transition: all var(--transition); cursor: pointer; }
.action-card:hover { box-shadow: var(--shadow-sm); border-color: var(--orange); }
.action-icon { font-size: 24px; }
.action-text { font-size: 14px; font-weight: 600; color: var(--navy); }

/* --- Candidates --- */
.candidates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.candidate-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 22px; transition: all var(--transition); }
.candidate-card:hover { box-shadow: var(--shadow-md); }
.candidate-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.candidate-avatar { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--navy-gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; flex-shrink: 0; }
.candidate-avatar.large { width: 52px; height: 52px; font-size: 18px; }
.candidate-basic { flex: 1; }
.candidate-basic h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); }
.candidate-basic p { font-size: 13px; color: var(--text-secondary); }
.college-info { font-size: 12px !important; color: var(--grey-400) !important; margin-top: 2px; }
.candidate-spark-badge { background: var(--spark-gradient); padding: 6px 14px; border-radius: var(--radius-full); }
.candidate-spark-badge .spark-number { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--white); }
.candidate-actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--grey-100); }
.mini-dimensions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mini-dim { display: flex; align-items: center; gap: 8px; }
.mini-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--grey-400); width: 36px; letter-spacing: 0.05em; }
.mini-bar { flex: 1; height: 5px; background: var(--grey-100); border-radius: 6px; overflow: hidden; }
.mini-fill { height: 100%; border-radius: 6px; }
.mini-val { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--grey-600); width: 24px; text-align: right; }
.badge-row { display: flex; gap: 6px; margin-top: 8px; }
.mini-badge-icon { font-size: 18px; }
.candidate-list { display: flex; flex-direction: column; gap: 8px; }
.candidate-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-md); transition: background var(--transition); }
.candidate-row:hover { background: var(--grey-50); }
.candidate-info { flex: 1; }
.candidate-info strong { font-size: 14px; color: var(--navy); display: block; }
.candidate-info span { font-size: 12px; color: var(--grey-400); }
.candidate-score .score-badge { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--orange); background: rgba(245,130,32,0.08); padding: 4px 12px; border-radius: var(--radius-full); }

/* --- Profile Page --- */
.profile-header-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 28px; display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.profile-header-card.company-header { border-top: 3px solid var(--orange); }
.profile-avatar { width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--spark-gradient); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 28px; font-weight: 700; flex-shrink: 0; }
.profile-avatar.company-avatar { background: var(--navy-gradient); }
.profile-header-info { flex: 1; }
.profile-header-info h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.profile-headline { font-size: 15px; color: var(--text-secondary); }
.profile-college { font-size: 14px; color: var(--grey-600); margin-top: 4px; }
.profile-header-actions { flex-shrink: 0; }
.profile-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 20px; }
.profile-grid h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.profile-grid h4 { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 16px; margin-bottom: 8px; }
.profile-grid p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.profile-stats div { padding: 10px 0; border-bottom: 1px solid var(--grey-100); font-size: 14px; color: var(--text-secondary); }
.profile-stats strong { color: var(--navy); }
.verification-badge { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; margin-top: 6px; }
.verification-badge.verified { background: rgba(16,185,129,0.1); color: var(--green); }
.verification-badge.pending { background: rgba(245,158,11,0.1); color: #b45309; }

/* --- Spark Score Card (Shared Component) --- */
.spark-score-card .spark-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.spark-score-card .composite-badge { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--orange); }
.spark-score-card .dim-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.spark-score-card .dim-label { width: 90px; font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.spark-score-card .dim-track { flex: 1; height: 7px; background: var(--grey-100); border-radius: 10px; overflow: hidden; }
.spark-score-card .dim-fill { height: 100%; border-radius: 10px; transition: width 1s ease; }
.spark-score-card .dim-value { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--navy); width: 28px; text-align: right; }
.spark-score-card .spark-updated { font-size: 12px; color: var(--grey-400); margin-top: 12px; }
.spark-score-card .spark-empty p { font-size: 14px; color: var(--text-secondary); text-align: center; padding: 20px 0; }

/* --- Spark Score Detail Page --- */
.composite-hero { display: flex; align-items: center; gap: 36px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 36px; margin-bottom: 28px; }
.composite-ring { position: relative; width: 140px; height: 140px; flex-shrink: 0; }
.composite-ring svg { width: 100%; height: 100%; }
.composite-value { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--orange); }
.composite-info h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.composite-info p { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
.updated-label { font-size: 12px; color: var(--grey-400); }

.dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.dimension-detail-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; }
.dim-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dim-icon { font-size: 28px; }
.dim-card-header h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); }
.dim-weight { font-size: 12px; color: var(--grey-400); }
.dim-card-score { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-left: auto; }
.dim-card-bar { height: 8px; background: var(--grey-100); border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.dim-card-fill { height: 100%; border-radius: 10px; }
.dim-card-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.improve-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.improve-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.improve-item { padding: 14px; background: var(--off-white); border-radius: var(--radius-md); }
.improve-item strong { font-size: 14px; color: var(--navy); display: block; margin-bottom: 4px; }
.improve-item p { font-size: 13px; color: var(--text-secondary); }

/* --- Badges Page --- */
.badge-stats-row { display: flex; gap: 20px; margin-bottom: 28px; }
.badge-stat { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px 28px; text-align: center; }
.badge-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--navy); display: block; }
.badge-stat-label { font-size: 13px; color: var(--text-secondary); }
.badge-category { margin-bottom: 28px; }
.badge-category h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.badge-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; text-align: center; transition: all var(--transition); }
.badge-card:hover { box-shadow: var(--shadow-sm); }
.badge-card.locked { opacity: 0.5; }
.badge-card.earned { border-color: rgba(245,130,32,0.2); }
.badge-icon-large { font-size: 40px; margin-bottom: 10px; }
.badge-card h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.badge-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 8px; }
.badge-earned-date { font-size: 11px; color: var(--green); font-weight: 600; }
.badge-locked-label { font-size: 11px; color: var(--grey-400); font-weight: 600; }

/* --- Page Headers --- */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.page-header p { font-size: 15px; color: var(--text-secondary); }
.page-header .btn-primary { margin-left: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.back-link { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; display: inline-block; }
.back-link:hover { color: var(--orange); }

/* --- Filter Bar --- */
.filter-bar { display: flex; gap: 16px; align-items: flex-end; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 18px; margin-bottom: 24px; }
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 12px; font-weight: 600; color: var(--grey-600); }
.filter-group .form-input { min-width: 180px; padding: 10px 14px; }

/* --- Empty States --- */
.empty-state { text-align: center; padding: 24px; color: var(--text-secondary); font-size: 14px; }
.empty-state-large { text-align: center; padding: 60px 24px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state-large h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.empty-state-large p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }

/* --- Loading State --- */
.loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--grey-100); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-state p { font-size: 14px; color: var(--text-secondary); }

/* --- 404 --- */
.not-found-page { text-align: center; padding: 120px 24px; }
.not-found-page h1 { font-family: var(--font-display); font-size: 80px; font-weight: 800; color: var(--orange); }
.not-found-page p { font-size: 18px; color: var(--text-secondary); margin-bottom: 24px; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 48px; }
    .hero h1 { font-size: 44px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-card.featured { grid-column: span 1; }
    .kbc-layout { grid-template-columns: 1fr; }
    .dual-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dimension-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== MOBILE HELPERS ===== */
.mobile-only { display: none !important; }
.desktop-only { display: flex !important; }
.hamburger-btn { display:none; background:none; border:none; font-size:24px; color:var(--navy); cursor:pointer; padding:4px 8px; border-radius:var(--radius-sm); line-height:1; }
.hamburger-btn:hover { background:var(--grey-100); }
.sidebar-backdrop { display:none; }

@media (max-width: 768px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }

    /* Sidebar: slide-in overlay on mobile */
    .sidebar { position:fixed; left:-280px; top:0; bottom:0; width:270px; z-index:200; transition:left 0.3s ease; }
    .sidebar.mobile-open { left:0; }
    .sidebar.collapsed { width:270px; }
    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .nav-group-toggle .nav-text,
    .sidebar.collapsed .nav-group-toggle .nav-chevron,
    .sidebar.collapsed .nav-section-label { display:inline; }
    .sidebar.collapsed .nav-item { justify-content:flex-start; padding:10px 16px; }
    .sidebar.collapsed .nav-group-toggle { justify-content:flex-start; }
    .sidebar.collapsed .nav-group-items { display:block; }
    .sidebar.collapsed .sidebar-logo-img { display:block; }
    .sidebar.collapsed .logo-full { display:inline; }
    .sidebar.collapsed .logo-mini { display:none; }
    .sidebar-backdrop { display:block; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4); z-index:199; }

    /* Dashboard main */
    .dashboard-main { margin-left:0 !important; }
    .dashboard-header { padding:0 16px; }
    .hamburger-btn { display:flex; align-items:center; justify-content:center; margin-right:8px; }
    .header-left { display:flex; align-items:center; gap:4px; }
    .page-title { font-size:16px !important; }
    .user-name { display:none; }
    .dashboard-content { padding:16px; }

    /* Auth pages */
    .auth-page { grid-template-columns:1fr; }
    .auth-left { display:none; }

    /* Forms */
    .form-grid { grid-template-columns:1fr; }
    .form-grid .full-width { grid-column:span 1; }
    .form-row-2col { grid-template-columns:1fr; }

    /* Page headers */
    .page-header { flex-direction:column; align-items:flex-start !important; }
    .page-header h1 { font-size:20px; }
    .page-header .btn-primary,
    .page-header .btn-accent { margin-left:0; align-self:flex-start; }

    /* Cards & grids */
    .quick-actions { grid-template-columns:1fr; }
    .improve-grid { grid-template-columns:1fr; }
    .stats-row { grid-template-columns:1fr !important; }

    /* Modals */
    .modal-overlay { padding:10px; align-items:flex-start; padding-top:40px; }
    .modal-content { max-width:100% !important; border-radius:12px; max-height:85vh; }
    .modal-body .form-row-2col { grid-template-columns:1fr; }
    .modal-xl { max-width:100% !important; }
    .modal-header h2 { font-size:1rem; }

    /* Tables */
    .table-wrapper { margin:0 -16px; padding:0 16px; }
    table { font-size:0.8rem; }
    table th, table td { padding:8px 10px; white-space:nowrap; }

    /* Alert */
    .alert { font-size:0.82rem; }

    /* Buttons */
    .btn-primary, .btn-accent, .btn-secondary, .btn-sm { font-size:13px; padding:10px 18px; }
}

@media (max-width: 640px) {
    /* Landing nav */
    .landing-nav { padding: 0 12px; height: 60px; gap: 8px; }
    .nav-logo-img { height: 30px; }
    .nav-links { gap: 8px; }
    .nav-links a:not(.btn-nav) { display: none; }
    .btn-nav { padding: 8px 14px; font-size: 12px; }
    .btn-nav.outline { border-width: 1.5px; }

    /* Hero */
    .hero { padding: 80px 16px 50px !important; }
    .hero h1 { font-size: 28px; line-height: 1.2; }
    .hero p { font-size: 14px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-ctas { flex-direction: column; gap: 10px; }
    .hero-ctas .btn-hero { width: 100%; justify-content: center; }

    /* Sections */
    .section-how, .section-features, .section-kbc, .section-dual, .section-cta { padding: 60px 16px; }
    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 14px; }
    .cta-center h2 { font-size: 24px; }
    .steps-grid { grid-template-columns: 1fr; }
    .kbc-options-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn-hero { width: 100%; justify-content: center; }

    /* Footer */
    .landing-footer { padding: 40px 16px 20px; }
    .footer-grid { grid-template-columns: 1fr; }

    /* Dashboard grids */
    .stats-row { grid-template-columns: 1fr; }
    .dimension-grid { grid-template-columns: 1fr; }
    .dashboard-content { padding: 12px; }

    /* Modal — ensure no overflow */
    .modal-overlay { padding: 8px; }
    .modal-content { max-width: 100% !important; margin: 0; border-radius: 12px; }
    .modal-content[style] { max-width: 100% !important; }
}

/* ========================================
   KBC QUIZ STYLES
   ======================================== */

/* --- KBC Info Banner --- */
.kbc-info-banner { background: var(--navy-gradient); border-radius: var(--radius-xl); padding: 24px; margin-bottom: 28px; }
.kbc-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kbc-info-item { display: flex; align-items: center; gap: 12px; color: var(--white); }
.kbc-info-icon { font-size: 28px; }
.kbc-info-item strong { font-family: var(--font-display); font-size: 14px; display: block; }
.kbc-info-item span { font-size: 12px; color: rgba(255,255,255,0.6); }

/* --- Gameplay Cards Grid --- */
.gameplay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.gameplay-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-xl); padding: 22px; transition: all var(--transition); }
.gameplay-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gameplay-card-top { display: flex; align-items: center; gap: 14px; padding-left: 16px; margin-bottom: 12px; border-radius: var(--radius-md); }
.gameplay-emoji { font-size: 36px; }
.gameplay-info h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--navy); }
.gameplay-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.gameplay-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--grey-600); margin-bottom: 16px; }
.gameplay-actions { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--grey-100); }

.gameplay-admin-grid { display: flex; flex-direction: column; gap: 16px; }

/* --- KBC Game Layout --- */
.kbc-game-layout { display: grid; grid-template-columns: 200px 1fr 200px; gap: 20px; min-height: calc(100vh - 180px); }

/* --- Point Ladder --- */
.kbc-ladder { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; height: fit-content; position: sticky; top: 80px; }
.kbc-ladder h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 12px; text-align: center; }
.ladder-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-sm); font-size: 12px; margin-bottom: 2px; transition: all 0.2s; }
.ladder-row.current { background: rgba(245,130,32,0.12); font-weight: 700; }
.ladder-row.completed { background: rgba(16,185,129,0.06); color: var(--green); }
.ladder-row.safe-haven { border: 1px solid rgba(59,130,246,0.3); }
.ladder-level { font-family: var(--font-mono); font-weight: 700; min-width: 24px; color: var(--navy); }
.ladder-points { flex: 1; font-family: var(--font-mono); color: var(--text-secondary); }
.ladder-safe { font-size: 14px; }

/* --- Question Area --- */
.kbc-question-area { display: flex; flex-direction: column; gap: 16px; }
.kbc-level-indicator { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--navy); }
.kbc-timer { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--blue); padding: 6px 14px; background: rgba(59,130,246,0.08); border-radius: var(--radius-full); }
.kbc-timer.urgent { color: var(--red); background: rgba(244,63,94,0.08); animation: pulse 1s ease-in-out infinite; }
.kbc-category-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--orange); background: rgba(245,130,32,0.08); padding: 4px 12px; border-radius: var(--radius-full); margin-bottom: 12px; }
.kbc-question-box { background: var(--navy-gradient); border-radius: var(--radius-xl); padding: 28px; color: var(--white); }
.kbc-question-box p { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.5; }

/* --- Options --- */
.kbc-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kbc-option { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--white); border: 2px solid var(--grey-100); border-radius: var(--radius-lg); cursor: pointer; transition: all 0.25s; text-align: left; }
.kbc-option:hover:not(:disabled):not(.removed) { border-color: var(--blue); background: rgba(59,130,246,0.03); }
.kbc-option.selected { border-color: var(--orange); background: rgba(245,130,32,0.06); box-shadow: 0 0 0 3px rgba(245,130,32,0.15); }
.kbc-option.removed { opacity: 0.25; pointer-events: none; text-decoration: line-through; }
.opt-letter { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--navy); min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--off-white); }
.opt-text { font-size: 15px; font-weight: 500; color: var(--text-primary); }

/* --- Feedback --- */
.kbc-feedback { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }
.kbc-feedback.correct { background: rgba(16,185,129,0.08); color: var(--green); border: 1px solid rgba(16,185,129,0.15); }
.kbc-feedback.wrong { background: rgba(244,63,94,0.08); color: var(--red); border: 1px solid rgba(244,63,94,0.15); }
.kbc-feedback .explanation { font-weight: 400; font-size: 13px; margin-top: 6px; opacity: 0.85; }

/* --- Action Row --- */
.kbc-action-row { display: flex; gap: 12px; align-items: center; }

/* --- Lifelines Panel --- */
.kbc-lifelines { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; height: fit-content; position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.kbc-lifelines h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--navy); text-align: center; margin-bottom: 4px; }
.lifeline-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border: 2px solid var(--grey-100); border-radius: var(--radius-lg); font-size: 11px; font-weight: 600; color: var(--navy); background: var(--white); transition: all var(--transition); cursor: pointer; }
.lifeline-btn:hover:not(:disabled):not(.used) { border-color: var(--blue); background: rgba(59,130,246,0.04); }
.lifeline-btn.used { opacity: 0.3; border-style: dashed; cursor: not-allowed; }
.lifeline-btn span:first-child { font-size: 22px; }
.kbc-current-points { text-align: center; padding: 14px; background: rgba(245,130,32,0.06); border-radius: var(--radius-md); margin-top: 8px; }
.kbc-current-points span { font-size: 12px; color: var(--text-secondary); display: block; }
.kbc-current-points strong { font-family: var(--font-display); font-size: 22px; color: var(--orange); }
.kbc-safe-points { text-align: center; padding: 10px; background: rgba(59,130,246,0.06); border-radius: var(--radius-md); }
.kbc-safe-points span { font-size: 11px; color: var(--blue); display: block; }
.kbc-safe-points strong { font-family: var(--font-mono); font-size: 14px; color: var(--blue); }

/* --- Ask Audience / Phone Friend --- */
.kbc-audience-result, .kbc-phone-result { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 16px; }
.kbc-audience-result h4, .kbc-phone-result h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.audience-bars { display: flex; flex-direction: column; gap: 6px; }
.audience-bar { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.audience-bar .bar-fill { height: 20px; background: var(--spark-gradient); border-radius: 4px; transition: width 0.6s ease; min-width: 2px; }
.kbc-phone-result p { font-style: italic; font-size: 14px; color: var(--text-secondary); }

/* --- Game Result Screen --- */
.kbc-result-screen { display: flex; justify-content: center; padding: 20px 0; }
.kbc-result-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-2xl); padding: 40px; max-width: 600px; width: 100%; text-align: center; }
.kbc-result-emoji { font-size: 64px; margin-bottom: 12px; }
.kbc-result-card h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.kbc-result-points { padding: 20px; background: rgba(245,130,32,0.06); border-radius: var(--radius-lg); margin-bottom: 20px; }
.result-label { font-size: 14px; color: var(--text-secondary); display: block; }
.result-value { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--orange); }
.kbc-result-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; font-size: 14px; color: var(--text-secondary); }
.kbc-result-answers { text-align: left; margin-top: 20px; }
.kbc-result-answers h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.result-answer-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; font-size: 13px; }
.result-answer-row.correct { background: rgba(16,185,129,0.05); }
.result-answer-row.wrong { background: rgba(244,63,94,0.05); }
.result-level { font-family: var(--font-mono); font-weight: 700; min-width: 28px; color: var(--navy); }
.result-q { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-badge { font-size: 16px; }

/* --- Multiplayer Waiting Room --- */
.kbc-waiting-room { padding: 20px 0; }
.kbc-room-code-display { text-align: center; padding: 24px; background: var(--navy-gradient); border-radius: var(--radius-xl); color: var(--white); margin-bottom: 20px; }
.kbc-room-code-display span { font-size: 13px; color: rgba(255,255,255,0.6); display: block; }
.kbc-room-code-display strong { font-family: var(--font-mono); font-size: 42px; letter-spacing: 0.15em; display: block; margin: 8px 0; }
.kbc-room-code-display p { font-size: 13px; color: rgba(255,255,255,0.5); }
.kbc-gameplay-info { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--navy); }
.kbc-players-list { display: flex; flex-direction: column; gap: 8px; }
.kbc-player-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--off-white); border-radius: var(--radius-md); font-size: 14px; font-weight: 500; }

/* ========================================
   ANALYTICS STYLES (M11)
   ======================================== */
.analytics-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin: 28px 0 16px; padding-top: 8px; border-top: 2px solid var(--grey-100); }
.analytics-section-title:first-of-type { border-top: none; margin-top: 0; }

.analytics-mode-split { display: flex; flex-direction: column; gap: 16px; }
.mode-item { display: flex; align-items: center; gap: 14px; }
.mode-icon { font-size: 28px; }
.mode-details { min-width: 140px; }
.mode-details strong { font-size: 13px; color: var(--text-secondary); display: block; }
.mode-details .stat-number { font-size: 20px; }
.mode-bar { flex: 1; height: 12px; background: var(--grey-100); border-radius: 10px; overflow: hidden; }
.mode-fill { height: 100%; border-radius: 10px; transition: width 0.8s ease; }
.mode-fill.solo { background: var(--spark-gradient); }
.mode-fill.multi { background: linear-gradient(135deg, var(--blue), var(--cyan)); }

/* --- Simple Bar Chart --- */
.analytics-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 0; }
.chart-bar-wrapper { display: flex; flex-direction: column; align-items: center; flex: 1; justify-content: flex-end; height: 100%; }
.chart-bar { background: var(--spark-gradient); border-radius: 4px 4px 0 0; min-width: 16px; width: 100%; max-width: 32px; position: relative; transition: height 0.5s ease; }
.chart-bar.game-bar { background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.chart-bar-val { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--orange); white-space: nowrap; }
.chart-bar-label { font-size: 10px; color: var(--grey-400); margin-top: 4px; }

/* ========================================
   RESPONSIVE ADDITIONS
   ======================================== */
@media (max-width: 1024px) {
    .kbc-game-layout { grid-template-columns: 1fr; }
    .kbc-ladder { display: none; }
    .kbc-lifelines { flex-direction: row; flex-wrap: wrap; position: static; }
    .kbc-lifelines h3 { width: 100%; }
    .lifeline-btn { flex: 1; min-width: 70px; }
    .kbc-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .kbc-options-grid { grid-template-columns: 1fr; }
    .kbc-info-grid { grid-template-columns: 1fr; }
    .kbc-result-stats { flex-direction: column; gap: 8px; }
    .gameplay-grid { grid-template-columns: 1fr; }
}

/* ===== MULTIPLAYER GAME ===== */
.mp-game-layout { display: flex; flex-direction: column; gap: 0; min-height: 80vh; }
.mp-top-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 16px; background: var(--bg-card); border-radius: 12px; margin-bottom: 16px; border: 1px solid var(--border); }
.mp-title { font-weight: 700; font-size: 16px; }
.mp-game-info { display: flex; align-items: center; gap: 10px; }
.mp-question-counter { font-weight: 600; font-size: 15px; color: var(--text-secondary); }
.mp-room-badge { font-size: 13px; color: var(--text-secondary); }
.mp-room-badge strong { color: var(--orange); }

.mp-main-area { display: grid; grid-template-columns: 1fr 280px; gap: 20px; }
.mp-question-section { display: flex; flex-direction: column; gap: 0; }

.mp-question-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mp-diff-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.mp-diff-badge.easy { background: #dcfce7; color: #15803d; }
.mp-diff-badge.medium { background: #fef3c7; color: #b45309; }
.mp-diff-badge.hard { background: #fee2e2; color: #dc2626; }
.mp-diff-badge.expert { background: #ede9fe; color: #7c3aed; }
.mp-level-pts { font-size: 13px; color: var(--text-secondary); }

.mp-action-row { display: flex; align-items: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.mp-waiting-badge { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-secondary); }
.mp-all-wrong { background: #fee2e2; color: #dc2626; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; }

.mp-lifelines-bar { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--bg-card); border-radius: 10px; border: 1px solid var(--border); margin-bottom: 12px; flex-wrap: wrap; }
.mp-lifeline-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.mp-lifeline-btns { display: flex; gap: 8px; }

.mp-explanation { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin: 8px 0; }

/* Round results grid */
.mp-round-results { margin: 16px 0; }
.mp-round-results h4 { font-size: 14px; margin-bottom: 8px; color: var(--text-secondary); }
.mp-round-grid { display: flex; flex-direction: column; gap: 6px; }
.mp-round-player { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); font-size: 13px; }
.mp-round-player.correct { border-left: 3px solid #22c55e; }
.mp-round-player.wrong { border-left: 3px solid #ef4444; }
.mp-round-player.me { background: #fffbeb; }
.mp-round-name { flex: 1; font-weight: 600; }
.mp-round-answer { font-weight: 500; }
.mp-round-time { color: var(--text-secondary); }
.mp-round-pts { font-weight: 700; min-width: 60px; text-align: right; }
.mp-round-lifeline { font-size: 11px; color: #b45309; }

/* Option reveal states */
.kbc-option.correct-reveal { background: #dcfce7 !important; border-color: #22c55e !important; color: #15803d !important; }
.kbc-option.wrong-reveal { background: #fee2e2 !important; border-color: #ef4444 !important; color: #dc2626 !important; }
.opt-badge { margin-left: auto; font-size: 18px; }

/* Live leaderboard panel */
.mp-leaderboard-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: fit-content; position: sticky; top: 20px; }
.mp-leaderboard-panel h3 { font-size: 15px; margin-bottom: 12px; text-align: center; }
.mp-lb-list { display: flex; flex-direction: column; gap: 6px; }
.mp-lb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; transition: background 0.2s; }
.mp-lb-row:hover, .mp-lb-row.me { background: #fffbeb; }
.mp-lb-rank { font-size: 16px; width: 28px; text-align: center; }
.mp-lb-info { flex: 1; display: flex; flex-direction: column; }
.mp-lb-info strong { font-size: 13px; }
.mp-lb-info span { font-size: 11px; color: var(--text-secondary); }
.mp-lb-pts { font-weight: 700; color: var(--orange); font-size: 14px; min-width: 50px; text-align: right; }

.mp-scoring-info { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 4px; }
.mp-scoring-info h4 { font-size: 12px; font-weight: 700; margin-bottom: 2px; }

/* Final leaderboard */
.mp-final-leaderboard { margin: 20px 0; }
.mp-final-leaderboard h3 { margin-bottom: 12px; }
.mp-final-leaderboard .my-row { background: #fffbeb; }

/* Btn danger */
.btn-danger { color: #dc2626 !important; border-color: #dc2626 !important; }
.btn-danger:hover { background: #fef2f2 !important; }

@media (max-width: 1024px) {
    .mp-main-area { grid-template-columns: 1fr; }
    .mp-leaderboard-panel { position: static; }
}
@media (max-width: 640px) {
    .mp-top-bar { flex-direction: column; align-items: flex-start; }
    .mp-round-player { flex-wrap: wrap; }
    .mp-lifelines-bar { flex-direction: column; align-items: flex-start; }
}

/* ===== M3 ASSESSMENT MODULE ===== */

/* -- Topics Grid -- */
.assess-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 20px; }
.assess-topic-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: all var(--transition); display: flex; flex-direction: column; gap: 12px; }
.assess-topic-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.assess-topic-header { display: flex; align-items: center; gap: 14px; }
.assess-topic-icon { font-size: 28px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; flex-shrink: 0; }
.assess-topic-meta h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; }
.assess-topic-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.assess-progress-section { margin-top: 4px; }
.assess-progress-bar { height: 8px; background: var(--grey-100); border-radius: 4px; overflow: hidden; }
.assess-progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.assess-progress-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.assess-topic-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--grey-50); }
.assess-daily-badge { font-size: 12px; color: var(--text-secondary); background: var(--grey-50); padding: 4px 10px; border-radius: 12px; }

/* -- Reference Panel -- */
.assess-ref-panel { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); margin-bottom: 20px; overflow: hidden; }
.assess-ref-toggle { width: 100%; padding: 14px 20px; background: none; border: none; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; }
.assess-ref-content { padding: 0 20px 20px; border-top: 1px solid var(--grey-50); }

/* -- Filters / Chips -- */
.assess-filters { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; background: var(--white); padding: 16px 20px; border-radius: var(--radius-lg); border: 1px solid var(--grey-100); }
.filter-group label { font-size: 12px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; display: block; }
.filter-group select { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--grey-200); font-size: 14px; background: var(--white); cursor: pointer; min-width: 160px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 20px; border: 1px solid var(--grey-200); background: var(--white); font-size: 13px; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* -- Challenge Cards Grid -- */
.assess-challenge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.assess-challenge-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: all var(--transition); }
.assess-challenge-card:hover { box-shadow: var(--shadow-sm); }
.assess-challenge-card.solved { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.02); }
.assess-challenge-card.cooldown { opacity: 0.6; }
.challenge-card-top { display: flex; gap: 8px; align-items: center; }
.challenge-type-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; color: white; white-space: nowrap; }
.challenge-diff-badge { padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; background: var(--grey-100); }
.diff-beginner { background: #dcfce7; color: #166534; }
.diff-easy { background: #d1fae5; color: #065f46; }
.diff-medium { background: #fef3c7; color: #92400e; }
.diff-hard { background: #fee2e2; color: #991b1b; }
.diff-expert { background: #1f2937; color: #f9fafb; }
.challenge-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin: 0; }
.challenge-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.challenge-meta-row { display: flex; gap: 14px; font-size: 12px; color: var(--text-secondary); }
.challenge-user-status { font-size: 13px; font-weight: 600; }
.status-correct { color: var(--green); }
.status-partial { color: #eab308; }
.status-incorrect { color: var(--red); }
.challenge-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-chip { padding: 2px 8px; border-radius: 8px; background: var(--grey-50); color: var(--text-secondary); font-size: 11px; }
.challenge-card-action { margin-top: auto; padding-top: 8px; }

/* -- Challenge List View (TopicChallenges) -- */
.assess-challenge-list { display: flex; flex-direction: column; gap: 12px; }
.assess-ch-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 18px 20px; transition: all var(--transition); }
.assess-ch-card:hover { box-shadow: var(--shadow-sm); }
.assess-ch-card.solved { border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.02); }
.assess-ch-left { display: flex; align-items: flex-start; gap: 14px; flex: 1; min-width: 0; }
.assess-ch-type-badge { padding: 5px 12px; border-radius: 10px; font-size: 11px; font-weight: 700; color: white; white-space: nowrap; flex-shrink: 0; }
.assess-ch-type-badge.mcq { background: #3b82f6; }
.assess-ch-type-badge.fillblank { background: #8b5cf6; }
.assess-ch-type-badge.matchpairs { background: #06b6d4; }
.assess-ch-type-badge.codeoutput { background: #f97316; }
.assess-ch-type-badge.codedebug { background: #ef4444; }
.assess-ch-type-badge.sqlquery { background: #10b981; }
.assess-ch-info { flex: 1; min-width: 0; }
.assess-ch-info h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.assess-ch-info p { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.assess-ch-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.diff-badge { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.diff-badge.beginner { background: #dcfce7; color: #166534; }
.diff-badge.easy { background: #d1fae5; color: #065f46; }
.diff-badge.medium { background: #fef3c7; color: #92400e; }
.diff-badge.hard { background: #fee2e2; color: #991b1b; }
.diff-badge.expert { background: #1f2937; color: #f9fafb; }
.pts-badge { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #fef3c7; color: #92400e; }
.time-badge { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--grey-100); color: var(--text-secondary); }
.rate-badge { padding: 2px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; background: #ede9fe; color: #6d28d9; }
.assess-ch-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.assess-ch-status { text-align: right; }
.status-badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 10px; display: inline-block; }
.status-badge.correct { background: #dcfce7; color: #166534; }
.status-badge.partial { background: #fef3c7; color: #92400e; }
.status-badge.incorrect { background: #fee2e2; color: #991b1b; }
.best-score { font-size: 11px; color: var(--text-secondary); display: block; margin-top: 2px; }
.btn-disabled { opacity: 0.5; cursor: not-allowed !important; background: var(--grey-200) !important; color: var(--text-secondary) !important; }
.assess-daily-counter { display: flex; align-items: center; }
.assess-daily-badge.limit-hit { background: #fee2e2; color: #991b1b; font-weight: 700; }
.assess-ref-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.assess-ref-card .assess-ref-content { font-family: monospace; font-size: 13px; line-height: 1.8; color: var(--text-primary); white-space: pre-wrap; margin: 0; }
.submit-error { font-size: 13px; color: var(--red); font-weight: 600; }
.btn-submit { font-size: 15px; padding: 12px 28px; }

/* -- Daily Quota -- */
.assess-daily-quota { text-align: center; }
.quota-label { font-size: 12px; color: var(--text-secondary); display: block; }
.quota-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--navy); }
.quota-value.quota-full { color: var(--red); }

/* -- Play Challenge -- */
.assess-play-wrapper { display: flex; flex-direction: column; gap: 20px; }
.play-header-bar { display: flex; justify-content: space-between; align-items: center; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 14px 20px; flex-wrap: wrap; gap: 10px; }
.play-header-left { display: flex; align-items: center; gap: 10px; }
.play-header-right { display: flex; align-items: center; gap: 14px; }
.play-topic-badge { padding: 4px 12px; border-radius: 12px; background: var(--grey-50); font-size: 13px; font-weight: 600; }
.play-points { font-weight: 700; color: var(--navy); font-size: 14px; }
.play-timer { font-family: var(--font-mono, monospace); font-size: 18px; font-weight: 800; padding: 6px 16px; border-radius: 10px; background: var(--grey-50); color: var(--navy); min-width: 80px; text-align: center; }
.play-timer.timer-warning { background: #fef3c7; color: #92400e; }
.play-timer.timer-danger { background: #fee2e2; color: #991b1b; animation: pulse-danger 0.5s infinite alternate; }
@keyframes pulse-danger { from { transform: scale(1); } to { transform: scale(1.05); } }

.play-question-section { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; }
.play-question-section h2 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.play-description { font-size: 15px; color: var(--text-primary); line-height: 1.7; }

.play-answer-section { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; }

/* MCQ Options */
.mcq-options { display: flex; flex-direction: column; gap: 10px; }
.mcq-option { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 2px solid var(--grey-100); border-radius: 12px; background: var(--white); cursor: pointer; transition: all var(--transition); text-align: left; font-size: 15px; }
.mcq-option:hover { border-color: var(--navy); background: rgba(30,41,59,0.02); }
.mcq-option.selected { border-color: #3b82f6; background: rgba(59,130,246,0.05); }
.mcq-letter { width: 36px; height: 36px; border-radius: 10px; background: var(--grey-100); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); font-size: 14px; color: var(--navy); flex-shrink: 0; }
.mcq-option.selected .mcq-letter { background: #3b82f6; color: white; }
.mcq-text { flex: 1; }

/* Fill Blank */
.fill-blank-section { padding: 10px 0; }
.fill-template { font-size: 16px; line-height: 2.2; color: var(--text-primary); }
.fill-input { display: inline-block; width: 160px; padding: 6px 12px; margin: 0 4px; border: 2px dashed #3b82f6; border-radius: 8px; background: rgba(59,130,246,0.04); font-size: 15px; text-align: center; transition: all var(--transition); }
.fill-input:focus { border-style: solid; outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }

/* Match Pairs */
.match-pairs-section { padding: 10px 0; }
.match-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.match-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 10px; }
.match-item { padding: 12px 16px; border: 2px solid var(--grey-100); border-radius: 10px; margin-bottom: 8px; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.match-item:hover { border-color: var(--navy); }
.match-item.selected { border-color: #3b82f6; background: rgba(59,130,246,0.05); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.match-item.matched { border-color: #10b981; background: rgba(16,185,129,0.05); }
.match-num { width: 28px; height: 28px; border-radius: 8px; background: var(--grey-100); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.match-link { margin-left: auto; font-size: 12px; font-weight: 700; color: #10b981; }

/* Code IDE */
.code-ide-section, .sql-ide-section { display: flex; flex-direction: column; gap: 12px; }
.ide-panel, .sql-schema-panel, .sql-task-panel, .ide-output-panel { border: 1px solid var(--grey-200); border-radius: 10px; overflow: hidden; }
.ide-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #1e293b; }
.ide-tab { font-size: 13px; font-weight: 600; color: #94a3b8; }
.ide-tab.active { color: #e2e8f0; }
.ide-lang { font-size: 11px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; }
.ide-code-area { background: #0f172a; padding: 16px; overflow-x: auto; }
.ide-code { margin: 0; }
.ide-code code { color: #e2e8f0; font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace; font-size: 14px; line-height: 1.8; white-space: pre-wrap; }
.schema-code code { font-size: 13px; line-height: 1.6; }
.output-input-area { padding: 16px; background: var(--grey-50); }
.output-input-area label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 8px; display: block; }
.output-input { width: 100%; padding: 10px 14px; border: 2px solid var(--grey-200); border-radius: 8px; font-family: monospace; font-size: 15px; }
.output-input:focus { border-color: #3b82f6; outline: none; }
.code-fix-input { width: 100%; padding: 10px 14px; border: 2px solid var(--grey-200); border-radius: 8px; font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.6; resize: vertical; }
.code-fix-input:focus { border-color: #ef4444; outline: none; }

/* SQL Editor */
.sql-task-text { padding: 14px 16px; background: rgba(59,130,246,0.04); border-bottom: 1px solid var(--grey-100); font-size: 15px; line-height: 1.6; }
.sql-editor { width: 100%; padding: 14px 16px; border: none; background: #0f172a; color: #e2e8f0; font-family: 'Fira Code', monospace; font-size: 14px; line-height: 1.7; resize: vertical; min-height: 100px; }
.sql-editor:focus { outline: 2px solid #3b82f6; }

/* Hints */
.ide-hints { padding: 4px 0; }
.hint-toggle { background: none; border: 1px dashed var(--grey-300); border-radius: 8px; padding: 8px 16px; cursor: pointer; font-size: 13px; color: var(--text-secondary); transition: all var(--transition); }
.hint-toggle:hover { border-color: var(--navy); color: var(--navy); }
.hint-list { margin: 8px 0 0 20px; font-size: 13px; color: var(--text-secondary); line-height: 1.8; }

/* Submit Bar */
.play-submit-bar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); }
.submit-error { color: var(--red); font-size: 14px; font-weight: 600; }
.btn-submit { padding: 12px 32px; font-size: 16px; }

/* Result Screen */
.assess-result-screen { display: flex; justify-content: center; padding: 40px 0; }
.result-card { background: var(--white); border: 2px solid var(--grey-100); border-radius: 20px; padding: 40px; text-align: center; max-width: 540px; width: 100%; }
.result-card.correct { border-color: #10b981; }
.result-card.partial { border-color: #eab308; }
.result-card.incorrect { border-color: #ef4444; }
.result-icon { font-size: 56px; margin-bottom: 12px; }
.result-card h2 { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.result-feedback { font-size: 16px; color: var(--text-secondary); margin-bottom: 24px; }
.result-stats-row { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; }
.result-stat { text-align: center; }
.rs-num { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--navy); }
.rs-label { font-size: 12px; color: var(--text-secondary); }
.result-answer-section { text-align: left; background: var(--grey-50); border-radius: 10px; padding: 16px; margin-bottom: 16px; }
.result-answer-section h4 { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.result-answer-pre { font-family: monospace; font-size: 14px; color: var(--navy); margin: 0; white-space: pre-wrap; }
.result-explanation { text-align: left; background: rgba(59,130,246,0.04); border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.result-explanation h4 { font-size: 13px; font-weight: 700; color: #3b82f6; margin-bottom: 6px; }
.result-explanation p { font-size: 14px; line-height: 1.6; color: var(--text-primary); margin: 0; }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }

/* Stats Page */
.topic-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.topic-stat-card { background: var(--grey-50); border-radius: 10px; padding: 16px; }
.topic-stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; }
.topic-stat-points { font-family: var(--font-display); color: var(--navy); }
.topic-stat-bars { display: flex; align-items: center; gap: 10px; }
.topic-stat-bar-wrap { flex: 1; height: 8px; background: var(--grey-200); border-radius: 4px; overflow: hidden; }
.topic-stat-bar { height: 100%; border-radius: 4px; }
.topic-stat-acc { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.topic-stat-nums { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* Public Page */
.assess-hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #3b82f6 100%); }
.hero-features { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-feat { padding: 6px 16px; background: rgba(255,255,255,0.15); border-radius: 20px; font-size: 13px; color: white; }
.public-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.public-topic-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; text-align: center; }
.pt-icon { font-size: 36px; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; border-radius: 16px; margin: 0 auto 14px; }
.public-topic-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.public-topic-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.pt-stats { display: flex; gap: 14px; justify-content: center; font-size: 12px; color: var(--text-secondary); }
.how-it-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.hiw-step { text-align: center; padding: 20px; }
.hiw-num { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--spark-gradient); color: white; font-weight: 800; font-size: 18px; margin-bottom: 12px; }
.hiw-step h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hiw-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* Home Assessment Section */
.section-assess { padding: 80px 0; background: var(--grey-50); }
.assess-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.assess-preview-card { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: all var(--transition); }
.assess-preview-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ap-icon { font-size: 32px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 14px; margin: 0 auto 14px; }
.assess-preview-card h4 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.assess-preview-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* Admin JSON Editor */
.admin-json-section { margin-top: 16px; }
.json-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.json-header h4 { font-size: 14px; font-weight: 700; color: var(--navy); }
.json-editor { width: 100%; padding: 14px; border: 2px solid var(--grey-200); border-radius: 10px; font-family: 'Fira Code', monospace; font-size: 13px; line-height: 1.6; background: #f8fafc; resize: vertical; }
.json-editor:focus { border-color: #3b82f6; outline: none; }
.json-templates { margin-top: 8px; }
.json-ref { background: var(--grey-50); border-radius: 8px; padding: 16px; margin-top: 8px; }
.json-ref pre { font-size: 12px; line-height: 1.6; color: var(--text-primary); white-space: pre-wrap; margin: 0; }
.modal-xl { max-width: 800px !important; }

/* Responsive */
@media (max-width: 768px) {
    .assess-topics-grid { grid-template-columns: 1fr; }
    .assess-challenge-grid { grid-template-columns: 1fr; }
    .match-columns { grid-template-columns: 1fr; }
    .play-header-bar { flex-direction: column; align-items: flex-start; }
    .assess-filters { flex-direction: column; }
    .result-stats-row { gap: 16px; }
    .assess-preview-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== M5 ENGAGEMENT HUB ===== */

/* Daily Challenge Banner */
.daily-challenge-banner { display:flex; align-items:center; justify-content:space-between; background:linear-gradient(135deg,#ff6b35,#f7931e); border-radius:16px; padding:20px 28px; color:#fff; margin-bottom:24px; }
.dcb-left { display:flex; align-items:center; gap:16px; }
.dcb-icon { font-size:2.4rem; }
.dcb-info h2 { margin:0; font-size:1.25rem; }
.dcb-info p { margin:4px 0 0; opacity:0.9; font-size:0.9rem; }
.dcb-done { background:rgba(255,255,255,0.25); padding:8px 16px; border-radius:8px; font-weight:600; }
.dcb-none { opacity:0.7; }

/* Daily Challenge Card */
.daily-challenge-card { background:#fff; border-radius:12px; padding:20px; margin-bottom:24px; border-left:4px solid #f97316; display:flex; align-items:flex-start; gap:16px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.dc-type-badge { color:#fff; padding:4px 12px; border-radius:20px; font-size:0.75rem; font-weight:600; text-transform:uppercase; white-space:nowrap; }
.dc-card-body h3 { margin:0 0 6px; }
.dc-card-body p { margin:0 0 10px; color:#64748b; font-size:0.9rem; }
.dc-meta { display:flex; gap:12px; }

/* Streak + Stats Row */
.engage-stats-row { display:grid; grid-template-columns:2fr 1fr 1fr; gap:16px; margin-bottom:28px; }
.streak-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); display:flex; flex-direction:column; gap:12px; }
.streak-card > div:first-child { display:flex; align-items:center; gap:12px; }
.streak-flame { font-size:2.2rem; }
.streak-current { font-size:2.4rem; font-weight:800; color:#f97316; }
.streak-label { font-size:0.85rem; color:#64748b; display:block; }
.streak-nums { display:flex; flex-direction:column; }
.streak-details { display:flex; gap:20px; }
.streak-det { display:flex; flex-direction:column; }
.streak-det span { font-size:0.75rem; color:#94a3b8; text-transform:uppercase; }
.streak-det strong { font-size:1.1rem; color:#1e293b; }
.streak-milestone { margin-top:4px; }
.streak-progress-bar { height:8px; background:#e2e8f0; border-radius:4px; overflow:hidden; }
.streak-progress-fill { height:100%; background:linear-gradient(90deg,#f97316,#ef4444); border-radius:4px; transition:width 0.5s; }
.streak-milestone-text { font-size:0.78rem; color:#64748b; margin-top:4px; display:block; }
.engage-stat-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; }
.engage-stat-card.clickable { cursor:pointer; transition:transform 0.15s; }
.engage-stat-card.clickable:hover { transform:translateY(-2px); }
.es-icon { font-size:1.8rem; }
.es-num { font-size:1.5rem; font-weight:700; color:#1e293b; }
.es-label { font-size:0.8rem; color:#94a3b8; text-transform:uppercase; }

/* Leaderboard */
.leaderboard-section { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.lb-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:12px; }
.lb-header h2 { margin:0; font-size:1.2rem; }
.lb-tabs { display:flex; gap:4px; background:#f1f5f9; border-radius:8px; padding:3px; }
.lb-tab { background:none; border:none; padding:7px 16px; border-radius:6px; cursor:pointer; font-size:0.85rem; font-weight:500; color:#64748b; transition:all 0.2s; }
.lb-tab.active { background:#fff; color:#1e293b; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.lb-table-wrap { overflow-x:auto; }
.lb-table { width:100%; border-collapse:collapse; }
.lb-table th { text-align:left; padding:10px 12px; font-size:0.78rem; color:#94a3b8; text-transform:uppercase; border-bottom:1px solid #e2e8f0; font-weight:600; }
.lb-table td { padding:12px; border-bottom:1px solid #f1f5f9; font-size:0.9rem; }
.lb-rank { width:50px; text-align:center !important; }
.rank-medal { font-size:1.2rem; }
.lb-user { display:flex; align-items:center; gap:8px; }
.lb-username { font-weight:500; }
.lb-you-badge { background:#3b82f6; color:#fff; padding:2px 8px; border-radius:10px; font-size:0.7rem; font-weight:600; }
.lb-pts strong { color:#f97316; }
.pct { font-size:0.75rem; color:#94a3b8; }
.lb-row-me { background:#eff6ff !important; }
.lb-row-top td { font-weight:500; }
.lb-empty { text-align:center; padding:40px; color:#94a3b8; }

/* Hackathons Page */
.hack-list-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.hack-list-header h1 { margin:0; font-size:1.5rem; }
.hack-show-completed { display:flex; align-items:center; gap:8px; font-size:0.85rem; color:#64748b; cursor:pointer; }
.hack-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:20px; }
.hack-card { background:#fff; border-radius:12px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); cursor:pointer; transition:transform 0.15s, box-shadow 0.15s; }
.hack-card:hover { transform:translateY(-3px); box-shadow:0 6px 20px rgba(0,0,0,0.1); }
.hack-card-head { display:flex; align-items:flex-start; gap:12px; margin-bottom:10px; }
.hack-card-icon { font-size:2rem; }
.hack-card-head h3 { margin:0; font-size:1.05rem; }
.hack-topic-sm { font-size:0.75rem; color:#64748b; }
.hack-card-desc { color:#64748b; font-size:0.88rem; margin:0 0 12px; }
.hack-card-meta { display:flex; flex-wrap:wrap; gap:10px; font-size:0.8rem; color:#64748b; margin-bottom:8px; }
.hack-card-dates { font-size:0.78rem; color:#94a3b8; margin-bottom:10px; }
.hack-card-footer { display:flex; gap:8px; }
.hack-badge-done { background:#dcfce7; color:#166534; padding:4px 12px; border-radius:12px; font-size:0.78rem; font-weight:600; }
.hack-badge-joined { background:#dbeafe; color:#1e40af; padding:4px 12px; border-radius:12px; font-size:0.78rem; font-weight:600; }
.hack-badge-open { background:#fef3c7; color:#92400e; padding:4px 12px; border-radius:12px; font-size:0.78rem; font-weight:600; }
.hack-status-chip { padding:4px 10px; border-radius:12px; font-size:0.72rem; font-weight:600; text-transform:uppercase; }
.hack-status-draft { background:#f1f5f9; color:#64748b; }
.hack-status-upcoming { background:#fef3c7; color:#92400e; }
.hack-status-active { background:#dcfce7; color:#166534; }
.hack-status-completed { background:#e2e8f0; color:#475569; }
.hack-status-cancelled { background:#fee2e2; color:#991b1b; }
.hack-empty { text-align:center; padding:60px 20px; }
.hack-empty-icon { font-size:3rem; display:block; margin-bottom:12px; }

/* Hackathon Detail */
.hack-detail-header { display:flex; align-items:center; gap:16px; margin-bottom:16px; padding:16px; background:#fff; border-radius:12px; }
.hack-detail-icon { font-size:2.5rem; }
.hack-detail-info h1 { margin:0 0 6px; font-size:1.4rem; }
.hack-topic-chip { color:#fff; padding:3px 10px; border-radius:12px; font-size:0.75rem; font-weight:600; margin-right:8px; }
.hack-desc { color:#64748b; margin:0 0 20px; line-height:1.6; }
.hack-meta-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:12px; margin-bottom:24px; }
.hm-card { background:#fff; border-radius:10px; padding:14px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.hm-label { font-size:0.72rem; color:#94a3b8; text-transform:uppercase; display:block; }
.hm-val { font-size:1.2rem; font-weight:700; color:#1e293b; display:block; margin-top:4px; }
.hack-join-section { text-align:center; margin:24px 0; }
.btn-lg { padding:14px 32px !important; font-size:1.05rem !important; }
.hack-user-status { margin:20px 0; }
.hack-finished { background:#dcfce7; color:#166534; padding:16px; border-radius:12px; text-align:center; font-weight:600; font-size:1.1rem; }
.hack-progress { background:#dbeafe; color:#1e40af; padding:16px; border-radius:12px; text-align:center; font-weight:600; }
.hack-lb-title { margin:28px 0 12px; }

/* Admin Hackathons */
.hack-tbl-icon { margin-right:6px; }
.page-admin-hackathons .admin-stats-row { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.page-admin-hackathons .admin-stat { background:#fff; padding:14px 20px; border-radius:10px; box-shadow:0 1px 4px rgba(0,0,0,0.06); text-align:center; min-width:100px; }
.page-admin-hackathons .as-num { display:block; font-size:1.4rem; font-weight:700; color:#f97316; }
.page-admin-hackathons .as-label { font-size:0.72rem; color:#94a3b8; text-transform:uppercase; }

/* Public Engagement */
.engage-hero { background:linear-gradient(135deg,#f97316,#ef4444); border-radius:20px; padding:48px 36px; color:#fff; text-align:center; margin-bottom:36px; }
.engage-hero h1 { font-size:2.2rem; margin:0 0 12px; }
.engage-hero p { font-size:1.1rem; opacity:0.9; margin:0 0 20px; }
.engage-features-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:20px; margin-bottom:36px; }
.engage-feat-card { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); text-align:center; }
.efc-icon { font-size:2.5rem; display:block; margin-bottom:10px; }
.engage-feat-card h3 { margin:0 0 8px; font-size:1.1rem; }
.engage-feat-card p { color:#64748b; font-size:0.9rem; margin:0; }
.engage-how { text-align:center; margin-bottom:36px; }
.engage-how h2 { margin:0 0 20px; }
.how-steps { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:20px; }
.how-step { background:#fff; border-radius:12px; padding:20px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.how-num { display:inline-flex; width:36px; height:36px; align-items:center; justify-content:center; background:#f97316; color:#fff; border-radius:50%; font-weight:700; margin-bottom:10px; }
.how-step h4 { margin:0 0 6px; }
.how-step p { color:#64748b; font-size:0.85rem; margin:0; }
.engage-cta { text-align:center; background:#fff; border-radius:16px; padding:40px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.engage-cta h2 { margin:0 0 16px; }

/* Responsive */
@media (max-width: 768px) {
    .daily-challenge-banner { flex-direction:column; text-align:center; gap:12px; }
    .engage-stats-row { grid-template-columns:1fr; }
    .hack-grid { grid-template-columns:1fr; }
    .hack-meta-grid { grid-template-columns:repeat(2, 1fr); }
    .lb-header { flex-direction:column; align-items:flex-start; }
}

/* ===== M7 MATCHING ===== */

/* Recommendations */
.rec-list { display:flex; flex-direction:column; gap:16px; }
.rec-card { display:flex; gap:20px; background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); transition:transform 0.15s; }
.rec-card:hover { transform:translateY(-2px); }
.rec-card.rec-applied { border-left:4px solid #3b82f6; }
.rec-match-ring { min-width:80px; height:80px; border-radius:50%; border:4px solid; display:flex; flex-direction:column; align-items:center; justify-content:center; flex-shrink:0; }
.rec-match-ring[style*="--score: 8"], .rec-match-ring[style*="--score: 9"], .rec-match-ring[style*="--score: 10"] { border-color:#22c55e; }
.rec-match-ring { border-color:#f59e0b; }
.match-pct { font-size:1.3rem; font-weight:800; line-height:1; }
.match-label { font-size:0.65rem; color:#64748b; text-transform:uppercase; }
.rec-body { flex:1; min-width:0; }
.rec-top { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:8px; }
.rec-top h3 { margin:0; font-size:1.1rem; }
.rec-company { color:#64748b; font-size:0.88rem; }
.rec-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:0.82rem; color:#64748b; margin-bottom:10px; }
.rec-reasons { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.match-reason { font-size:0.78rem; color:#166534; background:#dcfce7; padding:2px 8px; border-radius:8px; }
.rec-gaps { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.match-gap { font-size:0.78rem; color:#92400e; background:#fef3c7; padding:2px 8px; border-radius:8px; }
.rec-actions { display:flex; gap:10px; align-items:center; }
.rec-app-status { padding:4px 12px; border-radius:12px; font-size:0.78rem; font-weight:600; }
.offer-note { font-size:0.82rem; color:#22c55e; }

/* Application Status Chips */
.app-status-chip { padding:4px 10px; border-radius:12px; font-size:0.72rem; font-weight:600; text-transform:uppercase; }
.app-applied { background:#dbeafe; color:#1e40af; }
.app-sparked { background:#fce7f3; color:#9d174d; }
.app-matched { background:#dcfce7; color:#166534; }
.app-interviewing { background:#fef3c7; color:#92400e; }
.app-offered { background:#d1fae5; color:#065f46; }
.app-accepted { background:#dcfce7; color:#166534; border:2px solid #22c55e; }
.app-rejected { background:#fee2e2; color:#991b1b; }
.app-withdrawn { background:#f1f5f9; color:#64748b; }

/* Match Score Pills */
.match-pill { padding:3px 10px; border-radius:12px; font-size:0.78rem; font-weight:700; }
.match-high { background:#dcfce7; color:#166534; }
.match-mid { background:#fef3c7; color:#92400e; }
.match-low { background:#fee2e2; color:#991b1b; }

/* Applications Pipeline */
.app-pipeline { display:flex; align-items:center; justify-content:center; gap:4px; padding:20px; background:#fff; border-radius:14px; margin-bottom:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); flex-wrap:wrap; }
.pipe-stage { text-align:center; padding:12px 20px; min-width:80px; }
.pipe-num { display:block; font-size:1.6rem; font-weight:800; color:#1e293b; }
.pipe-label { font-size:0.72rem; color:#94a3b8; text-transform:uppercase; }
.pipe-arrow { color:#cbd5e1; font-size:1.2rem; }
.pipe-offered .pipe-num { color:#22c55e; }

/* Matching Pipeline (Company) */
.mp-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.mp-header h1 { margin:0; }
.mp-select { display:flex; align-items:center; gap:8px; }
.mp-select select { min-width:280px; }
.mp-filter-tabs { display:flex; gap:4px; background:#f1f5f9; padding:4px; border-radius:10px; margin-bottom:20px; overflow-x:auto; }
.mp-tab { background:none; border:none; padding:8px 16px; border-radius:8px; font-size:0.82rem; color:#64748b; cursor:pointer; white-space:nowrap; font-weight:500; }
.mp-tab.active { background:#fff; color:#1e293b; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.mp-candidates { display:grid; grid-template-columns:repeat(auto-fill, minmax(380px, 1fr)); gap:16px; }
.mp-card { background:#fff; border-radius:14px; padding:18px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.mp-card-top { display:flex; gap:14px; margin-bottom:10px; }
.mp-match-badge { width:52px; height:52px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:0.85rem; color:#fff; flex-shrink:0; }
.mp-match-badge.match-high { background:linear-gradient(135deg,#22c55e,#16a34a); }
.mp-match-badge.match-mid { background:linear-gradient(135deg,#f59e0b,#d97706); }
.mp-match-badge.match-low { background:linear-gradient(135deg,#ef4444,#dc2626); }
.mp-card-info h3 { margin:0 0 2px; font-size:1rem; }
.mp-headline { margin:0 0 6px; font-size:0.82rem; color:#64748b; }
.mp-card-tags { display:flex; flex-wrap:wrap; gap:4px; }
.mp-tag { background:#f1f5f9; padding:2px 8px; border-radius:8px; font-size:0.72rem; color:#475569; }
.spark-tag { background:#fef3c7; color:#92400e; }
.mp-skills { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:8px; }
.skill-chip { background:#eff6ff; color:#1e40af; padding:2px 8px; border-radius:8px; font-size:0.72rem; }
.skill-chip.more { background:#f1f5f9; color:#94a3b8; }
.mp-match-reasons, .mp-match-gaps { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:6px; }
.match-reason-sm { font-size:0.72rem; color:#166534; }
.match-gap-sm { font-size:0.72rem; color:#92400e; }
.mp-card-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; padding-top:10px; border-top:1px solid #f1f5f9; }
.mp-no-app { font-size:0.78rem; color:#94a3b8; font-style:italic; }
.spark-icon { font-size:1.1rem; }
.shortlist-icon { font-size:1.1rem; }

/* Admin Matching */
.match-stats-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(120px, 1fr)); gap:12px; margin-bottom:28px; }
.ms-card { background:#fff; padding:16px; border-radius:12px; text-align:center; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.ms-num { display:block; font-size:1.5rem; font-weight:800; color:#f97316; }
.ms-label { font-size:0.72rem; color:#94a3b8; text-transform:uppercase; }
.match-dist-section { background:#fff; border-radius:14px; padding:24px; margin-bottom:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.match-dist-section h3 { margin:0 0 16px; }
.dist-bars { display:flex; flex-direction:column; gap:10px; }
.dist-bar-row { display:flex; align-items:center; gap:12px; }
.dist-label { min-width:80px; font-size:0.82rem; color:#64748b; text-align:right; }
.dist-bar-bg { flex:1; height:24px; background:#f1f5f9; border-radius:6px; overflow:hidden; }
.dist-bar-fill { height:100%; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:6px; transition:width 0.4s; min-width:2px; }
.dist-count { min-width:36px; font-size:0.85rem; font-weight:600; color:#1e293b; }
.batch-result { background:#dcfce7; color:#166534; padding:12px 20px; border-radius:10px; margin-bottom:20px; font-weight:600; }

/* Algorithm Info */
.match-algo-info { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.match-algo-info h3 { margin:0 0 16px; }
.algo-weights { display:flex; flex-direction:column; gap:12px; }
.aw-item { display:flex; gap:14px; align-items:flex-start; padding:12px; background:#f8fafc; border-radius:10px; }
.aw-pct { background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; padding:4px 10px; border-radius:8px; font-weight:800; font-size:0.88rem; white-space:nowrap; }
.aw-name { font-weight:600; min-width:160px; }
.aw-desc { color:#64748b; font-size:0.85rem; }

/* Responsive */
@media (max-width: 768px) {
    .rec-card { flex-direction:column; align-items:center; text-align:center; }
    .rec-top { flex-direction:column; align-items:center; }
    .mp-candidates { grid-template-columns:1fr; }
    .app-pipeline { gap:8px; }
    .aw-item { flex-direction:column; }
}

/* ===== M8 COMMUNICATION ===== */

/* Messages Layout */
.msg-layout { display:grid; grid-template-columns:340px 1fr; height:calc(100vh - 120px); background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,0.06); }

/* Sidebar */
.msg-sidebar { border-right:1px solid #e2e8f0; display:flex; flex-direction:column; overflow:hidden; }
.msg-sidebar-header { display:flex; justify-content:space-between; align-items:center; padding:16px 16px 12px; border-bottom:1px solid #f1f5f9; }
.msg-sidebar-header h2 { margin:0; font-size:1.1rem; }
.msg-show-archived { font-size:0.75rem; color:#94a3b8; display:flex; align-items:center; gap:4px; cursor:pointer; }
.msg-conv-list { overflow-y:auto; flex:1; }
.msg-conv-item { display:flex; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; border-bottom:1px solid #f8fafc; transition:background 0.15s; }
.msg-conv-item:hover { background:#f8fafc; }
.msg-conv-item.active { background:#eff6ff; border-left:3px solid #3b82f6; }
.msg-conv-item.unread { background:#fefce8; }
.msg-conv-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1rem; flex-shrink:0; }
.msg-conv-info { flex:1; min-width:0; }
.msg-conv-top { display:flex; justify-content:space-between; align-items:center; }
.msg-conv-name { font-weight:600; font-size:0.9rem; }
.msg-conv-time { font-size:0.72rem; color:#94a3b8; }
.msg-conv-subject { display:block; font-size:0.78rem; color:#3b82f6; font-weight:500; }
.msg-conv-preview { display:block; font-size:0.8rem; color:#94a3b8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.msg-unread-badge { background:#ef4444; color:#fff; font-size:0.7rem; font-weight:700; min-width:20px; height:20px; border-radius:10px; display:flex; align-items:center; justify-content:center; padding:0 6px; }
.msg-empty-list { padding:40px 20px; text-align:center; color:#94a3b8; }

/* Chat Area */
.msg-chat { display:flex; flex-direction:column; }
.msg-chat-header { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid #f1f5f9; }
.msg-back-btn { display:none; background:none; border:none; font-size:1.2rem; cursor:pointer; padding:4px 8px; }
.msg-chat-user { flex:1; }
.msg-chat-user strong { display:block; font-size:1rem; }
.msg-chat-subject { font-size:0.8rem; color:#3b82f6; }
.msg-chat-intern { font-size:0.78rem; color:#64748b; display:block; }
.msg-chat-body { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:8px; }
.msg-chat-empty { text-align:center; color:#94a3b8; margin:auto; }
.msg-chat-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; color:#94a3b8; text-align:center; padding:20px; }
.msg-chat-placeholder h3 { margin:12px 0 4px; color:#64748b; }

/* Message Bubbles */
.msg-bubble { max-width:70%; padding:10px 14px; border-radius:14px; }
.msg-mine { align-self:flex-end; background:linear-gradient(135deg,#3b82f6,#2563eb); color:#fff; border-bottom-right-radius:4px; }
.msg-theirs { align-self:flex-start; background:#f1f5f9; color:#1e293b; border-bottom-left-radius:4px; }
.msg-bubble-content { font-size:0.9rem; line-height:1.5; white-space:pre-wrap; word-break:break-word; }
.msg-bubble-meta { font-size:0.68rem; opacity:0.7; margin-top:4px; text-align:right; }
.msg-read-tick { margin-left:4px; color:#93c5fd; }
.msg-system { text-align:center; font-size:0.78rem; color:#94a3b8; padding:8px; font-style:italic; }

/* Chat Input */
.msg-chat-input { display:flex; gap:10px; padding:12px 20px; border-top:1px solid #f1f5f9; align-items:flex-end; }
.msg-chat-input textarea { flex:1; border:1px solid #e2e8f0; border-radius:10px; padding:10px 14px; font-size:0.9rem; resize:none; font-family:inherit; }
.msg-chat-input textarea:focus { outline:none; border-color:#3b82f6; }
.msg-chat-input .btn-accent { border-radius:10px; padding:10px 20px; }

/* Notifications Page */
.notif-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.notif-header h1 { margin:0; }
.notif-actions { display:flex; align-items:center; gap:12px; }
.notif-unread-count { background:#fef3c7; color:#92400e; padding:4px 12px; border-radius:12px; font-size:0.82rem; font-weight:600; }

.notif-list { display:flex; flex-direction:column; background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; }
.notif-item { display:flex; align-items:flex-start; gap:14px; padding:16px 20px; cursor:pointer; border-bottom:1px solid #f8fafc; transition:background 0.15s; }
.notif-item:hover { background:#f8fafc; }
.notif-item.notif-unread { background:#eff6ff; border-left:3px solid #3b82f6; }
.notif-icon { font-size:1.4rem; flex-shrink:0; margin-top:2px; }
.notif-content { flex:1; min-width:0; }
.notif-title { display:block; font-weight:500; font-size:0.92rem; }
.notif-body { display:block; font-size:0.82rem; color:#64748b; margin-top:2px; }
.notif-time { display:block; font-size:0.72rem; color:#94a3b8; margin-top:4px; }
.notif-dot { width:10px; height:10px; border-radius:50%; background:#3b82f6; flex-shrink:0; margin-top:6px; }

/* Announcements Section */
.announce-section { margin-bottom:24px; display:flex; flex-direction:column; gap:10px; }
.announce-card { display:flex; gap:14px; background:#fff; border-radius:12px; padding:16px 20px; box-shadow:0 1px 4px rgba(0,0,0,0.06); align-items:flex-start; }
.announce-icon { font-size:1.5rem; flex-shrink:0; }
.announce-body { flex:1; }
.announce-body strong { font-size:0.95rem; }
.announce-body p { margin:4px 0 0; font-size:0.85rem; color:#64748b; }
.announce-pin { font-size:0.8rem; }
.announce-link { font-size:0.82rem; color:#3b82f6; text-decoration:none; }
.announce-time { font-size:0.72rem; color:#94a3b8; white-space:nowrap; }

/* Admin Announcements */
.admin-cell-sub { font-size:0.78rem; color:#94a3b8; margin-top:2px; }
.modal-hint { font-size:0.85rem; color:#64748b; margin:0 0 16px; padding:10px; background:#f8fafc; border-radius:8px; }

/* Responsive */
@media (max-width: 768px) {
    .msg-layout { grid-template-columns:1fr; }
    .msg-sidebar-hidden-mobile { display:none; }
    .msg-chat-hidden-mobile { display:none; }
    .msg-back-btn { display:block; }
    .msg-bubble { max-width:85%; }
}

/* ===== M9 SOCIAL ===== */

/* Public Profile Page */
.public-profile-page { max-width:960px; margin:0 auto; padding:24px 16px; }
.pp-hero { display:flex; gap:24px; align-items:flex-start; background:#fff; border-radius:16px; padding:28px; box-shadow:0 2px 12px rgba(0,0,0,0.06); margin-bottom:24px; }
.pp-avatar { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:700; flex-shrink:0; }
.pp-hero-info { flex:1; }
.pp-hero-info h1 { margin:0 0 4px; font-size:1.5rem; }
.pp-headline { color:#64748b; margin:0 0 8px; font-size:0.95rem; }
.pp-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:0.85rem; color:#64748b; margin-bottom:10px; }
.pp-social-stats { display:flex; gap:20px; font-size:0.88rem; color:#475569; }
.pp-social-stats strong { color:#1e293b; }
.pp-hero-actions { display:flex; gap:8px; flex-shrink:0; }

/* Share Bar */
.pp-share-bar { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.share-btn { padding:8px 16px; border-radius:10px; font-size:0.82rem; text-decoration:none; font-weight:600; border:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px; }
.share-linkedin { background:#0077b5; color:#fff; }
.share-twitter { background:#1da1f2; color:#fff; }
.share-whatsapp { background:#25d366; color:#fff; }
.share-copy { background:#f1f5f9; color:#475569; }
.share-profile { background:#f1f5f9; color:#475569; }
.share-buttons { display:flex; gap:10px; flex-wrap:wrap; margin-top:16px; }

/* Profile Content Grid */
.pp-content { display:grid; grid-template-columns:1fr 320px; gap:24px; }
.pp-left { display:flex; flex-direction:column; gap:16px; }
.pp-right { display:flex; flex-direction:column; gap:16px; }
.pp-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.pp-card h3 { margin:0 0 12px; font-size:1rem; }

/* Links */
.pp-links { display:flex; flex-direction:column; gap:8px; }
.pp-link { color:#3b82f6; text-decoration:none; font-size:0.88rem; }
.pp-link:hover { text-decoration:underline; }

/* Skills + Endorsements */
.pp-skills-list { display:flex; flex-direction:column; gap:10px; }
.pp-skill-row { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid #f1f5f9; }
.pp-skill-name { font-weight:600; font-size:0.9rem; flex:1; }
.pp-endorse-count { font-size:0.75rem; color:#64748b; }
.pp-endorsed { background:#dcfce7; color:#166534; border:1px solid #bbf7d0; }
.btn-xs { padding:3px 10px; border-radius:8px; font-size:0.72rem; cursor:pointer; border:none; }

/* Badges */
.pp-badges-grid { display:flex; flex-wrap:wrap; gap:8px; }
.pp-badge { display:flex; align-items:center; gap:6px; background:#f8fafc; padding:6px 12px; border-radius:10px; }
.pp-badge-icon { font-size:1.2rem; }
.pp-badge-name { font-size:0.82rem; font-weight:500; }

/* Spark Score Card */
.pp-spark-card { background:linear-gradient(135deg,#1e293b,#334155); color:#fff; border-radius:16px; padding:24px; text-align:center; }
.pp-spark-header { display:flex; align-items:center; justify-content:center; gap:8px; font-size:0.85rem; opacity:0.8; margin-bottom:12px; }
.pp-spark-icon { font-size:1.3rem; }
.pp-spark-composite { font-size:3rem; font-weight:900; line-height:1; }
.pp-spark-dims { display:flex; flex-direction:column; gap:8px; margin-top:16px; }
.pp-dim { display:grid; grid-template-columns:90px 1fr 36px; align-items:center; gap:8px; font-size:0.78rem; }
.pp-dim-bar { height:6px; background:rgba(255,255,255,0.15); border-radius:3px; overflow:hidden; }
.pp-dim-bar div { height:100%; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:3px; }

/* Activity Card */
.pp-activity-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.pp-activity-card h3 { margin:0 0 12px; font-size:1rem; }
.pp-act-stats { display:flex; gap:20px; }
.pp-act-stats div { text-align:center; }
.pp-act-num { display:block; font-size:1.3rem; font-weight:800; }

/* Interests */
.interest-tag { background:#eff6ff; color:#1e40af; padding:4px 12px; border-radius:12px; font-size:0.82rem; }
.pp-interest-tags { display:flex; flex-wrap:wrap; gap:6px; }

/* Discover Page */
.discover-page { max-width:960px; margin:0 auto; padding:24px 16px; }
.discover-hero { text-align:center; margin-bottom:28px; }
.discover-hero h1 { font-size:1.8rem; margin:0 0 8px; }
.discover-hero p { color:#64748b; }
.discover-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.discover-card { background:#fff; border-radius:14px; padding:18px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.dc-top { display:flex; gap:12px; margin-bottom:10px; }
.dc-avatar { width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,#f97316,#ef4444); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; flex-shrink:0; }
.dc-info { flex:1; min-width:0; }
.dc-name { font-weight:600; font-size:0.95rem; color:#1e293b; text-decoration:none; display:block; }
.dc-name:hover { color:#3b82f6; }
.dc-headline { font-size:0.82rem; color:#64748b; display:block; }
.dc-tags { display:flex; gap:8px; font-size:0.75rem; color:#94a3b8; margin-top:4px; }
.dc-spark { text-align:center; flex-shrink:0; }
.dc-spark-num { display:block; font-size:1.5rem; font-weight:900; color:#f97316; }
.dc-spark-label { font-size:0.65rem; color:#94a3b8; }
.dc-skills { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px; }
.dc-actions { display:flex; gap:8px; }

/* Student Social Page */
.share-card-section { margin-bottom:28px; }
.share-card-section h2 { margin:0 0 16px; }
.spark-share-card { background:linear-gradient(135deg,#1e293b,#0f172a); color:#fff; border-radius:20px; padding:28px; max-width:380px; }
.ssc-header { text-align:center; opacity:0.6; font-size:0.8rem; margin-bottom:16px; }
.ssc-body { text-align:center; }
.ssc-body h3 { margin:0 0 4px; font-size:1.2rem; }
.ssc-headline { margin:0; font-size:0.85rem; opacity:0.7; }
.ssc-college { margin:4px 0 16px; font-size:0.82rem; opacity:0.6; }
.ssc-composite { font-size:3.5rem; font-weight:900; background:linear-gradient(135deg,#f97316,#ef4444); -webkit-background-clip:text; -webkit-text-fill-color:transparent; line-height:1; }
.ssc-comp-label { font-size:0.72rem; opacity:0.5; text-transform:uppercase; letter-spacing:1px; }
.ssc-dims { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:20px; }
.ssc-dim { text-align:center; background:rgba(255,255,255,0.06); border-radius:10px; padding:10px 4px; }
.ssc-dim span:first-child { display:block; font-size:0.65rem; opacity:0.5; text-transform:uppercase; letter-spacing:1px; }
.ssc-dim span:last-child { display:block; font-size:1.1rem; font-weight:800; }
.ssc-footer { display:flex; justify-content:center; gap:20px; margin-top:16px; font-size:0.82rem; opacity:0.6; }

/* Social Tabs */
.social-tabs { display:flex; gap:4px; background:#f1f5f9; padding:4px; border-radius:10px; margin-bottom:16px; width:fit-content; }
.social-tab { background:none; border:none; padding:8px 20px; border-radius:8px; font-size:0.88rem; color:#64748b; cursor:pointer; font-weight:500; }
.social-tab.active { background:#fff; color:#1e293b; box-shadow:0 1px 3px rgba(0,0,0,0.1); }

/* People List */
.social-people-list { display:flex; flex-direction:column; gap:8px; }
.social-person-card { display:flex; align-items:center; gap:14px; background:#fff; padding:14px 18px; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,0.04); }
.sp-avatar { width:44px; height:44px; border-radius:50%; background:linear-gradient(135deg,#3b82f6,#8b5cf6); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex-shrink:0; }
.sp-info { flex:1; min-width:0; }
.sp-name { font-weight:600; font-size:0.92rem; color:#1e293b; text-decoration:none; display:block; }
.sp-name:hover { color:#3b82f6; }
.sp-headline { font-size:0.82rem; color:#64748b; display:block; }
.sp-meta { display:flex; gap:10px; font-size:0.75rem; color:#94a3b8; margin-top:2px; }

/* ===== M10 ADMIN UPDATES ===== */

/* Admin Cards Row */
.admin-cards-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(380px,1fr)); gap:16px; margin-top:20px; }
.admin-info-card { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.admin-info-card h3 { margin:0 0 16px; }
.admin-feature-list { display:flex; flex-direction:column; gap:10px; }
.af-item { display:flex; align-items:flex-start; gap:12px; padding:10px; background:#f8fafc; border-radius:10px; }
.af-icon { font-size:1.3rem; flex-shrink:0; }
.af-desc { font-size:0.82rem; color:#64748b; display:block; margin-top:2px; }

/* Health Metrics */
.health-metrics { display:flex; flex-direction:column; gap:12px; }
.hm-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f1f5f9; font-size:0.88rem; }
.hm-val { font-weight:700; color:#f97316; }

/* Reports Page */
.report-section { margin-bottom:28px; }
.report-section h2 { margin:0 0 16px; }
.report-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; }
.report-card { display:flex; align-items:center; gap:14px; background:#fff; padding:18px; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,0.06); }
.rc-icon { font-size:1.5rem; }
.rc-num { display:block; font-size:1.4rem; font-weight:800; color:#1e293b; }
.rc-label { display:block; font-size:0.72rem; color:#94a3b8; text-transform:uppercase; }

/* Module Health */
.module-health-list { background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); overflow:hidden; }
.mh-row { display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid #f8fafc; }
.mh-icon { font-size:1.2rem; }
.mh-name { font-weight:600; min-width:120px; }
.mh-status { font-size:0.72rem; }
.status-partial { background:#fef3c7; color:#92400e; }
.mh-detail { font-size:0.82rem; color:#64748b; flex:1; text-align:right; }

/* Funnel */
.funnel-visual { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.funnel-step { display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.funnel-bar { height:28px; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:6px; min-width:6px; transition:width 0.4s; }
.funnel-label { min-width:70px; font-weight:600; font-size:0.88rem; }
.funnel-count { font-size:0.85rem; color:#475569; }
.funnel-pct { font-size:0.78rem; color:#94a3b8; }

/* Settings Page */
.settings-sections { display:flex; flex-direction:column; gap:16px; }
.settings-card { background:#fff; border-radius:14px; padding:24px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.settings-card h3 { margin:0 0 16px; font-size:1rem; border-bottom:1px solid #f1f5f9; padding-bottom:10px; }
.setting-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid #f8fafc; gap:16px; }
.setting-info { flex:1; }
.setting-info label { font-weight:600; font-size:0.9rem; display:block; }
.setting-desc { font-size:0.78rem; color:#94a3b8; }
.setting-input { max-width:280px; }
.setting-input-sm { max-width:100px; }

/* Toggle Switch */
.toggle { position:relative; display:inline-block; width:44px; height:24px; cursor:pointer; }
.toggle input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; top:0; left:0; right:0; bottom:0; background:#cbd5e1; border-radius:12px; transition:0.2s; }
.toggle-slider:before { content:""; position:absolute; height:18px; width:18px; left:3px; bottom:3px; background:#fff; border-radius:50%; transition:0.2s; }
.toggle input:checked + .toggle-slider { background:#3b82f6; }
.toggle input:checked + .toggle-slider:before { transform:translateX(20px); }

.settings-save-bar { display:flex; justify-content:space-between; align-items:center; margin-top:20px; padding:16px 20px; background:#fff; border-radius:14px; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.settings-note { font-size:0.82rem; color:#94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .pp-hero { flex-direction:column; align-items:center; text-align:center; }
    .pp-content { grid-template-columns:1fr; }
    .pp-hero-actions { justify-content:center; }
    .discover-grid { grid-template-columns:1fr; }
    .admin-cards-row { grid-template-columns:1fr; }
    .setting-row { flex-direction:column; align-items:flex-start; }
}

/* ===== MODAL ===== */
.modal-overlay { position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); backdrop-filter:blur(4px); display:flex; align-items:center; justify-content:center; z-index:1000; padding:20px; }
.modal-content { background:#fff; border-radius:16px; width:100%; max-width:600px; max-height:90vh; overflow-y:auto; box-shadow:0 20px 60px rgba(0,0,0,0.2); }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:20px 24px 16px; border-bottom:1px solid #f1f5f9; }
.modal-header h2 { margin:0; font-size:1.2rem; font-weight:700; }
.modal-close { background:none; border:none; font-size:24px; color:#94a3b8; cursor:pointer; padding:4px 8px; border-radius:8px; line-height:1; }
.modal-close:hover { background:#f1f5f9; color:#1e293b; }
.modal-body { padding:20px 24px 24px; }
.modal-body .form-group { margin-bottom:16px; }
.modal-body .form-row-2col { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.modal-xl { max-width:800px !important; }

/* Table Container */
.table-container { overflow-x:auto; }

/* ===== EMAIL CONFIRMATION NOTICE ===== */
.confirm-notice { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:12px; padding:28px; text-align:center; margin-bottom:16px; }

/* ===== EXAM SYSTEM ===== */

/* Student exam list */
.exam-list { display:flex; flex-direction:column; gap:14px; }
.exam-card { background:#fff; border-radius:14px; padding:22px; box-shadow:0 2px 8px rgba(0,0,0,0.06); border:1px solid #f1f5f9; transition:all 0.2s; }
.exam-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.1); }
.exam-card.locked { opacity:0.6; background:#fafafa; }
.exam-card.passed { border-left:4px solid #22c55e; }
.exam-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.exam-card-info h3 { margin:0 0 4px; font-size:1.1rem; font-weight:700; color:#1e293b; }
.exam-card-info p { margin:0; font-size:0.85rem; color:#94a3b8; }
.exam-card-stats { display:flex; gap:14px; flex-wrap:wrap; font-size:0.8rem; color:#64748b; }
.exam-prereq { font-size:0.8rem; color:#f59e0b; margin-top:8px; padding:6px 12px; background:#fffbeb; border-radius:8px; display:inline-block; }
.exam-card-result { font-size:0.85rem; color:#22c55e; font-weight:600; margin-top:8px; }
.exam-card-actions { margin-top:14px; display:flex; align-items:center; gap:12px; }
.exam-lock-reason { font-size:0.82rem; color:#94a3b8; }

/* Exam attempt page */
.exam-attempt-page { max-width:800px; margin:0 auto; }
.exam-attempt-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.exam-attempt-header h2 { margin:0; }

/* Question card */
.exam-q-card { background:#fff; border-radius:16px; padding:28px; box-shadow:0 4px 20px rgba(0,0,0,0.08); }
.exam-q-num { font-size:0.9rem; font-weight:700; color:#3b82f6; margin-bottom:12px; }
.exam-q-text { font-size:1.1rem; font-weight:600; color:#1e293b; margin-bottom:20px; line-height:1.5; }

/* Options */
.exam-options { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.exam-option { display:flex; align-items:center; gap:14px; padding:14px 18px; border:2px solid #e2e8f0; border-radius:12px; background:#fff; cursor:pointer; font-size:0.95rem; transition:all 0.15s; text-align:left; }
.exam-option:hover { border-color:#3b82f6; background:#f0f7ff; }
.exam-option.selected { border-color:#3b82f6; background:#eff6ff; box-shadow:0 0 0 3px rgba(59,130,246,0.15); }
.exam-opt-letter { width:32px; height:32px; border-radius:50%; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.85rem; color:#64748b; flex-shrink:0; }
.exam-option.selected .exam-opt-letter { background:#3b82f6; color:#fff; }

/* Navigation */
.exam-q-nav { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.exam-q-dots { display:flex; gap:6px; flex-wrap:wrap; }
.exam-dot { width:28px; height:28px; border-radius:50%; background:#f1f5f9; display:flex; align-items:center; justify-content:center; font-size:0.7rem; font-weight:600; color:#94a3b8; cursor:pointer; transition:all 0.15s; }
.exam-dot:hover { background:#e2e8f0; }
.exam-dot.current { background:#3b82f6; color:#fff; }
.exam-dot.answered { background:#dbeafe; color:#3b82f6; border:2px solid #3b82f6; }
.exam-dot.current.answered { background:#3b82f6; color:#fff; }

/* Result page */
.exam-result-page { display:flex; justify-content:center; padding:40px 0; }
.exam-result-card { background:#fff; border-radius:20px; padding:40px; text-align:center; box-shadow:0 8px 30px rgba(0,0,0,0.1); max-width:480px; width:100%; }
.exam-result-card.passed { border-top:5px solid #22c55e; }
.exam-result-card.failed { border-top:5px solid #ef4444; }
.exam-result-card h1 { margin:0 0 16px; font-size:1.8rem; }
.exam-result-score { font-size:2.5rem; font-weight:800; color:#1e293b; margin-bottom:16px; }
.exam-result-meta { display:flex; justify-content:center; gap:20px; color:#64748b; font-size:0.88rem; flex-wrap:wrap; }

/* Status badges */
.status-badge { display:inline-block; padding:3px 10px; border-radius:8px; font-size:0.78rem; font-weight:600; }
.status-active { background:#dcfce7; color:#166534; }
.status-inactive { background:#fee2e2; color:#991b1b; }
.status-pending { background:#fef3c7; color:#92400e; }
.status-draft { background:#f1f5f9; color:#64748b; }
.status-paused { background:#e0e7ff; color:#3730a3; }
.status-closed { background:#fce7f3; color:#9d174d; }

@media (max-width:768px) {
    .exam-card-top { flex-direction:column; }
    .exam-q-nav { flex-direction:column; align-items:stretch; }
    .exam-q-dots { justify-content:center; }
}

/* ===== M11 ANALYTICS ENHANCED ===== */

.analytics-page .analytics-top-bar { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; flex-wrap:wrap; gap:12px; }
.analytics-page .analytics-top-bar h1 { margin:0; }
.analytics-page .analytics-controls { display:flex; gap:8px; align-items:center; }

/* Tabs */
.analytics-page .an-tabs { display:flex; gap:4px; background:#f1f5f9; padding:4px; border-radius:12px; margin-bottom:20px; overflow-x:auto; }
.analytics-page .an-tab { background:none; border:none; padding:8px 16px; border-radius:10px; font-size:0.82rem; color:#64748b; cursor:pointer; font-weight:500; white-space:nowrap; transition:all 0.15s; }
.analytics-page .an-tab:hover { background:rgba(255,255,255,0.6); }
.analytics-page .an-tab.active { background:#fff; color:#1e293b; box-shadow:0 1px 4px rgba(0,0,0,0.1); font-weight:600; }

/* Stat Grid */
.analytics-page .an-stat-grid { display:grid; gap:12px; margin-bottom:16px; }
.analytics-page .an-stat-grid.an-cols-4 { grid-template-columns:repeat(4, 1fr); }
.analytics-page .an-stat-grid.an-cols-3 { grid-template-columns:repeat(3, 1fr); }
.analytics-page .an-stat { background:#fff; padding:18px; border-radius:12px; box-shadow:0 1px 6px rgba(0,0,0,0.06); text-align:center; border:1px solid #f1f5f9; }
.analytics-page .an-stat.accent { border-left:4px solid #3b82f6; }
.analytics-page .an-stat.spark { border-left:4px solid #f97316; }
.analytics-page .an-stat .an-stat-num { display:block; font-size:1.35rem; font-weight:800; color:#1e293b; line-height:1.3; margin-bottom:4px; }
.analytics-page .an-stat .an-stat-label { display:block; font-size:0.7rem; color:#94a3b8; text-transform:uppercase; letter-spacing:0.5px; line-height:1.2; }

/* Cards */
.analytics-page .an-card { background:#fff; border-radius:14px; padding:20px; box-shadow:0 2px 8px rgba(0,0,0,0.06); margin-bottom:16px; border:1px solid #f1f5f9; }
.analytics-page .an-card h3 { margin:0 0 14px; font-size:1rem; font-weight:700; color:#1e293b; }
.analytics-page .an-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }

/* Bar Chart */
.analytics-page .an-chart { display:flex; align-items:flex-end; gap:3px; height:120px; padding:8px 0; border-bottom:1px solid #f1f5f9; }
.analytics-page .an-chart-col { display:flex; flex-direction:column; align-items:center; flex:1; min-width:0; justify-content:flex-end; height:100%; }
.analytics-page .an-chart-bar { background:linear-gradient(180deg,#3b82f6,#8b5cf6); border-radius:4px 4px 0 0; width:100%; max-width:36px; min-height:2px; display:flex; align-items:flex-start; justify-content:center; transition:height 0.3s; position:relative; }
.analytics-page .an-chart-val { font-size:0.6rem; color:#fff; font-weight:700; margin-top:2px; }
.analytics-page .an-chart-lbl { font-size:0.58rem; color:#94a3b8; margin-top:4px; white-space:nowrap; }

/* Accuracy inline */
.analytics-page .an-acc-wrap { display:flex; align-items:center; gap:8px; font-size:0.85rem; }
.analytics-page .mini-bar { width:70px; height:6px; background:#f1f5f9; border-radius:3px; overflow:hidden; display:inline-block; }
.analytics-page .mini-fill { height:100%; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:3px; display:block; }

/* Points highlight */
.analytics-page .an-pts { color:#f97316; font-weight:700; }

/* Type rows */
.analytics-page .an-type-row { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid #f1f5f9; font-size:0.88rem; }
.analytics-page .an-type-name { font-weight:600; }
.analytics-page .an-type-meta { color:#94a3b8; font-size:0.82rem; }
.analytics-page .an-type-acc { font-weight:700; color:#3b82f6; }

/* Difficulty badges */
.analytics-page .an-diff-badge { padding:3px 10px; border-radius:8px; font-size:0.78rem; font-weight:600; display:inline-block; }
.analytics-page .diff-easy { background:#dcfce7; color:#166534; }
.analytics-page .diff-medium { background:#fef3c7; color:#92400e; }
.analytics-page .diff-hard { background:#fee2e2; color:#991b1b; }

/* Pipeline */
.analytics-page .an-pipeline { display:flex; flex-direction:column; gap:10px; }
.analytics-page .an-pipe-step { display:flex; align-items:center; gap:14px; }
.analytics-page .an-pipe-bar { height:24px; background:linear-gradient(90deg,#3b82f6,#8b5cf6); border-radius:6px; min-width:4px; transition:width 0.4s; }
.analytics-page .an-pipe-green { background:linear-gradient(90deg,#22c55e,#16a34a) !important; }
.analytics-page .an-pipe-step span { min-width:70px; font-size:0.85rem; color:#64748b; }
.analytics-page .an-pipe-step strong { font-size:0.88rem; }
.analytics-page .an-pipe-sub { display:flex; gap:20px; margin-top:12px; font-size:0.82rem; color:#94a3b8; }

/* Responsive */
@media (max-width: 768px) {
    .analytics-page .an-stat-grid.an-cols-4 { grid-template-columns:repeat(2, 1fr); }
    .analytics-page .an-stat-grid.an-cols-3 { grid-template-columns:1fr; }
    .analytics-page .an-row { grid-template-columns:1fr; }
    .analytics-page .an-tabs { flex-wrap:nowrap; }
}

/* ============================================================
   COMPREHENSIVE MOBILE OVERRIDES (480px and below)
   ============================================================ */
@media (max-width: 480px) {
    /* Tighter spacing */
    .dashboard-content { padding:12px; }
    .card { padding:16px; margin-bottom:14px; border-radius:12px; }
    .card-header { flex-direction:column; align-items:flex-start; gap:8px; }
    .card-header h3 { font-size:15px; }

    /* Page header */
    .page-header h1 { font-size:18px; }
    .page-header p { font-size:13px; }

    /* Stats */
    .stats-row { gap:10px; }
    .stat-card { padding:14px; border-radius:10px; }
    .stat-value { font-size:1.3rem; }
    .stat-label { font-size:0.72rem; }

    /* Analytics stat grid */
    .analytics-page .an-stat-grid.an-cols-4 { grid-template-columns:1fr 1fr; }
    .analytics-page .an-stat-card { padding:12px; }
    .analytics-page .an-tabs { overflow-x:auto; flex-wrap:nowrap; gap:0; }
    .analytics-page .an-tab { white-space:nowrap; font-size:0.78rem; padding:8px 12px; }

    /* Tables tighter */
    table th, table td { padding:6px 8px; font-size:0.75rem; }
    .table-wrapper { overflow-x:auto; -webkit-overflow-scrolling:touch; }

    /* Modals */
    .modal-overlay { padding:8px; padding-top:20px; }
    .modal-content { border-radius:10px; }
    .modal-header { padding:14px 16px 12px; }
    .modal-body { padding:14px 16px 16px; }

    /* Auth form */
    .auth-form-container { padding:24px 16px; }
    .auth-form-container h2 { font-size:1.3rem; }

    /* KBC */
    .kbc-info-grid { grid-template-columns:1fr !important; }
    .kbc-question-text { font-size:0.9rem; }

    /* Engagement */
    .daily-challenge-banner { padding:16px; }
    .engage-stats-row { grid-template-columns:1fr !important; }
    .hack-meta-grid { grid-template-columns:1fr !important; }

    /* Matching */
    .rec-card { padding:16px; }

    /* Communication */
    .msg-layout { grid-template-columns:1fr !important; }

    /* Social */
    .pp-hero { padding:20px; }
    .pp-content { grid-template-columns:1fr; }
    .discover-grid { grid-template-columns:1fr !important; }

    /* Exam */
    .exam-card { padding:16px; }
    .exam-options { grid-template-columns:1fr !important; }
    .exam-option { padding:12px 14px; }

    /* Admin cards */
    .admin-cards-row { grid-template-columns:1fr !important; }

    /* College/Exam tables */
    .form-input, .form-select { font-size:14px; }
}

/* ============================================================
   TABLETS — 769px to 1024px
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-row { grid-template-columns:repeat(2, 1fr); }
    .admin-cards-row { grid-template-columns:repeat(2, 1fr); }
    .discover-grid { grid-template-columns:repeat(2, 1fr); }
    .quick-actions { grid-template-columns:repeat(2, 1fr); }
}

/* ============================================================
   M13 SparkDNA — Personality Intelligence
   ============================================================ */

/* --- Welcome / Landing --- */
.dna-welcome { text-align:center; padding:40px 20px; max-width:800px; margin:0 auto; }
.dna-welcome-icon { font-size:72px; margin-bottom:16px; }
.dna-welcome h1 { font-family:var(--font-display); font-size:32px; font-weight:800; color:var(--navy); margin-bottom:12px; }
.dna-welcome p { font-size:16px; color:var(--text-secondary); line-height:1.6; max-width:600px; margin:0 auto 24px; }
.dna-feature-card { background:var(--white); border:1px solid var(--grey-100); border-radius:var(--radius-lg); padding:20px; text-align:center; display:flex; flex-direction:column; gap:6px; }
.dna-feature-card span:first-child { font-size:28px; }
.dna-feature-card strong { font-size:14px; color:var(--navy); }
.dna-feature-card small { font-size:12px; color:var(--grey-400); }

/* --- Test Container --- */
.dna-test-container { max-width:750px; margin:0 auto; }
.dna-test-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.dna-test-header h2 { font-family:var(--font-display); font-size:22px; font-weight:700; color:var(--navy); }
.dna-timer { text-align:right; }

/* Progress */
.dna-progress { height:6px; background:var(--grey-100); border-radius:3px; margin-bottom:24px; overflow:hidden; }
.dna-progress-fill { height:100%; background:var(--spark-gradient); border-radius:3px; transition:width 0.4s ease; }

/* Question card */
.dna-question-card { background:var(--white); border:1px solid var(--grey-100); border-radius:var(--radius-xl); padding:32px; box-shadow:var(--shadow-md); }
.dna-question-number { font-family:var(--font-display); font-size:13px; font-weight:700; color:var(--orange); margin-bottom:8px; letter-spacing:1px; }
.dna-question-text { font-family:var(--font-display); font-size:18px; font-weight:600; color:var(--navy); line-height:1.5; margin-bottom:24px; }

/* Options */
.dna-options { display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.dna-option { display:flex; align-items:center; gap:14px; padding:14px 18px; background:var(--grey-50); border:2px solid var(--grey-100); border-radius:var(--radius-md); cursor:pointer; transition:all 0.2s; text-align:left; font-size:15px; color:var(--text-primary); }
.dna-option:hover { border-color:var(--blue-light); background:rgba(59,130,246,0.04); }
.dna-option.selected { border-color:var(--orange); background:rgba(245,130,32,0.06); box-shadow:0 0 0 3px rgba(245,130,32,0.15); }
.dna-option-letter { width:32px; height:32px; border-radius:50%; background:var(--grey-100); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--grey-600); flex-shrink:0; }
.dna-option.selected .dna-option-letter { background:var(--orange); color:var(--white); }

/* Nav buttons */
.dna-nav-buttons { display:flex; gap:10px; align-items:center; }

/* Dot navigator */
.dna-dot-nav { display:flex; flex-wrap:wrap; gap:6px; justify-content:center; margin-top:20px; }
.dna-dot { width:30px; height:30px; border-radius:50%; border:2px solid var(--grey-200); background:var(--white); font-size:11px; font-weight:600; color:var(--grey-400); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.dna-dot.answered { background:var(--green); border-color:var(--green); color:var(--white); }
.dna-dot.current { border-color:var(--orange); color:var(--orange); box-shadow:0 0 0 3px rgba(245,130,32,0.2); }

/* --- Profile Results --- */
.dna-profile { max-width:900px; margin:0 auto; }
.dna-two-col { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:20px; }
.dna-career-tags { display:flex; flex-wrap:wrap; gap:10px; }
.dna-feature-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:16px; margin:30px 0; }
.dna-archetype-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.dna-bank-controls { display:flex; gap:8px; align-items:center; }
.dna-modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:16px; }
.dna-hero-card { display:flex; align-items:center; gap:24px; background:var(--navy-gradient); border-radius:var(--radius-xl); padding:32px; color:var(--white); }
.dna-archetype-emoji { font-size:56px; flex-shrink:0; }
.dna-hero-card h1 { font-family:var(--font-display); font-size:28px; font-weight:800; color:var(--white); }
.dna-confidence { display:flex; flex-direction:column; align-items:center; gap:4px; margin-left:auto; }
.dna-confidence-ring { width:64px; height:64px; border-radius:50%; background:conic-gradient(var(--orange) calc(var(--confidence) * 3.6deg), rgba(255,255,255,0.15) 0); display:flex; align-items:center; justify-content:center; position:relative; }
.dna-confidence-ring::before { content:''; position:absolute; width:50px; height:50px; border-radius:50%; background:var(--navy-deep); }
.dna-confidence-ring span { position:relative; z-index:1; font-family:var(--font-display); font-size:16px; font-weight:700; color:var(--white); }
.dna-confidence small { font-size:11px; color:rgba(255,255,255,0.6); }

/* Dimension bars */
.dna-dimensions { display:flex; flex-direction:column; gap:14px; }
.dna-dim-row { display:flex; align-items:center; gap:12px; }
.dna-dim-label { display:flex; align-items:center; gap:8px; min-width:200px; font-size:14px; font-weight:500; color:var(--text-primary); }
.dna-dim-icon { font-size:18px; }
.dna-dim-bar-track { flex:1; height:12px; background:var(--grey-100); border-radius:6px; overflow:hidden; }
.dna-dim-bar-fill { height:100%; border-radius:6px; transition:width 0.6s ease; min-width:2px; }
.dna-dim-value { font-family:var(--font-display); font-size:14px; font-weight:700; color:var(--navy); min-width:32px; text-align:right; }

/* --- Test Battery Grid --- */
.dna-test-battery-grid { display:flex; flex-direction:column; gap:10px; }
.dna-battery-card { display:flex; align-items:center; gap:14px; padding:14px 18px; background:var(--white); border:2px solid var(--grey-100); border-radius:var(--radius-md); transition:all 0.2s; }
.dna-battery-card:hover { border-color:var(--blue-light); }
.dna-battery-card.completed { border-color:var(--green); background:rgba(16,185,129,0.04); }
.dna-battery-card.locked { opacity:0.55; pointer-events:none; }
.dna-battery-icon { font-size:28px; flex-shrink:0; }
.dna-battery-info { flex:1; display:flex; flex-direction:column; gap:2px; }
.dna-battery-info strong { font-size:14px; color:var(--navy); }
.dna-battery-info small { font-size:12px; color:var(--grey-400); }
.dna-battery-status { flex-shrink:0; }
.dna-question-urgent { animation:dna-pulse 0.5s infinite alternate; border-color:var(--red) !important; }
@keyframes dna-pulse { from { box-shadow:0 0 0 0 rgba(239,68,68,0.3); } to { box-shadow:0 0 0 8px rgba(239,68,68,0); } }

/* --- Responsive --- */
@media (max-width:768px) {
    /* Hero card */
    .dna-hero-card { flex-direction:column; text-align:center; padding:24px 16px; gap:16px; }
    .dna-hero-card h1 { font-size:22px; }
    .dna-archetype-emoji { font-size:44px; }
    .dna-confidence { margin-left:0; }

    /* Dimension bars */
    .dna-dim-label { min-width:120px; font-size:12px; }
    .dna-dim-icon { font-size:14px; }
    .dna-dim-bar-track { height:10px; }
    .dna-dim-value { font-size:13px; min-width:28px; }
    .dna-dim-row { gap:8px; }
    .dna-dimensions { gap:10px; }

    /* Test taking */
    .dna-question-card { padding:20px 16px; }
    .dna-question-text { font-size:16px; margin-bottom:16px; }
    .dna-option { padding:12px 14px; font-size:14px; gap:10px; }
    .dna-option-letter { width:28px; height:28px; font-size:12px; }
    .dna-dot { width:26px; height:26px; font-size:10px; }
    .dna-dot-nav { gap:4px; }
    .dna-nav-buttons { flex-wrap:wrap; }
    .dna-test-header h2 { font-size:18px; }

    /* Two-column → single column */
    .dna-two-col { grid-template-columns:1fr !important; }

    /* Welcome */
    .dna-welcome { padding:24px 12px; }
    .dna-welcome h1 { font-size:24px; }
    .dna-welcome p { font-size:14px; }
    .dna-welcome-icon { font-size:56px; }
    .dna-feature-grid { grid-template-columns:repeat(2, 1fr); gap:10px; margin:20px 0; }
    .dna-feature-card { padding:14px 10px; }
    .dna-feature-card span:first-child { font-size:22px; }
    .dna-feature-card strong { font-size:12px; }

    /* Share bar */
    .dna-share-bar { flex-direction:column; align-items:stretch; padding:12px; gap:10px; }
    .dna-share-buttons { width:100%; }
    .dna-share-btn { flex:1; justify-content:center; min-width:0; padding:10px 8px; font-size:11px; gap:4px; }
    .dna-share-btn svg { width:14px; height:14px; }

    /* Admin: archetypes grid */
    .dna-archetype-grid { grid-template-columns:1fr; }

    /* Admin: bank header controls */
    .dna-bank-controls { flex-direction:column; width:100%; gap:8px; }
    .dna-bank-controls select { width:100%; }

    /* Battery cards */
    .dna-battery-card { flex-wrap:wrap; gap:8px; padding:12px; }
    .dna-battery-status { width:100%; }

    /* Card headers with buttons */
    .dna-profile .card-header,
    .card-header { flex-wrap:wrap; gap:8px; }
}

@media (max-width:480px) {
    /* Dimension bars: stack label above bar */
    .dna-dim-row { flex-wrap:wrap; }
    .dna-dim-label { min-width:100%; margin-bottom:-4px; }
    .dna-dim-bar-track { flex:1; }

    /* Welcome features: single column */
    .dna-feature-grid { grid-template-columns:1fr; }

    /* Hero even smaller */
    .dna-hero-card { padding:20px 14px; }
    .dna-hero-card h1 { font-size:20px; }
    .dna-archetype-emoji { font-size:36px; }

    /* Test: smaller dots for 30 questions */
    .dna-dot { width:24px; height:24px; font-size:9px; }
    .dna-dot-nav { gap:3px; }

    /* Share: stack vertically, 2 per row */
    .dna-share-buttons { display:grid; grid-template-columns:1fr 1fr; }
    .dna-share-btn { justify-content:center; }

    /* Test info */
    .dna-question-card { padding:16px 12px; }
    .dna-question-text { font-size:15px; }
    .dna-option { padding:10px 12px; font-size:13px; }
    .dna-nav-buttons button { font-size:13px; padding:8px 12px; }

    /* Admin: archetype cards */
    .dna-archetype-grid .card { padding:14px; }
}

/* Powered By Footer */
.powered-footer { text-align:center; padding:16px 20px; font-size:13px; color:var(--grey-400); border-top:1px solid var(--grey-100); margin-top:auto; }
.powered-footer a { color:var(--orange); text-decoration:underline; font-weight:500; }
.powered-footer a:hover { color:var(--navy); }

/* SparkDNA Share Bar */
.dna-share-bar { display:flex; align-items:center; gap:16px; margin-top:16px; padding:16px 20px; background:var(--white); border:1px solid var(--grey-100); border-radius:var(--radius-lg); flex-wrap:wrap; }
.dna-share-label { font-weight:600; font-size:14px; color:var(--navy); white-space:nowrap; }
.dna-share-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.dna-share-btn { display:inline-flex; align-items:center; gap:6px; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; font-family:inherit; border:none; cursor:pointer; color:#fff; transition:all 0.2s; }
.dna-share-btn:hover { transform:translateY(-1px); box-shadow:0 4px 12px rgba(0,0,0,0.15); }
.dna-share-btn svg { flex-shrink:0; }
.dna-share-instagram { background:linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.dna-share-whatsapp { background:#25D366; }
.dna-share-twitter { background:#000; }
.dna-share-linkedin { background:#0A66C2; }
.dna-share-more { background:var(--orange); }
