/* =========================================================================
   Zoe Revived Technologies — design system
   Colours sampled from the ZR logo. Display: Sora. Text: Plus Jakarta Sans.
   ========================================================================= */
:root {
  --ink: #0A1230;
  --ink-2: #12205A;
  --ink-line: #22357A;
  --navy: #0B2A7A;
  --blue: #1550D6;
  --blue-dark: #0F3FB0;
  --sky: #1E9BF0;
  --gold: #F5B400;
  --gold-dark: #D99E00;
  --gold-soft: #FFF4D6;
  --mist: #F3F6FD;
  --blue-soft: #E8EFFE;
  --line: #E1E7F5;
  --line-2: #CBD5EE;
  --text: #0A1230;
  --body: #3A4360;
  --muted: #56607A;
  --on-dark: #C9D3F0;
  --on-dark-2: #9FAED6;
  --good: #0F7A4A; --good-bg: #E3F6EC;
  --wait: #8A5A00; --wait-bg: #FFF3D1;
  --bad: #B42318;  --bad-bg: #FDE8E6;
  --neutral-bg: #EEF1F8;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --shadow-float: 0 24px 50px rgba(3, 10, 40, .40);
  --shadow-card: 0 1px 2px rgba(10, 18, 48, .05), 0 8px 24px rgba(10, 18, 48, .06);
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 24px);
  --header-h: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--mist); padding: .1em .4em; border-radius: 6px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.strong { font-weight: 700; }
.mt-l { margin-top: 32px; }
.span-2 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.stack-center { display: flex; flex-direction: column; gap: 22px; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #FFC21F; color: var(--ink); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue-soft); color: var(--navy); }
.btn-outline-light { border-color: #4A5E9C; color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-ghost { color: var(--text); background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-text { color: var(--blue); background: none; padding-inline: 8px; }
.btn-text-light { color: #fff; background: none; padding-inline: 8px; }
.btn-text-light:hover { color: var(--gold); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #8F1A12; color: #fff; }
.danger { color: var(--bad) !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row-tight { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--mist); color: var(--blue); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-link { font-weight: 700; }
.inline-form { display: inline; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none !important; }
.brand img { border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: .01em; }
.brand-sub { font-family: var(--font-display); font-weight: 600; font-size: 10.5px; color: #1E7FE0; letter-spacing: .3em; margin-top: 3px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-sub { color: var(--on-dark-2); }

/* ---------- Header ---------- */
.utility-bar { background: var(--ink); color: var(--on-dark); font-size: 13px; }
.utility-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.utility-group { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.utility-group span, .utility-group a { display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); }
.utility-group a:hover { color: #fff; }
.utility-group .strong { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .sub-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 11px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav a:hover, .sub-toggle:hover { color: var(--blue); background: var(--mist); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--blue); }
.has-sub { position: relative; }
.sub-menu { position: absolute; top: 100%; margin-top: 6px; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); display: none; }
.sub-menu a { display: block; padding: 10px 12px; }
.has-sub.open .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
@media (hover: hover) and (min-width: 1081px) { .has-sub:hover .sub-menu { display: block; } }
.sub-toggle.is-active { color: var(--blue); }
.sub-toggle svg { transition: transform .15s; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.sub-menu a[aria-current="page"] { background: var(--blue-soft); }
.mobile-group { padding: 6px 0 4px; border-bottom: 1px solid var(--line); }
.mobile-group-title { display: block; padding: 10px 4px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mobile-nav .mobile-group ul { padding: 0 0 4px; }
.mobile-nav .mobile-group li a { border-bottom: 0; padding: 10px 4px 10px 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; border-color: var(--line-2); }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 80px); overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobile-nav li a { display: block; padding: 13px 4px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav li a[aria-current="page"] { color: var(--blue); }
.mobile-actions { display: grid; gap: 10px; padding: 16px 0 24px; }
@media (max-width: 1180px) { .main-nav a, .sub-toggle { padding: 10px 9px; } }
@media (max-width: 1080px) {
  .main-nav, .hide-lg { display: none !important; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 860px) { .hide-md { display: none !important; } }
@media (max-width: 640px) { .utility-bar { display: none; } .brand-name { font-size: 16px; } .brand img { width: 46px; height: 46px; } }

/* ---------- Flash & notices ---------- */
.flash-stack { position: fixed; top: 96px; right: 16px; z-index: 200; display: grid; gap: 10px; max-width: min(440px, calc(100vw - 32px)); }
.dash .flash-stack, .auth-page .flash-stack { top: 16px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); font-weight: 600; font-size: 15px; animation: slideIn .25s ease-out; }
.flash span { flex: 1; padding-top: 2px; }
.flash-success { border-left: 5px solid var(--good); }
.flash-error { border-left: 5px solid var(--bad); }
.flash-info { border-left: 5px solid var(--blue); }
.flash-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; }
@keyframes slideIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.notice { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-md); font-size: 15px; margin-bottom: 20px; }
.notice-info { background: var(--blue-soft); color: var(--navy); border: 1px solid #C8D7FB; }
.notice p { margin: 0; }

/* ---------- Badges, pills, tags ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-wait { background: var(--wait-bg); color: var(--wait); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-neutral { background: var(--neutral-bg); color: var(--muted); }
.pill { display: inline-block; padding: 1px 9px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--navy); font-size: 12px; font-weight: 700; }
.demo-tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .02em; }
.demo-tag.inline { position: static; display: inline-block; vertical-align: middle; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tag-list li, .tag-list a { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--mist); color: var(--navy); font-size: 13.5px; font-weight: 600; }

/* ---------- Sections & typography ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--blue); margin: 0; }
.eyebrow-gold { color: var(--gold); margin-bottom: 12px; }
.h-section { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.015em; max-width: 760px; }
.section-ink .h-section { margin-bottom: 44px; }
.h-sub { font-size: 24px; margin: 36px 0 16px; }
.h-panel { font-size: 18px; margin: 0 0 16px; }
.mini-head { font-size: 16px; margin: 20px 0 8px; }
.body-lg { font-size: 17px; line-height: 1.7; color: var(--body); max-width: 62ch; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(36px, 6vw, 64px); align-items: start; }
.split.align-center { align-items: center; }
.split.align-end { align-items: end; margin-bottom: 44px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-bg-mark { position: absolute; right: -180px; top: -80px; width: 900px; opacity: .16; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px; align-items: center; padding-block: clamp(64px, 9vw, 104px); position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--ink-line); color: var(--on-dark); font-size: 14px; font-weight: 600; margin: 0; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero h1 { color: #fff; font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.025em; max-width: 14ch; }
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--on-dark); max-width: 560px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 6px 0 0; padding-top: 20px; border-top: 1px solid #1E2C5C; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.hero-stats dt { font-size: 14px; color: var(--on-dark-2); }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.hero-art { position: relative; height: 500px; }
.hero-panel { position: absolute; inset: 20px 0 20px 40px; border-radius: 32px; background: var(--ink-2); border: 1px solid var(--ink-line); overflow: hidden; }
.hero-panel svg { width: 100%; height: 100%; }
.hero-panel .swoosh { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.4s .4s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float-card { position: absolute; width: 260px; padding: 16px 18px; border-radius: 18px; background: #fff; color: var(--ink); box-shadow: var(--shadow-float); display: flex; gap: 14px; align-items: center; }
.float-card strong { display: block; font-size: 15px; }
.float-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.float-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-icon.gold { background: var(--gold-soft); color: #9A6E00; }
.float-1 { left: 0; top: 70px; }
.float-2 { right: 16px; top: 210px; }
.float-3 { left: 60px; bottom: 50px; }
@media (max-width: 1000px) { .hero-art { display: none; } }
@media (max-width: 640px) { .hero-stats { gap: 22px; } .hero-stats dd { font-size: 24px; } .hero-actions .btn { width: 100%; } }

/* ---------- Page hero ---------- */
.page-hero { background: var(--ink); color: #fff; padding-block: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -120px; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(30,155,240,.22); pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); max-width: 22ch; }
.page-hero .lead { font-size: 18px; color: var(--on-dark); max-width: 62ch; margin: 18px 0 0; }
.page-hero .hero-actions { margin-top: 28px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 14px; }
.breadcrumbs li { color: var(--on-dark-2); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--on-dark); }
.breadcrumbs a:hover { color: #fff; }
.article-head .breadcrumbs li, .article-head .breadcrumbs a { color: var(--muted); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.service-card { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.service-card:hover { border-color: #B9CBF5; box-shadow: var(--shadow-card); color: var(--text); }
.service-card h3 { font-size: 21px; }
.service-card p { color: var(--body); font-size: 15.5px; flex: 1; margin: 0; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.card-link { font-weight: 700; color: var(--blue); font-size: 15px; }
.card-link::after { content: " →"; }
.card-kicker { font-size: 13px; font-weight: 700; color: var(--blue); margin: 0 0 6px; }
.mv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.mv-card { padding: 32px; border-radius: var(--r-lg); background: var(--mist); display: flex; flex-direction: column; gap: 14px; }
.mv-card h3 { font-size: 21px; }
.mv-card p { color: var(--body); margin: 0; }
.mv-dark { background: var(--navy); }
.mv-dark h3 { color: #fff; }
.mv-dark p { color: #D3DCF5; }
.mv-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mv-icon.gold { background: var(--gold); color: var(--ink); }
.chip-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-pill); background: var(--mist); border: 1px solid #DCE4F6; font-weight: 600; color: var(--navy); text-decoration: none !important; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-dark:hover { background: var(--ink); color: #fff; }
.chip-gold { background: var(--gold-soft); border-color: #F5D77A; color: #6B4E00; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: none; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 30px 26px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--ink-line); }
.step h3 { font-size: 20px; color: #fff; }
.step p { color: #B9C5E8; margin: 0; font-size: 15px; }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; }
.steps-light .step { background: var(--mist); border-color: var(--line); }
.steps-light .step h3 { color: var(--navy); }
.steps-light .step p { color: var(--body); }
.steps-light .step-num { color: var(--blue); }
.stat-row { display: flex; flex-wrap: wrap; gap: 16px; }
.stat-box { flex: 1 1 150px; padding: 24px; border-radius: 20px; background: var(--mist); }
.section-mist .stat-box { background: #fff; }
.stat-box strong { display: block; font-family: var(--font-display); font-size: 36px; color: var(--navy); line-height: 1.1; }
.stat-box span { font-size: 14px; color: var(--body); }
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 20px; padding: 32px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.quote-mark { color: var(--gold); }
.testimonial blockquote { margin: 0; flex: 1; font-size: 16.5px; line-height: 1.7; color: #1F2846; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid #EEF2FA; }
.testimonial figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; font-size: 15px; }
.testimonial figcaption small { display: block; color: var(--muted); font-size: 13.5px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; flex-shrink: 0; }
.partner-cards { margin-top: 40px; }
.partner-card { display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 4vw, 40px); border-radius: 26px; background: #fff; border: 1px solid #DCE4F6; }
.partner-card h2, .partner-card h3 { font-size: 26px; }
.partner-card p { color: var(--body); margin: 0; }
.partner-dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.partner-dark h2, .partner-dark h3 { color: #fff; }
.partner-dark p { color: #D3DCF5; }
.partner-dark .mini-head { color: #fff; }
.partner-card .btn-row { margin-top: auto; padding-top: 8px; }
.media-fallback { width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ink-2), var(--navy)); color: rgba(255,255,255,.55); }
.project-card, .product-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
.project-card:hover, .product-card:hover { box-shadow: var(--shadow-card); border-color: #B9CBF5; color: var(--text); }
.project-media, .product-media { position: relative; aspect-ratio: 16 / 10; background: var(--mist); overflow: hidden; }
.project-media img, .product-media img { width: 100%; height: 100%; object-fit: cover; }
.project-body, .product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.project-body h3, .product-body h3 { font-size: 19px; }
.project-body p, .product-body p { color: var(--body); font-size: 15px; margin: 0; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.post-media { display: block; aspect-ratio: 16 / 9; background: var(--mist); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.post-body h3 { font-size: 19px; }
.post-body h3 a { color: var(--navy); }
.post-body p { color: var(--body); font-size: 15px; margin: 0; }
.industry-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
.industry-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.industry-card > div { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.industry-card h2 { font-size: 21px; }
.industry-card p { color: var(--body); margin: 0; }
.value-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 14px; }
.value-list li { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.value-list .icon { color: var(--blue); }
.why-grid { margin-top: 40px; }
.why-card { padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--line); }
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { color: var(--body); margin: 0; font-size: 15px; }
.cap-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cap-grid a { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--ink-line); color: #fff; font-weight: 600; }
.cap-grid a:hover { border-color: var(--sky); text-decoration: none; }
.cap-grid .icon { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; padding-block: 56px; }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.cta-inner p { color: #D3DCF5; margin: 10px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Detail pages ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: clamp(32px, 5vw, 56px); align-items: start; }
.detail-aside { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } .detail-aside { position: static; } }
.detail-image { width: 100%; border-radius: var(--r-lg); margin-bottom: 28px; aspect-ratio: 16/9; object-fit: cover; }
.product-hero-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--mist); margin-bottom: 28px; }
.product-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.benefit-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefit-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--body); }
.check-dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.benefit-list.light li { color: #D3DCF5; }
.benefit-list.light .check-dot { background: rgba(255,255,255,.12); color: var(--gold); }
.buy-box, .info-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 12px; }
.buy-price { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--navy); margin: 0; }
.buy-form { display: grid; gap: 8px; margin-top: 4px; }
.buy-form label { font-weight: 600; font-size: 14px; }
.info-card dl { margin: 0; display: grid; gap: 14px; }
.info-card dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.info-card dd { margin: 2px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.gallery img { border-radius: var(--r-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { color: var(--body); font-size: 16.5px; line-height: 1.75; max-width: 72ch; }
.prose-lg { font-size: 18px; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 4px solid var(--gold); color: var(--text); font-size: 1.05em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; }

/* ---------- Article ---------- */
.article-head { padding-block: 56px 32px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin: 8px 0 16px; }
.article-meta { color: var(--muted); font-size: 15px; }
.article-cover { margin-bottom: 40px; }
.article-cover img { width: 100%; border-radius: var(--r-xl); max-height: 520px; object-fit: cover; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin: 48px 0 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.share { display: flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; }
.share span { margin-right: 8px; }
.share a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; color: var(--navy); }
.share a:hover { background: var(--mist); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .blog-layout { grid-template-columns: 1fr; } }
.blog-side { display: flex; flex-direction: column; gap: 20px; }
.side-search label { font-weight: 700; display: block; margin-bottom: 8px; }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.side-title { font-size: 17px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; }
.side-list a[aria-current] { color: var(--blue); }
.side-list span { color: var(--muted); font-weight: 500; }
.results-note { color: var(--muted); margin-bottom: 24px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; margin-top: 32px; }
.faq { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .2s; }
.faq-icon::after { transform: rotate(90deg); }
.faq[open] .faq-icon::after { transform: rotate(0); }
.faq-answer { padding: 0 22px 20px; color: var(--body); }

/* ---------- Forms ---------- */
.form-card { padding: clamp(24px, 4vw, 36px); border-radius: 26px; background: var(--mist); display: flex; flex-direction: column; gap: 18px; }
.detail-aside .form-card { background: #fff; border: 1px solid var(--line); }
.form-title { font-size: 22px; }
.form-context { margin: -8px 0 0; color: var(--body); font-size: 15px; }
.form-section { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.form-section legend { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--navy); margin-bottom: 14px; padding: 0; }
.form-section + .form-section { padding-top: 22px; border-top: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field .label, .field-checks legend { font-size: 14px; font-weight: 600; color: #1F2846; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.req { color: var(--bad); }
.optional { color: var(--muted); font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="number"], input[type="search"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.55; }
select { padding-right: 36px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2356607A' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 80, 214, .15); }
input[readonly] { background: var(--mist); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 13.5px; font-weight: 600; margin: 0; }
.field-help { color: var(--muted); font-size: 13.5px; margin: 0; }
.field-check { gap: 4px; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.field-checks { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: 13.5px; color: var(--muted); margin: 0; flex: 1 1 240px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.filter-bar input[type="search"] { flex: 1 1 240px; min-height: 46px; }
.filter-bar select { flex: 0 1 220px; min-height: 46px; }
.filter-bar.compact { margin: 0; }
.search-big { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.search-big input { flex: 1 1 280px; min-height: 56px; font-size: 17px; }
.search-big select { flex: 0 1 180px; min-height: 56px; }
.search-results { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.search-results a { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text); }
.search-results a:hover { border-color: var(--blue); text-decoration: none; }
.search-results strong { color: var(--navy); }
.search-results span { color: var(--body); font-size: 15px; }
.tab-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); color: var(--text); font-weight: 600; font-size: 14.5px; background: #fff; }
.tab-pills a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.tab-pills a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab-pills a span { font-size: 12.5px; opacity: .75; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-weight: 600; }
.contact-list small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.map-card { margin-top: 8px; width: 100%; }
.map-link { display: flex; align-items: center; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.map-link:hover { color: #fff; text-decoration: none; background: var(--ink-2); }
.map-link .icon { color: var(--gold); }
.map-link small { display: block; color: var(--on-dark-2); }

/* ---------- Empty, pagination, errors ---------- */
.empty-state { text-align: center; padding: 56px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); background: #fff; }
.empty-state h2 { font-size: 21px; color: var(--navy); }
.empty-state p { max-width: 46ch; margin: 0; }
.empty-state .icon { color: var(--blue); }
.empty-mini { padding: 18px 0; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 32px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 600; color: var(--text); }
.pagination a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .disabled { opacity: .45; }
.pagination .page-count { border: 0; color: var(--muted); font-weight: 500; font-size: 14px; }
.error-page { padding-block: 100px; }
.error-code { font-family: var(--font-display); font-size: clamp(80px, 14vw, 140px); font-weight: 700; line-height: 1; color: var(--blue); margin: 0 0 8px; }
.error-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.error-page .body-lg { margin: 0 auto 28px; }
.error-detail { text-align: left; white-space: pre-wrap; background: var(--mist); padding: 16px; border-radius: var(--r-md); font-size: 13px; margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C5E8; padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 36px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand img { border-radius: 50%; }
.footer-brand p { font-size: 14.5px; max-width: 36ch; }
.footer-title { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a { color: #B9C5E8; }
.site-footer a:hover { color: #fff; }
.footer-contact li { overflow-wrap: anywhere; }
.social-links { display: flex !important; gap: 6px !important; }
.social-links a { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--ink-line); }
.social-links a:hover { border-color: var(--gold); color: var(--gold); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 36px; margin-top: 56px; border-top: 1px solid #1E2C5C; font-size: 13.5px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================================================================
   Auth layout
   ========================================================================= */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; }
.auth-aside { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-aside-copy { position: relative; z-index: 1; max-width: 420px; }
.auth-aside-title { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.auth-aside-copy p { color: var(--on-dark); }
.auth-mark { position: absolute; right: -120px; bottom: -60px; width: 520px; opacity: .28; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px; gap: 20px; }
.auth-mobile-brand { display: none; }
.auth-card { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 20px; }
.auth-card h1 { font-size: 32px; }
.auth-sub { color: var(--muted); margin: -8px 0 4px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.auth-alt { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 860px) { .auth-shell { grid-template-columns: 1fr; } .auth-aside { display: none; } .auth-mobile-brand { display: inline-flex; align-self: flex-start; } .auth-main { justify-content: flex-start; } }

/* =========================================================================
   Dashboard layout
   ========================================================================= */
.dash { background: #F6F8FD; }
.dash-shell { display: flex; min-height: 100vh; }
.dash-side { width: 272px; flex-shrink: 0; background: var(--ink); color: var(--on-dark); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.dash-side-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 18px; }
.dash-side .brand-name { font-size: 15px; }
.dash-side .brand-sub { font-size: 9.5px; letter-spacing: .2em; }
.dash-close { display: none; color: #fff; }
.dash-nav { padding: 6px 12px 20px; flex: 1; }
.dash-nav-group { font-size: 12px; font-weight: 700; color: var(--on-dark-2); margin: 18px 12px 8px; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--on-dark); font-weight: 600; font-size: 14.5px; }
.dash-nav a:hover { background: var(--ink-2); color: #fff; text-decoration: none; }
.dash-nav a[aria-current="page"] { background: var(--blue); color: #fff; }
.dash-nav a span:first-of-type { flex: 1; }
.nav-count { background: var(--gold); color: var(--ink); border-radius: var(--r-pill); font-size: 12px; font-weight: 800; padding: 1px 8px; }
.dash-side-foot { padding: 16px 24px 24px; border-top: 1px solid var(--ink-line); }
.dash-side-foot a { display: inline-flex; gap: 10px; align-items: center; color: var(--on-dark); font-weight: 600; font-size: 14px; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px clamp(16px, 3vw, 32px); background: rgba(246,248,253,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.dash-menu { display: none; }
.dash-title { font-size: clamp(19px, 2.2vw, 24px); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-top-actions { display: flex; align-items: center; gap: 6px; }
.bell .dot { position: absolute; top: 4px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 6px; border-radius: 12px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary:hover { background: #fff; }
.user-menu .avatar { width: 38px; height: 38px; font-size: 13px; }
.user-name { font-weight: 700; font-size: 14.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-card); padding: 8px; z-index: 40; }
.user-menu-panel a, .user-menu-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--text); font: inherit; font-weight: 600; font-size: 14.5px; background: none; border: 0; cursor: pointer; }
.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--mist); text-decoration: none; }
.user-menu-meta { padding: 8px 12px 12px; margin: 0 0 6px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.user-menu-meta span { font-weight: 700; color: var(--blue); }
.dash-notice { margin: 16px clamp(16px, 3vw, 32px) 0; }
.dash-content { padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.dash-overlay { position: fixed; inset: 0; background: rgba(10,18,48,.5); z-index: 60; }
@media (max-width: 1024px) {
  .dash-side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 70; transform: translateX(-100%); transition: transform .25s ease; }
  .dash-side.open { transform: none; }
  .dash-close, .dash-menu { display: inline-flex; }
  .dash-menu { border-color: var(--line-2); }
}
@media (max-width: 560px) { .user-name { display: none; } }

.welcome { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--navy); color: #fff; }
.welcome h2 { color: #fff; font-size: 24px; margin-bottom: 6px; }
.welcome p { color: #D3DCF5; margin: 0; }
.welcome .badge { vertical-align: middle; }
.welcome .btn-outline { border-color: #6F83C2; color: #fff; }
.welcome .btn-outline:hover { background: rgba(255,255,255,.08); }
.stat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--text); }
a.stat-card:hover { border-color: var(--blue); text-decoration: none; color: var(--text); }
.stat-label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.stat-card strong { font-family: var(--font-display); font-size: 28px; color: var(--navy); line-height: 1.2; }
.stat-card small { color: var(--muted); font-size: 13px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.dash-grid.detail { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.dash-grid.detail > .span-2 { grid-column: 1 / 2; }
@media (max-width: 1100px) { .dash-grid, .dash-grid.detail { grid-template-columns: 1fr; } .dash-grid .span-2, .dash-grid.detail > .span-2 { grid-column: auto; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 26px); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { font-size: 18px; }
.panel-head a { font-weight: 700; font-size: 14px; }
.form-panel { display: flex; flex-direction: column; gap: 16px; }
.form-panel .h-panel { margin: 0; }
.form-panel .h-panel:not(:first-of-type) { padding-top: 18px; border-top: 1px solid var(--line); }
.narrow-panel { max-width: 760px; }
.stack-panels { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.toolbar > p { margin: 0; }
.toolbar .tab-pills { margin: 0; }
.back-link { font-weight: 700; font-size: 14.5px; align-self: flex-start; }
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li > a, .row-list li > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #EEF2FA; color: var(--text); }
.row-list li:last-child > a, .row-list li:last-child > div { border-bottom: 0; }
.row-list li > a:hover { background: var(--mist); text-decoration: none; }
.row-list span strong { display: block; font-size: 15px; }
.row-list span small { color: var(--muted); font-size: 13px; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-list li { border-bottom: 1px solid #EEF2FA; }
.notif-list li:last-child { border-bottom: 0; }
.notif-list button { display: flex; width: 100%; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 14px 6px; font: inherit; color: var(--text); cursor: pointer; border-radius: 10px; }
.notif-list button:hover { background: var(--mist); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; background: transparent; flex-shrink: 0; }
.notif-list .unread .notif-dot { background: var(--blue); }
.notif-list .unread strong { color: var(--navy); }
.notif-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-body span { color: var(--body); font-size: 14.5px; white-space: pre-line; }
.notif-list time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px 20px; margin: 0 0 20px; }
.meta-grid dt { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.meta-grid dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.thread { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 22px; }
.msg { padding: 16px 18px; border-radius: var(--r-md); max-width: 90%; }
.msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.msg time { color: var(--muted); }
.msg p { margin: 0; color: var(--body); }
.msg-me, .msg-them { background: var(--mist); align-self: flex-start; }
.msg-staff { background: var(--blue-soft); align-self: flex-end; border: 1px solid #C8D7FB; }
.reply-form { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.reply-form > label:first-child { font-weight: 700; }
.reply-form .btn { justify-self: start; }
.status-panel h2 { font-size: 19px; margin-bottom: 12px; }
.status-pending { border-left: 5px solid var(--gold); }
.status-rejected, .status-suspended { border-left: 5px solid var(--bad); }
.progress-steps { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.progress-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.progress-steps li span { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--neutral-bg); font-size: 14px; }
.progress-steps .done span { background: var(--good); color: #fff; }
.progress-steps .current { color: var(--navy); }
.progress-steps .current span { background: var(--gold); color: var(--ink); }
.progress-steps small { color: var(--muted); font-weight: 500; }
.link-panel .h-panel, .link-panel h2 { margin-bottom: 12px; }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; }
.copy-row input { flex: 1 1 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14.5px; }
.copy-row.small-row { flex-wrap: nowrap; gap: 4px; }
.copy-row.small-row input { min-height: 38px; padding: 6px 10px; font-size: 12.5px; flex: 1 1 auto; min-width: 0; }
.copy-row.small-row .icon-btn { width: 38px; height: 38px; flex-shrink: 0; }
.quick-links { list-style: none; margin: 0; padding: 0; }
.quick-links li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #EEF2FA; }
.quick-links li > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.quick-links code { font-size: 12.5px; background: none; padding: 0; color: var(--muted); }
.mini-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.mini-products a { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text); }
.mini-products a:hover { border-color: var(--blue); text-decoration: none; }
.mini-products span { color: var(--muted); font-size: 14px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.resource-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.resource-thumb { height: 140px; display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--blue); }
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; flex: 1; }
.resource-body h3 { font-size: 17px; }
.resource-body p { font-size: 14.5px; color: var(--body); margin: 0 0 6px; }
.resource-body .btn { margin-top: auto; }
.cart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.cart-total { margin: 0; font-size: 17px; }
.qty-input { max-width: 96px; min-height: 42px !important; padding: 6px 10px !important; }
.price-input { max-width: 150px; min-height: 42px !important; padding: 6px 10px !important; }
.input-sm { min-height: 38px !important; padding: 6px 10px !important; max-width: 140px; font-size: 14px !important; }
.inline-add { display: inline-flex; gap: 6px; align-items: center; }
.inline-status select { min-height: 38px; padding: 6px 30px 6px 10px; font-size: 14px; }
.collapsible summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.collapsible[open] summary { margin-bottom: 16px; }
.danger-panel { border-color: #F5C2BD; }
.danger-zone { margin-top: 12px; }
.sticky-save { position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, #F6F8FD 30%); display: flex; justify-content: flex-end; }
.settings-form { display: flex; flex-direction: column; gap: 22px; }
.crud-form { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.crud-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.crud-side { position: sticky; top: 88px; }
.crud-side .panel { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1100px) { .crud-form { grid-template-columns: 1fr; } .crud-side { position: static; } }
.upload-field { gap: 10px; }
.upload-current { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px; border-radius: 12px; background: var(--mist); }
.upload-current img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.upload-inputs { display: grid; gap: 8px; }
.upload-inputs label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
input[type="file"] { font: inherit; font-size: 14.5px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: #fff; width: 100%; }
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.media-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.media-thumb { height: 150px; background: var(--mist); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--blue); font-weight: 700; font-size: 13px; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-info { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.media-name { font-weight: 600; font-size: 14px; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-info p { margin: 0; }

/* Charts */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 220px; padding-top: 12px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; min-width: 0; }
.bar-col > .bar, .bar-pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bar { display: block; width: 100%; max-width: 30px; min-height: 2px; background: var(--blue); border-radius: 6px 6px 2px 2px; position: relative; align-self: flex-end; }
.bar-col > .bar { flex: none; }
.bar-b { background: var(--gold); }
.bar-val { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; color: var(--muted); }
.bar-label { font-size: 11px; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) { .bar-col:nth-child(odd) .bar-label { visibility: hidden; } }
.legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.key { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-a { background: var(--blue); }
.key-b { background: var(--gold); margin-left: 8px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rank-list li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; font-size: 14.5px; }
.rank-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.rank-bar { height: 10px; background: var(--mist); border-radius: 6px; overflow: hidden; }
.rank-bar span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.rank-n { font-weight: 700; color: var(--navy); }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.panel .table-wrap { border-radius: var(--r-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); padding: 12px 16px; background: #F9FAFE; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 14px 16px; border-bottom: 1px solid #EEF2FA; vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #FBFCFF; }
.data-table tfoot th, .data-table tfoot td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: right; }
.data-table tfoot td { text-align: left; }
.data-table .actions { white-space: nowrap; text-align: right; }
.row-new td:first-child { box-shadow: inset 4px 0 0 var(--gold); }
@media (max-width: 760px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .data-table td { padding: 6px 0; border: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
  .data-table td[data-label]::before { content: attr(data-label); font-size: 12.5px; font-weight: 700; color: var(--muted); }
  .data-table td:not([data-label]) { display: flex; justify-content: flex-start; }
  .data-table .actions { text-align: left; }
  .data-table tfoot { display: block; }
  .data-table tfoot tr { display: flex; justify-content: space-between; }
}

/* Rich text editor */
.rte { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.rte:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,80,214,.15); }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: #F9FAFE; }
.rte-toolbar button { min-width: 38px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; }
.rte-toolbar button:hover { background: var(--blue-soft); }
.rte-toolbar .sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rte-area { min-height: 260px; max-height: 640px; overflow-y: auto; padding: 16px 18px; outline: none; font-size: 16px; line-height: 1.7; color: var(--body); }
.rte-area h2 { font-size: 22px; margin: 1em 0 .4em; }
.rte-area h3 { font-size: 18px; margin: 1em 0 .4em; }
.rte-area img { max-width: 100%; border-radius: 8px; }
.rte-area blockquote { border-left: 4px solid var(--gold); margin: 1em 0; padding-left: 16px; }
.rte-source { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; font-size: 13.5px !important; min-height: 260px; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

@media print {
  .site-header, .utility-bar, .site-footer, .dash-side, .dash-top, .cta-band, .flash-stack { display: none !important; }
  body { color: #000; }
}
