﻿<style >
/* =====================================================================
   VIDYĀ — Student Admission Portal
   Editorial-Academic Design System
   ===================================================================== */
/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Surface */
    --bg-cream: #f6f1e7;
    --bg-paper: #fbf8f1;
    --bg-ivory: #fffcf5;
    --bg-elevated: #ffffff;
    /* Ink */
    --ink: #1a1612;
    --ink-soft: #3a3329;
    --ink-muted: #6b6256;
    --ink-faint: #9a9082;
    /* Brand */
    --oxblood: #6e1521;
    --oxblood-2: #8b1f2e;
    --oxblood-3: #ab2a3c;
    --oxblood-50: #faf0f1;
    /* Accent */
    --gold: #b8862c;
    --gold-2: #d4a017;
    --gold-soft: #f4ead2;
    /* Forest (secondary action / success) */
    --forest: #2d4a2b;
    --forest-2: #3e6839;
    /* State */
    --error: #b3271a;
    --warn: #b8862c;
    --ok: #2d6a31;
    --info: #2c5374;
    /* Lines */
    --line: #e3d9c4;
    --line-soft: #ede4d2;
    --line-strong: #c9bfa6;
    /* Type */
    --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --sans: 'Geist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
    /* Radii */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --r-xl: 20px;
    /* Shadow */
    --sh-sm: 0 1px 2px rgba(26,22,18,.06), 0 1px 1px rgba(26,22,18,.04);
    --sh-md: 0 6px 18px rgba(26,22,18,.06), 0 2px 4px rgba(26,22,18,.04);
    --sh-lg: 0 18px 40px rgba(26,22,18,.10), 0 4px 8px rgba(26,22,18,.05);
    --sh-xl: 0 30px 80px rgba(26,22,18,.14);
}

html, body {
    font-family: var(--sans);
    background: var(--bg-cream);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
}

input, select, textarea {
    font: inherit;
    color: inherit;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* Subtle paper texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(184,134,44,.04) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(110,21,33,.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ---------- Typography ---------- */
.display {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-variation-settings: 'opsz' 144;
}

.serif {
    font-family: var(--serif);
}

.sans {
    font-family: var(--sans);
}

.mono {
    font-family: var(--mono);
}
.hidden {
    display: none !important;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}
#page-wrapper {
    padding: 0px !important
}
h1.display {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2.display {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

h3.display {
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.container-narrow {
    max-width: 780px;
}

.container-wide {
    max-width: 1440px;
}

.grid {
    display: grid;
    gap: 24px;
}

.flex {
    display: flex;
}

.between {
    justify-content: space-between;
    align-items: center;
}

.center {
    align-items: center;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-24 {
    gap: 24px;
}

.gap-32 {
    gap: 32px;
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: saturate(140%) blur(8px);
}

.topbar-inner {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.footer{
    display:none;
}
.brand-mark {
    width: 60px;
    height: 60px;
    background: var(--bg-ivory);
    color: var(--bg-ivory);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--serif);
    font-style: italic;
    font-size: 20px;
    position: relative;
}

    .brand-mark::after {
        content: '';
        position: absolute;
        inset: -3px;
        border: 1px solid var(--gold);
        border-radius: 50%;
        opacity: .55;
    }

.brand-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 2px;
    display: block;
}

.brand .brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.topnav {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .topnav a {
        padding: 8px 14px;
        border-radius: var(--r-sm);
        font-size: 14px;
        color: var(--ink-soft);
        transition: all .15s ease;
    }

        .topnav a:hover {
            background: var(--bg-cream);
            color: var(--ink);
        }

        .topnav a.active {
            background: var(--ink);
            color: var(--bg-ivory);
        }

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-ivory);
}

    .user-chip .avatar {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--oxblood), var(--oxblood-2));
        display: grid;
        place-items: center;
        color: var(--bg-ivory);
        font-family: var(--serif);
        font-size: 14px;
    }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: all .18s cubic-bezier(.4,.0,.2,1);
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--ink);
    color: var(--bg-ivory);
}

    .btn-primary:hover {
        background: var(--oxblood);
        transform: translateY(-1px);
        box-shadow: var(--sh-md);
    }

.btn-secondary {
    background: var(--bg-ivory);
    color: var(--ink);
    border-color: var(--line-strong);
}

    .btn-secondary:hover {
        background: var(--bg-cream);
        border-color: var(--ink);
    }

.btn-accent {
    background: var(--oxblood);
    color: var(--bg-ivory);
}

    .btn-accent:hover {
        background: var(--oxblood-2);
        transform: translateY(-1px);
        box-shadow: var(--sh-md);
        color:white
    }

.btn-ghost {
    color: var(--ink-soft);
    background: transparent;
}

    .btn-ghost:hover {
        color: var(--ink);
        background: var(--bg-cream);
    }

.btn-danger {
    background: transparent;
    color: var(--error);
    border-color: var(--error);
}

    .btn-danger:hover {
        background: var(--error);
        color: var(--bg-ivory);
    }

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--r-md);
    background: var(--bg-ivory);
    border: 1px solid var(--line);
}

    .btn-icon:hover {
        background: var(--bg-cream);
    }

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* ---------- Cards & Surfaces ---------- */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
}

.card-padded {
    padding: 28px;
}

.card-padded-lg {
    padding: 40px;
}

.panel {
    background: var(--bg-ivory);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
}

/* ---------- Form fields ---------- */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .field-label .req {
        color: var(--oxblood);
        font-weight: 600;
    }

.field-help {
    font-size: 12px;
    color: var(--ink-muted);
    font-style: italic;
}

.field-error {
    font-size: 12px;
    color: var(--error);
    font-weight: 500;
}

.input, .select, .textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-ivory);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    font-size: 14px;
    color: var(--ink);
    transition: all .15s ease;
}

    .input:hover, .select:hover, .textarea:hover {
        border-color: var(--ink-faint);
    }

    .input:focus, .select:focus, .textarea:focus {
        outline: none;
        border-color: var(--ink);
        box-shadow: 0 0 0 3px rgba(110,21,33,.10);
        background: var(--bg-elevated);
    }

    .input::placeholder {
        color: var(--ink-faint);
    }

.textarea {
    resize: vertical;
    min-height: 96px;
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%233a3329' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.input-icon-wrap {
    position: relative;
}

    .input-icon-wrap .input {
        padding-left: 42px;
    }

    .input-icon-wrap svg.lead {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--ink-muted);
        pointer-events: none;
    }

/* OTP input */
.otp-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-cell {
    width: 50px;
    height: 50px;
    text-align: center;
    font-family: var(--serif);
    font-size: 24px;
    background: var(--bg-ivory);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--r-md);
    transition: all .15s ease;
}

    .otp-cell:focus {
        outline: none;
        border-color: var(--oxblood);
        background: var(--bg-elevated);
        box-shadow: 0 0 0 3px rgba(110,21,33,.12);
    }

/* Checkbox / Radio */
.check, .radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

    .check input, .radio input {
        appearance: none;
        width: 18px;
        height: 18px;
        border: 1.5px solid var(--line-strong);
        background: var(--bg-ivory);
        border-radius: 4px;
        position: relative;
        cursor: pointer;
        transition: all .15s ease;
        flex-shrink: 0;
    }

    .radio input {
        border-radius: 50%;
    }

        .check input:checked, .radio input:checked {
            background: var(--ink);
            border-color: var(--ink);
        }

            .check input:checked::after {
                content: '';
                position: absolute;
                left: 5px;
                top: 1px;
                width: 5px;
                height: 10px;
                border: solid var(--bg-ivory);
                border-width: 0 2px 2px 0;
                transform: rotate(45deg);
            }

            .radio input:checked::after {
                content: '';
                position: absolute;
                inset: 4px;
                background: var(--bg-ivory);
                border-radius: 50%;
            }

/* ---------- Tabs ---------- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--ink-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s ease;
}

    .tab:hover {
        color: var(--ink);
    }

    .tab.active {
        color: var(--ink);
        border-bottom-color: var(--oxblood);
        font-weight: 500;
    }

/* ---------- Badges & Chips ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    font-family: var(--mono);
    text-transform: uppercase;
}

.badge-ok {
    background: #e7f0e6;
    color: var(--ok);
}

.badge-warn {
    background: var(--gold-soft);
    color: var(--gold);
}

.badge-err {
    background: #fbe7e3;
    color: var(--error);
}

.badge-info {
    background: #e1ecf6;
    color: var(--info);
}

.badge-neutral {
    background: var(--bg-cream);
    color: var(--ink-soft);
}

.badge-oxblood {
    background: var(--oxblood-50);
    color: var(--oxblood);
}

/* ---------- Dot indicator ---------- */
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-ok {
    background: var(--ok);
}

.dot-warn {
    background: var(--warn);
}

.dot-err {
    background: var(--error);
}

.dot-pending {
    background: var(--ink-faint);
}

/* ---------- Wizard / Stepper ---------- */
.stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

    .stepper::-webkit-scrollbar {
        display: none;
    }

.step {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding: 0 8px;
}

.step-line {
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 1px;
    background: var(--line-strong);
}

.step:last-child .step-line {
    display: none;
}

.step-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-ivory);
    border: 1.5px solid var(--line-strong);
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 8px;
    transition: all .25s ease;
    position: relative;
    z-index: 1;
}

.step-label {
    font-size: 12.5px;
    color: var(--ink-muted);
    font-weight: 500;
}

.step-sub {
    font-size: 11px;
    color: var(--ink-faint);
    font-family: var(--mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

.step.done .step-circle {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--bg-ivory);
}

.step.done .step-line {
    background: var(--forest);
}

.step.active .step-circle {
    background: var(--oxblood);
    border-color: var(--oxblood);
    color: var(--bg-ivory);
    box-shadow: 0 0 0 4px rgba(110,21,33,.14);
}

.step.active .step-label {
    color: var(--ink);
    font-weight: 600;
}

.step.done .step-label {
    color: var(--ink-soft);
}

/* ---------- Wizard step content ---------- */
.wizard-step {
    display: none;
    animation: stepIn .35s cubic-bezier(.2,.8,.2,1);
}

    .wizard-step.active {
        display: block;
    }

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

    .wizard-header h2 {
        font-family: var(--serif);
        font-size: 28px;
        font-weight: 400;
        letter-spacing: -0.01em;
        margin-top: 6px;
    }

    .wizard-header p {
        color: var(--ink-muted);
        margin-top: 6px;
        max-width: 60ch;
    }

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* ---------- Field grid ---------- */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
}

.field-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 20px;
}

    .field-grid > .full, .field-grid-3 > .full {
        grid-column: 1/-1;
    }

@media (max-width: 720px) {
    .field-grid, .field-grid-3 {
        grid-template-columns: 1fr;
    }
}

.section-heading {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .section-heading::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.section-divider {
    height: 1px;
    background: var(--line);
    margin: 32px 0;
}

/* ---------- Tables ---------- */
.tbl {
    width: 100%;
    border-collapse: collapse;
}

    .tbl th, .tbl td {
        text-align: left;
        padding: 14px 16px;
        border-bottom: 1px solid var(--line);
        font-size: 14px;
        vertical-align: middle;
    }

    .tbl thead th {
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--ink-muted);
        font-weight: 500;
        background: var(--bg-cream);
        border-bottom: 1px solid var(--line-strong);
    }

    .tbl tbody tr:hover {
        background: var(--bg-paper);
    }

    .tbl tbody tr:last-child td {
        border-bottom: 0;
    }

/* ---------- Sidebar ---------- */
.shell {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding: 32px 0;
}

.sidebar {
    position: sticky;
    top: 92px;
    align-self: start;
}

.side-card {
    background: var(--bg-paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .side-nav a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        border-radius: var(--r-md);
        font-size: 14px;
        color: var(--ink-soft);
        transition: all .15s ease;
    }

        .side-nav a:hover {
            background: var(--bg-cream);
            color: var(--ink);
        }

        .side-nav a.active {
            background: var(--ink);
            color: var(--bg-ivory);
            font-weight: 500;
        }

            .side-nav a.active svg {
                color: var(--gold-2);
            }

@media (max-width: 920px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* ---------- Hero (login pages) ---------- */
.split-shell {
    min-height: calc(100vh - 0px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.split-art {
    background: var(--ink);
    color: var(--bg-ivory);
    padding: 56px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.split-form {
    background: var(--bg-paper);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.split-form-inner {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.art-rule {
    width: 64px;
    height: 1px;
    background: var(--gold);
    margin: 0 0 18px;
}

.art-headline {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    font-weight: 300;
    font-variation-settings: 'opsz' 144;
}

    .art-headline em {
        font-style: italic;
        color: var(--gold-2);
        font-weight: 400;
    }

.art-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 17px;
    color: rgba(251,248,241,.72);
    margin-top: 24px;
    max-width: 36ch;
    line-height: 1.5;
}

.art-decor {
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(212,160,23,.15);
}

    .art-decor::before {
        content: '';
        position: absolute;
        inset: 30px;
        border-radius: 50%;
        border: 1px solid rgba(212,160,23,.2);
    }

    .art-decor::after {
        content: '';
        position: absolute;
        inset: 80px;
        border-radius: 50%;
        border: 1px dashed rgba(212,160,23,.18);
    }

.art-meta {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(251,248,241,.55);
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

@media (max-width: 880px) {
    .split-shell {
        grid-template-columns: 1fr;
    }

    .split-art {
        padding: 36px;
        min-height: 280px;
    }

    .split-form {
        padding: 36px;
    }
}

/* ---------- Course / programme cards ---------- */
.course-card {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

    .course-card:hover {
        border-color: var(--ink);
        box-shadow: var(--sh-md);
        transform: translateY(-2px);
    }

    .course-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--oxblood);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s ease;
    }

    .course-card:hover::before {
        transform: scaleX(1);
    }

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-muted);
    text-transform: uppercase;
}

    .course-meta span {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

.course-title {
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    font-weight: 400;
}

.course-dept {
    font-size: 13px;
    color: var(--ink-muted);
    font-style: italic;
}

.course-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.course-fee {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--ink);
}

    .course-fee small {
        font-family: var(--sans);
        font-size: 11px;
        color: var(--ink-muted);
        font-weight: 400;
        display: block;
    }

/* ---------- Drag preference list ---------- */
.pref-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pref-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    cursor: grab;
    transition: all .15s ease;
}

    .pref-item:hover {
        border-color: var(--ink-faint);
        box-shadow: var(--sh-sm);
    }

    .pref-item.dragging {
        opacity: 0.4;
        cursor: grabbing;
    }

    .pref-item.drag-over {
        border-color: var(--oxblood);
        border-style: dashed;
    }

.pref-rank {
    width: 36px;
    height: 36px;
    background: var(--ink);
    color: var(--bg-ivory);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 17px;
    flex-shrink: 0;
}

    .pref-rank.r-1 {
        background: var(--oxblood);
    }

    .pref-rank.r-2 {
        background: var(--oxblood-2);
    }

    .pref-rank.r-3 {
        background: var(--gold);
    }

.pref-body {
    flex: 1;
    min-width: 0;
}

.pref-title {
    font-family: var(--serif);
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}

.pref-meta {
    font-size: 12px;
    color: var(--ink-muted);
    font-family: var(--mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pref-handle {
    color: var(--ink-faint);
    cursor: grab;
}

.pref-remove {
    color: var(--ink-muted);
    padding: 6px;
    border-radius: var(--r-sm);
    transition: all .15s ease;
}

    .pref-remove:hover {
        color: var(--error);
        background: var(--bg-cream);
    }

/* ---------- Upload boxes ---------- */
.upload-box {
    border: 1.5px dashed var(--line-strong);
    border-radius: var(--r-md);
    padding: 22px;
    text-align: center;
    background: var(--bg-paper);
    transition: all .2s ease;
    cursor: pointer;
    position: relative;
}

    .upload-box:hover {
        border-color: var(--oxblood);
        background: var(--oxblood-50);
    }

    .upload-box.has-file {
        border-style: solid;
        border-color: var(--forest);
        background: #f4f7f3;
    }

    .upload-box input[type=file] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
    }

.upload-icon {
    color: var(--ink-faint);
    margin: 0 auto 8px;
}

.upload-box.has-file .upload-icon {
    color: var(--forest);
}

.upload-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 11.5px;
    color: var(--ink-muted);
    font-family: var(--mono);
    letter-spacing: 0.02em;
}

/* ---------- Stat / KPI tile ---------- */
.kpi {
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.kpi-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.kpi-value {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
}

.kpi-foot {
    font-size: 12px;
    color: var(--ink-muted);
}

.kpi-accent {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: var(--oxblood);
}

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26,22,18,.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 24px;
    backdrop-filter: blur(4px);
}

    .modal-backdrop.open {
        display: flex;
        animation: fadeIn .2s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal {
    background: var(--bg-paper);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 520px;
    padding: 28px;
    box-shadow: var(--sh-xl);
    animation: modalIn .25s cubic-bezier(.2,.8,.2,1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.96) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- Toast ---------- */
.toast-host {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: all;
    min-width: 280px;
    max-width: 380px;
    background: var(--ink);
    color: var(--bg-ivory);
    padding: 14px 18px;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    border-left: 3px solid var(--oxblood-3);
    animation: toastIn .25s ease;
}

    .toast.ok {
        border-left-color: var(--ok);
    }

    .toast.err {
        border-left-color: var(--error);
    }

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ---------- Footer ---------- */
.foot {
    margin-top: 80px;
    padding: 36px 0 28px;
    border-top: 1px solid var(--line);
    background: var(--bg-paper);
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--ink-muted);
}

    .foot-inner a {
        color: var(--ink-soft);
    }

        .foot-inner a:hover {
            color: var(--oxblood);
        }

/* ---------- Helpers ---------- */
.muted {
    color: var(--ink-muted);
}

.faint {
    color: var(--ink-faint);
}

.text-sm {
    font-size: 13px;
}

.text-xs {
    font-size: 12px;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.center-text {
    text-align: center;
}

.right-text {
    text-align: right;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.divider-rule {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 24px 0;
}

    .divider-rule::before, .divider-rule::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--line);
    }

.social-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    background: var(--bg-ivory);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: all .15s ease;
}

    .social-btn:hover {
        border-color: var(--ink);
        color: var(--ink);
        transform: translateY(-1px);
    }

/* Progress meter */
.meter {
    width: 100%;
    height: 6px;
    background: var(--bg-cream);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--oxblood), var(--oxblood-2));
    transition: width .5s cubic-bezier(.2,.8,.2,1);
}

/* Hidden until needed */
.hidden {
    display: none !important;
}

</style >
