/* =====================================================================
   BuildPro — visual refinement layer (loaded last)
   Inter type, rounded cards and controls, soft shadows, pill badges.
   ===================================================================== */

body { font-feature-settings: "cv11", "ss01"; letter-spacing: -0.005em; }
h1, h2, h3, h4 { letter-spacing: -0.02em; }

/* ---------- Labels: bold uppercase sans instead of mono ---------- */
.eyebrow, .page-head__eyebrow, .section-label, .sidebar__group,
.data-table thead th, .coord-table thead th, .bq-table thead th, .roadmap-table thead th,
.ai-label, .cad__opt-title, .ws-panel__title, .timeline__step strong {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.1em;
}
.eyebrow::before { border-radius: 2px; }

/* ---------- Controls ---------- */
.btn { border-radius: var(--radius); font-weight: 600; letter-spacing: 0; transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(63, 120, 214, 0.22); }
.btn--primary:hover { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), 0 6px 16px rgba(63, 120, 214, 0.3); }
.btn--ghost { background: #fff; }
.btn--dark { --btn-bg: var(--navy-900); --btn-fg: #fff; --btn-bd: var(--navy-900); }
.btn--dark:hover { --btn-bg: var(--navy-700); --btn-bd: var(--navy-700); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="tel"], input[type="date"], select, textarea { border-radius: var(--radius); }
.check input { border-radius: 5px; }

/* ---------- Pills ---------- */
.badge, .tag, .side-link__tag, .ws-pill, .rev-pill, .rev-card__label {
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.badge, .tag { padding: 3px 9px; font-size: 10.5px; }
.tag { background: var(--paper-3); border-color: transparent; color: var(--ink-3); }
.tag--link { background: var(--accent-100); color: var(--accent-600); }
.tag--warn { background: var(--warn-bg); }
.status { font-weight: 600; }
.badge-dot { border-radius: 999px; }
kbd { border-radius: 6px; }

/* ---------- Cards / panels ---------- */
.panel, .stat-row, .project-card, .form-section, .empty, .coming-soon, .welcome, .sheet-card,
.paper, .drawing-sheet, .pricing__card, .state-card, .danger-zone, .module-picker__item,
.cad, .bim, .sheet-frame, .ai-preview, .quick, .ai-step, .trust-grid, .principles__grid, .feature-grid,
.workspace, .twin__panel, .toolbar__search input, .wizard-rail {
    border-radius: var(--radius-lg);
}
.panel, .project-card, .form-section, .stat-row, .module-picker__item, .danger-zone { border-color: #e6eaf0; box-shadow: var(--shadow-sm); }
.panel { padding: 22px 24px; }
.panel--flush { padding: 0; }
.panel__head h2 { font-size: 16.5px; font-weight: 700; }
.project-card { overflow: hidden; }
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card__thumb { border-radius: 0; }
.stat-row { gap: 0; background: #fff; }
.stat { background: transparent; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__value { font-weight: 800; letter-spacing: -0.03em; }
.quick { border-radius: 12px; }
.alert, .dev-note, .demo-banner, .roadmap-note, .workspace-note, .integrity, .lead-note, .cad__review, .qty-source { border-radius: 12px; }
.integrity, .workspace-note, .cad__review { border-left-width: 0; box-shadow: inset 4px 0 0 #d89b2b; }
.toast { border-radius: 12px; border-left: 0; box-shadow: var(--shadow-lg), inset 4px 0 0 var(--accent); }
.toast--success { box-shadow: var(--shadow-lg), inset 4px 0 0 #3fb37f; }
.toast--error { box-shadow: var(--shadow-lg), inset 4px 0 0 #e05b5b; }
.modal__dialog, .dropdown__panel { border-radius: var(--radius-lg); }
.menu__item { border-radius: 8px; }
.avatar { border-radius: 999px; }

/* ---------- Tables ---------- */
.data-table thead th, .coord-table thead th { font-size: 11px; color: var(--ink-4); background: #f8fafc; padding-top: 12px; padding-bottom: 12px; }
.data-table tbody tr:hover td { background: #fafbfd; }
.data-table td, .data-table th { padding: 13px 14px; }
.panel--flush .data-table thead th:first-child, .panel--flush .data-table td:first-child { padding-left: 20px; }
.section-row th { font-family: var(--font-sans); font-weight: 700; }

/* ---------- App shell ---------- */
.app { background: #f3f5f9; }
.sidebar { background: linear-gradient(180deg, #0b1526 0%, #081120 100%); border-right: 0; }
.sidebar__head { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.sidebar__nav { padding: 4px 14px 12px; }
.sidebar__group { margin: 22px 8px 8px; font-size: 10.5px; color: #6c7f99; }
.side-link { height: 42px; border-radius: 10px; font-weight: 500; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); }
.side-link.is-active { color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(63, 120, 214, 0.35); }
.side-link.is-active::before { display: none; }
.side-link.is-active .side-link__icon { color: #fff; }
.sidebar__new { padding: 18px 14px 6px; }
.side-new { border-radius: 10px; min-height: 44px; }
.sidebar__foot { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.topbar { background: rgba(255, 255, 255, 0.92); border-bottom-color: #e8ecf2; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02); }
.topbar__search input { border-radius: 999px; background: #f3f5f9; border-color: transparent; }
.topbar__search input:focus { background: #fff; border-color: var(--accent); }
.user-chip { border-radius: 999px; padding: 4px 12px 4px 4px; }
.user-chip .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-300); }
.user-chip__name { text-transform: uppercase; font-weight: 800; font-size: 12.5px; letter-spacing: 0.02em; }
.user-chip__role { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--success); }
.user-chip__role::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.icon-btn { border-radius: 10px; }
.page-head h1 { font-weight: 800; }

/* Tabs as a soft segmented bar */
.tabs { position: relative; border-bottom: 0; background: #fff; border: 1px solid #e6eaf0; border-radius: 14px; padding: 5px; box-shadow: var(--shadow-sm); }
.tabs ul { gap: 4px; }
.tabs__link { border-bottom: 0; margin-bottom: 0; border-radius: 10px; padding: 9px 13px; }
.tabs__link:hover { background: var(--paper-2); }
.tabs__link.is-active { color: #fff; background: var(--navy-900); }
.tabs__link.is-active .icon { color: var(--accent-300); }

/* ---------- Welcome banner (dashboard, project header) ---------- */
.hello {
    position: relative; overflow: hidden; margin-bottom: 24px; padding: 30px 34px 24px; color: #fff;
    background: radial-gradient(700px 260px at 100% 0%, rgba(63, 120, 214, 0.35), transparent 60%), linear-gradient(120deg, #1d3a6e 0%, #0f2140 45%, #081325 100%);
    border-radius: 18px; box-shadow: 0 18px 40px rgba(8, 19, 37, 0.22), inset 0 -5px 0 var(--accent);
}
.hello::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
    background-image: linear-gradient(rgba(143, 177, 226, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 177, 226, 0.08) 1px, transparent 1px);
    background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.hello__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hello__title { display: flex; align-items: center; gap: 16px; }
.hello__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; color: #fff; background: var(--accent); border-radius: 12px; box-shadow: 0 8px 20px rgba(63, 120, 214, 0.45); }
.hello__icon .icon { width: 24px; height: 24px; }
.hello h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.hello h1 span { color: var(--accent-300); }
.hello__sub { margin-top: 4px; font-size: 14.5px; color: #b9c7da; }
.hello__meta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #dbe5f2; }
.hello__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hello__meta .icon { width: 15px; height: 15px; color: var(--accent-300); }
.hello .btn--primary { box-shadow: 0 8px 22px rgba(63, 120, 214, 0.45); }
.hello .btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.hello .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Project header as a card */
.project-head { padding: 22px 26px; background: #fff; border: 1px solid #e6eaf0; border-radius: 18px; box-shadow: var(--shadow-sm); }
.project-head h1 { font-weight: 800; }
.project-head--compact { padding: 16px 22px; }

/* ---------- Public site ---------- */
.site-nav__links a { border-radius: 10px; }
.feature__icon, .trust-item__icon, .empty__art, .coming-soon__icon, .recent-item__icon, .module-picker__icon { border-radius: 12px; }
.principles__grid, .feature-grid, .trust-grid { overflow: hidden; }
.pricing__card { border-left-width: 1px; box-shadow: var(--shadow), inset 5px 0 0 var(--accent); }
.faq details { border-radius: 0; }
.auth__panel .btn--lg { min-height: 50px; }

/* ---------- Workspaces ---------- */
.cad, .bim { box-shadow: var(--shadow-sm); border-color: #e6eaf0; }
.cad__btn, .cad__icon, .cad__tool { border-radius: 9px; }
.cad__seg { border-radius: 10px; }
.cad__field input, .cad__field select, .cad__opt input, .cad__opt select, .cad__ltable input, .cad__cmd input { border-radius: 8px; }
.cad__info { border-radius: 12px; }
.ai-panel { border-radius: 18px 0 0 18px; }
.ai-chip { font-weight: 500; }

@media (max-width: 900px) {
    .hello { padding: 22px 20px 18px; }
    .hello h1 { font-size: 22px; }
    .tabs { border-radius: 12px; }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Forms: section numbers, wizard steps, file pickers ---------- */
.form-section__num {
    display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0;
    font-family: var(--font-sans); font-size: 13px; font-weight: 800; color: var(--accent-600);
    background: var(--accent-100); border-radius: 10px;
}
.wizard-rail { gap: 6px; padding: 6px; border-color: #e6eaf0; box-shadow: var(--shadow-sm); }
.wizard-rail span {
    display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px;
    font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0;
    color: var(--ink-4); border: 0; border-radius: 10px; background: var(--paper-2);
}
.wizard-rail .is-on { color: #fff; background: var(--navy-900); box-shadow: none; }
.file-input { padding: 10px; background: #fafbfd; border-radius: 12px; font-size: 13.5px; color: var(--ink-3); }
.file-input::file-selector-button {
    margin-right: 12px; padding: 8px 14px; font: inherit; font-weight: 600; color: var(--ink);
    background: #fff; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer;
}
.file-input::file-selector-button:hover { border-color: var(--accent); color: var(--accent-600); }

/* ---------- Small fixes ---------- */
.data-table td.mono .muted { font-family: var(--font-sans); font-size: 13px; }
.topbar__bell { position: relative; }
.topbar__bell .badge-dot { top: -3px; right: -5px; }
.settings-nav { padding: 8px; background: #fff; border: 1px solid #e6eaf0; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.settings-nav a:hover { background: var(--paper-2); }

/* =====================================================================
   Navy & amber skin — deep navy shell, amber highlights, blue links,
   12px cards on a soft grey canvas.
   ===================================================================== */
:root {
    --brand: #ffb703;
    --brand-600: #f0a500;
    --brand-100: #fff4d6;
    --brand-ink: #001529;
    --navy-950: #000e1c;
    --navy-900: #001529;
    --navy-850: #03203a;
    --navy-800: #0a2a4a;
    --navy-700: #12345a;
    --banner: #1c3d7e;
    --accent: #2563eb;
    --accent-600: #1d4ed8;
    --accent-300: #93b4f5;
    --accent-100: #eff6ff;
    --accent-050: #f5f9ff;
    --ink: #1e293b;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 10px 15px -3px rgba(0, 0, 0, 0.06);
}
.app, body.app { background: #f0f2f5; color: var(--ink); }
.brand__word b { color: var(--brand); }

/* Primary actions: amber with navy text */
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: var(--brand); font-weight: 700; box-shadow: 0 4px 12px rgba(255, 183, 3, 0.28); }
.btn--primary:hover { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); box-shadow: 0 6px 16px rgba(255, 183, 3, 0.36); }
.btn--primary .icon { color: currentColor; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.22); }

/* Cards */
.panel, .project-card, .form-section, .stat-row, .module-picker__item, .danger-zone, .settings-nav,
.tabs, .wizard-rail, .project-head { border-color: #e2e8f0; box-shadow: var(--shadow-sm); }
.project-head, .hello { border-radius: 12px; }
.project-card:hover, .quick:hover, .module-picker__item:hover { border-color: var(--brand); }
.section-label, .eyebrow, .page-head__eyebrow { color: var(--brand-600); }
.eyebrow::before { background: var(--brand); }
.stat__value { color: var(--navy-900); }
.page-head h1, .project-head h1, .panel__head h2 { color: var(--navy-900); }

/* Sidebar — full-width rows, amber active item */
.sidebar { background: var(--navy-900); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35); color: #94a3b8; }
.sidebar__head { height: auto; min-height: var(--topbar-h); padding: 22px 24px 18px; border-bottom: 0; }
.sidebar__brand { display: grid; gap: 5px; min-width: 0; }
.sidebar__tagline { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar__new { padding: 6px 24px 8px; border-top: 1px solid rgba(30, 41, 59, 0.6); padding-top: 18px; }
.sidebar__nav { padding: 0 0 12px; }
.sidebar__nav ul { gap: 1px; }
.sidebar__group { margin: 26px 24px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #64748b; }
.side-link { height: 46px; padding: 0 24px; gap: 16px; border-radius: 0; font-size: 14px; font-weight: 500; color: #94a3b8; }
.side-link__icon { width: 17px; height: 17px; }
.side-link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.side-link.is-active { color: #000; background: var(--brand); font-weight: 600; box-shadow: none; }
.side-link.is-active .side-link__icon { color: #000; }
.side-new { border-radius: 6px; min-height: 42px; }
.sidebar__foot { padding: 14px 24px 18px; border-top: 1px solid rgba(30, 41, 59, 0.6); display: grid; gap: 8px; }
.sidebar__foot .side-link { height: 38px; padding: 0 4px; }
.side-role {
    display: block; padding: 11px 12px; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
    color: #000; background: var(--brand); border-radius: 6px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-role:hover { color: #000; background: var(--brand-600); }
.sidebar-collapsed .sidebar__tagline, .sidebar-collapsed .side-role { display: none; }
.sidebar-collapsed .sidebar__head { padding: 18px 0; justify-content: center; }
.sidebar-collapsed .sidebar__new { padding: 14px 12px 8px; }
.sidebar-collapsed .side-link { padding: 0; }

/* Top bar — "Welcome, Name / ✓ Verified access", gold avatar ring */
.topbar { height: 64px; background: #fff; border-bottom: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.topbar__search input:focus { border-color: var(--brand-600); }
.user-chip { padding: 4px 6px 4px 12px; flex-direction: row-reverse; gap: 12px; }
.user-chip:hover { background: #f8fafc; border-color: transparent; }
.user-chip__chev { display: none; }
.user-chip__text { text-align: right; }
.user-chip__name { text-transform: none; font-size: 12.5px; font-weight: 700; letter-spacing: 0; color: var(--navy-900); }
.user-chip__role { justify-content: flex-end; gap: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.1em; color: #94a3b8; }
.user-chip__role::before { display: none; }
.user-chip__role .icon { width: 11px; height: 11px; padding: 1.5px; color: #fff; background: #10b981; border-radius: 50%; stroke-width: 3.5; }
.user-chip .avatar {
    width: 38px; height: 38px; color: var(--navy-900); background: #fff; font-weight: 800;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px #fdba3a, 0 8px 18px rgba(251, 146, 60, 0.35);
}

/* Tabs and steps: navy active with amber icon */
.tabs__link.is-active, .wizard-rail .is-on { background: var(--navy-900); color: #fff; }
.tabs__link.is-active .icon { color: var(--brand); }
.form-section__num { color: #8a5a00; background: var(--brand-100); }

/* Welcome banner */
.hello {
    padding: 36px 40px 26px;
    background: linear-gradient(90deg, var(--banner) 0%, var(--navy-900) 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.12), inset 0 -6px 0 var(--brand);
}
.hello::after { display: none; }
.hello__icon { width: 38px; height: 38px; color: #fff; background: var(--brand); border-radius: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.hello__icon .icon { width: 21px; height: 21px; }
.hello h1 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; }
.hello h1 span { color: var(--brand); }
.hello__sub { margin-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0.02em; color: #cbd5e1; }
.hello__meta { margin-top: 30px; padding-top: 20px; padding-bottom: 6px; gap: 12px 40px; font-size: 11px; letter-spacing: 0.15em; color: #cbd5e1; border-top-color: rgba(255, 255, 255, 0.1); }
.hello__meta .icon { color: var(--brand); }
.hello .btn--primary { box-shadow: 0 8px 22px rgba(255, 183, 3, 0.3); }
.hello__watermark { position: absolute; right: -40px; bottom: -50px; width: 230px; height: 230px; color: #fff; opacity: 0.05; transform: rotate(12deg); pointer-events: none; }

/* Badges, alerts, toasts */
.badge--demo { background: var(--brand-100); color: #8a5a00; border-color: #fde3a1; }
.toast { box-shadow: var(--shadow-lg), inset 4px 0 0 var(--brand); }
.integrity, .workspace-note, .cad__review { box-shadow: inset 4px 0 0 var(--brand); }

@media (max-width: 900px) {
    .hello { padding: 24px 20px 20px; }
    .hello__watermark { width: 150px; height: 150px; }
    .user-chip__text { display: none; }
}
.cad__btn--primary { color: var(--brand-ink); background: var(--brand); border-color: var(--brand); font-weight: 700; }
.cad__btn--primary:hover { color: var(--brand-ink); background: var(--brand-600); border-color: var(--brand-600); }

/* ---------- Auth: Google button, divider, verification page ---------- */
.google-signin { display: grid; justify-items: center; min-height: 44px; margin-bottom: 4px; }
.google-signin__button { width: 100%; max-width: 400px; display: flex; justify-content: center; min-height: 44px; }
.google-signin.is-busy { opacity: 0.55; pointer-events: none; }
.google-signin__fallback { font-size: 13px; color: var(--ink-3); text-align: center; }
.google-signin__note { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-4); text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0 18px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check-list { list-style: none; display: grid; gap: 10px; margin: 4px 0 22px; padding: 16px 18px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; }
.check-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.check-list .icon { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--brand-600); }
.inline-form { display: inline; }
.inline-form .link-btn { font-weight: 600; text-decoration: underline; }

/* ---------- BuildPro logo badge & motto ---------- */
.brand__mark { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); object-fit: contain; }
.topbar__brand .brand__mark, .minimal__brand .brand__mark { width: 34px; height: 34px; box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18); }
.sidebar-collapsed .sidebar__head .brand__mark { width: 38px; height: 38px; }
.sidebar__tagline { white-space: normal; line-height: 1.45; font-size: 8.5px; letter-spacing: 0.08em; color: #cbd5e1; }
.site-footer__tag { color: var(--brand); font-weight: 600; }
.hero__motto { margin-top: 14px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
@media (max-width: 900px) {
}
.hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.hero__badge {
    flex: none; width: 340px; height: 340px; margin-right: 12px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 6px rgba(255, 183, 3, 0.28), 0 0 80px rgba(37, 99, 235, 0.35), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.hello__logo { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--brand), 0 8px 20px rgba(0, 0, 0, 0.3); }
@media (max-width: 1100px) { .hero__badge { width: 240px; height: 240px; } }
@media (max-width: 900px) {
    .hero__inner { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
    .hero__badge { width: 150px; height: 150px; margin: 0; }
    .hello__logo { width: 48px; height: 48px; }
}
.auth__brand { display: grid; gap: 8px; justify-items: start; }
.auth__motto { padding-left: 50px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }

/* =====================================================================
   Sidebar v2: inset rounded items with icon tiles, gold active pill,
   no footer (collapse lives on the top-bar menu button).
   ===================================================================== */
.sidebar {
    background:
        radial-gradient(420px 260px at 0% 0%, rgba(37, 99, 235, 0.18), transparent 70%),
        radial-gradient(360px 300px at 100% 100%, rgba(255, 183, 3, 0.08), transparent 70%),
        linear-gradient(180deg, #03203f 0%, #001529 55%, #00101f 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar__head { padding: 22px 20px 16px; }
.sidebar__new { padding: 6px 16px 10px; border-top: 0; }
.side-new {
    min-height: 46px; border-radius: 12px; font-weight: 800; color: #001529;
    background: linear-gradient(135deg, #ffd166 0%, #ffb703 55%, #f59e0b 100%); border: 0;
    box-shadow: 0 10px 24px rgba(255, 183, 3, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
.side-new:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(255, 183, 3, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45); color: #001529; }
.side-new .icon { display: grid; place-items: center; width: 22px; height: 22px; padding: 3px; border-radius: 7px; background: rgba(0, 21, 41, 0.12); }

.sidebar__nav { padding: 4px 12px 24px; }
.sidebar__group { margin: 22px 10px 8px; font-size: 10px; letter-spacing: 0.16em; color: #5b708c; }
.sidebar__nav ul { gap: 3px; }
.side-link {
    height: 44px; padding: 0 10px; gap: 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: #a9b6c9;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.side-link__icon {
    box-sizing: content-box; flex: none; width: 17px; height: 17px; padding: 6.5px; border-radius: 9px;
    color: #8fa1b8; background: rgba(255, 255, 255, 0.05); transition: background-color 0.2s, color 0.2s;
}
.side-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); transform: translateX(2px); }
.side-link:hover .side-link__icon { color: #ffd166; background: rgba(255, 183, 3, 0.12); }
.side-link.is-active {
    color: #001529; font-weight: 700;
    background: linear-gradient(135deg, #ffd166 0%, #ffb703 60%, #f59e0b 100%);
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.25);
}
.side-link.is-active .side-link__icon { color: #ffb703; background: #001529; box-shadow: 0 4px 10px rgba(0, 21, 41, 0.35); }
.side-link.is-active:hover { transform: none; }

@media (min-width: 901px) {
    .sidebar-collapsed .sidebar__nav { padding: 4px 10px 20px; }
    .sidebar-collapsed .side-link { justify-content: center; padding: 0; }
    .sidebar-collapsed .side-link.is-active { background: transparent; box-shadow: none; }
    .sidebar-collapsed .side-link.is-active .side-link__icon { color: #001529; background: linear-gradient(135deg, #ffd166, #ffb703); box-shadow: 0 6px 16px rgba(255, 183, 3, 0.35); }
    .sidebar-collapsed .side-new .icon { background: transparent; }
}
