/* =====================================================================
   SAQR design system — by SANAD Technology
   Deep teal night · Qatar maroon · burnished gold
   ===================================================================== */
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/Cormorant-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/Cormorant-Italic-Variable.ttf") format("truetype"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --ink-0: #040c0e; --ink-1: #071417; --ink-2: #0b1d21; --ink-3: #10282d; --ink-4: #16343a; --ink-5: #1f454c;
  --line: rgba(212, 168, 90, .14); --line-2: rgba(238, 232, 218, .08); --line-3: rgba(238, 232, 218, .14);
  --ivory: #efe9db; --ivory-2: #c9c4b6; --muted: #8f9b98; --muted-2: #66726f;
  --gold: #d4a85a; --gold-hi: #f3dcaa; --gold-lo: #9b7134; --gold-glow: rgba(212, 168, 90, .35);
  --maroon: #8a1538; --maroon-hi: #b4224f; --teal: #58c4b2; --teal-lo: rgba(88, 196, 178, .14);
  --ok: #58c4b2; --warn: #e2b04a; --bad: #e0577a; --info: #7fb3e6;
  --grad-gold: linear-gradient(135deg, #f6e3b4 0%, #d9b06a 38%, #b98a43 62%, #f0d49b 100%);
  --grad-panel: linear-gradient(180deg, rgba(22, 52, 58, .55), rgba(11, 29, 33, .7));
  --r-sm: 8px; --r: 14px; --r-lg: 22px; --r-xl: 30px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2);
  --shadow-gold: 0 18px 50px -18px rgba(212, 168, 90, .45);
  --ease: cubic-bezier(.2, .8, .2, 1); --ease-out: cubic-bezier(.16, 1, .3, 1);
  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 264px; --topbar: 68px; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--ink-1); color: var(--ivory); font-family: var(--f-ui);
  font-size: 15px; line-height: 1.6; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(1200px 700px at 85% -10%, rgba(31, 69, 76, .55), transparent 60%),
                    radial-gradient(900px 600px at -10% 110%, rgba(138, 21, 56, .12), transparent 60%);
  background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; transition: color .2s; }
a:hover { color: #fff3d6; }
::selection { background: rgba(212, 168, 90, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 500; line-height: 1.15; letter-spacing: .005em; }
h1 { font-family: var(--f-serif); font-size: clamp(34px, 4.4vw, 60px); font-weight: 500; }
h2 { font-family: var(--f-serif); font-size: clamp(28px, 3vw, 40px); }
h3 { font-family: var(--f-ui); font-size: 17px; font-weight: 600; letter-spacing: -.005em; }
h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); } .ivory { color: var(--ivory); } .gold { color: var(--gold); }
.serif { font-family: var(--f-serif); } .display { font-family: var(--f-display); letter-spacing: .12em; }
.eyebrow { font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.gold-text { background: var(--grad-gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; align-items: center; gap: 12px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.stack > * + * { margin-top: 14px; } .stack-lg > * + * { margin-top: 28px; }
.mt0 { margin-top: 0 } .mt1 { margin-top: 8px } .mt2 { margin-top: 16px } .mt3 { margin-top: 28px } .mt4 { margin-top: 44px }
.mb0 { margin-bottom: 0 } .mb2 { margin-bottom: 16px } .mb3 { margin-bottom: 28px }
.center { text-align: center; } .right { text-align: right; } .grow { flex: 1; } .nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- buttons */
.btn {
  --bg: rgba(238, 232, 218, .06); --fg: var(--ivory); --bd: var(--line-3);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg); font: 600 14px/1 var(--f-ui);
  letter-spacing: .01em; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { color: #fff; border-color: rgba(212, 168, 90, .45); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-gold { --bg: var(--grad-gold); --fg: #241705; --bd: transparent; box-shadow: var(--shadow-gold); background-size: 160% 100%; }
.btn-gold:hover { color: #1a1003; background-position: 100% 0; box-shadow: 0 22px 60px -16px rgba(212, 168, 90, .65); }
.btn-gold::after, .btn-maroon::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn-gold:hover::after, .btn-maroon:hover::after { transform: translateX(120%); }
.btn-maroon { --bg: linear-gradient(135deg, #a51c47, #7a1131); --fg: #fff; --bd: rgba(255, 255, 255, .08); box-shadow: 0 16px 40px -18px rgba(180, 34, 79, .8); }
.btn-ghost { --bg: transparent; --bd: transparent; color: var(--ivory-2); }
.btn-ghost:hover { background: rgba(238, 232, 218, .06); border-color: transparent; }
.btn-line { --bg: transparent; --bd: rgba(212, 168, 90, .45); --fg: var(--gold-hi); }
.btn-danger { --fg: #ffb3c6; --bd: rgba(224, 87, 122, .35); --bg: rgba(224, 87, 122, .08); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; } .btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.btn-icon { width: 38px; padding: 0; } .btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------- forms */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ivory-2); letter-spacing: .02em; }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line-3); background: rgba(4, 12, 14, .55);
  color: var(--ivory); font: 400 15px var(--f-ui); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none;
}
.textarea { height: auto; min-height: 120px; padding: 13px 15px; line-height: 1.55; resize: vertical; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23d4a85a' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.select option { background: var(--ink-2); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(238, 232, 218, .22); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 168, 90, .14); background: rgba(4, 12, 14, .8); }
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ivory-2); user-select: none; }
.check input { appearance: none; width: 19px; height: 19px; border-radius: 6px; border: 1px solid var(--line-3); background: rgba(4, 12, 14, .5); display: grid; place-content: center; transition: .2s; flex: none; margin: 0; }
.check input:checked { background: var(--grad-gold); border-color: transparent; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #241705; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch input { width: 38px; height: 22px; border-radius: 99px; position: relative; }
.switch input::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ivory-2); transition: .25s var(--ease); border: 0; transform: none; }
.switch input:checked::after { left: 18px; background: #241705; width: 16px; height: 16px; border: 0; transform: none; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.alert { padding: 13px 16px; border-radius: 12px; border: 1px solid; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert-error { border-color: rgba(224, 87, 122, .35); background: rgba(224, 87, 122, .08); color: #ffc2d2; }
.alert-info { border-color: rgba(127, 179, 230, .3); background: rgba(127, 179, 230, .07); color: #cfe3f6; }
.alert-gold { border-color: rgba(212, 168, 90, .35); background: rgba(212, 168, 90, .07); color: var(--gold-hi); }

/* chips input */
.chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-3); background: rgba(4, 12, 14, .55); position: relative; }
.chips:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 168, 90, .14); }
.chips input.chips-entry { flex: 1; min-width: 140px; border: 0; background: transparent; color: var(--ivory); font: 14px var(--f-ui); outline: none; padding: 4px 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px; border-radius: 99px; background: rgba(212, 168, 90, .12); border: 1px solid rgba(212, 168, 90, .3); color: var(--gold-hi); font-size: 13px; font-weight: 500; animation: pop .35s var(--ease-out); }
.chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .25); color: var(--gold-hi); cursor: pointer; font-size: 12px; line-height: 1; }
.chip button:hover { background: var(--maroon); color: #fff; }
.chips-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow); }
.chips-suggest button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: none; color: var(--ivory); border-radius: 8px; cursor: pointer; font: 14px var(--f-ui); }
.chips-suggest button:hover, .chips-suggest button.active { background: rgba(212, 168, 90, .12); color: var(--gold-hi); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------- tags, badges, avatars */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 500; color: var(--ivory-2); background: rgba(238, 232, 218, .06); border: 1px solid var(--line-2); white-space: nowrap; }
.tag-gold { color: var(--gold-hi); background: rgba(212, 168, 90, .1); border-color: rgba(212, 168, 90, .28); }
.tag-teal { color: #9fe6d9; background: var(--teal-lo); border-color: rgba(88, 196, 178, .3); }
.tag-maroon { color: #ffb7cb; background: rgba(180, 34, 79, .14); border-color: rgba(180, 34, 79, .35); }
.tag-muted { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--maroon-hi); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-open { color: var(--ok); } .status-draft { color: var(--muted); } .status-paused { color: var(--warn); } .status-closed { color: var(--bad); }
.avatar { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--f-serif); font-size: calc(var(--s) * .42); font-weight: 600; color: #f6e7c4; background: radial-gradient(circle at 30% 25%, #8a6a35, #4a3818); border: 1px solid rgba(212, 168, 90, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.avatar.maroon { background: radial-gradient(circle at 30% 25%, #b4224f, #5c0d25); }
.avatar.lg { --s: 64px; } .avatar.xl { --s: 88px; } .avatar.sm { --s: 30px; }
.logo-box { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; background: linear-gradient(145deg, var(--ink-4), var(--ink-2)); border: 1px solid var(--line); font-family: var(--f-display); color: var(--gold); font-size: 17px; overflow: hidden; }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- surfaces */
.card { position: relative; border-radius: var(--r-lg); background: var(--grad-panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 24px; backdrop-filter: blur(14px); }
.card.gold-edge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(243, 220, 170, .55), rgba(212, 168, 90, .05) 40%, rgba(212, 168, 90, .0) 60%, rgba(212, 168, 90, .3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card-flat { box-shadow: none; background: rgba(11, 29, 33, .55); }
.card-hover { transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(212, 168, 90, .35); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(212, 168, 90, .18); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; }
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; border: 0; margin: 28px 0; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 168, 90, .08); border: 1px solid var(--line); color: var(--gold); }
.empty h3 { color: var(--ivory); font-family: var(--f-serif); font-size: 24px; font-weight: 500; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line-2); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; background: rgba(4, 12, 14, .4); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .2s; } .table tbody tr:hover { background: rgba(212, 168, 90, .04); }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 24px; overflow-x: auto; }
.tabs a { position: relative; padding: 12px 16px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tabs a:hover { color: var(--ivory); }
.tabs a.active { color: var(--gold-hi); }
.tabs a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--grad-gold); border-radius: 2px; box-shadow: 0 0 14px var(--gold-glow); }

/* meters & rings */
.meter { display: grid; gap: 7px; }
.meter-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ivory-2); }
.meter-bar { height: 7px; border-radius: 99px; background: rgba(238, 232, 218, .07); overflow: hidden; }
.meter-bar > i { display: block; height: 100%; width: var(--v, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 1.4s var(--ease-out); }
.meter-bar.warn > i { background: linear-gradient(90deg, var(--gold), var(--maroon-hi)); }
.ring { --s: 64px; --v: 0; position: relative; width: var(--s); height: var(--s); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: rgba(238, 232, 218, .08); }
.ring .val { stroke: url(#ringGold); stroke-linecap: round; stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.6s var(--ease-out); }
.ring.hi .val { stroke: var(--teal); } .ring.mid .val { stroke: var(--gold); } .ring.lo .val { stroke: var(--maroon-hi); }
.ring > b, .list-row .ring > b { position: absolute; overflow: visible; inset: 0; display: grid; place-items: center; font-family: var(--f-serif); font-size: calc(var(--s) * .34); font-weight: 600; color: var(--ivory); }
.ring.lg { --s: 112px; } .ring.sm { --s: 44px; } .ring.sm circle { stroke-width: 8; }
.score-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-pill.hi { color: #9fe6d9; background: var(--teal-lo); } .score-pill.mid { color: var(--gold-hi); background: rgba(212, 168, 90, .12); }
.score-pill.lo { color: #ffb7cb; background: rgba(180, 34, 79, .16); } .score-pill.na { color: var(--muted); background: rgba(238, 232, 218, .05); }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 120px 1fr 38px; gap: 12px; align-items: center; font-size: 13px; color: var(--ivory-2); }
.bar-row .meter-bar { height: 6px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ivory); }

/* ------------------------------------------------------------- public nav & footer */
.nav { position: sticky; top: 0; z-index: 50; height: 76px; display: flex; align-items: center; transition: background .3s, border-color .3s, height .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(4, 12, 14, .78); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: var(--line-2); height: 66px; }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ivory); }
.brand img { width: 38px; height: auto; filter: drop-shadow(0 4px 14px rgba(212, 168, 90, .35)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand-name { display: grid; line-height: 1; }
.brand-name strong { font-family: var(--f-display); font-weight: 600; font-size: 21px; letter-spacing: .26em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name span { font-size: 8.5px; letter-spacing: .32em; color: var(--ivory-2); margin-top: 5px; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.brand-name span img { width: 11px; filter: none; }
.nav-links { display: flex; gap: 4px; margin-left: 10px; }
.nav-links a { padding: 9px 14px; border-radius: 99px; color: var(--ivory-2); font-weight: 500; font-size: 14.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--ivory); background: rgba(238, 232, 218, .06); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; margin-left: auto; }
.footer { margin-top: 120px; border-top: 1px solid var(--line-2); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(4, 12, 14, .7)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { margin-bottom: 14px; }
.footer a { display: block; color: var(--ivory-2); padding: 4px 0; font-size: 14px; } .footer a:hover { color: var(--gold-hi); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.maroon-band { height: 6px; background: linear-gradient(90deg, var(--maroon), var(--maroon-hi), var(--maroon)); }

/* ------------------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100vh - 76px); display: grid; align-items: center; overflow: hidden; padding: 60px 0 100px; margin-top: -1px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: .98; letter-spacing: -.01em; margin: 22px 0 24px; font-weight: 500; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero .lead { font-size: 19px; color: var(--ivory-2); max-width: 560px; line-height: 1.6; }
.hero-emblem { position: relative; justify-self: center; width: min(470px, 90%); aspect-ratio: 1 / 1.05; }
.hero-emblem .halo { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(212, 168, 90, .32), rgba(138, 21, 56, .12) 45%, transparent 68%); filter: blur(10px); animation: breathe 6s ease-in-out infinite; }
.hero-emblem .orbit { position: absolute; inset: -6%; border-radius: 50%; border: 1px solid rgba(212, 168, 90, .18); animation: spin 60s linear infinite; }
.hero-emblem .orbit::before, .hero-emblem .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 16px var(--gold); top: -4px; left: 50%; }
.hero-emblem .orbit::after { top: auto; bottom: 18%; left: 2%; width: 5px; height: 5px; background: var(--maroon-hi); box-shadow: 0 0 14px var(--maroon-hi); }
.hero-emblem .orbit.o2 { inset: 6%; border-style: dashed; border-color: rgba(88, 196, 178, .14); animation-duration: 90s; animation-direction: reverse; }
.hero-emblem .orbit.o2::before { background: var(--teal); box-shadow: 0 0 14px var(--teal); }
.hero-emblem .orbit.o2::after { display: none; }
.emblem { position: relative; width: 100%; height: 100%; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.emblem img { width: 78%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px rgba(212, 168, 90, .25)); }
.emblem::after { content: ""; position: absolute; inset: 0; -webkit-mask: url("../brand/saqr-shield.webp") center / 78% no-repeat; mask: url("../brand/saqr-shield.webp") center / 78% no-repeat; background: linear-gradient(115deg, transparent 38%, rgba(255, 246, 220, .85) 50%, transparent 62%) -200% 0 / 250% 100% no-repeat; animation: sheen 5.5s var(--ease) 1.2s infinite; mix-blend-mode: screen; }
@keyframes sheen { 0% { background-position: -200% 0; } 45%, 100% { background-position: 200% 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes breathe { 0%, 100% { opacity: .75; transform: scale(1) } 50% { opacity: 1; transform: scale(1.05) } }
.hero-search { margin-top: 36px; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(4, 12, 14, .7); border: 1px solid rgba(212, 168, 90, .3); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9), 0 0 0 6px rgba(212, 168, 90, .04); max-width: 620px; backdrop-filter: blur(10px); }
.hero-search .input { border: 0; background: transparent; height: 48px; font-size: 16px; }
.hero-search .input:focus { box-shadow: none; }
.hero-search .sep { width: 1px; background: var(--line-3); margin: 8px 0; }
.hero-search .select { border: 0; background-color: transparent; width: 190px; height: 48px; }
.hero-stats { display: flex; gap: 40px; margin-top: 40px; }
.hero-stats div { display: grid; }
.hero-stats b { font-family: var(--f-serif); font-size: 38px; font-weight: 600; line-height: 1; color: var(--ivory); }
.hero-stats span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 24px; height: 40px; border-radius: 99px; border: 1px solid var(--line-3); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 3px; background: var(--gold); transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0) } 40% { opacity: 1 } 100% { opacity: 0; transform: translate(-50%, 14px) } }

/* sections */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--ivory-2); font-size: 18px; }
.marquee { overflow: hidden; border-block: 1px solid var(--line-2); padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--f-display); letter-spacing: .22em; color: var(--muted); font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "◆"; color: var(--gold); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }
.feature { padding: 30px; }
.feature .f-num { font-family: var(--f-serif); font-size: 54px; line-height: 1; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { font-family: var(--f-display); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 10px; font-weight: 600; }
.feature p { color: var(--ivory-2); margin: 0; }
.f-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(212, 168, 90, .18), rgba(212, 168, 90, .03)); border: 1px solid rgba(212, 168, 90, .25); color: var(--gold-hi); }
.f-icon svg { width: 26px; height: 26px; }
.cat-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: var(--ivory); }
.cat-card .f-icon { width: 46px; height: 46px; border-radius: 14px; }
.cat-card b { display: block; font-weight: 600; } .cat-card span { font-size: 13px; color: var(--muted); }
.cat-card .arrow { margin-left: auto; color: var(--gold); opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); }
.cat-card:hover .arrow { opacity: 1; transform: none; }
.steps { counter-reset: s; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--f-serif); font-size: 40px; line-height: 1; color: var(--gold); }
.step h3 { font-family: var(--f-serif); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.step p { color: var(--ivory-2); margin: 0; }
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 72px 56px; background: radial-gradient(600px 300px at 90% 10%, rgba(212, 168, 90, .2), transparent), linear-gradient(135deg, #5c0d25, #8a1538 45%, #3a0a19); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 50px 100px -40px rgba(138, 21, 56, .6); }
.cta-band h2 { font-size: clamp(32px, 4vw, 54px); max-width: 640px; }
.cta-band img.bg-emblem { position: absolute; right: -40px; bottom: -80px; width: 380px; opacity: .18; transform: rotate(-8deg); }

/* job cards */
.job-card { display: grid; gap: 14px; padding: 22px; color: var(--ivory); }
.job-card .top { display: flex; gap: 14px; align-items: flex-start; }
.job-card h3 { margin: 0 0 3px; font-size: 17px; }
.job-card h3 a { color: var(--ivory); } .job-card h3 a:hover { color: var(--gold-hi); }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 13.5px; }
.job-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.job-card .meta svg { width: 14px; height: 14px; opacity: .8; }
.job-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.save-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-3); background: transparent; color: var(--ivory-2); cursor: pointer; transition: .25s; }
.save-btn:hover { color: var(--gold-hi); border-color: var(--gold); }
.save-btn.saved { color: #241705; background: var(--grad-gold); border-color: transparent; }
.save-btn svg { width: 16px; height: 16px; }
.featured-ribbon { position: absolute; top: 16px; right: -34px; transform: rotate(40deg); background: var(--grad-gold); color: #241705; font-size: 10px; font-weight: 800; letter-spacing: .16em; padding: 4px 40px; }
.card { overflow: hidden; }
.jobs-layout { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 90px; }
.filters .field + .field { margin-top: 16px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-2); color: var(--ivory-2); padding: 0 12px; }
.pager a:hover { border-color: var(--gold); color: var(--gold-hi); }
.pager .current { background: var(--grad-gold); color: #241705; border-color: transparent; font-weight: 700; }
.page-head { padding: 54px 0 34px; }
.page-head h1 { font-size: clamp(36px, 4vw, 56px); margin: 14px 0 10px; }
.page-head p { color: var(--ivory-2); font-size: 17px; max-width: 640px; }

/* job detail */
.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.detail-hero { padding: 34px; }
.detail-hero h1 { font-size: clamp(32px, 3.6vw, 50px); margin: 12px 0; }
.prose { color: var(--ivory-2); font-size: 15.5px; }
.prose h3 { color: var(--ivory); font-family: var(--f-serif); font-size: 26px; font-weight: 500; margin: 30px 0 12px; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px var(--gold-glow); }
.sticky { position: sticky; top: 90px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ivory); text-align: right; }

/* ------------------------------------------------------------- app shell */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; background: linear-gradient(180deg, rgba(4, 12, 14, .92), rgba(7, 20, 23, .92)); border-right: 1px solid var(--line-2); overflow-y: auto; }
.sidebar .brand { padding: 4px 10px 26px; }
.side-label { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted-2); padding: 18px 12px 8px; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ivory-2); font-weight: 500; font-size: 14.5px; position: relative; transition: background .2s, color .2s; }
.side-link svg { width: 19px; height: 19px; opacity: .85; flex: none; }
.side-link:hover { color: var(--ivory); background: rgba(238, 232, 218, .05); }
.side-link.active { color: var(--gold-hi); background: linear-gradient(90deg, rgba(212, 168, 90, .14), rgba(212, 168, 90, .02)); }
.side-link.active::before { content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad-gold); box-shadow: 0 0 12px var(--gold-glow); }
.side-link .badge { margin-left: auto; }
.side-foot { margin-top: auto; padding-top: 18px; }
.plan-card { padding: 16px; border-radius: 16px; background: linear-gradient(145deg, rgba(212, 168, 90, .14), rgba(138, 21, 56, .12)); border: 1px solid rgba(212, 168, 90, .22); }
.plan-card b { font-family: var(--f-display); letter-spacing: .14em; font-size: 13px; color: var(--gold-hi); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 34px; border-bottom: 1px solid var(--line-2); background: rgba(7, 20, 23, .7); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 40; }
.topbar .crumbs { color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.topbar .crumbs b { color: var(--ivory); font-weight: 600; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ivory-2); border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.icon-btn:hover { color: var(--gold-hi); border-color: var(--line); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .badge { position: absolute; top: -6px; right: -6px; }
.user-menu { position: relative; }
.user-menu > button { display: flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--ivory); cursor: pointer; font: 500 14px var(--f-ui); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 8px; border-radius: 16px; background: var(--ink-3); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: .22s var(--ease); z-index: 60; }
.menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu a, .menu button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ivory-2); font: 14px var(--f-ui); border: 0; background: none; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(212, 168, 90, .1); color: var(--gold-hi); }
.content { padding: 34px; flex: 1; }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.content-head h1 { font-size: clamp(30px, 3vw, 42px); margin: 8px 0 0; }
.content-head p { margin: 6px 0 0; color: var(--ivory-2); }
.kpi { padding: 22px; }
.kpi .k-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi .k-val { font-family: var(--f-serif); font-size: 46px; line-height: 1; margin-top: 12px; font-weight: 600; font-variant-numeric: lining-nums; }
.kpi .k-sub { font-size: 13px; color: var(--teal); margin-top: 8px; }
.kpi .k-icon { position: absolute; right: 18px; top: 18px; color: var(--gold); opacity: .55; }
.kpi .k-icon svg { width: 22px; height: 22px; }
.welcome { display: flex; gap: 24px; align-items: center; padding: 28px 30px; background: radial-gradient(500px 220px at 100% 0, rgba(212, 168, 90, .18), transparent), linear-gradient(135deg, rgba(138, 21, 56, .35), rgba(11, 29, 33, .7)); }
.welcome img { width: 74px; }
.list-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { min-width: 0; }
.list-row b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row span { font-size: 13px; color: var(--muted); }
.funnel { display: grid; gap: 12px; }
.funnel-row { display: grid; grid-template-columns: 150px 1fr 44px; gap: 14px; align-items: center; font-size: 13.5px; color: var(--ivory-2); }
.funnel-row .f-bar { height: 30px; border-radius: 10px; background: rgba(238, 232, 218, .05); overflow: hidden; }
.funnel-row .f-bar i { display: block; height: 100%; width: var(--v); border-radius: 10px; background: linear-gradient(90deg, rgba(88, 196, 178, .55), rgba(212, 168, 90, .75)); transition: width 1.4s var(--ease-out); }
.funnel-row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ivory); }
.chart { display: flex; align-items: flex-end; gap: 8px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: grid; justify-items: center; gap: 6px; align-content: end; height: 100%; }
.chart .col i { width: 100%; max-width: 34px; height: var(--h); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--gold), rgba(212, 168, 90, .2)); transition: height 1.3s var(--ease-out); }
.chart .col span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }

/* kanban */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: start; }
.col-k { border-radius: 18px; background: rgba(4, 12, 14, .45); border: 1px solid var(--line-2); min-height: 380px; display: flex; flex-direction: column; transition: border-color .2s, background .2s; }
.col-k.drag-over { border-color: var(--gold); background: rgba(212, 168, 90, .06); box-shadow: inset 0 0 0 1px rgba(212, 168, 90, .25); }
.col-k header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.col-k header .count { min-width: 24px; height: 22px; border-radius: 99px; display: grid; place-items: center; background: rgba(238, 232, 218, .07); color: var(--ivory-2); font-size: 11px; letter-spacing: 0; }
.col-k .cards { display: grid; gap: 10px; padding: 4px 10px 14px; flex: 1; align-content: start; }
.kcard { padding: 14px; border-radius: 14px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2); cursor: grab; transition: transform .2s var(--ease), box-shadow .25s, border-color .2s, opacity .2s; display: grid; gap: 10px; }
.kcard:hover { border-color: rgba(212, 168, 90, .35); transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9); }
.kcard.dragging { opacity: .45; transform: rotate(2deg) scale(.98); }
.kcard.flash { animation: flashCard 1.2s var(--ease); }
@keyframes flashCard { 0% { box-shadow: 0 0 0 0 rgba(212, 168, 90, .7); } 100% { box-shadow: 0 0 0 16px rgba(212, 168, 90, 0); } }
.kcard .who { display: flex; gap: 10px; align-items: center; }
.kcard .who b { display: block; font-size: 14px; } .kcard .who span { font-size: 12px; color: var(--muted); }
.kcard .tags .tag { height: 22px; font-size: 11.5px; padding: 0 8px; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(2, 6, 7, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100%); background: linear-gradient(180deg, var(--ink-2), var(--ink-1)); border-left: 1px solid var(--line); z-index: 90; transform: translateX(104%); transition: transform .5s var(--ease-out); overflow-y: auto; box-shadow: -40px 0 90px -30px rgba(0, 0, 0, .9); }
.drawer.open { transform: none; } .drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; padding: 22px 26px; display: flex; gap: 16px; align-items: center; background: rgba(11, 29, 33, .92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.drawer-head h2 { font-size: 30px; margin: 0; }
.drawer-body { padding: 24px 26px 60px; display: grid; gap: 22px; }
.drawer-section h4 { margin-bottom: 12px; }
.stage-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-pills button { height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-3); background: transparent; color: var(--ivory-2); font: 500 13px var(--f-ui); cursor: pointer; transition: .2s; }
.stage-pills button:hover { border-color: var(--gold); color: var(--gold-hi); }
.stage-pills button.on { background: var(--grad-gold); color: #241705; border-color: transparent; font-weight: 700; }
.stage-pills button.reject.on { background: var(--maroon); color: #fff; }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 18px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.tl::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line-3); }
.tl:last-child::before { display: none; }
.tl i { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--gold); background: var(--ink-2); margin-top: 3px; }
.tl.note i { border-color: var(--teal); } .tl.ai i { border-color: var(--maroon-hi); }
.tl p { margin: 2px 0 0; font-size: 14px; color: var(--ivory-2); white-space: pre-line; }
.tl small { color: var(--muted); }
.hours { position: relative; height: 54px; }
.hours .lane { position: absolute; left: 0; right: 0; height: 9px; border-radius: 9px; background: rgba(238, 232, 218, .06); }
.hours .lane i { position: absolute; top: 0; bottom: 0; border-radius: 9px; }
.hours .l1 { top: 4px; } .hours .l2 { top: 20px; }
.hours .l1 i { background: var(--maroon-hi); } .hours .l2 i { background: var(--teal); }
.hours .ticks { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); }

/* toasts */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: grid; gap: 10px; width: min(420px, calc(100% - 48px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px; border-radius: 16px; background: rgba(16, 40, 45, .96); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); animation: toastIn .55s var(--ease-out); font-size: 14px; }
.toast.out { animation: toastOut .4s var(--ease) forwards; }
.toast .t-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--teal-lo); color: var(--teal); }
.toast.error .t-ico { background: rgba(224, 87, 122, .15); color: var(--bad); }
.toast.warning .t-ico, .toast.info .t-ico { background: rgba(212, 168, 90, .14); color: var(--gold); }
.toast .t-ico svg { width: 15px; height: 15px; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* dialog */
dialog { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0; background: var(--ink-2); color: var(--ivory); width: min(560px, calc(100% - 32px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(2, 6, 7, .7); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .4s var(--ease-out); }
.dialog-body { padding: 28px; }

/* dropzone */
.dropzone { display: grid; place-items: center; text-align: center; gap: 10px; padding: 30px; border-radius: 18px; border: 1.5px dashed rgba(212, 168, 90, .4); background: rgba(212, 168, 90, .04); cursor: pointer; transition: .25s; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: rgba(212, 168, 90, .09); }
.dropzone svg { width: 34px; height: 34px; color: var(--gold); }
.dropzone input { display: none; }

/* auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; display: grid; place-items: center; padding: 60px; background: radial-gradient(700px 500px at 30% 20%, rgba(31, 69, 76, .9), transparent), linear-gradient(160deg, #0b1d21, #040c0e 70%); border-right: 1px solid var(--line-2); }
.auth-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-art .quote { position: relative; z-index: 1; max-width: 460px; text-align: center; }
.auth-art .quote img { width: 170px; margin: 0 auto 30px; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); animation: float 7s ease-in-out infinite; }
.auth-art .quote p { font-family: var(--f-serif); font-size: 30px; line-height: 1.3; font-style: italic; color: var(--ivory); }
.auth-form { display: grid; place-items: center; padding: 50px 30px; }
.auth-form .box { width: min(440px, 100%); }
.auth-form h1 { font-size: 46px; margin: 18px 0 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 99px; background: rgba(4, 12, 14, .6); border: 1px solid var(--line-2); margin-bottom: 24px; }
.seg a { text-align: center; padding: 10px; border-radius: 99px; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg a.active { background: var(--grad-gold); color: #241705; }

/* pricing */
.price-card { padding: 34px 30px; display: flex; flex-direction: column; gap: 18px; }
.price-card.featured { border-color: rgba(212, 168, 90, .5); box-shadow: 0 40px 100px -40px rgba(212, 168, 90, .45), var(--shadow); transform: translateY(-10px); }
.price-card .p-name { font-family: var(--f-display); letter-spacing: .2em; font-size: 15px; color: var(--gold-hi); font-weight: 600; }
.price-card .p-price { font-family: var(--f-serif); font-size: 54px; line-height: 1; font-weight: 600; }
.price-card .p-price small { font-family: var(--f-ui); font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; flex: 1; }
.price-card li { display: flex; gap: 10px; color: var(--ivory-2); font-size: 14.5px; }
.price-card li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 2px; }
.popular { position: absolute; top: 18px; right: 18px; }

/* reveal animations */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
.fade-in { animation: fadeUp .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* shortlist (client paper) */
.paper { background: #f7f4ec; color: #22272a; min-height: 100vh; background-image: none; }
.paper-sheet { width: min(980px, 100% - 32px); margin: 0 auto; padding: 48px 0 80px; }
.paper header.p-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 2px solid #8a1538; }
.paper .p-brand { display: flex; gap: 14px; align-items: center; }
.paper .p-brand img { width: 46px; }
.paper .p-brand b { font-family: var(--f-serif); font-size: 26px; font-weight: 600; color: #1c2124; display: block; line-height: 1.1; }
.paper .p-brand span { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #8a7a5a; }
.paper h1 { font-family: var(--f-serif); color: #1c2124; font-size: 48px; margin: 34px 0 6px; }
.paper .p-meta { color: #555d60; font-size: 14px; }
.paper .p-note { margin: 26px 0; padding: 16px 20px; border-left: 3px solid #b8955a; background: #fffdf8; border-radius: 8px; color: #444b4e; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.paper .p-card { background: #fff; border-radius: 18px; padding: 26px; margin-top: 18px; border: 1px solid #e8e2d4; box-shadow: 0 20px 50px -30px rgba(40, 30, 10, .25); }
.paper .p-card .avatar { background: radial-gradient(circle at 30% 25%, #a51c47, #5c0d25); color: #fff; border: 0; }
.paper .tag { background: #f3efe5; color: #4a4f52; border-color: #e5dfd1; }
.paper .tag-gold { background: #fbf2de; color: #8a6420; border-color: #ecd9ad; }
.paper .p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 16px 0; margin: 16px 0; border-block: 1px solid #eee8db; }
.paper .p-grid small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b8f8f; }
.paper .p-grid b { font-size: 14px; color: #22272a; }
.paper .meter-bar { background: #eee9de; } .paper .meter-bar > i { background: linear-gradient(90deg, #2a9d8f, #c9a052); }
.paper .muted { color: #6b7275; }
.paper .btn { --bg: #fff; --fg: #22272a; --bd: #ddd5c4; height: 38px; }
.paper .btn.on { --bg: #22272a; --fg: #fff; }
.paper .btn-gold { --bg: linear-gradient(135deg, #c9a052, #a77d33); --fg: #fff; }
.paper footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e3dccd; display: flex; justify-content: space-between; color: #8b8f8f; font-size: 12.5px; }

/* responsive */
@media (max-width: 1100px) {
  .hero .container { grid-template-columns: 1fr; text-align: left; }
  .hero-emblem { width: 300px; order: -1; }
  .detail-layout, .jobs-layout { grid-template-columns: 1fr; }
  .filters, .sticky { position: static; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 95; width: 280px; transform: translateX(-100%); transition: transform .4s var(--ease-out); }
  .sidebar.open { transform: none; }
  .nav-links, .nav-cta .hide-m { display: none; }
  .nav-burger { display: inline-flex; }
  .g3, .g2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-art { display: none; }
  .content, .topbar { padding-inline: 18px; }
  .price-card.featured { transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 46px 26px; }
  .paper .p-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 640px) {
  .g4 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; border-radius: 22px; }
  .hero-search .sep { display: none; } .hero-search .select { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.nav-mobile { position: fixed; inset: 66px 12px auto 12px; z-index: 70; padding: 12px; border-radius: 18px; background: var(--ink-3); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
.nav-mobile.open { display: grid; gap: 4px; }
.nav-mobile a { padding: 12px 14px; border-radius: 12px; color: var(--ivory); }
.nav-mobile a:hover { background: rgba(212, 168, 90, .1); }

@media (max-width: 900px) { #sbtn { display: grid !important; } .hide-m { display: none; } }
details > summary { list-style: none; cursor: pointer; width: max-content; }
details > summary::-webkit-details-marker { display: none; }
.logo-box.lg { width: 76px; height: 76px; border-radius: 20px; font-size: 24px; }
@media print { .paper header .btn, .paper form { display: none !important; } .paper .p-card { break-inside: avoid; box-shadow: none; } [data-reveal] { opacity: 1 !important; transform: none !important; } }

svg.ico { flex: none; }
.hero-stats b, .kpi .k-val, .p-price, .f-num, .ring b, .feature .f-num, .score-pill, .table td, .meter-top, .bar-row b, .funnel-row b { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.tabs a svg { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 4px; }
.card-head h3 svg { display: inline-block; vertical-align: -3px; color: var(--gold); }
.empty-icon svg { width: 28px; height: 28px; }
.table svg.ico { display: inline-block; vertical-align: middle; }
