/* ─── TOKENS ───────────────────────────────────────── */
:root {
    --primary: #f46b2a;
    --primary-light: rgba(244, 107, 42, .09);
    --primary-glow: rgba(244, 107, 42, .22);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, .10);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, .10);
    --danger: #f43f5e;
    --danger-light: rgba(244, 63, 94, .10);
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 20px;
    --r-xl: 30px;
    --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, .04), 0 2px 8px -1px rgba(15, 23, 42, .03);
    --shadow-premium: 0 20px 40px -15px rgba(15, 23, 42, .07), 0 0 0 1px rgba(15, 23, 42, .04);
    --shadow-glow: 0 10px 30px -10px rgba(244, 107, 42, .32);
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.3s var(--ease);
    --cta: #f97316;
    --cta-dark: #ea580c;
    --cta-glow: rgba(249, 115, 22, .38);
    --site-ink: #13251f;
    --site-soft: #fff7ed;
}

/* ─── BASE ─────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box
}

body {
    font-family: 'Inter', sans-serif;
    background: #fafbfd;
    color: var(--slate-800);
    letter-spacing: -.01em;
    overflow-x: hidden;
    padding-bottom: 80px;
    animation: bodyFadeIn .35s var(--ease) both;
}

@keyframes bodyFadeIn {
    from {
        opacity: 0
    }
    to {
        opacity: 1
    }
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -.02em;
}

.gap-1 {
    gap: .25rem !important
}

.gap-2 {
    gap: .5rem !important
}

.gap-3 {
    gap: 1rem !important
}

.gap-4 {
    gap: 1.5rem !important
}

/* ─── NAVBAR ───────────────────────────────────────── */
.navbar-custom {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: 14px 0;
    transition: var(--transition);
}

.navbar-custom.scrolled {
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 2px 20px rgba(15, 23, 42, .06);
}

/* ─── STEP DOTS ────────────────────────────────────── */
.step-dots-nav {
    display: flex;
    align-items: center;
    gap: 5px
}

.sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-200);
    display: inline-block;
    transition: all .35s var(--ease);
}

.sdot.done {
    background: var(--success);
}

.sdot.active {
    width: 22px;
    border-radius: 4px;
    background: var(--cta);
}

.btn-step-back {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    transition: color .2s;
    text-decoration: none;
}

.btn-step-back:hover {
    color: var(--slate-900);
    text-decoration: none
}

.btn-step-back.invisible {
    visibility: hidden;
    pointer-events: none
}

/* ─── HERO ─────────────────────────────────────────── */
.hero-section {
    padding: 64px 0 48px
}

.hero-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--r-xl);
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    border: 1px solid rgba(99, 102, 241, .15);
}

.hero-title {
    font-size: 2.6rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 14px;
    background: linear-gradient(135deg, var(--slate-900) 40%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--slate-600);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 24px;
    line-height: 1.65
}

/* ─── CTA BUTTON ───────────────────────────────────── */
.btn-cta {
    background: var(--cta);
    color: #fff;
    font-weight: 700;
    padding: 15px 44px;
    border-radius: 999px;
    border: none;
    font-size: 1.08rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    letter-spacing: -.01em;
    box-shadow: 0 8px 32px -6px var(--cta-glow);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .2s, box-shadow .2s, transform .1s;
}

.btn-cta:hover {
    background: var(--cta-dark);
    box-shadow: 0 14px 40px -6px var(--cta-glow);
    color: #fff;
    transform: translateY(-2px)
}

.btn-cta:active {
    transform: scale(.97)
}

.btn-cta.btn-block {
    border-radius: var(--r-md);
    padding: 13px 24px;
    justify-content: center;
    width: 100%
}

@keyframes ctaShake {
    0%, 76%, 100% {
        transform: translateY(0) rotate(0) scale(1)
    }
    78% {
        transform: translateY(-5px) rotate(-2.5deg) scale(1.03)
    }
    81% {
        transform: translateY(2px) rotate(2.5deg) scale(1.03)
    }
    84% {
        transform: translateY(-3px) rotate(-1.5deg) scale(1.02)
    }
    87% {
        transform: translateY(1px) rotate(1deg) scale(1.01)
    }
    93% {
        transform: translateY(0) rotate(0) scale(1)
    }
}

.btn-cta-shake {
    animation: ctaShake 5s ease-in-out infinite
}

.btn-cta-shake:hover {
    animation: none;
    transform: translateY(-2px)
}

.hero-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-action-row p {
    flex-basis: 100%;
}

.btn-site-ai-mode {
    position: relative;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    padding: 0 24px;
    background: linear-gradient(135deg, #111827, #7c3aed 48%, #f97316);
    border: 0;
    border-radius: 16px;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    box-shadow: 0 18px 42px rgba(124, 58, 237, .32), 0 0 0 1px rgba(255, 255, 255, .16) inset;
    cursor: pointer;
    isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    animation: aiButtonPulse 2.3s ease-in-out infinite;
}

.btn-site-ai-mode:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 54px rgba(249, 115, 22, .34), 0 0 0 1px rgba(255, 255, 255, .2) inset;
}

.btn-site-ai-mode i,
.btn-site-ai-mode span:not(.ai-mode-glow) {
    position: relative;
    z-index: 1;
}

.ai-mode-glow {
    position: absolute;
    inset: -40%;
    background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, .38), transparent, rgba(249, 115, 22, .46), transparent);
    animation: aiGlowSpin 4s linear infinite;
    z-index: -1;
}

@keyframes aiButtonPulse {
    0%, 100% {
        box-shadow: 0 18px 42px rgba(124, 58, 237, .32), 0 0 0 0 rgba(249, 115, 22, .35);
    }
    50% {
        box-shadow: 0 22px 52px rgba(124, 58, 237, .38), 0 0 0 8px rgba(249, 115, 22, 0);
    }
}

@keyframes aiGlowSpin {
    to {
        transform: rotate(360deg);
    }
}

body.ai-mode-open {
    overflow: hidden;
}

.site-ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .22s var(--ease);
}

.site-ai-overlay.active {
    pointer-events: auto;
    opacity: 1;
}

.site-ai-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-ai-panel {
    position: relative;
    width: min(100%, 820px);
    padding: 34px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 26px;
    box-shadow: 0 34px 90px rgba(15, 23, 42, .34);
    text-align: center;
    transform: translateY(18px) scale(.96);
    transition: transform .24s var(--ease);
}

.site-ai-overlay.active .site-ai-panel {
    transform: translateY(0) scale(1);
}

.site-ai-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: var(--slate-100);
    border: 0;
    border-radius: 50%;
    color: var(--slate-600);
    cursor: pointer;
}

.site-ai-orb {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border-radius: 22px;
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 16px 44px rgba(124, 58, 237, .3);
}

.site-ai-kicker {
    display: block;
    color: #f97316;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-ai-panel h2 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
}

.site-ai-panel p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--slate-600);
    font-size: 1rem;
    line-height: 1.6;
}

.site-prompt-box {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 54px;
    gap: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
}

.site-prompt-box textarea {
    min-height: 116px;
    resize: none;
    padding: 14px 16px;
    background: #fff;
    border: 0;
    border-radius: 16px;
    color: var(--slate-900);
    font: inherit;
    font-weight: 600;
    outline: none;
}

.site-prompt-box textarea::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.site-prompt-box button {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    align-self: end;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border: 0;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
}

.site-ai-suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.site-ai-suggestions button {
    min-height: 36px;
    padding: 0 12px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, .22);
    border-radius: 999px;
    color: #c2410c;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.site-ai-page {
    min-height: 100vh;
    padding: 112px 18px 34px;
    background: radial-gradient(circle at 20% 10%, rgba(249, 115, 22, .16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, .14), transparent 32%),
    linear-gradient(180deg, #fffaf5, #f8fbf8);
}

.ai-chat-shell {
    display: grid;
    grid-template-columns:minmax(280px, 390px) minmax(0, 860px);
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
}

.ai-chat-hero,
.ai-chat-window {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(244, 107, 42, .12);
    border-radius: 24px;
    box-shadow: 0 30px 78px -40px rgba(15, 23, 42, .28);
}

.ai-chat-hero {
    align-self: start;
    padding: 28px;
    position: sticky;
    top: 96px;
}

.ai-chat-hero h1 {
    margin: 8px 0 12px;
    color: var(--site-ink);
    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1;
}

.ai-chat-hero p {
    color: #66736e;
    font-weight: 700;
    line-height: 1.65;
    margin: 0;
}

.ai-chat-window {
    display: grid;
    grid-template-rows:auto minmax(0, 1fr) auto;
    min-height: calc(100vh - 152px);
    overflow: hidden;
}

.ai-chat-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 0 18px;
    background: #fff;
    border-bottom: 1px solid #edf2ef;
}

.ai-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border-radius: 15px;
    color: #fff;
    box-shadow: 0 10px 28px rgba(124, 58, 237, .24);
}

.ai-chat-top strong,
.ai-chat-top span {
    display: block;
}

.ai-chat-top strong {
    color: var(--site-ink);
    font-weight: 900;
}

.ai-chat-top span {
    margin-top: 2px;
    color: #7a8580;
    font-size: .82rem;
    font-weight: 700;
}

.ai-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(rgba(255, 250, 245, .82), rgba(255, 250, 245, .82)),
    radial-gradient(circle at 20% 22%, rgba(249, 115, 22, .08), transparent 24%),
    radial-gradient(circle at 84% 58%, rgba(124, 58, 237, .07), transparent 26%);
}

.ai-message {
    position: relative;
    max-width: min(74%, 620px);
    padding: 12px 14px 22px;
    border-radius: 18px;
    box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .38);
    font-size: .96rem;
    line-height: 1.5;
}

.ai-message span {
    display: block;
}

.ai-message small {
    position: absolute;
    right: 13px;
    bottom: 7px;
    color: #8b9691;
    font-size: .66rem;
    font-weight: 800;
}

.ai-message.user {
    align-self: flex-end;
    background: #fff3e8;
    border: 1px solid rgba(249, 115, 22, .18);
    color: #3b2416;
}

.ai-message.ai {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #edf2ef;
    color: var(--site-ink);
}

.ai-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 56px;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf2ef;
    border-radius: 18px;
}

.ai-typing.ai {
    align-self: flex-start;
}

.ai-typing i {
    width: 7px;
    height: 7px;
    background: #9aa7a1;
    border-radius: 50%;
    animation: aiTypingDot 1s infinite ease-in-out;
}

.ai-typing i:nth-child(2) {
    animation-delay: .16s;
}

.ai-typing i:nth-child(3) {
    animation-delay: .32s;
}

@keyframes aiTypingDot {
    0%, 80%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.ai-compose {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 52px;
    gap: 10px;
    padding: 14px;
    background: #fff;
    border-top: 1px solid #edf2ef;
}

.ai-compose textarea {
    height: 52px;
    max-height: 110px;
    resize: none;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    color: var(--site-ink);
    font: inherit;
    font-weight: 700;
    outline: none;
}

.ai-compose button {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border: 0;
    border-radius: 16px;
    color: #fff;
}

/* ─── PAGE HEADER ──────────────────────────────────── */
.page-header {
    padding: 32px 0 24px
}

.page-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 6px
}

.page-header p {
    color: var(--slate-600);
    margin: 0
}

/* ─── CARDS ────────────────────────────────────────── */
.premium-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    margin-bottom: 24px;
    overflow: hidden;
}

.premium-card:hover {
    box-shadow: 0 28px 56px -18px rgba(15, 23, 42, .09), 0 0 0 1px rgba(15, 23, 42, .03)
}

.premium-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premium-card-body {
    padding: 24px
}

/* ─── FIELD GROUPS ─────────────────────────────────── */
.field-group-container {
    background: var(--slate-50);
    border-radius: var(--r-lg);
    padding: 14px;
    border: 1px solid var(--slate-100);
    transition: var(--transition);
}

.field-group-container:focus-within {
    background: #fff;
    border-color: rgba(99, 102, 241, .25);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.field-group-title {
    font-size: .84rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ─── INPUTS ───────────────────────────────────────── */
.premium-input-wrapper {
    background: #fff;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--r-md);
    padding: 7px 12px;
    transition: var(--transition);
    margin-bottom: 6px;
}

.premium-input-wrapper:last-child {
    margin-bottom: 0
}

.premium-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow)
}

.premium-input-label {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate-400);
    margin-bottom: 2px;
    display: block;
}

.premium-input-field {
    border: none;
    background: transparent;
    width: 100%;
    font-weight: 600;
    color: var(--slate-900);
    font-size: .92rem;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.premium-input-field:focus {
    outline: none;
    box-shadow: none
}

.premium-input-field::placeholder {
    color: var(--slate-400);
    font-weight: 400
}

/* ─── BUTTONS ──────────────────────────────────────── */
.btn-premium {
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--r-md);
    border: none;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.btn-premium:hover {
    background: #4f46e5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(99, 102, 241, .42)
}

.btn-premium-secondary {
    background: var(--slate-900);
    color: #fff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: var(--r-md);
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.btn-premium-secondary:hover {
    background: var(--slate-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -5px rgba(15, 23, 42, .18);
    color: #fff
}

.btn-premium-outline {
    background: transparent;
    border: 1.5px solid var(--slate-200);
    color: var(--slate-800);
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--r-md);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-premium-outline:hover {
    border-color: var(--slate-900);
    background: var(--slate-900);
    color: #fff;
    text-decoration: none
}

.btn-ai-gradient {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: var(--r-md);
    padding: 8px 16px;
    font-size: .82rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn-ai-gradient:hover {
    box-shadow: 0 8px 20px rgba(168, 85, 247, .35);
    transform: translateY(-1px);
    color: #fff
}

/* ─── BADGES ───────────────────────────────────────── */
.premium-badge {
    padding: 4px 11px;
    border-radius: var(--r-xl);
    font-weight: 600;
    font-size: .76rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-premium-success {
    background: var(--success-light);
    color: var(--success)
}

.badge-premium-warning {
    background: var(--warning-light);
    color: var(--warning)
}

.badge-premium-danger {
    background: var(--danger-light);
    color: var(--danger)
}

/* ─── TABLE ────────────────────────────────────────── */
.table-premium {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: -8px
}

.table-premium th {
    border: none;
    padding: 10px 16px;
    color: var(--slate-400);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .06em;
}

.table-premium tbody tr {
    background: #fff;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.table-premium tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .09)
}

.table-premium td {
    padding: 14px 16px;
    border: none;
    vertical-align: middle;
}

.table-premium td:first-child {
    border-radius: var(--r-md) 0 0 var(--r-md)
}

.table-premium td:last-child {
    border-radius: 0 var(--r-md) var(--r-md) 0
}

/* ─── PREFERENCE CARDS ─────────────────────────────── */
.preference-card-item {
    background: #fff;
    border: 1px solid var(--slate-100);
    border-radius: var(--r-md);
    padding: 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
}

.preference-card-item:hover {
    border-color: rgba(99, 102, 241, .2);
    box-shadow: 0 8px 24px -6px rgba(99, 102, 241, .1)
}

.pref-order-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 800;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.preference-scrollable {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px
}

.preference-scrollable::-webkit-scrollbar {
    width: 4px
}

.preference-scrollable::-webkit-scrollbar-thumb {
    background: var(--slate-400);
    border-radius: 4px
}

/* ─── FLOATING BUTTON ──────────────────────────────── */
.premium-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    border-radius: var(--r-xl);
    padding: 12px 22px;
    background: var(--slate-900);
    color: #fff;
    font-weight: 600;
    font-size: .88rem;
    box-shadow: 0 16px 36px -8px rgba(15, 23, 42, .28);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.premium-floating-btn:hover {
    background: var(--cta);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px var(--cta-glow);
    color: #fff;
    text-decoration: none
}

.premium-floating-btn .fb-badge {
    background: #fff;
    color: var(--slate-900);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: .72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── AI SKELETON ──────────────────────────────────── */
.ai-skeleton {
    background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: var(--r-sm);
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0
    }
    100% {
        background-position: -200% 0
    }
}

.analysis-accent-card {
    border-left: 4px solid var(--primary) !important
}

.ai-audit-card {
    border-left: 4px solid #a855f7 !important
}

/* ─── MODAL ────────────────────────────────────────── */
.modal-content {
    border-radius: var(--r-lg) !important;
    border: none !important;
    overflow: hidden
}

.modal-header {
    padding: 18px 22px
}

.modal-body {
    padding: 22px
}

.modal-footer {
    padding: 14px 22px
}

/* ─── PROGRESS ─────────────────────────────────────── */
.progress {
    height: 8px;
    border-radius: var(--r-xl);
    background: var(--slate-100);
    overflow: hidden
}

.progress-bar {
    transition: width .6s var(--ease)
}

/* ─── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: var(--slate-50)
}

::-webkit-scrollbar-thumb {
    background: var(--slate-400);
    border-radius: var(--r-xl)
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600)
}

/* ─── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.1rem
    }

    .premium-card-body {
        padding: 18px
    }

    .premium-card-header {
        padding: 14px 18px
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.75rem
    }

    .hero-desc {
        font-size: .95rem
    }

    .premium-floating-btn {
        bottom: 14px;
        right: 14px;
        padding: 10px 16px;
        font-size: .83rem
    }

    .premium-card-body {
        padding: 14px
    }

    .table-premium th {
        padding: 8px 10px
    }

    .table-premium td {
        padding: 12px 10px
    }
}

@media (max-width: 575px) {
    .hero-section {
        padding: 40px 0 28px
    }

    .field-group-container {
        padding: 11px
    }
}

/* ─── PRINT ────────────────────────────────────────── */
@media print {
    body {
        background: #fff;
        padding: 0;
        animation: none
    }

    .navbar-custom, .premium-floating-btn, .btn-cta, .btn-premium, .btn-premium-outline,
    .ai-audit-card, .btn-ai-gradient, #btn-trigger-ai-audit {
        display: none !important
    }

    .premium-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important
    }
}

/* ════════════════════════════════════════════════════
   MULTI-PAGE ADDITIONS
   ════════════════════════════════════════════════════ */

/* ─── Main nav links ────────────────────────────────── */
.main-nav-link {
    font-size: .83rem;
    font-weight: 600;
    color: var(--slate-600);
    border-radius: 9px;
    padding: 6px 10px;
    transition: background .18s, color .18s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none !important;
    line-height: 1;
}

.main-nav-link:hover {
    background: var(--slate-100);
    color: var(--slate-900);
    text-decoration: none
}

.main-nav-link.nav-active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700
}

.main-nav-link.nav-soon {
    opacity: .5;
    cursor: default
}

.main-nav-link.nav-soon:hover {
    background: transparent;
    color: var(--slate-600)
}

#mainNavMenu {
    flex: 1;
}

#mainNavMenu .navbar-nav {
    flex: 1;
    justify-content: space-evenly;
    align-items: center;
    margin: 0 18px;
}

#mainNavMenu .nav-item {
    display: flex;
    justify-content: center;
}

.nav-pref-badge {
    background: var(--cta);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

.nav-pref-badge[data-zero="true"] {
    display: none
}

/* hamburger */
.nav-hamburger {
    border: 0;
    background: transparent;
    color: #112e6e;
    border-radius: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 0;
}

.nav-hamburger:hover,
.nav-hamburger:focus {
    background: transparent;
    color: #112e6e;
    outline: none;
    box-shadow: none;
}

.nav-hamburger svg {
    width: 34px;
    height: 34px;
    overflow: visible;
}

.hamburger-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.8;
    stroke-linecap: round;
    transform-origin: 12px 12px;
    transition: transform .22s ease, opacity .18s ease;
}

.mobile-menu-head, .mobile-nav-backdrop {
    display: none
}

/* mobile collapse */
@media (max-width: 991px) {
    #mainNav {
        padding: 8px 0
    }

    #mainNav .container {
        position: relative;
        padding-left: 18px;
        padding-right: 18px;
    }

    .navbar-brand {
        min-width: 0
    }

    .brand-logo-img {
        height: 34px
    }

    .nav-hamburger[aria-expanded="true"] {
        background: transparent;
        color: #112e6e;
    }

    .nav-hamburger[aria-expanded="true"] .line-top {
        transform: translateY(5px) rotate(45deg)
    }

    .nav-hamburger[aria-expanded="true"] .line-mid {
        opacity: 0
    }

    .nav-hamburger[aria-expanded="true"] .line-bottom {
        transform: translateY(-5px) rotate(-45deg)
    }

    #mainNavMenu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        display: block !important;
        background: #fff;
        border-top: 1px solid rgba(15, 23, 42, .06);
        border-bottom: 1px solid rgba(15, 23, 42, .08);
        box-shadow: none;
        padding: 0 0 12px;
        transform: translateY(-118%);
        visibility: hidden;
        pointer-events: none;
        transition: transform .24s ease, visibility 0s linear .24s;
        z-index: 1065;
        overflow-y: auto;
    }

    #mainNavMenu.show {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
        box-shadow: 0 28px 60px -34px rgba(15, 23, 42, .38);
        transition: transform .24s ease;
    }

    #mainNavMenu.collapsing {
        height: auto !important;
        transition: transform .24s ease !important;
    }

    .mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 18px;
        border-bottom: 1px solid #edf2ef;
        margin-bottom: 0;
    }

    .mobile-menu-head strong {
        color: var(--site-ink);
        font-size: 1.05rem;
        font-weight: 900;
    }

    .mobile-nav-backdrop {
        position: fixed;
        left: 0;
        right: 0;
        top: 64px;
        bottom: 0;
        display: block;
        background: rgba(15, 23, 42, .28);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1055;
    }

    #mainNavMenu.show + .mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .navbar-collapse .navbar-nav {
        width: 100%;
        flex: none;
        padding: 0;
        border-top: 0;
        margin: 0 !important;
        gap: 0 !important;
        align-items: stretch;
        justify-content: flex-start;
    }

    #mainNavMenu .nav-item {
        width: 100%;
        justify-content: flex-start
    }

    #mainNavMenu .nav-item + .nav-item {
        border-top: 1px solid #edf2ef
    }

    .main-nav-link {
        width: 100%;
        min-height: 48px;
        padding: 0 28px;
        border-radius: 0;
        font-size: .92rem;
        font-weight: 800;
        gap: 10px;
        justify-content: flex-start;
    }

    .main-nav-link:hover {
        background: transparent;
        color: #c2410c
    }

    .main-nav-link.nav-active {
        background: transparent;
        color: #d94d18
    }

    .main-nav-link i {
        width: 18px;
        text-align: center
    }

    .nav-right-desktop {
        display: none !important
    }
}

@media (min-width: 992px) {
    .nav-right-mobile {
        display: none !important
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mobile-filter-open {
        position: fixed;
        right: 0 !important;
        top: 50%;
        width: 44px;
        min-height: 132px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        border: 1px solid rgba(244, 107, 42, .22);
        border-right: 0;
        border-radius: 16px 0 0 16px;
        background: #fff7ed;
        color: #c2410c;
        font-weight: 900;
        margin: 0;
        transform: translateY(-50%);
        box-shadow: -10px 14px 34px -24px rgba(244, 107, 42, .75);
        z-index: 1072;
        padding: 10px 0;
    }

    .mobile-filter-open span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: .82rem;
        line-height: 1;
    }

    .filter-drawer-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1060;
    }

    body.filter-drawer-open .filter-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.filter-drawer-open {
        overflow: hidden
    }

    .site-filter-column {
        position: fixed !important;
        top: 0 !important;
        right: 0;
        bottom: 0;
        width: min(88vw, 390px);
        max-width: 390px;
        height: 100vh;
        z-index: 1065 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: translateX(104%);
        transition: transform .24s ease;
        overflow-y: auto;
    }

    .site-filter-column + .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .site-filter-column.is-open {
        transform: translateX(0)
    }

    .site-filter-column .premium-card {
        min-height: 100vh;
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: -24px 0 60px -32px rgba(15, 23, 42, .45) !important;
    }

    .site-filter-column .premium-card-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .filter-drawer-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: #fff3e8;
        color: #c2410c;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ─── #mainNav (fixed navbar) ─────────────────────── */
#mainNav {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 10px 0;
    transition: var(--transition);
}

#mainNav.scrolled {
    background: rgba(255, 255, 255, .99);
    box-shadow: 0 2px 20px rgba(15, 23, 42, .08)
}

/* ─── Brand ────────────────────────────────────────── */
.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--cta), #fb923c);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    box-shadow: 0 4px 12px rgba(249, 115, 22, .35);
    flex-shrink: 0;
}

.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--slate-900);
    letter-spacing: -.03em;
}

/* ─── Card header: left-align by default ───────────── */
.premium-card-header {
    justify-content: flex-start
}

/* ─── Form compact wrapper ─────────────────────────── */
.form-compact .premium-card {
    margin-bottom: 12px
}

.form-compact .premium-card-body {
    padding: 14px 16px
}

.form-compact .premium-card-header {
    padding: 11px 16px;
    font-size: .87rem;
    font-weight: 700
}

/* ─── .premium-input — standalone styled input ─────── */
.premium-input {
    display: block;
    width: 100%;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--r-sm);
    padding: 8px 11px;
    font-size: .875rem;
    font-weight: 500;
    color: var(--slate-900);
    background: #fff;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.4;
}

.premium-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.premium-input::placeholder {
    color: var(--slate-400);
    font-weight: 400
}

select.premium-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2394a3b8' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    padding-right: 30px;
    cursor: pointer;
}

/* inside premium-input-wrapper → borderless */
.premium-input-wrapper .premium-input {
    border: none;
    background: transparent;
    padding: 2px 0;
    box-shadow: none !important;
}

/* ─── .premium-label ────────────────────────────────── */
.premium-label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: var(--slate-500);
    margin-bottom: 5px;
    letter-spacing: .02em;
}

/* ─── Score field card ──────────────────────────────── */
.score-field-card {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-100);
    border-radius: var(--r-md);
    padding: 11px 12px;
    height: 100%;
    transition: var(--transition);
}

.score-field-card:focus-within {
    background: #fff;
    border-color: rgba(99, 102, 241, .3);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.score-field-card .premium-input {
    background: rgba(255, 255, 255, .7);
    font-size: .83rem;
    padding: 6px 9px;
}

.score-field-card .premium-input:focus {
    background: #fff
}

.score-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--slate-600);
    margin-bottom: 8px;
}

.score-type-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    flex-shrink: 0;
}

.chance-badge-inline {
    min-height: 20px;
    font-size: .72rem
}

/* ─── Dept tag chips ────────────────────────────────── */
.dept-tag {
    display: inline-flex;
    align-items: center;
    background: var(--slate-100);
    color: var(--slate-600);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .73rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ─── Pref add / remove buttons ────────────────────── */
.btn-pref-add {
    background: rgba(99, 102, 241, .08);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, .2);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-pref-add:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.btn-pref-remove {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, .25);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-pref-remove:hover {
    background: var(--success);
    color: #fff;
    border-color: var(--success)
}

/* ─── Floating preference button ───────────────────── */
.floating-pref-btn {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 2147482500 !important;
    display: flex;
    justify-content: center;
    animation: pageIn .3s var(--ease) both;
}

.floating-pref-btn .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

@media (max-width: 575px) {
    .floating-pref-btn {
        bottom: 16px !important;
        right: 12px !important;
        left: 12px !important
    }

    .floating-pref-btn .btn {
        width: 100% !important
    }
}

/* ─── SweetAlert2 premium skin ──────────────────────── */
.swal2-premium {
    border-radius: 20px !important;
    font-family: 'Inter', sans-serif !important
}

.swal2-premium .swal2-title {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.15rem !important
}

/* ─── Department table ──────────────────────────────── */
.dept-table-wrap {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.dept-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.dept-table thead tr {
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-100);
}

.dept-table th {
    padding: 9px 12px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--slate-400);
    white-space: nowrap;
}

.dept-table-row {
    border-bottom: 1px solid var(--slate-100);
    transition: background .15s;
    cursor: pointer;
}

.dept-table-row:nth-child(even) {
    background: #f8fafc;
}

.dept-table-row:nth-child(odd) {
    background: #ffffff;
}

.dept-table-row:last-child {
    border-bottom: none
}

.dept-table-row:hover {
    background: #fafbff !important
}

.dept-table-row.in-pref {
    background: rgba(16, 185, 129, .03) !important
}

.dept-table td {
    padding: 8px 12px;
    vertical-align: middle;
}

@media (max-width: 767px) {
    .mobile-truncate {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: calc(100vw - 140px) !important;
        display: block !important;
    }

    .dept-table th:last-child,
    .dept-table td:last-child {
        border-left: 1px solid var(--slate-100) !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        width: 82px !important;
        min-width: 82px !important;
    }
}

.filter-banner-shell {
    width: 100%;
    margin: 0 0 18px;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 42px -34px rgba(15, 23, 42, .35);
}

.filter-banner-shell picture,
.filter-banner-shell img {
    display: block;
    width: 100%;
}

.filter-banner-shell img {
    height: auto;
}

.mobile-filter-open,
.filter-drawer-close,
.filter-drawer-backdrop {
    display: none;
}

/* Add button in table */
.btn-dept-add {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: rgba(99, 102, 241, .08);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-dept-detail {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #fff7ed;
    color: #d65a1f;
    border: 1px solid rgba(249, 115, 22, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-dept-detail:hover {
    background: #f97316;
    color: #fff;
    transform: scale(1.08)
}

.btn-dept-add:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1)
}

.btn-dept-add.added {
    background: var(--success-light);
    color: var(--success);
}

.btn-dept-add.added:hover {
    background: var(--success);
    color: #fff
}

/* ─── Faculty to department flow ───────────────────── */
.faculty-picker {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(244, 107, 42, .11);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 28px 70px -40px rgba(19, 37, 31, .28);
}

.faculty-picker-title {
    font-size: clamp(1.45rem, 2.2vw, 2.2rem);
    line-height: 1.15;
    font-weight: 800;
    color: var(--site-ink);
    margin: 0;
    max-width: 760px;
}

.faculty-choice-grid {
    display: grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap: 12px
}

.faculty-choice-card {
    border: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
    border-radius: 18px;
    padding: 17px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 178px;
    width: 100%;
    box-shadow: 0 18px 42px -30px rgba(15, 23, 42, .42);
    transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.faculty-choice-card:hover, .faculty-choice-card.active {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, .42);
    box-shadow: 0 28px 54px -30px rgba(249, 115, 22, .45);
    background: linear-gradient(180deg, #fff, #fff8f1);
}

.faculty-choice-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff2e5;
    color: #df561b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faculty-choice-copy strong {
    display: block;
    color: var(--site-ink);
    font-size: .92rem;
    line-height: 1.25;
    margin-bottom: 7px
}

.faculty-choice-copy small {
    display: block;
    color: #6a756f;
    font-size: .78rem;
    line-height: 1.45
}

.faculty-choice-meta {
    margin-top: auto;
    border-top: 1px solid #edf2ef;
    padding-top: 10px;
    color: #d65a1f;
    font-weight: 800;
    font-size: .78rem;
    line-height: 1.3;
}

.faculty-choice-meta em {
    font-style: normal;
    color: #7b8580;
    font-weight: 700
}

.faculty-clear-btn {
    border: 1px solid rgba(244, 107, 42, .18);
    background: #fff4ea;
    color: #c2410c;
    border-radius: 12px;
    font-weight: 800;
    padding: 9px 13px;
}

.faculty-clear-btn:hover {
    background: #f97316;
    color: #fff
}

/* ─── Atlas detail modal ───────────────────────────── */
.atlas-modal {
    border-radius: 22px !important;
    overflow: hidden
}

.atlas-modal .modal-header {
    background: linear-gradient(135deg, #fff7ed, #f5fbf8);
    padding: 24px 28px 18px
}

.atlas-modal .modal-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--site-ink)
}

.atlas-modal .modal-header p {
    color: #6b756f;
    font-weight: 700;
    font-size: .92rem
}

.atlas-modal .modal-body {
    padding: 0 28px 26px
}

.atlas-page-shell {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(244, 107, 42, .12);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 34px 82px -44px rgba(19, 37, 31, .32);
}

.atlas-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
    border-bottom: 1px solid #edf2ef;
    padding-bottom: 20px;
    margin-bottom: 18px;
}

.atlas-page-head h1 {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--site-ink);
    margin: 0 0 8px
}

.atlas-page-head p {
    color: #66736e;
    font-weight: 800;
    margin: 0
}

.atlas-detail-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 12px
}

.atlas-kpi {
    background: #10251f;
    color: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 38px -28px rgba(16, 37, 31, .7);
}

.atlas-kpi span {
    display: block;
    color: rgba(255, 255, 255, .62);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px
}

.atlas-kpi strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 800
}

.atlas-info-card {
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    box-shadow: 0 18px 44px -34px rgba(15, 23, 42, .42);
}

.atlas-info-card h6 {
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #c2410c;
    margin-bottom: 14px
}

.atlas-spec-list {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 10px
}

.atlas-spec-list div {
    background: #f8fbf8;
    border: 1px solid #edf2ef;
    border-radius: 13px;
    padding: 10px 11px;
}

.atlas-spec-list span, .atlas-year-grid span {
    display: block;
    color: #7a8580;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px
}

.atlas-spec-list strong {
    display: block;
    color: var(--site-ink);
    font-size: .88rem;
    line-height: 1.3
}

.atlas-staff-bars {
    display: flex;
    flex-direction: column;
    gap: 13px
}

.atlas-staff-bars div span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #5e6964;
    font-size: .84rem;
    font-weight: 800;
    margin-bottom: 6px
}

.atlas-staff-bars div span b {
    color: var(--site-ink)
}

.atlas-staff-bars div i {
    display: block;
    height: 9px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--c), rgba(15, 23, 42, .05));
    width: var(--w)
}

.atlas-year-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 10px
}

.atlas-year-grid div {
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, .16);
    border-radius: 14px;
    padding: 12px
}

.atlas-year-grid strong {
    display: block;
    color: var(--site-ink);
    font-size: 1rem;
    line-height: 1.1
}

.atlas-year-grid em {
    display: block;
    font-style: normal;
    color: #c2410c;
    font-weight: 800;
    font-size: .82rem;
    margin-top: 5px
}

.atlas-condition strong {
    display: block;
    color: var(--site-ink);
    font-weight: 800;
    margin-bottom: 5px
}

.atlas-condition p {
    color: #66736e;
    font-size: .9rem;
    line-height: 1.55;
    margin-bottom: 13px
}

.detail-university-link, .table-university-link {
    color: #c2410c;
    font-weight: 800;
    text-decoration: none;
}

.detail-university-link:hover, .table-university-link:hover {
    color: #9a3412;
    text-decoration: none;
}

.table-university-link {
    display: block;
    color: #475569;
    font-size: .82rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-programs-shell {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(244, 107, 42, .12);
    border-radius: 22px;
    box-shadow: 0 26px 60px -36px rgba(19, 37, 31, .22);
    padding: 24px;
}

.related-programs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.related-programs-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--site-ink);
    margin: 0;
}

.related-filter-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c2410c;
    font-size: .86rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.related-filter-link:hover {
    color: #9a3412;
    text-decoration: none
}

.related-search {
    position: relative;
    margin: 0 0 16px;
}

.related-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c2410c;
    font-size: .88rem;
    pointer-events: none;
}

.related-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #edf2ef;
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink);
    font-size: .92rem;
    font-weight: 700;
    outline: none;
    padding: 0 16px 0 42px;
    transition: border-color .22s ease, box-shadow .22s ease;
}

.related-search input:focus {
    border-color: rgba(244, 107, 42, .45);
    box-shadow: 0 16px 38px -30px rgba(244, 107, 42, .65);
}

.related-search input::placeholder {
    color: #94a19b;
    font-weight: 700;
}

.related-programs-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.related-program-card {
    display: block;
    min-height: 132px;
    padding: 17px;
    border: 1px solid #edf2ef;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.related-program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -30px rgba(244, 107, 42, .4);
    border-color: rgba(244, 107, 42, .35);
    color: inherit;
    text-decoration: none;
}

.related-program-card span {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(249, 115, 22, .1);
    color: #c2410c;
    font-size: .72rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.related-program-card strong {
    display: block;
    color: var(--site-ink);
    font-size: .98rem;
    line-height: 1.28;
    margin-bottom: 7px;
}

.related-program-card em {
    display: block;
    color: #c2410c;
    font-size: .76rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 8px;
}

.related-program-card small {
    display: block;
    color: #66736e;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

.related-empty {
    margin: 0;
    color: #66736e;
    font-size: .92rem;
    font-weight: 700;
}

.print-view {
    display: none !important;
}

.pref-row {
    overflow: hidden;
}

.pref-row .premium-card-body > .d-flex {
    min-width: 0;
}

.page-actions .btn {
    min-height: 34px;
}

.print-scores-table, .print-pref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
}

.print-scores-table th, .print-scores-table td,
.print-pref-table th, .print-pref-table td {
    border: 1px solid #d8dee8;
    padding: 4px 5px;
    vertical-align: top;
}

.print-scores-table th, .print-pref-table th {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
}

.print-pref-table .pn {
    width: 26px;
    text-align: center;
    font-weight: 900;
}

.print-footer-note {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 7.5pt;
}

.pt-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 2px 6px;
    font-weight: 800;
}

.ch-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 4px;
}

.university-hero-shell {
    display: grid;
    grid-template-columns:230px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(244, 107, 42, .14);
    border-radius: 24px;
    box-shadow: 0 30px 70px -42px rgba(19, 37, 31, .28);
    padding: 28px;
}

.university-logo-panel {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2ef;
    border-radius: 20px;
    background: #fff;
    padding: 24px;
}

.university-logo-panel img {
    max-width: 160px;
    max-height: 160px;
    object-fit: contain;
}

.university-logo-fallback {
    width: 118px;
    height: 118px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, .1);
    color: #c2410c;
    font-size: 2.4rem;
}

.university-hero-copy h1 {
    color: var(--site-ink);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0 0 14px;
}

.university-hero-copy p {
    color: #66736e;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 0 18px;
}

.university-meta-row, .university-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.university-meta-row {
    margin-bottom: 18px
}

.university-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #6b756f;
    font-size: .82rem;
    font-weight: 800;
}

.university-meta-row i {
    color: #f97316
}

.university-seo-grid {
    display: grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.university-seo-grid article {
    background: #fff;
    border: 1px solid #edf2ef;
    border-radius: 16px;
    padding: 18px;
}

.university-seo-grid span {
    display: block;
    color: #c2410c;
    font-size: .72rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.university-seo-grid strong {
    display: block;
    color: var(--site-ink);
    font-size: .96rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.university-seo-grid p {
    color: #66736e;
    font-size: .82rem;
    line-height: 1.55;
    margin: 0;
}

.university-program-shell {
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(244, 107, 42, .12);
    border-radius: 22px;
    box-shadow: 0 26px 60px -36px rgba(19, 37, 31, .22);
    padding: 24px;
}

.university-program-head {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(260px, 420px);
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.university-program-head h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--site-ink);
    margin: 0;
}

.university-program-search {
    position: relative
}

.university-program-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #c2410c;
    font-size: .88rem;
}

.university-program-search input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #edf2ef;
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink);
    font-size: .92rem;
    font-weight: 700;
    outline: none;
    padding: 0 16px 0 42px;
}

.university-program-search input:focus {
    border-color: rgba(244, 107, 42, .45);
    box-shadow: 0 16px 38px -30px rgba(244, 107, 42, .65);
}

.university-faculty-block {
    border-top: 1px solid #edf2ef;
    padding-top: 18px;
    margin-top: 18px;
}

.university-faculty-block:first-child {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.university-faculty-block h3 {
    color: var(--site-ink);
    font-size: 1.02rem;
    font-weight: 900;
    margin: 0 0 12px;
}

.university-program-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.university-program-card {
    display: block;
    min-height: 126px;
    padding: 17px;
    border: 1px solid #edf2ef;
    border-radius: 16px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.university-program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 46px -30px rgba(244, 107, 42, .4);
    border-color: rgba(244, 107, 42, .35);
    color: inherit;
    text-decoration: none;
}

.university-program-card span {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(249, 115, 22, .1);
    color: #c2410c;
    font-size: .72rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.university-program-card strong {
    display: block;
    color: var(--site-ink);
    font-size: .98rem;
    line-height: 1.28;
    margin-bottom: 9px;
}

.university-program-card small {
    display: block;
    color: #66736e;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.45;
}

/* ─── Footer ────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--slate-100);
    padding: 16px 0;
    margin-top: 40px;
    background: #fff;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: .9rem;
    color: var(--slate-900);
    letter-spacing: -.02em;
}

.footer-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--slate-400);
    text-decoration: none;
    transition: color .2s;
}

.footer-link:hover {
    color: var(--slate-700);
    text-decoration: none
}

/* ─── Legal information modal ─────────────────────── */
.site-legal-modal .modal-dialog {
    max-width: 720px
}

.site-legal-modal .modal-content {
    border: 1px solid rgba(15, 23, 42, .06) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 80px -24px rgba(15, 23, 42, .34);
}

.site-legal-modal .modal-header {
    align-items: flex-start;
    padding: 22px 24px 17px;
    background: linear-gradient(135deg, #fff7ed, #f8fbf8);
}

.site-legal-heading {
    display: flex;
    align-items: center;
    gap: 13px
}

.site-legal-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 13px;
    background: rgba(249, 115, 22, .12);
    color: #ea580c;
    font-size: 1rem;
}

.site-legal-heading h5 {
    margin: 0;
    color: #172033;
    font-size: 1.08rem;
    font-weight: 800
}

.site-legal-heading p {
    margin: 3px 0 0;
    color: #64748b;
    font-size: .78rem;
    font-weight: 600
}

.site-legal-close {
    margin: -5px -5px 0 10px !important;
    color: #64748b !important;
    font-weight: 500 !important
}

.site-legal-body {
    max-height: min(65vh, 560px);
    overflow-y: auto;
    padding: 20px 24px !important;
    color: #475569
}

.site-legal-body p {
    margin: 0 0 15px;
    font-size: .86rem;
    line-height: 1.7
}

.site-legal-body h6 {
    margin: 19px 0 7px;
    color: #1e293b;
    font-size: .87rem;
    font-weight: 800
}

.site-legal-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 4px 0 17px;
    padding: 13px 14px;
    border: 1px solid #fed7aa;
    border-radius: 13px;
    background: #fff7ed;
    color: #9a3412;
}

.site-legal-notice i {
    margin-top: 4px;
    color: #f97316
}

.site-legal-notice p {
    margin: 0;
    color: #7c3d18;
    font-size: .81rem;
    line-height: 1.6
}

.site-legal-final {
    margin: 19px 0 0 !important;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .78rem !important;
}

.site-legal-modal .modal-footer {
    padding: 13px 24px 18px !important
}

.site-legal-confirm {
    padding: 9px 19px;
    border-radius: 11px;
    background: #f97316;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 8px 20px -10px rgba(249, 115, 22, .65);
}

.site-legal-confirm:hover {
    background: #ea580c;
    color: #fff
}

@media (max-width: 575px) {
    .site-legal-modal .modal-dialog {
        margin: 12px
    }

    .site-legal-modal .modal-header {
        padding: 17px 17px 14px
    }

    .site-legal-body {
        max-height: 68vh;
        padding: 17px !important
    }

    .site-legal-heading p {
        display: none
    }

    .site-legal-modal .modal-footer {
        padding: 10px 17px 15px !important
    }

    .site-legal-confirm {
        width: 100%;
        justify-content: center
    }
}

/* ─── site identity overrides ───────────────────── */
body {
    background: linear-gradient(180deg, #fffaf5 0, #f8fbf8 34%, #fff 100%)
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block
}

.footer-logo-img {
    height: 28px;
    width: auto;
    display: block
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.main-nav-link.nav-active {
    background: rgba(244, 107, 42, .1);
    color: #d94d18
}

.main-nav-link:hover {
    background: #fff3e8;
    color: #c2410c
}

.site-reset-btn {
    border-radius: 10px !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    border-color: rgba(244, 107, 42, .25) !important;
    color: #c2410c !important;
    background: #fff !important;
}

.site-reset-btn:hover {
    background: #fff3e8 !important;
    color: #9a3412 !important
}

.hero-title {
    background: linear-gradient(135deg, var(--slate-900) 35%, #f46b2a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-page {
    padding: 118px 0 54px
}

.site-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c2410c;
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.site-eyebrow:before {
    content: "";
    width: 34px;
    height: 2px;
    background: #f46b2a;
    border-radius: 99px
}

.site-title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    font-weight: 800;
    color: var(--site-ink);
    margin-bottom: 14px
}

.site-lead {
    font-size: 1.02rem;
    line-height: 1.7;
    color: #66736e;
    max-width: 720px
}

.site-panel {
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(244, 107, 42, .12);
    border-radius: 22px;
    box-shadow: 0 28px 70px -34px rgba(19, 37, 31, .24);
}

.faculty-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 16px
}

.faculty-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 44px -28px rgba(15, 23, 42, .34);
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 54px -28px rgba(244, 107, 42, .34);
    border-color: rgba(244, 107, 42, .28)
}

.faculty-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #fff4e8;
    color: #e5531b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.faculty-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
    color: var(--site-ink)
}

.faculty-card p {
    font-size: .88rem;
    color: #6b756f;
    line-height: 1.55;
    margin-bottom: 14px
}

.faculty-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #edf2ef;
    padding-top: 12px;
    color: #6b756f;
    font-size: .78rem;
    font-weight: 700
}

.contact-hero-card {
    padding: 28px
}

.contact-grid {
    display: grid;
    grid-template-columns:1.1fr .9fr;
    gap: 22px;
    align-items: stretch
}

.contact-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 18px 44px -30px rgba(15, 23, 42, .34);
}

.contact-line {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #edf2ef
}

.contact-line:last-child {
    border-bottom: 0
}

.contact-line i {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff4e8;
    color: #e5531b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-line strong {
    display: block;
    color: var(--site-ink);
    font-size: .92rem;
    margin-bottom: 3px
}

.contact-line span {
    display: block;
    color: #6b756f;
    font-size: .88rem
}

.contact-input {
    width: 100%;
    border: 1.5px solid #e2ece7;
    border-radius: 13px;
    padding: 12px 14px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--site-ink);
    outline: none;
    background: #fff;
}

.contact-input:focus {
    border-color: #f46b2a;
    box-shadow: 0 0 0 4px rgba(244, 107, 42, .12)
}

textarea.contact-input {
    min-height: 132px;
    resize: vertical
}

.site-map-placeholder {
    min-height: 260px;
    border-radius: 18px;
    background: radial-gradient(circle at 22% 34%, rgba(249, 115, 22, .28), transparent 18%),
    radial-gradient(circle at 70% 58%, rgba(16, 185, 129, .22), transparent 18%),
    linear-gradient(135deg, #fff7ed, #eefaf5);
    border: 1px solid rgba(244, 107, 42, .14);
    position: relative;
    overflow: hidden;
}

.site-map-placeholder:before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px dashed rgba(19, 37, 31, .16);
    border-radius: 22px;
}

.site-map-pin {
    position: absolute;
    left: 48%;
    top: 44%;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 34px -10px rgba(249, 115, 22, .55);
    font-size: 1.25rem;
}

@media (max-width: 991px) {
    .brand-logo-img {
        height: 34px
    }

    .faculty-grid, .contact-grid {
        grid-template-columns:1fr
    }

    .related-programs-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .related-programs-head {
        align-items: flex-start;
        flex-direction: column
    }

    .university-hero-shell {
        grid-template-columns:1fr
    }

    .university-logo-panel {
        min-height: 160px
    }

    .university-seo-grid, .university-program-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .university-program-head {
        grid-template-columns:1fr
    }

    .ai-chat-shell {
        grid-template-columns:1fr
    }

    .ai-chat-hero {
        position: static
    }

    .ai-chat-window {
        min-height: 680px
    }

    .faculty-choice-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .atlas-detail-grid, .atlas-year-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .atlas-spec-list {
        grid-template-columns:1fr
    }

    .atlas-page-head {
        flex-direction: column
    }

    .mobile-filter-open {
        position: fixed;
        right: 0 !important;
        top: 50%;
        width: 44px;
        min-height: 132px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        border: 1px solid rgba(244, 107, 42, .22);
        border-right: 0;
        border-radius: 16px 0 0 16px;
        background: #fff7ed;
        color: #c2410c;
        font-weight: 900;
        margin: 0;
        transform: translateY(-50%);
        box-shadow: -10px 14px 34px -24px rgba(244, 107, 42, .75);
        z-index: 1072;
        letter-spacing: 0;
        padding: 10px 0;
    }

    .mobile-filter-open i {
        font-size: .95rem;
        line-height: 1;
    }

    .mobile-filter-open span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: .82rem;
        line-height: 1;
    }

    .filter-drawer-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(15, 23, 42, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        z-index: 1060;
    }

    body.filter-drawer-open .filter-drawer-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.filter-drawer-open {
        overflow: hidden;
    }

    .site-filter-column {
        position: fixed !important;
        top: 0 !important;
        right: 0;
        bottom: 0;
        width: min(88vw, 390px);
        max-width: 390px;
        height: 100vh;
        z-index: 1065 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: translateX(104%);
        transition: transform .24s ease;
        overflow-y: auto;
    }

    .site-filter-column + .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .site-filter-column.is-open {
        transform: translateX(0)
    }

    .site-filter-column .premium-card {
        min-height: 100vh;
        border-radius: 0 !important;
        border: 0 !important;
        box-shadow: -24px 0 60px -32px rgba(15, 23, 42, .45) !important;
    }

    .site-filter-column .premium-card-header {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .filter-drawer-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: #fff3e8;
        color: #c2410c;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-page {
        padding-top: 104px
    }
}

@media (max-width: 575px) {
    .faculty-card, .contact-card, .contact-hero-card {
        padding: 18px
    }

    .site-ai-page {
        padding: 96px 10px 18px
    }

    .ai-chat-hero {
        padding: 22px
    }

    .ai-chat-thread {
        padding: 16px
    }

    .ai-message {
        max-width: 88%;
        font-size: .9rem
    }

    .faculty-choice-grid, .atlas-detail-grid, .atlas-year-grid {
        grid-template-columns:1fr
    }

    .related-programs-grid {
        grid-template-columns:1fr
    }

    .related-programs-shell {
        padding: 18px
    }

    .university-hero-shell, .university-program-shell {
        padding: 18px
    }

    .university-seo-grid, .university-program-grid {
        grid-template-columns:1fr
    }

    .university-hero-copy h1 {
        font-size: 2rem
    }

    .university-logo-panel img {
        max-width: 128px;
        max-height: 128px
    }

    .faculty-picker {
        padding: 16px
    }

    .atlas-page-shell {
        padding: 18px
    }

    .site-title {
        font-size: 1.85rem
    }

    .page-actions {
        width: 100%
    }

    .page-actions .btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center
    }

    .pref-row .premium-card-body {
        padding: 12px !important
    }

    .pref-row .premium-card-body > .d-flex {
        align-items: flex-start !important;
        gap: 8px !important
    }

    .pref-move-btn {
        display: none !important
    }

    .chance-badge-screen {
        display: none !important
    }

    .filter-banner-shell {
        border-radius: 14px;
        margin-bottom: 14px
    }
}

/* ─── Print additions ───────────────────────────────── */
@media print {
    #mainNav, .floating-pref-btn, .btn-step-back, .site-footer {
        display: none !important
    }

    .print-view {
        display: block !important
    }

    .print-view + main {
        display: none !important
    }

    body {
        background: #fff !important
    }
}

/* ─── AI: ChatGPT-like page ─────────────────── */
.site-gpt-body {
    background: #fff !important;
    color: #232323;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 0;
}

.site-gpt-page {
    height: 100vh;
    padding: 74px 18px 104px;
    background: #fff;
    overflow: hidden;
}

.gpt-thread {
    width: min(100%, 900px);
    height: 100%;
    margin: 0 auto;
    overflow-y: auto;
    padding: 18px 0 40px;
    scroll-behavior: smooth;
}

.gpt-user-row {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 52px;
}

.gpt-user-chip {
    max-width: min(620px, 80%);
    padding: 13px 22px;
    background: #f3f3f3;
    border-radius: 999px;
    color: #2a2a2a;
    font-size: 1.03rem;
    line-height: 1.35;
}

.gpt-answer {
    color: #252525;
    font-size: 1.05rem;
    line-height: 1.72;
    margin: 0 0 42px;
}

.gpt-answer p {
    margin: 0 0 22px;
    color: #252525;
    font-weight: 400;
}

.gpt-answer h2 {
    margin: 30px 0 14px;
    color: #202020;
    font-size: 1.24rem;
    font-weight: 850;
    letter-spacing: 0;
}

.gpt-answer ul,
.gpt-answer ol {
    margin: 0 0 22px 26px;
    padding: 0;
}

.gpt-answer li {
    margin: 7px 0;
    padding-left: 6px;
}

.gpt-answer hr {
    margin: 34px 0;
    border: 0;
    border-top: 1px solid #dedede;
}

.gpt-compose {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 80;
    width: min(100% - 32px, 900px);
    transform: translateX(-50%);
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.gpt-typing {
    display: none;
    justify-self: center;
    align-items: center;
    gap: 5px;
    padding: 12px 17px;
    background: #fff;
    border: 1px solid #dfdfdf;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.gpt-typing.active {
    display: flex;
}

.gpt-typing i {
    width: 6px;
    height: 6px;
    background: #6b6b6b;
    border-radius: 50%;
    animation: gptDot 1s infinite ease-in-out;
}

.gpt-typing i:nth-child(2) {
    animation-delay: .16s;
}

.gpt-typing i:nth-child(3) {
    animation-delay: .32s;
}

@keyframes gptDot {
    0%, 80%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.gpt-input-shell {
    display: grid;
    grid-template-columns:38px minmax(0, 1fr) auto 38px 46px;
    align-items: center;
    gap: 8px;
    min-height: 62px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
    pointer-events: auto;
}

.gpt-input-shell textarea {
    height: 40px;
    resize: none;
    padding: 9px 0;
    background: transparent;
    border: 0;
    color: #2d2d2d;
    font: inherit;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
}

.gpt-input-shell textarea::placeholder {
    color: #9b9b9b;
}

.gpt-input-shell button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #2f2f2f;
    font-size: 1rem;
}

.gpt-input-shell span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8a8a8a;
    font-weight: 650;
    white-space: nowrap;
}

.gpt-input-shell .stop-btn {
    width: 46px;
    height: 46px;
    background: #f0f0f0;
}

.gpt-input-shell .stop-btn i {
    font-size: .85rem;
}

@media (max-width: 700px) {
    .site-gpt-page {
        padding-top: 72px;
    }

    .gpt-answer {
        font-size: .98rem;
    }

    .gpt-user-chip {
        max-width: 92%;
        font-size: .96rem;
    }

    .gpt-input-shell {
        grid-template-columns:34px minmax(0, 1fr) 34px 42px;
    }

    .gpt-input-shell span {
        display: none;
    }
}

@media (max-width: 1199.98px) {
    body .mobile-filter-open#mobileFilterOpen {
        position: fixed !important;
        right: 0 !important;
        top: 50vh !important;
        width: 44px !important;
        min-height: 126px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        border: 1px solid rgba(17, 46, 110, .22) !important;
        border-right: 0 !important;
        border-radius: 16px 0 0 16px !important;
        background: #152e6e !important;
        color: #fff !important;
        box-shadow: -12px 16px 34px -22px rgba(17, 46, 110, .75) !important;
        transform: translateY(-50%) !important;
        z-index: 2147483000 !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
    }

    body .mobile-filter-open#mobileFilterOpen i {
        display: block !important;
        font-size: .95rem !important;
        line-height: 1 !important;
    }

    body .mobile-filter-open#mobileFilterOpen span {
        display: block !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        font-size: .82rem !important;
        line-height: 1 !important;
    }

    body.filter-drawer-open .mobile-filter-open#mobileFilterOpen {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate(100%, -50%) !important;
    }

    body .filter-drawer-backdrop#filterDrawerBackdrop {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        background: rgba(15, 23, 42, .38) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .2s ease !important;
        z-index: 2147482990 !important;
    }

    body.filter-drawer-open .filter-drawer-backdrop#filterDrawerBackdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body .site-filter-column {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(88vw, 390px) !important;
        max-width: 390px !important;
        height: 100vh !important;
        z-index: 2147482995 !important;
        padding: 0 !important;
        margin: 0 !important;
        transform: translateX(104%) !important;
        transition: transform .24s ease !important;
        overflow-y: auto !important;
    }

    body .site-filter-column.is-open {
        transform: translateX(0) !important;
    }

    body .site-filter-column + .col-lg-9 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    body .filter-drawer-close#filterDrawerClose {
        display: flex !important;
    }
}

@media (min-width: 1200px) {
    body .mobile-filter-open#mobileFilterOpen {
        display: none !important;
    }
}

.pref-page-layout {
    display: grid;
    grid-template-columns:minmax(0, 1fr) 420px;
    gap: 22px;
    align-items: start;
}

.pref-page-main {
    min-width: 0;
}

.saved-shares-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 116px);
    overflow: hidden;
}

.saved-shares-sidebar .premium-card-body {
    max-height: calc(100vh - 180px);
    overflow: auto;
}

.saved-shares-note {
    padding: 12px 16px;
    color: #64748b;
    font-size: .76rem;
    line-height: 1.45;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    font-weight: 650;
}

.saved-share-row {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.saved-share-row:last-child {
    border-bottom: 0;
}

.saved-share-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.saved-share-title {
    font-weight: 900;
    color: #1e293b;
    font-size: 1rem;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.saved-share-meta {
    color: #94a3b8;
    font-size: .76rem;
    font-weight: 800;
    margin-top: 4px;
    line-height: 1.35;
}

.saved-share-actions {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.saved-share-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #152e6e;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.saved-share-action:hover {
    background: #eef6ff;
    border-color: #bfdbfe;
    color: #152e6e;
    transform: translateY(-1px);
}

.saved-share-action.primary {
    background: #152e6e;
    border-color: #152e6e;
    color: #fff;
}

.saved-share-action.primary:hover {
    background: #10265c;
    color: #fff;
}

.saved-shares-close,
.saved-shares-backdrop,
.saved-shares-mobile-open {
    display: none;
}

@media (max-width: 991.98px) {
    .pref-page-container {
        max-width: 100% !important;
    }

    .pref-page-layout {
        display: block;
    }

    body .saved-shares-mobile-open#savedSharesMobileOpen {
        position: fixed !important;
        right: 0 !important;
        top: 62vh !important;
        width: 44px !important;
        min-height: 150px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 10px 0 !important;
        border: 1px solid rgba(17, 46, 110, .22) !important;
        border-right: 0 !important;
        border-radius: 16px 0 0 16px !important;
        background: #152e6e !important;
        color: #fff !important;
        box-shadow: -12px 16px 34px -22px rgba(17, 46, 110, .75) !important;
        transform: translateY(-50%) !important;
        z-index: 2147483000 !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
    }

    body .saved-shares-mobile-open#savedSharesMobileOpen i {
        display: block !important;
        font-size: .95rem !important;
        line-height: 1 !important;
    }

    body .saved-shares-mobile-open#savedSharesMobileOpen span {
        display: block !important;
        writing-mode: vertical-rl !important;
        transform: rotate(180deg) !important;
        font-size: .78rem !important;
        line-height: 1 !important;
    }

    body .saved-shares-mobile-open#savedSharesMobileOpen b {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 21px !important;
        height: 21px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        background: #fff !important;
        color: #152e6e !important;
        font-size: .7rem !important;
        line-height: 1 !important;
    }

    body.saved-shares-open .saved-shares-mobile-open#savedSharesMobileOpen {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translate(100%, -50%) !important;
    }

    body .saved-shares-backdrop#savedSharesBackdrop {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
        background: rgba(15, 23, 42, .38) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity .2s ease !important;
        z-index: 2147482990 !important;
    }

    body.saved-shares-open .saved-shares-backdrop#savedSharesBackdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body .saved-shares-sidebar#savedSharesCard {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: min(90vw, 420px) !important;
        max-width: 420px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 2147482995 !important;
        margin: 0 !important;
        border-radius: 18px 0 0 18px !important;
        transform: translateX(104%) !important;
        transition: transform .24s ease !important;
        overflow: hidden !important;
        box-shadow: -18px 0 44px -26px rgba(15, 23, 42, .7) !important;
    }

    body .saved-shares-sidebar#savedSharesCard.is-open {
        transform: translateX(0) !important;
    }

    body .saved-shares-sidebar#savedSharesCard .premium-card-body {
        max-height: calc(100vh - 64px) !important;
        overflow: auto !important;
    }

    body .saved-shares-close#savedSharesClose {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 10px !important;
        background: #eef2ff !important;
        color: #152e6e !important;
        font-size: .95rem !important;
        line-height: 1 !important;
    }

    body.saved-shares-open {
        overflow: hidden !important;
    }
}

@media (max-width: 420px) {
    .saved-share-actions {
        grid-template-columns:1fr;
    }
}

@media (min-width: 992px) {
    body .saved-shares-mobile-open#savedSharesMobileOpen,
    body .saved-shares-backdrop#savedSharesBackdrop,
    body .saved-shares-close#savedSharesClose {
        display: none !important;
    }
}

body .saved-shares-mobile-open#savedSharesMobileOpen[hidden] {
    display: none !important;
}
