/**
 * Yashashree Computer Technology — mobile-first, professional UI
 */

:root {
    --bg: #f0f2f8;
    --surface: #ffffff;
    --text: #121826;
    --muted: #5c6478;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #6366f1;
    --accent: #eff6ff;
    --accent-warm: #fff7ed;
    --success: #059669;
    --danger: #dc2626;
    --border: #e2e8f0;
    --shadow: 0 10px 40px rgba(18, 24, 38, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --nav-h: 64px;
    --top-h: 52px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.app-body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    opacity: 0.85;
}

.link {
    font-weight: 600;
}

/* Top bar */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.top-bar__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--top-h);
}

.logo {
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.logo--site {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: min(100%, 280px);
}

.logo__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #4f46e5);
    flex-shrink: 0;
}

.logo__text {
    font-size: 0.8125rem;
    line-height: 1.25;
    font-weight: 700;
}

@media (min-width: 400px) {
    .logo__text {
        font-size: 0.9rem;
    }
}

.top-bar__user {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Main + bottom nav spacing */
.main-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 1rem 1rem 1.5rem;
    transition: padding 0.2s ease;
}

.app-body--with-nav .main-content {
    padding-bottom: calc(var(--nav-h) + 1.5rem);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.card--hero {
    background: linear-gradient(135deg, #eef4ff 0%, #f8faff 100%);
    text-align: center;
}

/* Home landing */
.home-landing {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 48%, #1e40af 100%);
    color: #f8fafc;
    border: none;
    box-shadow: 0 20px 50px rgba(30, 58, 138, 0.35);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.15), transparent 55%);
    pointer-events: none;
}

.home-hero__eyebrow {
    position: relative;
    z-index: 1;
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.85);
}

.home-hero__title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.65rem;
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.home-hero__lead {
    position: relative;
    z-index: 1;
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.88);
    max-width: 36rem;
}

.home-hero__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.home-hero .btn--primary {
    background: #fff;
    color: #1e3a8a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-hero .btn--primary:hover {
    background: #f1f5f9;
}

.home-hero .btn--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.home-hero .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

.home-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .home-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-stat {
    text-align: left;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--primary);
}

.home-stat__value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.home-stat__label {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.home-split {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .home-split {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
}

.home-panel__title {
    margin: 0 0 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.home-panel__text {
    margin: 0 0 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.home-panel--accent {
    background: linear-gradient(160deg, var(--accent) 0%, #fff 70%);
    display: flex;
    flex-direction: column;
}

.home-checklist {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
    line-height: 1.65;
}

.home-checklist li {
    margin-bottom: 0.4rem;
}

.home-cta {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--border);
}

.home-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

@media (min-width: 560px) {
    .home-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.home-cta__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.home-cta__text {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.card--accent {
    background: linear-gradient(135deg, var(--accent-warm), #fff);
}

.card--muted {
    background: #f0f3fa;
    color: var(--muted);
}

.hero__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.25;
}

.hero__promo {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 1rem;
}

.section__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
}

.section__text {
    margin: 0 0 0.75rem;
    color: var(--muted);
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.cta-block {
    text-align: center;
}

.auth-hint {
    text-align: center;
    font-size: 0.9375rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 141, 239, 0.35);
}

.btn--primary:hover {
    background: var(--primary-dark);
}

.btn--secondary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn--secondary:hover {
    background: #dbe8ff;
}

.btn--ghost {
    background: transparent;
    color: var(--primary-dark);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--accent);
}

.btn--block {
    width: 100%;
}

.btn--sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.btn--danger {
    background: #fde8e8;
    color: var(--danger);
}

.btn--danger:hover {
    background: #ffd4d4;
}

.btn--discord {
    background: #5865f2;
    color: #fff;
    margin-top: 0.75rem;
}

.btn--discord:hover {
    background: #4752c4;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Bottom navigation */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: var(--nav-h);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(28, 37, 65, 0.06);
}

.bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.35rem;
    font-size: 0.7rem;
    color: var(--muted);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.bottom-nav__item.is-active {
    color: var(--primary-dark);
    background: var(--accent);
    font-weight: 600;
}

.bottom-nav__icon {
    font-size: 1.15rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 400px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 1rem;
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }

    .app-body--with-nav .main-content {
        padding-bottom: calc(var(--nav-h) + 2.5rem);
    }
}

/* Auth pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--top-h) - 2rem);
    padding: 1rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-card__title {
    margin: 0 0 1rem;
    text-align: center;
}

.auth-card__footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Auth (reference-style) */
.auth-page--ref {
    min-height: calc(100vh - var(--top-h));
    padding: 1.5rem 1rem 2rem;
    background: linear-gradient(180deg, #dbeafe 0%, #eff6ff 45%, #e0f2fe 100%);
}

.auth-card--ref {
    max-width: 440px;
    padding: 1.5rem;
    border-radius: 22px;
}

.auth-avatar {
    width: 92px;
    height: 92px;
    margin: 0 auto 0.85rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 3px solid rgba(37, 99, 235, 0.45);
    background: rgba(255, 255, 255, 0.65);
}

.auth-avatar__dot {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.95);
    position: relative;
}

.auth-avatar__dot::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -18px;
    width: 74px;
    height: 40px;
    border-radius: 999px 999px 18px 18px;
    background: rgba(37, 99, 235, 0.95);
}

.auth-form--ref .form__label {
    display: none;
}

.auth-input {
    position: relative;
}

.auth-input__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: rgba(37, 99, 235, 0.95);
    pointer-events: none;
}

.auth-input .form__input {
    padding-left: 2.75rem;
    border-radius: 12px;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.9);
}

.auth-input--pw .form__input {
    padding-right: 3rem;
}

.auth-eye-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 38px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    color: rgba(37, 99, 235, 0.95);
}

.auth-eye-btn:hover {
    background: var(--accent);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0.35rem 0 0.75rem;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.auth-btn--ref {
    border-radius: 12px;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    font-weight: 800;
    padding: 0.85rem 1rem;
}

/* Admin login (dedicated layout) */
.admin-login-page {
    min-height: calc(100vh - var(--top-h));
    padding: 1.25rem 1rem 2rem;
    background: linear-gradient(165deg, #e8eeff 0%, var(--bg) 42%, #f5f7fc 100%);
}

.admin-login-wrap {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.admin-login-hero {
    text-align: center;
    margin-bottom: 1.35rem;
}

.admin-login-hero__badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: var(--accent);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.admin-login-hero__title {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.admin-login-hero__sub {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.admin-login-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(28, 37, 65, 0.1);
}

.admin-login-panel {
    margin-bottom: 0.25rem;
}

.admin-login-panel__title {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.admin-login-panel__hint {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.admin-login-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.35rem 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-login-divider::before,
.admin-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.admin-login-tip {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
    background: #f0f3fa;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    line-height: 1.5;
}

@media (min-width: 520px) {
    .admin-login-hero__title {
        font-size: 1.85rem;
    }
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.form__input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.input-row .form__input {
    flex: 1;
}

.btn--input {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary-dark);
    font-weight: 700;
}

.btn--input:hover {
    background: var(--accent);
}

.pw-mirror {
    display: none;
}

.form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2);
}

.form__textarea {
    min-height: 88px;
    resize: vertical;
}

.form--toggles {
    gap: 1rem;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

.toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__ui {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #d8deea;
    position: relative;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.toggle__ui::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.25s ease;
}

.toggle input:checked + .toggle__ui {
    background: var(--primary);
}

.toggle input:checked + .toggle__ui::after {
    transform: translateX(20px);
}

.toggle__label {
    font-weight: 500;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.alert--error {
    background: #fdecec;
    color: #a32424;
    border: 1px solid #f5c4c4;
}

.alert--success {
    background: #e6f7f1;
    color: #1a6b52;
    border: 1px solid #b8e5d4;
}

.page-stack .alert:first-child {
    margin-top: 0;
}

.page-title {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

.help-list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--text);
}

.help-list li {
    margin-bottom: 0.5rem;
}

/* Chat */
.card--chat {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--top-h) - var(--nav-h) - 3rem);
    max-height: 640px;
    min-height: 360px;
    padding: 0;
    overflow: hidden;
}

.chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.chat-toolbar__title {
    margin: 0;
    font-size: 1.05rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(180deg, #f0f3fa 0%, #fafbfd 100%);
    position: relative;
}

.chat-stream {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bubble {
    display: flex;
    max-width: 88%;
    animation: fadeIn 0.25s ease;
}

.chat-bubble--user {
    align-self: flex-end;
    justify-content: flex-end;
}

.chat-bubble--assistant {
    align-self: flex-start;
}

.chat-bubble__inner {
    padding: 0.55rem 0.85rem;
    border-radius: 16px;
    font-size: 0.9375rem;
    line-height: 1.45;
    word-break: break-word;
}

.chat-bubble--user .chat-bubble__inner {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-bubble--assistant .chat-bubble__inner {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(28, 37, 65, 0.06);
}

/* Chat: bold + tables */
.md-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 0.35rem 0;
}

.md-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.md-table th,
.md-table td {
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

.md-table th {
    background: var(--accent);
    color: var(--text);
    font-weight: 800;
}

[data-theme="dark"] .md-table th {
    background: rgba(96, 165, 250, 0.12);
}

.chat-loading {
    position: absolute;
    left: 50%;
    bottom: 0.75rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--muted);
    box-shadow: var(--shadow);
}

.chat-loading--hidden {
    display: none;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 1rem 0.25rem;
    margin: 0 1rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--muted);
    border-radius: 50%;
    opacity: 0.4;
    animation: bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.3s;
}

.typing-indicator--hidden {
    display: none;
}

.chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 1rem;
    font-family: inherit;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-send {
    flex-shrink: 0;
    border-radius: 999px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    40% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@keyframes navPop {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(0.92);
    }
    100% {
        transform: scale(1);
    }
}

/* Admin */
.admin-body {
    background: var(--bg);
}

.admin-top {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-top__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-brand {
    font-size: 1.1rem;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.9rem;
}

.admin-links a {
    color: var(--muted);
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
}

.admin-links a:hover,
.admin-links a.is-active {
    color: var(--primary-dark);
    background: var(--accent);
}

.admin-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem 2rem;
}

.admin-page-title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
}

.admin-lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.stat-card__label {
    font-size: 0.85rem;
    color: var(--muted);
}

.admin-section {
    margin-top: 0.5rem;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th,
.data-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.adm-detail-table th {
    width: 38%;
    color: var(--muted);
    font-weight: 700;
}

.adm-detail-table td {
    width: 62%;
}

/* Courses */
.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.course-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--accent), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.course-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.course-card__body {
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.course-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.course-card__title {
    font-size: 1.02rem;
}

.course-card__desc {
    margin: 0;
    line-height: 1.55;
}

.course-card__row {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.course-card__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.course-detail__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .course-detail__grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }
}

.course-detail__media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--accent), var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-detail__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.course-detail__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.course-detail__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.course-detail__price {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.course-detail__actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.course-card__price {
    font-weight: 800;
    color: var(--primary-dark);
}

/* Ads */
.ad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ad-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ad-card__title {
    font-size: 1.02rem;
}

.ad-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.6rem;
}

.ad-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.data-table th {
    color: var(--muted);
    font-weight: 600;
}

.admin-form {
    max-width: 560px;
}

.admin-form--wide {
    max-width: 100%;
}

.admin-json-editor {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.8125rem;
    line-height: 1.45;
    min-height: 320px;
}

.schedule-preview-block {
    margin: 0;
    padding: 1rem;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 280px;
    overflow-y: auto;
}

.admin-placeholder code {
    font-size: 0.85em;
    background: #e8ecf5;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.inline-form {
    display: inline;
}

/* ——— Admission form ——— */
.adm-form {
    max-width: 960px;
    margin: 0 auto 1rem;
}

.adm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .adm-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.adm-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem;
    margin: 0;
}

.adm-radio-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}

.adm-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    user-select: none;
}

.adm-radio input {
    accent-color: var(--primary);
}

.adm-hidden {
    display: none !important;
}

/* ——— Dark theme ——— */
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0f14;
    --surface: #141a22;
    --text: #e8edf4;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #818cf8;
    --accent: rgba(96, 165, 250, 0.12);
    --accent-warm: rgba(251, 191, 36, 0.08);
    --border: #2a3444;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .top-bar {
    background: rgba(20, 26, 34, 0.92);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .logo__text,
[data-theme="dark"] .logo {
    color: var(--text);
}

[data-theme="dark"] .card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .card--muted {
    background: #1a222d;
}

[data-theme="dark"] .home-hero {
    background: linear-gradient(135deg, #1e293b 0%, #312e81 45%, #1e3a8a 100%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .home-stat {
    border-left-color: var(--primary);
}

[data-theme="dark"] .chat-messages {
    background: linear-gradient(180deg, #0f1419 0%, #141a22 100%);
}

[data-theme="dark"] .chat-bubble--assistant .chat-bubble__inner {
    background: #1a222d;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .chat-input-row {
    background: var(--surface);
    border-top-color: var(--border);
}

[data-theme="dark"] .bottom-nav {
    background: rgba(20, 26, 34, 0.97);
    border-top-color: var(--border);
}

[data-theme="dark"] .schedule-preview-block {
    background: #0f1419;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .form__input {
    background: #0f1419;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .admin-json-editor {
    background: #0f1419;
    color: #e2e8f0;
}

[data-theme="dark"] body.app-body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .page-title,
[data-theme="dark"] .section__title,
[data-theme="dark"] .admin-page-title {
    color: var(--text);
}

[data-theme="dark"] .muted,
[data-theme="dark"] .admin-lead,
[data-theme="dark"] .section__text {
    color: var(--muted);
}

[data-theme="dark"] .link {
    color: var(--primary);
}

[data-theme="dark"] .alert--success {
    background: rgba(5, 150, 105, 0.15);
    color: #6ee7b7;
    border-color: rgba(5, 150, 105, 0.35);
}

[data-theme="dark"] .alert--error {
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    border-color: rgba(220, 38, 38, 0.35);
}

[data-theme="dark"] .auth-page {
    background: transparent;
}

[data-theme="dark"] .auth-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .admin-login-page {
    background: linear-gradient(165deg, #0f172a 0%, var(--bg) 45%, #0b0f14 100%);
}

[data-theme="dark"] .admin-login-hero__title,
[data-theme="dark"] .admin-login-panel__title {
    color: var(--text);
}

[data-theme="dark"] .admin-login-tip {
    background: #1a222d;
    border-color: var(--border);
    color: var(--muted);
}

[data-theme="dark"] .chat-toolbar {
    background: var(--surface);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .chat-toolbar__title {
    color: var(--text);
}

[data-theme="dark"] .card--chat {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .btn--secondary {
    background: var(--accent);
    color: var(--primary);
}

[data-theme="dark"] .btn--ghost {
    border-color: var(--border);
    color: var(--primary);
}

[data-theme="dark"] .btn--ghost:hover {
    background: rgba(96, 165, 250, 0.12);
}

[data-theme="dark"] .btn--discord {
    background: #4752c4;
    color: #fff;
}

[data-theme="dark"] .home-panel--accent {
    background: linear-gradient(160deg, rgba(96, 165, 250, 0.08) 0%, var(--surface) 75%);
}

[data-theme="dark"] .home-cta {
    background: linear-gradient(135deg, #141a22 0%, var(--surface) 100%);
}

[data-theme="dark"] .settings-perm-hint {
    color: var(--muted);
}

/* Admin area (same theme as main app) */
[data-theme="dark"] .admin-body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .admin-top--hub {
    background: linear-gradient(120deg, #0f172a 0%, #1e1b4b 50%, #172554 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .stat-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .stat-card__value {
    color: var(--primary);
}

[data-theme="dark"] .stat-card__label {
    color: var(--muted);
}

[data-theme="dark"] .data-table th {
    color: var(--muted);
}

[data-theme="dark"] .data-table td {
    color: var(--text);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .admin-pill {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.9);
}

[data-theme="dark"] .admin-pill.is-active {
    background: rgba(248, 250, 252, 0.95);
    color: #1e3a8a;
}

[data-theme="dark"] .admin-chip {
    background: rgba(96, 165, 250, 0.15);
    color: var(--primary);
    border-color: var(--border);
}

[data-theme="dark"] .admin-chip--ghost {
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] .admin-placeholder code {
    background: #1a222d;
    color: var(--text);
}

/* ——— Settings (appearance) ——— */
.settings-hero {
    background: linear-gradient(135deg, var(--accent) 0%, var(--surface) 70%);
    border: 1px solid var(--border);
}

.settings-hero__title {
    margin: 0 0 0.35rem;
}

.settings-hero__lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.settings-form-card {
    padding: 0;
    overflow: hidden;
}

.settings-block {
    padding: 1.25rem 1.25rem 1rem;
    border-top: 1px solid var(--border);
}

.settings-block:first-of-type,
.settings-block--borderless {
    border-top: none;
}

.settings-block__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.settings-block__hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.settings-toggles {
    padding: 0;
}

.settings-save-row {
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, transparent, var(--accent));
}

.settings-block--danger .settings-block__title {
    color: var(--danger);
}

.theme-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 360px;
}

.theme-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.theme-option:hover {
    border-color: var(--primary);
}

.theme-option.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.theme-option__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-option__preview {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.theme-option__preview--light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.theme-option__preview--dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.theme-option__label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ——— Profile ——— */
.profile-header-card {
    padding: 1.35rem 1.25rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--surface) 55%);
    border: 1px solid var(--border);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), #4f46e5);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.profile-header__meta {
    min-width: 0;
}

.profile-header__name {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
    line-height: 1.25;
    word-break: break-word;
}

.profile-header__email {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
    word-break: break-all;
}

.profile-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background: var(--accent);
    color: var(--primary-dark);
}

[data-theme="dark"] .profile-badge {
    color: var(--primary);
}

.profile-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.profile-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.profile-panel__hint {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.profile-panel--security {
    background: linear-gradient(160deg, var(--surface) 0%, var(--accent) 120%);
}

.form__input--readonly {
    opacity: 0.85;
    cursor: default;
}

/* ——— Bottom nav animation ——— */
.bottom-nav--animated {
    transition: box-shadow 0.3s ease;
}

.bottom-nav--animated .bottom-nav__item {
    position: relative;
    overflow: visible;
    transition: color 0.25s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav--animated .bottom-nav__item::before {
    content: "";
    position: absolute;
    inset: 0.15rem 0.25rem auto;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bottom-nav--animated .bottom-nav__item.is-active::before {
    opacity: 1;
    transform: scaleX(1);
}

.bottom-nav--animated .bottom-nav__item:active {
    transform: scale(0.94);
}

.bottom-nav--animated .bottom-nav__item.is-active {
    transform: translateY(-2px);
}

.bottom-nav__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.25s ease, filter 0.25s ease;
    line-height: 1;
}

.bottom-nav__icon--home::after {
    content: "\2302";
    font-size: 1.2rem;
}

.bottom-nav__icon--chat::after {
    content: "\1F4AC";
    font-size: 1rem;
}

.bottom-nav__icon--courses::after {
    content: "\1F4DA";
    font-size: 1rem;
}

.bottom-nav__icon--ads::after {
    content: "\1F4E3";
    font-size: 1rem;
}

/* Auto ads placements */
.ad-ticker {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12), rgba(99, 102, 241, 0.12));
    border-bottom: 1px solid var(--border);
}

.ad-ticker__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.9rem;
}

.ad-ticker__body {
    color: var(--muted);
}

.ad-ticker__link {
    font-weight: 800;
}

.ad-banner {
    padding: 0.75rem 0 0;
}

.ad-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.ad-banner__img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.ad-banner__text {
    min-width: 0;
}

.ad-inline__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.ad-inline__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.65rem;
}

.ad-inline__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-inline--featured {
    border-width: 2px;
    border-color: rgba(37, 99, 235, 0.35);
}

.ad-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.ad-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
}

.ad-modal__panel {
    position: relative;
    width: min(520px, 100%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.ad-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ad-modal__close--hidden {
    visibility: hidden;
    pointer-events: none;
}

.ad-modal__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.65rem;
}

.ad-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bottom-nav__icon--profile::after {
    content: "\1F464";
    font-size: 1rem;
}

.bottom-nav__icon--settings::after {
    content: "\2699";
    font-size: 1.05rem;
}

.bottom-nav__item.is-active .bottom-nav__icon {
    transform: scale(1.12);
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, 0.35));
}

[data-theme="dark"] .bottom-nav__item.is-active .bottom-nav__icon {
    filter: drop-shadow(0 2px 10px rgba(96, 165, 250, 0.4));
}

.bottom-nav__label {
    font-size: 0.7rem;
    transition: font-weight 0.2s ease;
}

.bottom-nav__item.is-active .bottom-nav__label {
    font-weight: 700;
}

/* ——— Admin hub ——— */
.admin-hub .admin-top--hub {
    background: linear-gradient(120deg, #1e293b 0%, #312e81 55%, #1e40af 100%);
    border-bottom: none;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.35);
}

.admin-brand-block {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.admin-brand-block:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.admin-brand-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.45);
}

.admin-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.admin-brand-text .admin-brand {
    color: #f8fafc;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.admin-brand-tag {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(248, 250, 252, 0.75);
}

.admin-links--pills {
    gap: 0.4rem;
}

.admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-pill:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.admin-pill.is-active {
    background: rgba(255, 255, 255, 0.95);
    color: #1e3a8a;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.admin-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.admin-pill.is-active .admin-pill__dot {
    background: #2563eb;
    opacity: 1;
}

.admin-pill--accent {
    background: rgba(251, 191, 36, 0.25);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fef3c7;
}

.admin-pill--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.25);
}

.admin-main--hub {
    padding-top: 1.5rem;
}

.admin-card--lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-card--lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(28, 37, 65, 0.12);
}

.admin-page-head {
    margin-bottom: 1rem;
}

.admin-lead--tight {
    margin-bottom: 0.75rem;
}

.admin-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--accent);
    color: var(--primary-dark);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-chip:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.admin-chip--ghost {
    background: var(--surface);
}

.admin-two-col {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 900px) {
    .admin-two-col {
        grid-template-columns: 1fr 280px;
        align-items: start;
    }
}

.admin-card-title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.admin-card-sub {
    margin: 0 0 1rem;
    font-size: 0.875rem;
}

.admin-hint-card .admin-hint-list {
    margin: 0 0 0.75rem;
    padding-left: 1.2rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text);
}

.admin-file-input {
    padding: 0.5rem;
    font-size: 0.875rem;
}

@media (min-width: 900px) {
    .hero__title {
        font-size: 1.85rem;
    }
}
