@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    --navy-950: #061333;
    --navy-900: #071b45;
    --navy-800: #0a2b66;
    --blue-600: #1265d8;
    --blue-100: #e8f1ff;
    --gold-500: #d7a739;
    --gold-100: #fff5d8;
    --green-600: #168564;
    --green-100: #e6f7f1;
    --red-600: #c33d4b;
    --red-100: #ffebed;
    --purple-600: #7156c5;
    --purple-100: #f0ecff;
    --ink: #162038;
    --muted: #6c7890;
    --line: #e5eaf2;
    --surface: #ffffff;
    --background: #f4f7fb;
    --shadow: 0 12px 35px rgba(16, 39, 83, .08);
    --radius: 16px;
    --sidebar-width: 258px;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; color: var(--ink); background: var(--background); font: 14px/1.5 'DM Sans', system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .brand strong { font-family: 'Manrope', 'DM Sans', sans-serif; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 3vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
h2 { margin-bottom: 4px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
h3 { margin-bottom: 7px; }
p { color: var(--muted); }
small { display: block; color: var(--muted); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar-width); flex-direction: column; padding: 24px 16px; overflow-y: auto; color: #dce7ff; background: linear-gradient(165deg, var(--navy-950), var(--navy-900) 68%, #0b326d); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; flex: 0 0 48px; color: white; border: 1px solid rgba(255,255,255,.22); border-radius: 13px; background: linear-gradient(145deg, #0b62cb, #0a2a68); box-shadow: inset 0 0 20px rgba(255,255,255,.1); font: 800 16px/1 'Manrope', sans-serif; letter-spacing: -.5px; }
.brand-mark span { margin-left: 1px; color: #ff6572; }
.brand strong { display: block; max-width: 160px; color: inherit; font-size: 13px; line-height: 1.2; }
.brand small { margin-top: 3px; color: #91a8d3; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.nav-list { display: grid; gap: 6px; margin-top: 42px; }
.nav-link { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 10px 12px; color: #aebfe0; border: 0; border-radius: 11px; background: transparent; font-weight: 600; cursor: pointer; transition: .2s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); transform: translateX(2px); }
.nav-link.active { color: white; background: linear-gradient(90deg, rgba(24,104,218,.85), rgba(24,104,218,.42)); box-shadow: inset 3px 0 var(--gold-500); }
.nav-icon { display: grid; width: 25px; height: 25px; place-items: center; font-size: 18px; }
.sidebar-card { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); }
.sidebar-card strong { display: block; color: white; font-size: 12px; }
.sidebar-card small { color: #91a8d3; font-size: 10px; }
.online-dot { width: 10px; height: 10px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; background: #25c78c; box-shadow: 0 0 0 4px rgba(37,199,140,.12); }
.logout-form { margin-top: 8px; }
.button-link { width: 100%; text-align: left; }
.main-panel { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 76px; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(13px); }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title strong { font-size: 17px; }
.eyebrow { display: block; margin-bottom: 5px; color: var(--blue-600); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #adcaff; }
.topbar-actions { display: flex; align-items: center; gap: 15px; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.user-chip > span { display: grid; width: 36px; height: 36px; place-items: center; color: white; border-radius: 11px; background: var(--navy-800); font-weight: 800; }
.user-chip strong { display: block; font-size: 12px; }
.user-chip small { font-size: 9px; letter-spacing: .08em; }
.menu-button { display: none !important; }
.page-content { width: min(1500px, 100%); margin: 0 auto; padding: 26px 30px 45px; }

.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(10,43,102,.12); }
.button-primary { color: white; border-color: #1762c6; background: linear-gradient(135deg, #126be2, #0a4dad); }
.button-light { color: var(--navy-800); border-color: var(--line); background: white; }
.button-small { min-height: 34px; padding: 7px 12px; font-size: 12px; }
.button-large { min-height: 48px; padding: 12px 20px; }
.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; flex: 0 0 34px; color: var(--navy-800); border: 1px solid var(--line); border-radius: 9px; background: white; cursor: pointer; }
.text-link { color: var(--blue-600); font-weight: 700; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.alert { margin-bottom: 18px; padding: 12px 15px; border: 1px solid; border-radius: 11px; font-weight: 600; transition: .3s; }
.alert-success { color: #0d684d; border-color: #a9ddcc; background: var(--green-100); }
.alert-danger { color: #9d2937; border-color: #f3bdc3; background: var(--red-100); }
.alert-warning { color: #7e5b08; border-color: #eed690; background: var(--gold-100); }
.alert.is-hiding { opacity: 0; transform: translateY(-8px); }

.hero-panel { position: relative; display: flex; min-height: 175px; align-items: center; justify-content: space-between; overflow: hidden; padding: 30px 34px; color: white; border-radius: 21px; background: linear-gradient(115deg, #071b45 2%, #0b397f 62%, #1561bc); box-shadow: 0 18px 40px rgba(7,27,69,.18); }
.hero-panel::before, .hero-panel::after { position: absolute; content: ''; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-panel::before { right: -65px; width: 260px; height: 260px; }
.hero-panel::after { right: 100px; bottom: -110px; width: 210px; height: 210px; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h1 { margin-bottom: 7px; }
.hero-panel p { max-width: 580px; margin: 0; color: #bfd1ee; }
.hero-date { min-width: 155px; padding: 16px 20px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.09); text-align: center; backdrop-filter: blur(5px); }
.hero-date span { display: block; color: #bfd1ee; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.hero-date strong { display: block; margin-top: 3px; font: 700 17px 'Manrope', sans-serif; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 30px; }
.stat-card { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 18px rgba(16,39,83,.035); }
.stat-icon { display: grid; width: 47px; height: 47px; place-items: center; flex: 0 0 47px; border-radius: 13px; font-size: 22px; }
.stat-card.blue .stat-icon { color: var(--blue-600); background: var(--blue-100); }
.stat-card.gold .stat-icon { color: #a77300; background: var(--gold-100); }
.stat-card.green .stat-icon { color: var(--green-600); background: var(--green-100); }
.stat-card.purple .stat-icon { color: var(--purple-600); background: var(--purple-100); }
.stat-card span { display: block; color: var(--muted); font-size: 11px; }
.stat-card strong { display: block; margin: 1px 0 3px; color: var(--navy-900); font: 800 27px 'Manrope', sans-serif; line-height: 1.15; }
.stat-card a { color: var(--blue-600); font-size: 10px; font-weight: 700; }
.section-block { margin-bottom: 30px; }
.section-heading, .page-heading, .panel-heading, .modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section-heading { margin-bottom: 13px; }
.section-heading h2, .panel-heading h2 { margin: 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.workflow-card { position: relative; overflow: hidden; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.workflow-card::after { position: absolute; top: 0; left: 0; width: 100%; height: 3px; content: ''; background: linear-gradient(90deg, var(--blue-600), var(--gold-500)); }
.workflow-head { display: flex; align-items: center; justify-content: space-between; }
.workflow-number { color: #cad3e2; font: 800 25px 'Manrope', sans-serif; }
.status-dot { color: var(--green-600); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.status-dot::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; content: ''; border-radius: 50%; background: #25ba83; }
.workflow-card h3 { margin-top: 14px; font-size: 15px; }
.workflow-card p { min-height: 42px; margin-bottom: 17px; font-size: 12px; }
.mini-flow { display: flex; align-items: center; gap: 5px; color: #66758d; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.mini-flow i { height: 1px; flex: 1; background: #cfd8e7; }

.content-grid { display: grid; gap: 18px; }
.content-grid.two-thirds { grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); }
.settings-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .85fr); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 6px 22px rgba(16,39,83,.035); }
.panel-heading { min-height: 68px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel-heading .eyebrow { margin-bottom: 3px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; color: #7b879b; background: #f8fafd; font-size: 9px; letter-spacing: .09em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 13px 14px; border-top: 1px solid #edf0f5; color: #34405a; font-size: 12px; vertical-align: middle; }
td strong { display: block; color: var(--ink); }
td small { margin-top: 2px; font-size: 10px; }
tbody tr:hover { background: #fbfcfe; }
.badge { display: inline-flex; min-height: 23px; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 999px; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.badge-success { color: #0c6e50; background: var(--green-100); }
.badge-danger { color: #a4313d; background: var(--red-100); }
.badge-warning { color: #84600b; background: var(--gold-100); }
.badge-neutral { color: #59667d; background: #edf1f6; }
.source-tag { display: inline-flex; padding: 3px 6px; color: #5f6f88; border: 1px solid var(--line); border-radius: 5px; background: #f8fafd; font-size: 8px; font-weight: 800; }
.empty-state { display: grid; min-height: 240px; place-items: center; align-content: center; padding: 25px; text-align: center; }
.empty-state > span { display: grid; min-width: 48px; height: 48px; place-items: center; margin-bottom: 9px; color: var(--blue-600); border-radius: 14px; background: var(--blue-100); font-size: 19px; font-weight: 800; }
.empty-state h3 { margin-bottom: 3px; }
.empty-state p { margin: 0; }
.empty-state.compact { min-height: 110px; }
.empty-state.full-page { min-height: 65vh; }
.activity-list { padding: 8px 18px; }
.activity-item { display: flex; gap: 11px; padding: 12px 2px; border-bottom: 1px solid #edf0f5; }
.activity-item:last-child { border-bottom: 0; }
.activity-direction { display: grid; width: 30px; height: 30px; place-items: center; flex: 0 0 30px; border-radius: 9px; font-weight: 800; }
.activity-direction.inbound { color: var(--green-600); background: var(--green-100); }
.activity-direction.outbound { color: var(--blue-600); background: var(--blue-100); }
.activity-item strong { font-size: 11px; }
.activity-item p { margin: 2px 0; color: #46536a; font-size: 11px; }
.activity-item small { font-size: 9px; }

.page-heading { margin-bottom: 20px; }
.page-heading h1 { margin-bottom: 5px; }
.page-heading p { margin-bottom: 0; }
.filter-panel { margin-bottom: 16px; padding: 12px; }
.filter-form { display: flex; align-items: center; gap: 10px; }
.search-field { display: flex; min-width: 280px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.search-field input { width: 100%; border: 0; outline: 0; }
.page-search { min-height: 42px; }
label { display: grid; gap: 6px; color: #45516a; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); border: 1px solid #dbe1eb; border-radius: 9px; outline: none; background: white; transition: .18s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #4a8ee9; box-shadow: 0 0 0 3px rgba(18,101,216,.09); }
.inline-form { display: flex; min-width: 155px; align-items: center; gap: 5px; }
.inline-form select, .inline-form input { min-height: 32px; padding: 5px 7px; font-size: 10px; }
.inline-form input { width: 75px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.span-2 { grid-column: span 2; }
.compact-grid { gap: 12px; }
.stack-form { display: grid; gap: 16px; }
.padded-form { padding: 21px; }
.modal { width: min(650px, calc(100% - 28px)); padding: 0; overflow: hidden; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(5,20,52,.28); }
.modal::backdrop { background: rgba(4,15,39,.58); backdrop-filter: blur(3px); }
.modal form { padding: 23px; }
.modal-heading { margin-bottom: 21px; }
.modal-heading h2 { font-size: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.inventory-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.inventory-strip article { display: flex; min-height: 90px; flex-direction: column; justify-content: space-between; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.inventory-strip strong { display: block; font-size: 11px; }
.inventory-strip span { color: var(--muted); font-size: 9px; }
.inventory-strip b { color: var(--green-600); font-size: 10px; }
.inventory-strip .low-stock { color: var(--red-600); }
.inquiry-list { padding: 0 20px; }
.inquiry-card { display: flex; gap: 12px; padding: 19px 2px; border-bottom: 1px solid var(--line); }
.inquiry-card:last-child { border-bottom: 0; }
.inquiry-card.unread { position: relative; }
.inquiry-card.unread::before { position: absolute; top: 24px; left: -13px; width: 6px; height: 6px; content: ''; border-radius: 50%; background: var(--blue-600); }
.avatar { display: grid; width: 39px; height: 39px; place-items: center; flex: 0 0 39px; color: white; border-radius: 11px; background: linear-gradient(145deg, #0f67d3, #0b3a80); font-weight: 800; }
.avatar.small { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; font-size: 10px; }
.inquiry-content { min-width: 0; flex: 1; }
.inquiry-content > p { margin: 10px 0; color: #3b4860; }
.inquiry-meta { display: flex; justify-content: space-between; gap: 10px; }
.inquiry-meta strong { display: block; }
.inquiry-meta small { font-size: 9px; }
.saved-answer { margin-top: 10px; padding: 10px 12px; border-left: 3px solid #49af8a; border-radius: 4px 9px 9px 4px; background: #f2faf7; }
.saved-answer strong { color: var(--green-600); font-size: 9px; text-transform: uppercase; }
.saved-answer p { margin: 4px 0 0; color: #3e5f55; }
.reply-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 11px; }
.reply-form textarea { min-height: 58px; }
.faq-list { padding: 8px 17px 18px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 0; }
.faq-list summary { padding: 13px 1px; cursor: pointer; font-weight: 700; }
.faq-list summary span { display: block; color: var(--blue-600); font-size: 8px; text-transform: uppercase; }
.faq-list p { margin: 0 0 6px; color: #46536a; font-size: 11px; }
.faq-list small { padding-bottom: 13px; font-size: 9px; }
.count-pill { display: grid; min-width: 27px; height: 27px; place-items: center; color: var(--blue-600); border-radius: 8px; background: var(--blue-100); font-size: 10px; font-weight: 800; }
.person-cell { display: flex; align-items: center; gap: 9px; }
.config-list { margin: 0; padding: 8px 20px; }
.config-list div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.config-list dt { color: var(--muted); font-size: 10px; }
.config-list dd { min-width: 0; margin: 0; color: #34405a; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
code { padding: 2px 5px; color: #31567e; border-radius: 5px; background: #eef3f8; font-family: ui-monospace, monospace; font-size: .9em; }
.setup-note, .guide-note { margin: 15px 20px 20px; padding: 14px; border: 1px solid #cfe0f7; border-radius: 11px; background: #f1f7ff; }
.setup-note strong, .guide-note strong { color: var(--navy-800); font-size: 11px; }
.setup-note p, .guide-note p { margin: 4px 0 0; font-size: 11px; }

.simulator-layout { display: grid; grid-template-columns: minmax(340px, 500px) minmax(280px, 1fr); gap: 28px; align-items: start; }
.simulator-tips { display: flex; align-items: center; gap: 6px; }
.simulator-tips span { color: var(--muted); font-size: 10px; }
.phone-frame { overflow: hidden; border: 7px solid #172137; border-radius: 26px; background: #e8e4dd; box-shadow: 0 22px 50px rgba(16,39,83,.2); }
.phone-header { display: flex; height: 67px; align-items: center; gap: 10px; padding: 10px 13px; color: white; background: #075e54; }
.phone-header .bot-avatar { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: white; color: #075e54; }
.phone-header div:nth-child(2) { flex: 1; }
.phone-header strong { display: block; font-size: 12px; }
.phone-header small { color: #cbe6df; font-size: 9px; }
.phone-header small span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5ee2a7; }
.chat-window { height: min(560px, 60vh); padding: 16px 12px; overflow-y: auto; background-color: #e8e1d7; background-image: radial-gradient(rgba(50,70,55,.05) 1px, transparent 1px); background-size: 13px 13px; }
.chat-day { width: max-content; margin: 0 auto 12px; padding: 4px 9px; color: #516069; border-radius: 6px; background: #d6ebf3; font-size: 9px; }
.chat-row { display: flex; margin: 6px 0; }
.chat-row.user { justify-content: flex-end; }
.chat-bubble { max-width: 85%; padding: 8px 9px 5px; white-space: normal; border-radius: 8px; background: white; box-shadow: 0 1px 1px rgba(0,0,0,.09); font-size: 11px; }
.chat-row.user .chat-bubble { background: #d9fdd3; }
.chat-bubble small { float: right; margin: 6px 0 0 12px; color: #77817e; font-size: 8px; }
.chat-compose { display: flex; align-items: center; gap: 8px; padding: 8px; background: #f0f2f5; }
.chat-compose input { border: 0; border-radius: 22px; }
.chat-compose button { display: grid; width: 40px; height: 40px; place-items: center; flex: 0 0 40px; color: white; border: 0; border-radius: 50%; background: #078778; cursor: pointer; }
.simulator-guide { padding: 24px; }
.simulator-guide h2 { font-size: 23px; }
.guide-list { display: grid; gap: 15px; margin: 22px 0; padding: 0; list-style: none; }
.guide-list li { display: flex; gap: 12px; }
.guide-list li > span { display: grid; width: 29px; height: 29px; place-items: center; flex: 0 0 29px; color: var(--blue-600); border-radius: 8px; background: var(--blue-100); font-weight: 800; }
.guide-list strong { font-size: 12px; }
.guide-list p { margin: 3px 0 0; font-size: 11px; }
.guide-note { margin: 0; }
.guide-note span { display: block; font-family: ui-monospace, monospace; font-size: 12px; }

.public-body { background: #f5f8fc; }
.public-header { display: flex; min-height: 83px; align-items: center; justify-content: space-between; padding: 13px max(24px, calc((100vw - 1180px) / 2)); color: var(--navy-900); border-bottom: 1px solid var(--line); background: white; }
.public-header .brand-mark { width: 50px; height: 50px; }
.public-contact { text-align: right; }
.public-contact strong { display: block; color: var(--green-600); font-size: 10px; text-transform: uppercase; }
.public-contact span { font: 700 14px 'Manrope', sans-serif; }
.public-main { min-height: calc(100vh - 150px); }
.public-footer { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px max(24px, calc((100vw - 1180px) / 2)); color: #a9b8d3; background: var(--navy-950); font-size: 11px; }
.auth-wrap { display: grid; min-height: calc(100vh - 151px); grid-template-columns: 1.1fr .9fr; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(40px, 7vw, 100px); color: white; background: radial-gradient(circle at 75% 25%, rgba(28,107,214,.45), transparent 25%), linear-gradient(135deg, var(--navy-950), #0b397e); }
.auth-visual::after { position: absolute; right: -130px; bottom: -130px; width: 390px; height: 390px; content: ''; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.025), 0 0 0 130px rgba(255,255,255,.02); }
.auth-visual h1 { position: relative; z-index: 1; max-width: 620px; margin-top: 24px; font-size: clamp(34px, 5vw, 61px); }
.auth-visual p { position: relative; z-index: 1; max-width: 590px; color: #bfd1ee; font-size: 16px; }
.auth-badge { width: max-content; padding: 6px 10px; color: #ffe29c; border: 1px solid rgba(222,176,70,.4); border-radius: 999px; background: rgba(222,176,70,.12); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.auth-flow { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.auth-flow span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(255,255,255,.06); font-size: 10px; }
.auth-flow b { color: var(--gold-500); }
.auth-card { display: flex; max-width: 480px; width: 100%; flex-direction: column; justify-content: center; gap: 31px; margin: auto; padding: 50px; }
.auth-card h2 { font-size: 26px; }
.auth-brand { color: var(--navy-900); }
.demo-credentials { padding: 10px 12px; color: #6c5a2b; border: 1px solid #ebdba9; border-radius: 9px; background: #fff9e9; font-size: 10px; }
.booking-hero { display: grid; max-width: 1180px; grid-template-columns: 1fr 1.03fr; gap: clamp(35px, 7vw, 90px); align-items: center; margin: 0 auto; padding: 60px 24px; }
.booking-copy h1 { max-width: 540px; color: var(--navy-900); font-size: clamp(38px, 5.2vw, 62px); }
.booking-copy > p { max-width: 540px; font-size: 16px; }
.public-pill { display: inline-flex; margin-bottom: 20px; padding: 6px 10px; color: var(--green-600); border-radius: 999px; background: var(--green-100); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.trust-points { display: grid; gap: 9px; margin-top: 24px; color: #3e4e69; font-size: 12px; font-weight: 700; }
.trust-points span::first-letter { color: var(--green-600); }
.booking-card { display: grid; gap: 22px; padding: 30px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow); }
.booking-card h2 { font-size: 24px; }
.form-consent { text-align: center; font-size: 9px; }
.service-strip { display: grid; max-width: 1180px; grid-template-columns: repeat(3, 1fr); margin: 0 auto 55px; padding: 0 24px; }
.service-strip article { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-right: 0; background: white; }
.service-strip article:first-child { border-radius: 14px 0 0 14px; }
.service-strip article:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.service-strip b { color: var(--blue-600); font: 800 29px 'Manrope', sans-serif; }
.service-strip strong { display: block; font-size: 11px; }
.service-strip small { font-size: 9px; }
.success-card { display: flex; max-width: 660px; min-height: 560px; flex-direction: column; align-items: center; justify-content: center; margin: 35px auto; padding: 45px; text-align: center; }
.success-icon { display: grid; width: 75px; height: 75px; place-items: center; margin-bottom: 20px; color: white; border: 8px solid #dff5ed; border-radius: 50%; background: var(--green-600); font-size: 27px; }
.success-card > p { max-width: 500px; }
.reference-box { min-width: 310px; margin: 25px 0; padding: 15px 22px; border: 1px dashed #93afd4; border-radius: 12px; background: #f1f6fc; }
.reference-box small { text-transform: uppercase; letter-spacing: .1em; }
.reference-box strong { display: block; color: var(--navy-900); font: 800 22px ui-monospace, monospace; letter-spacing: .04em; }
.success-actions { display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 11px; }
.sidebar-overlay { display: none; }

@media (max-width: 1180px) {
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .content-grid.two-thirds { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    :root { --sidebar-width: 250px; }
    .sidebar { transform: translateX(-100%); transition: .25s ease; }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-overlay { position: fixed; inset: 0; z-index: 25; background: rgba(3,13,34,.55); }
    .sidebar.is-open + .main-panel + .sidebar-overlay { display: block; }
    .main-panel { margin-left: 0; }
    .menu-button { display: inline-grid !important; }
    .topbar { padding: 0 19px; }
    .topbar-title { margin-right: auto; margin-left: 12px; }
    .workflow-grid { grid-template-columns: 1fr; }
    .workflow-card p { min-height: 0; }
    .settings-grid { grid-template-columns: 1fr; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { min-height: 430px; }
    .booking-hero { grid-template-columns: 1fr; }
    .booking-copy { text-align: center; }
    .booking-copy h1, .booking-copy > p { margin-right: auto; margin-left: auto; }
    .trust-points { justify-content: center; }
}

@media (max-width: 680px) {
    .hide-mobile, .user-chip div { display: none; }
    .user-chip { padding-left: 0; border-left: 0; }
    .page-content { padding: 18px 14px 35px; }
    .topbar { height: 66px; }
    .hero-panel { min-height: 210px; align-items: flex-start; padding: 25px; }
    .hero-date { position: absolute; right: 18px; bottom: 18px; min-width: auto; padding: 8px 10px; }
    .hero-date span { display: none; }
    .hero-date strong { font-size: 11px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 16px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .page-heading .button { width: 100%; }
    .filter-form { align-items: stretch; flex-direction: column; }
    .filter-form .search-field { min-width: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .inventory-strip { display: flex; margin-right: -14px; overflow-x: auto; }
    .inventory-strip article { min-width: 155px; }
    .modal form { padding: 18px; }
    .reply-form { grid-template-columns: 1fr; }
    .reply-form button { width: 100%; }
    .simulator-layout { grid-template-columns: 1fr; }
    .simulator-guide { display: none; }
    .simulator-tips { flex-wrap: wrap; }
    .public-header { padding: 11px 16px; }
    .public-header .brand strong { max-width: 145px; }
    .public-contact strong { display: none; }
    .public-contact span { font-size: 11px; }
    .public-footer { align-items: flex-start; flex-direction: column; padding: 20px; }
    .auth-visual { display: none; }
    .auth-card { min-height: calc(100vh - 150px); padding: 30px 22px; }
    .booking-hero { padding: 38px 16px; }
    .booking-copy h1 { font-size: 38px; }
    .booking-card { padding: 21px; }
    .service-strip { grid-template-columns: 1fr; margin-bottom: 35px; padding: 0 16px; }
    .service-strip article, .service-strip article:last-child { border: 1px solid var(--line); border-bottom: 0; border-radius: 0; }
    .service-strip article:first-child { border-radius: 13px 13px 0 0; }
    .service-strip article:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 13px 13px; }
    .reference-box { min-width: 0; width: 100%; }
    .success-card { padding: 25px; }
}

