/* =============================================================
   Alm Creatives — design system
   Tokens → base → components → sections → pages → utilities
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --font: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* radii */
  --r-xs: 8px;
  --r-sm: 12px;   /* every control: buttons, inputs, selects, tabs */
  --r-md: 16px;
  --r-lg: 20px;   /* cards */
  --r-xl: 28px;   /* big panels */
  --r-full: 999px; /* chips, badges, avatars only */

  /* control sizes */
  --h-sm: 38px;
  --h-md: 46px;
  --h-lg: 54px;

  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 96px;

  /* brand */
  --brand-1: #8b5cf6;
  --brand-2: #3b82f6;
  --brand-3: #06b6d4;
  --c1: var(--brand-1);
  --c2: var(--brand-3);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --focus: 0 0 0 3px rgba(139, 92, 246, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* dark (default) */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0b0d15;
  --surface: #11131d;
  --surface-2: #161927;
  --surface-3: #0d0f18;
  --border: #23273a;
  --border-strong: #353b56;
  --text: #eef0f6;
  --text-2: #c3c7d5;
  --text-3: #8d93a7;
  --header-bg: rgba(7, 8, 13, .75);
  --overlay: rgba(3, 4, 8, .72);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .75);
  --glow-opacity: .45;
  --link: #a5b4fc;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fc;
  --bg-2: #eef0f7;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --surface-3: #f2f4f9;
  --border: #e2e5ee;
  --border-strong: #c9cedd;
  --text: #0f1222;
  --text-2: #3b4157;
  --text-3: #6a7086;
  --header-bg: rgba(247, 248, 252, .8);
  --overlay: rgba(15, 18, 34, .45);
  --shadow-sm: 0 1px 3px rgba(15, 18, 34, .08);
  --shadow-lg: 0 30px 60px -30px rgba(15, 18, 34, .3);
  --glow-opacity: .18;
  --link: #6d28d9;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
::selection { background: rgba(139, 92, 246, .35); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--surface); color: var(--text); padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--border); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 820px; }
.narrow-sm { max-width: 520px; }
.section { padding: var(--s-9) 0; position: relative; }
.section-sm { padding: var(--s-8) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-7); }
.section-head p { color: var(--text-3); font-size: 1.08rem; margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
.align-center { align-items: center; }
.stack { display: grid; gap: var(--s-4); }

/* ---------- Typography helpers ---------- */
.lead { font-size: 1.15rem; color: var(--text-3); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.muted { color: var(--text-3); }
.small { font-size: .875rem; }
.big-p { font-size: 1.12rem; color: var(--text-2); }
.grad-text { background: linear-gradient(100deg, #a78bfa, #60a5fa 45%, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .grad-text { background-image: linear-gradient(100deg, #7c3aed, #2563eb 45%, #0891b2); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a78bfa; background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .28); padding: 5px 12px; border-radius: var(--r-full); margin-bottom: var(--s-4); }
[data-theme="light"] .eyebrow { color: #6d28d9; }

/* ---------- Buttons (one system: radius --r-sm, fixed heights) ---------- */
.btn { --bh: var(--h-md); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--bh); padding: 0 20px; border-radius: var(--r-sm); font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; color: #fff; text-decoration: none; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn:hover { color: #fff; }
.btn:active { transform: scale(.98); }
.btn-sm { --bh: var(--h-sm); padding: 0 14px; font-size: .875rem; }
.btn-lg { --bh: var(--h-lg); padding: 0 26px; font-size: 1rem; }
.btn-primary { background: linear-gradient(100deg, var(--c1), var(--c2)); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-danger { background: transparent; border-color: rgba(248, 113, 113, .45); color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, .1); color: var(--danger); }
.btn-block { width: 100%; }
.btn-icon { width: var(--h-sm); height: var(--h-sm); padding: 0; border-radius: var(--r-sm); background: transparent; border: 1px solid var(--border); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.btn-icon:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn.loading::after { 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); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; font: inherit; text-align: left; }
.link-btn:hover { color: var(--text); }
.link-btn.danger { color: var(--danger); }

/* ---------- Form controls (same height & radius as buttons) ---------- */
:where(.input, input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  width: 100%; height: var(--h-md); padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-3); color: var(--text); font: 400 .95rem var(--font); transition: border-color .2s, box-shadow .2s; appearance: none;
}
:where(textarea) { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
:where(select) { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d93a7' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: .8; }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--surface-3) inset; -webkit-text-fill-color: var(--text); }
:where(input, select, textarea):focus { outline: none; border-color: var(--brand-1); box-shadow: var(--focus); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-1); flex: none; cursor: pointer; }
.field { display: grid; gap: 6px; margin-bottom: var(--s-4); }
.field > span, .label { font-weight: 600; font-size: .875rem; color: var(--text-2); }
.field .hint { font-size: .8rem; color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-3); margin-bottom: var(--s-4); cursor: pointer; }
.check input { margin-top: 2px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: var(--r-xs); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--text); }
.pw-meter { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 2px; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .3s, background .3s; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); min-width: 0; }
legend { font-weight: 600; font-size: .875rem; color: var(--text-2); margin-bottom: var(--s-2); padding: 0; }

/* Combined input + button (newsletter / notify). One shell, one radius — nothing peeks out underneath. */
.input-group { display: flex; align-items: center; gap: 6px; padding: 5px; background: var(--surface-3); border: 1px solid var(--border); border-radius: calc(var(--r-sm) + 4px); transition: border-color .2s, box-shadow .2s; }
.input-group:focus-within { border-color: var(--brand-1); box-shadow: var(--focus); }
.input-group input, .input-group select { flex: 1; min-width: 0; height: var(--h-sm); border: 0; background: transparent; box-shadow: none !important; padding: 0 10px; }
.input-group select { flex: 0 0 auto; width: auto; border-left: 1px solid var(--border); border-radius: 0; padding-right: 34px; }
.input-group .btn { --bh: var(--h-sm); flex: none; }
.form-status { font-size: .875rem; margin: var(--s-2) 0 0; min-height: 1.3em; }
.form-status:empty { min-height: 0; margin: 0; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 650; padding: 4px 10px; border-radius: var(--r-full); background: var(--surface-3); border: 1px solid var(--border); color: var(--text-3); }
.chip.ok { color: var(--success); border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .08); }
.chip.warn { color: var(--warning); border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; padding: 4px 10px; border-radius: var(--r-xs); background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- Cards ---------- */
.card { padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.card + .card { margin-top: var(--s-4); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2); }
.card-title svg { color: var(--brand-1); }
.card > p:last-child { margin-bottom: 0; }

/* ---------- Header ---------- */
.announcement { background: linear-gradient(90deg, var(--brand-1), var(--brand-2), var(--brand-3)); color: #fff; text-align: center; font-size: .9rem; padding: 8px 16px; font-weight: 600; }
.announcement a { color: #fff; text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--border); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--s-4); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.1rem; flex: none; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 9px; }
.brand b { font-weight: 750; }
.main-nav { display: flex; gap: 2px; }
.main-nav a { color: var(--text-3); padding: 0 14px; height: var(--h-sm); display: inline-flex; align-items: center; border-radius: var(--r-sm); font-weight: 550; font-size: .94rem; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); padding: 0 10px 0 4px; border-radius: var(--r-sm); border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer; font: 600 .875rem var(--font); }
.user-btn:hover { background: var(--surface-2); }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 80; }
.dropdown .dd-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.dropdown .dd-head strong { display: block; font-size: .92rem; }
.dropdown .dd-head span { font-size: .8rem; color: var(--text-3); word-break: break-all; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-xs); color: var(--text-2); font: 500 .9rem var(--font); background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); color: var(--text); }

/* Avatar */
.avatar { --size: 30px; width: var(--size); height: var(--size); border-radius: var(--r-full); display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: calc(var(--size) * .42); background: linear-gradient(135deg, var(--a1, #8b5cf6), var(--a2, #06b6d4)); flex: none; text-transform: uppercase; }
.avatar.lg { --size: 72px; }

/* Mobile drawer (outside header so it is never clipped) */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade .2s; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 86vw); background: var(--surface); border-left: 1px solid var(--border); padding: var(--s-5); display: flex; flex-direction: column; gap: 4px; animation: slideIn .25s var(--ease); overflow-y: auto; }
.drawer-panel .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); }
.drawer-panel nav a { display: flex; align-items: center; height: 48px; padding: 0 12px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 600; font-size: 1.05rem; }
.drawer-panel nav a:hover, .drawer-panel nav a[aria-current] { background: var(--surface-2); color: var(--text); }
.drawer-panel .btn { margin-top: var(--s-2); }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Hero ---------- */
.hero, .page-hero, .app-hero { position: relative; overflow: hidden; }
.hero { padding: var(--s-8) 0 var(--s-7); }
.page-hero { padding: var(--s-8) 0 var(--s-7); }
.page-hero.tall { padding: 140px 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: var(--glow-opacity); pointer-events: none; }
.glow-1 { width: 520px; height: 520px; background: var(--brand-1); top: -220px; left: -140px; }
.glow-2 { width: 480px; height: 480px; background: var(--brand-3); top: -140px; right: -180px; opacity: calc(var(--glow-opacity) * .7); }
.glow-app { width: 640px; height: 640px; background: radial-gradient(var(--c1), var(--c2)); top: -260px; right: -120px; opacity: calc(var(--glow-opacity) * .8); }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; opacity: .45; mask-image: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 50% 15%, #000 15%, transparent 65%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-7); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-6) 0; }
.hero-actions.center { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); color: var(--text-3); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points svg { color: var(--success); }
.hero-visual { position: relative; height: 520px; }
.hv-desktop { position: absolute; width: 92%; right: 0; top: 30px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hv-phone { position: absolute; width: 30%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hv-phone-1 { left: 0; bottom: 0; }
.hv-phone-2 { right: 6%; bottom: -30px; width: 26%; }
.float { animation: float 7s ease-in-out infinite; }
.float-delay { animation: float 8s ease-in-out -3s infinite; }
.float-slow { animation: float 10s ease-in-out -1s infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.logo-strip { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-5) var(--s-6); margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.logo-strip a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-3); font-size: .85rem; font-weight: 600; transition: transform .2s var(--ease), color .2s; }
.logo-strip a:hover { transform: translateY(-4px); color: var(--text); }
.strip-logo { border-radius: 12px; }

/* ---------- App cards ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); }
.app-card { position: relative; display: flex; flex-direction: column; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.app-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(380px circle at 100% 0%, color-mix(in srgb, var(--c1) 18%, transparent), transparent 60%); pointer-events: none; }
.app-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c1) 50%, var(--border)); box-shadow: var(--shadow-lg); color: var(--text); }
.app-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--s-4); position: relative; }
.app-logo { border-radius: 16px; box-shadow: var(--shadow-sm); }
.app-logo.big { border-radius: 22px; }
.app-card h3 { font-size: 1.25rem; position: relative; }
.app-card p { color: var(--text-3); font-size: .95rem; flex: 1; position: relative; }
.app-card-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); position: relative; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; font-size: .9rem; color: color-mix(in srgb, var(--c1) 70%, var(--text)); }

/* ---------- Features / pillars ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-4); }
.feature { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 45%, var(--border)); }
.f-icon { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; margin-bottom: var(--s-4); }
.feature p { color: var(--text-3); margin: 0; font-size: .95rem; }
.mission-band { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .06), transparent); }
.mission-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-7); align-items: center; }
.mission-grid p { color: var(--text-3); font-size: 1.05rem; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.pillar { padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.pillar svg { color: var(--brand-1); margin-bottom: var(--s-3); }
.pillar p { color: var(--text-3); font-size: .93rem; margin: 0; }

/* ---------- Showcase / stats ---------- */
.showcase { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-5); }
.show-item { position: relative; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c1) 26%, transparent), var(--surface) 70%); border: 1px solid var(--border); padding: var(--s-6) var(--s-6) 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: var(--text); transition: transform .3s var(--ease); min-height: 420px; }
.show-item:hover { transform: translateY(-4px); color: var(--text); }
.show-item > img { border-radius: 12px 12px 0 0; margin: 0 auto; box-shadow: var(--shadow-lg); }
.show-phone > img { width: 62%; max-width: 260px; border-radius: 30px 30px 0 0; max-height: 380px; object-fit: cover; object-position: top; }
.show-cap { position: absolute; left: var(--s-4); top: var(--s-4); display: flex; gap: 10px; align-items: center; background: var(--header-bg); backdrop-filter: blur(10px); padding: 8px 14px 8px 8px; border-radius: var(--r-md); border: 1px solid var(--border); }
.show-cap img { border-radius: 9px; }
.show-cap div { display: flex; flex-direction: column; line-height: 1.25; }
.show-cap span { font-size: .8rem; color: var(--text-3); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); }
.stats div { text-align: center; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; background: linear-gradient(100deg, #a78bfa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--text-3); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-6); align-items: center; padding: var(--s-7); border-radius: var(--r-xl); background: radial-gradient(600px circle at 0% 0%, color-mix(in srgb, var(--c1) 20%, transparent), transparent 60%), radial-gradient(500px circle at 100% 100%, color-mix(in srgb, var(--c2) 16%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border); }
.cta-card p { color: var(--text-3); margin: 0; }
.app-cta .app-logo { margin-bottom: var(--s-4); }

/* ---------- App detail ---------- */
.app-hero { padding: var(--s-8) 0 var(--s-7); }
.app-hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: center; }
.crumbs { font-size: .88rem; color: var(--text-3); margin-bottom: var(--s-5); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text); }
.app-title { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-4); }
.app-title h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin: 6px 0 0; }
.tagline { font-size: 1.45rem; font-weight: 650; color: color-mix(in srgb, var(--c1) 55%, var(--text)); margin-bottom: var(--s-2); }
.app-hero .badges { margin-top: var(--s-4); }
.app-hero-visual { display: flex; justify-content: center; }
.app-hero-visual.is-desk img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.app-hero-visual.is-phone img { width: 58%; max-width: 320px; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .45)); }
.overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-7); align-items: start; }
.privacy-card { padding: var(--s-6); border-radius: var(--r-lg); background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 14%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--border)); }
.privacy-card h3 { display: flex; align-items: center; gap: 8px; }
.privacy-card ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.privacy-card li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.privacy-card li svg { color: var(--success); }
.gallery { display: flex; gap: var(--s-5); justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.gallery-item { border: 0; background: none; padding: 0; cursor: zoom-in; transition: transform .3s var(--ease); border-radius: 14px; }
.gallery-item:hover { transform: translateY(-6px); }
.gallery-item.desk { flex: 1 1 560px; max-width: 760px; }
.gallery-item.desk img { border-radius: 14px; box-shadow: var(--shadow-lg); }
.gallery-item.phone { flex: 0 1 280px; }
.gallery-item.phone img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.specs { margin: 0; border-radius: var(--r-lg); border: 1px solid var(--border); overflow: hidden; }
.specs div { display: grid; grid-template-columns: 140px 1fr; padding: 14px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--text-3); font-weight: 600; }
.specs dd { margin: 0; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-3); padding-bottom: 16px; margin: 0; }

/* Reviews */
.stars-input { display: flex; gap: 2px; margin-bottom: var(--s-4); }
.stars-input button { background: none; border: 0; color: var(--border-strong); cursor: pointer; padding: 2px; transition: transform .15s, color .15s; border-radius: var(--r-xs); }
.stars-input button:hover { transform: scale(1.12); }
.stars-input button.on { color: var(--warning); }
.stars-input button.on svg { fill: currentColor; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.review-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.review { padding: var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.review-head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.review-head .meta { flex: 1; min-width: 0; }
.review-head strong { display: block; font-size: .95rem; }
.review-head time { color: var(--text-3); font-size: .8rem; }
.review-stars { color: var(--warning); letter-spacing: .08em; }
.review p { margin: 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.review-actions { display: flex; gap: var(--s-4); margin-top: var(--s-3); font-size: .875rem; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: .93rem; }
.notice svg { flex: none; margin-top: 2px; }
.notice.warn { border-color: rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .07); }
.notice.warn svg { color: var(--warning); }
.notice.ok { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .07); }
.notice.ok svg { color: var(--success); }
.notice p { margin: 0; }
.notice .actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); }

/* ---------- About / blog / press ---------- */
.quote-card { padding: var(--s-7); border-radius: var(--r-xl); background: linear-gradient(150deg, rgba(139, 92, 246, .14), rgba(6, 182, 212, .06)), var(--surface); border: 1px solid var(--border); }
.quote-card p { font-size: 1.35rem; font-weight: 600; line-height: 1.45; color: var(--text); }
.quote-card span { color: var(--text-3); }
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); }
.logo-wall a, .logo-wall div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--s-5) var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: transform .3s var(--ease); }
.logo-wall a:hover { transform: translateY(-4px); color: var(--text); }
.logo-wall img { border-radius: 18px; margin-bottom: 6px; }
.logo-wall span { color: var(--text-3); font-size: .82rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s-5); }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); overflow: hidden; color: var(--text); transition: transform .3s var(--ease), border-color .3s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); color: var(--text); }
.post-cover { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; color: #fff; }
.post-body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.post-body p { color: var(--text-3); font-size: .95rem; flex: 1; }
.post-meta { color: var(--text-3); font-size: .82rem; display: flex; gap: var(--s-3); flex-wrap: wrap; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-3); }
.swatch { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.swatch i { display: block; height: 72px; }
.swatch div { padding: 10px 12px; font-size: .85rem; }
.swatch code { color: var(--text-3); }

/* ---------- Contact / support ---------- */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--s-5); align-items: start; }
.contact-side { display: grid; gap: var(--s-4); }
.contact-side .card { padding: var(--s-5); }
.contact-side .card + .card { margin: 0; }
.contact-side p { color: var(--text-3); margin: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-3); }
.mini-card { display: flex; align-items: center; gap: var(--s-3); padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.mini-card img { border-radius: 10px; }
.mini-card span { flex: 1; }
.mini-card:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Tabs / segmented ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border: 1px solid var(--border); border-radius: calc(var(--r-sm) + 4px); margin-bottom: var(--s-5); }
.tab { flex: 1; height: var(--h-sm); border-radius: var(--r-sm); border: 0; background: none; color: var(--text-3); font: 600 .9rem var(--font); cursor: pointer; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: var(--shadow-sm); }
[data-theme="light"] .tab.active { background: #fff; }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter { display: inline-flex; align-items: center; gap: 6px; height: var(--h-sm); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-3); font: 600 .9rem var(--font); cursor: pointer; }
.filter.active, .filter:hover { color: var(--text); border-color: var(--brand-1); background: rgba(139, 92, 246, .1); }

/* ---------- Account ---------- */
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card h2 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--text-3); margin-bottom: var(--s-5); }
.divider { display: flex; align-items: center; gap: var(--s-4); color: var(--text-3); margin: var(--s-5) 0; font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-links { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-4); font-size: .9rem; flex-wrap: wrap; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--s-6); align-items: start; }
.account-nav { position: sticky; top: 92px; display: grid; gap: 4px; padding: var(--s-3); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.account-nav .who { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-2) var(--s-2) var(--s-4); border-bottom: 1px solid var(--border); margin-bottom: var(--s-2); }
.account-nav .who div { min-width: 0; }
.account-nav .who strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav .who span { display: block; font-size: .8rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-nav button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: var(--r-sm); background: none; border: 0; color: var(--text-3); font: 600 .92rem var(--font); cursor: pointer; text-align: left; }
.account-nav button:hover { color: var(--text); background: var(--surface-2); }
.account-nav button.active { color: var(--text); background: rgba(139, 92, 246, .12); }
.account-nav button.active svg { color: var(--brand-1); }
.panel h2 { font-size: 1.6rem; }
.panel > .muted { margin-bottom: var(--s-5); }
.panel .card { padding: var(--s-5); }
.panel .card h3 { margin-bottom: 4px; }
.panel .card > p.muted { margin-bottom: var(--s-4); font-size: .92rem; }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.setting-row:first-of-type { border-top: 0; padding-top: 0; }
.setting-row .info { min-width: 0; flex: 1; }
.setting-row .info strong { display: block; }
.setting-row .info span { color: var(--text-3); font-size: .875rem; overflow-wrap: anywhere; }
.profile-head { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.avatar-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.avatar-picker label { cursor: pointer; }
.avatar-picker input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-picker .avatar { --size: 40px; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.avatar-picker input:checked + .avatar { outline-color: var(--text); }
.avatar-picker input:focus-visible + .avatar { box-shadow: var(--focus); }
.fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); }
.fav { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border); cursor: pointer; font-weight: 550; font-size: .9rem; transition: border-color .2s, background .2s; }
.fav img { border-radius: 8px; }
.fav span { flex: 1; }
.fav:has(input:checked) { border-color: var(--brand-1); background: rgba(139, 92, 246, .1); }
.toggle { position: relative; width: 44px; height: 26px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 1; margin: 0; }
.toggle i { position: absolute; inset: 0; border-radius: var(--r-full); background: var(--border-strong); transition: background .2s; pointer-events: none; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.toggle input:checked + i { background: var(--brand-1); }
.toggle input:checked + i::after { transform: translateX(18px); }
.toggle input:focus-visible + i { box-shadow: var(--focus); }
.provider-list { display: grid; gap: var(--s-2); }
.danger-zone { border-color: rgba(248, 113, 113, .35) !important; }
.danger-zone h3 { color: var(--danger); }
.empty { text-align: center; padding: var(--s-6); color: var(--text-3); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--s-4); }
.modal-backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); animation: fade .2s; }
.modal-panel { position: relative; width: min(460px, 100%); max-height: 90vh; overflow-y: auto; padding: var(--s-6); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); }
.modal-panel h3 { font-size: 1.3rem; }
.modal-close { position: absolute; top: var(--s-3); right: var(--s-3); }
.modal-actions { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-5); flex-wrap: wrap; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(8px); } }

/* Search */
.search-panel { width: min(620px, 100%); padding: 0; align-self: start; margin-top: 10vh; }
.search-input { display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-5); border-bottom: 1px solid var(--border); }
.search-input svg { color: var(--text-3); flex: none; }
.search-input input { border: 0; background: transparent; height: 60px; font-size: 1.05rem; padding: 0; box-shadow: none !important; }
.search-results { max-height: 55vh; overflow-y: auto; padding: var(--s-2); }
.search-results a { display: flex; align-items: center; gap: var(--s-3); padding: 10px 12px; border-radius: var(--r-sm); color: var(--text-2); }
.search-results a img { border-radius: 8px; }
.search-results a .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); flex: none; }
.search-results a div { min-width: 0; }
.search-results a strong { display: block; color: var(--text); font-size: .95rem; }
.search-results a span { display: block; font-size: .8rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results a.sel, .search-results a:hover { background: var(--surface-2); }
.search-foot { padding: 10px var(--s-5); border-top: 1px solid var(--border); font-size: .78rem; color: var(--text-3); display: flex; gap: var(--s-4); }
kbd { font: 600 .72rem var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-3); color: var(--text-3); }
.search-trigger { display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); padding: 0 8px 0 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: transparent; color: var(--text-3); font: 500 .875rem var(--font); cursor: pointer; }
.search-trigger:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Prose ---------- */
.prose { font-size: 1.05rem; }
.prose h2 { font-size: 1.5rem; margin-top: var(--s-7); }
.prose p, .prose li { color: var(--text-2); }
.prose li { margin-bottom: var(--s-2); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-left: 3px solid var(--brand-1); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: var(--s-8) 0 var(--s-6); margin-top: var(--s-7); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer-brand p { color: var(--text-3); font-size: .93rem; margin: var(--s-4) 0; max-width: 380px; }
.footer-brand .input-group { max-width: 400px; }
.site-footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: var(--s-4); }
.footer-links a, .footer-links button { display: block; color: var(--text-3); font-size: .93rem; margin-bottom: 10px; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; text-align: left; }
.footer-links a:hover, .footer-links button:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-4); padding-top: var(--s-5); margin-top: var(--s-7); border-top: 1px solid var(--border); color: var(--text-3); font-size: .87rem; }
.footer-bottom span { display: inline-flex; align-items: center; gap: 6px; }
.footer-tools { display: flex; gap: var(--s-2); align-items: center; }

/* ---------- Consent / toast / lightbox / back-to-top ---------- */
.consent { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; width: min(760px, calc(100% - 24px)); display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: up .35s var(--ease); }
.consent strong { display: block; }
.consent p { margin: 2px 0 0; color: var(--text-3); font-size: .875rem; }
.consent-actions { display: flex; gap: var(--s-2); flex: none; }
@keyframes up { from { opacity: 0; transform: translate(-50%, 20px); } }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 160; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(160%); transition: transform .35s var(--ease); max-width: min(380px, calc(100% - 40px)); font-size: .93rem; }
.toast.show { transform: none; }
.toast.ok svg { color: var(--success); }
.toast.err svg { color: var(--danger); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 4vh 4vw; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 14px; }
.lightbox button { position: absolute; top: 18px; right: 18px; color: #fff; border-color: rgba(255, 255, 255, .3); }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { transform: rotate(-90deg); }

/* ---------- Announcement close ---------- */
.announcement { position: relative; padding-right: 44px; }
.ann-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; border-radius: var(--r-xs); background: rgba(255, 255, 255, .15); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.ann-close:hover { background: rgba(255, 255, 255, .28); }

/* ---------- Admin dashboard ---------- */
/* Chart palette: reference categorical slots 1–2, stepped per mode (validated). */
.admin-page {
  --series-1: #2a78d6; --series-2: #eb6834;
  --viz-grid: #e1e0d9; --viz-base: #c3c2b7; --viz-muted: #898781;
}
[data-theme="dark"] .admin-page {
  --series-1: #3987e5; --series-2: #d95926;
  --viz-grid: #2c2c2a; --viz-base: #383835;
}
.admin-section { padding-top: var(--s-6); }
.container.wide { width: min(1440px, 100% - 40px); }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.admin-nav button { position: relative; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--r-full); background: var(--brand-1); color: #fff; font-size: .75rem; display: inline-grid; place-items: center; }
.admin-main { min-width: 0; display: grid; gap: var(--s-4); align-content: start; }
.admin-main > section { display: grid; gap: var(--s-4); }
.admin-main > section[hidden] { display: none; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.admin-title { font-size: 1.8rem; margin: 0; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; background: var(--surface-3); border: 1px solid var(--border); border-radius: calc(var(--r-sm) + 3px); }
.segmented button { height: 32px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text-3); font: 600 .85rem var(--font); cursor: pointer; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented button span { margin-left: 4px; color: var(--text-3); font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); }
.kpi { padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi-label { font-size: .82rem; color: var(--text-3); font-weight: 600; }
.kpi-value { font-size: 1.75rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.delta { font-size: .8rem; font-weight: 600; color: var(--text-3); }
.delta small { font-weight: 500; }
.delta.up { color: #0ca30c; }
.delta.down { color: var(--danger); }
[data-theme="light"] .delta.up { color: #006300; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--s-4); align-items: start; }
.admin-grid > div { display: grid; gap: var(--s-4); }
.chart-card { padding: var(--s-5); min-width: 0; }
.card.chart-card + .card { margin-top: 0; }
.chart-body { margin-top: var(--s-4); min-width: 0; position: relative; }
.chart-body svg { display: block; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-base { stroke: var(--viz-base); stroke-width: 1; }
.viz-axis { fill: var(--viz-muted); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.viz-cross { stroke: var(--viz-base); stroke-width: 1; stroke-dasharray: 3 3; }
.viz-empty { fill: var(--text-3); font: 500 13px var(--font); }
.viz-empty-p { color: var(--text-3); font-size: .9rem; margin: 0; padding: var(--s-3) 0; }
.viz-legend { display: flex; gap: var(--s-4); margin-bottom: var(--s-2); font-size: .82rem; color: var(--text-2); }
.viz-legend span, .viz-tip div { display: inline-flex; align-items: center; gap: 6px; }
.viz-legend i, .viz-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.viz-tip { position: fixed; z-index: 400; pointer-events: none; padding: 8px 12px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .82rem; color: var(--text-2); display: grid; gap: 3px; }
.viz-tip strong { color: var(--text); }
.viz-tip b { color: var(--text); margin-left: 4px; font-variant-numeric: tabular-nums; }
.viz-col:hover path { filter: brightness(1.12); }
.bar-row { display: grid; grid-template-columns: minmax(90px, 38%) 1fr auto; gap: var(--s-3); align-items: center; padding: 6px 0; cursor: default; }
.bar-row:hover .bar-track i { filter: brightness(1.12); }
.bar-label { font-size: .875rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label small { display: block; color: var(--text-3); font-size: .75rem; }
.bar-track { height: 10px; border-radius: 0 4px 4px 0; background: transparent; position: relative; }
.bar-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.bar-val { font-size: .85rem; font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; min-width: 2.5ch; text-align: right; }
.list-row { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; color: var(--text); font: inherit; border-radius: 0; }
button.list-row { cursor: pointer; }
button.list-row:hover, .list-row.sel { background: var(--surface-2); }
.list-row:last-child { border-bottom: 0; }
.list-row div { flex: 1; min-width: 0; }
.list-row strong { display: block; font-size: .9rem; }
.list-row span:not(.avatar):not(.dot) { display: block; font-size: .8rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row time { font-size: .75rem; color: var(--text-3); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--border-strong); }
.dot.new { background: var(--brand-1); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.5rem; margin-bottom: 2px; }
.table-card { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 650; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table .nowrap, .table .chip { white-space: nowrap; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn + .btn { margin-left: 6px; }
.chart-body .table th { position: static; }
.chart-body .table td, .chart-body .table th { padding: 10px 8px; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user strong { display: block; color: var(--text); }
.cell-user span:not(.avatar) { font-size: .8rem; color: var(--text-3); }
.inbox { display: grid; grid-template-columns: minmax(260px, 1fr) 1.4fr; gap: var(--s-4); align-items: start; }
.inbox-list { padding: 6px; max-height: 70vh; overflow-y: auto; }
.inbox-detail { display: grid; gap: var(--s-4); }
.card.inbox-detail { margin-top: 0; }
.msg-from { display: flex; align-items: center; gap: var(--s-3); }
.msg-from strong { display: block; }
.msg-from span:not(.avatar) { font-size: .85rem; color: var(--text-3); }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); padding: var(--s-4); background: var(--surface-3); border-radius: var(--r-sm); margin: 0; }
.check-list { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: grid; gap: var(--s-3); font-size: .9rem; color: var(--text-2); }
.check-list li { display: flex; gap: 8px; align-items: flex-start; }
.check-list svg { color: var(--success); margin-top: 3px; }
.ann-preview { border-radius: var(--r-sm); margin-bottom: var(--s-4); transition: opacity .2s; }
.admin-page .site-footer { margin-top: 0; }
@media (max-width: 980px) {
  .admin-layout, .inbox { grid-template-columns: 1fr; }
  .admin-nav .who { display: none; }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-delay, .float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.pt-0 { padding-top: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0 !important; }
.w-full { width: 100%; }
.flex { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .search-trigger .label, .hide-md { display: none; }
  .nav-toggle { display: inline-grid; }
}
@media (max-width: 980px) {
  .hero-grid, .app-hero-grid, .mission-grid, .overview, .two-col, .contact-grid, .cta-card, .showcase, .account-layout { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .account-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .account-nav::-webkit-scrollbar { display: none; }
  .account-nav .who { display: none; }
}
@media (max-width: 640px) {
  .section { padding: var(--s-8) 0; }
  .hero { padding-top: var(--s-7); }
  .hero-visual { height: 300px; }
  .app-grid, .feature-grid, .post-grid { grid-template-columns: 1fr; }
  .pillars, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
  .cta-card { padding: var(--s-6) var(--s-5); }
  .card { padding: var(--s-5); }
  .consent { flex-direction: column; align-items: stretch; bottom: 12px; }
  .consent-actions .btn { flex: 1; }
  .specs div { grid-template-columns: 110px 1fr; }
  .hide-sm { display: none !important; }
  .input-group.stack-sm { flex-wrap: wrap; }
  .input-group.stack-sm select { border-left: 0; border-top: 1px solid var(--border); flex: 1 1 100%; }
  .input-group.stack-sm .btn { flex: 1 1 100%; }
  .modal-panel { padding: var(--s-5); }
  .app-title { flex-direction: column; align-items: flex-start; }
}
