/* OzStaff redesign preview — shared design tokens + components */
/* Dark is default; [data-theme="light"] overrides. */

:root,
[data-theme="dark"] {
  --bg: #0b0b0e;
  --bg2: #101014;
  --card: #15151a;
  --card2: #1b1b21;
  --line: rgba(232, 220, 195, 0.09);
  --line2: rgba(232, 220, 195, 0.18);
  --text: #f4f0e6;
  --dim: #aaa496;
  --faint: #6f6a5e;
  --gold: #d2ad63;
  --gold2: #ebcf8f;
  --gold-soft: rgba(210, 173, 99, 0.14);
  --gold-ink: #241b08;
  --ok: #7fb98a;
  --warn: #d9a45b;
  --bad: #d97b6c;
  --info: #7fa8c9;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(210, 173, 99, 0.35), 0 8px 30px rgba(210, 173, 99, 0.12);
  --nav-bg: rgba(11, 11, 14, 0.72);
  --input: #101015;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f3ec;
  --bg2: #fbf9f4;
  --card: #ffffff;
  --card2: #f3efe6;
  --line: rgba(35, 28, 14, 0.1);
  --line2: rgba(35, 28, 14, 0.2);
  --text: #1e1a13;
  --dim: #6d675a;
  --faint: #9a937f;
  --gold: #a8812f;
  --gold2: #8a6a24;
  --gold-soft: rgba(168, 129, 47, 0.12);
  --gold-ink: #fffaf0;
  --ok: #3f7d4e;
  --warn: #a06a1c;
  --bad: #b0483a;
  --info: #3d6a8f;
  --shadow: 0 14px 40px rgba(60, 48, 20, 0.12);
  --glow: 0 0 0 1px rgba(168, 129, 47, 0.4), 0 8px 26px rgba(168, 129, 47, 0.16);
  --nav-bg: rgba(246, 243, 236, 0.78);
  --input: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Inter", -apple-system, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; font-weight: 800; }
.display { font-size: clamp(40px, 6vw, 72px); }
.h2 { font-size: clamp(28px, 3.6vw, 44px); }
#moments .h2 { text-wrap: balance; }
#team .sec-head .lead { text-wrap: balance; }
.lead { color: var(--dim); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; }

/* Chinese typography: Manrope keeps Latin, system CJK fonts carry Chinese. */
:lang(zh-CN) {
  font-family: "Manrope", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  line-height: 1.7;
}
:lang(zh-CN) h1, :lang(zh-CN) h2, :lang(zh-CN) h3 { line-height: 1.28; }
:lang(zh-CN) .lead { line-height: 1.7; }
:lang(zh-CN) em, :lang(zh-CN) i, :lang(zh-CN) cite { font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(160deg, var(--gold2), var(--gold));
  color: var(--gold-ink);
  font-weight: 700; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; border: 0;
  cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); box-shadow: none; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 34px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.brand img { height: 22px; width: auto; display: block; }
.brand .l-light { display: none; }
[data-theme="light"] .brand .l-dark { display: none; }
[data-theme="light"] .brand .l-light { display: block; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; color: var(--dim); margin-left: 8px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14.5px; }
.nav-cta .login {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px; white-space: nowrap;
  border: 1px solid var(--line2); border-radius: 999px;
  background: transparent; color: var(--dim);
  font-size: 13.5px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.nav-cta .login:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.nav-cta .login:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-cta .icon-btn {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  border: 1px solid var(--line2); background: transparent; color: var(--dim);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}
.nav-cta .icon-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--gold-soft); transform: translateY(-1px); }
.nav-cta .icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border: 1px solid var(--line2); border-radius: 999px;
  background: transparent;
}
.lang-btn {
  min-height: 30px; padding: 0 11px; border: 0; border-radius: 999px;
  background: transparent; color: var(--dim);
  font-size: 12.5px; font-weight: 700; line-height: 1; cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--gold); color: var(--gold-ink); }
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

@media (max-width: 560px) {
  .nav-inner { gap: 12px; }
  .nav-cta { gap: 8px; }
  .nav-cta .login { min-height: 36px; padding: 0 12px; font-size: 12.5px; }
  .nav-cta .icon-btn { width: 36px; height: 36px; }
  .lang-btn { min-height: 28px; padding: 0 8px; font-size: 11.5px; }
  .btn-sm { padding: 8px 14px; font-size: 12.5px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 22%;
  opacity: 0; transition: opacity 1.4s ease, transform 9s ease, filter 1.4s ease, clip-path 1.2s ease;
  transform: scale(1.06); clip-path: inset(0 0 0 0); filter: blur(0);
}
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero-media img.kb, .team-photo img.kb { transform: scale(1.12) translateX(-1.5%); }
.hero-media img.blur-in, .team-photo img.blur-in { filter: blur(14px); }
.hero-media img.wipe-l, .team-photo img.wipe-l { clip-path: inset(0 100% 0 0); }
.hero-media img.wipe-r, .team-photo img.wipe-r { clip-path: inset(0 0 0 100%); }
.hero-media img.kb.on, .team-photo img.kb.on { animation: kb-settle 14s ease forwards; }
@keyframes kb-settle { from { transform: scale(1.14) translateX(-1.5%); } to { transform: scale(1.02) translateX(0.4%); } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.62) 42%, rgba(8, 8, 10, 0.12) 75%),
    linear-gradient(to top, var(--bg) 2%, transparent 30%);
}
[data-theme="light"] .hero-media::after {
  background: linear-gradient(100deg, rgba(24, 20, 12, 0.88) 0%, rgba(24, 20, 12, 0.55) 42%, rgba(24, 20, 12, 0.1) 75%),
    linear-gradient(to top, var(--bg) 2%, transparent 30%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: none; margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(20px, 4vw, 40px) 80px;
}
.hero h1 { color: #f7f3e8; margin: 22px 0 20px; max-width: 12ch; }
.hero .lead { color: rgba(240, 234, 218, 0.82); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .btn-ghost { color: #f4f0e6; border-color: rgba(244, 240, 230, 0.35); }
.hero .btn-ghost:hover { border-color: var(--gold2); color: var(--gold2); }
.hero-proof {
  position: absolute; z-index: 3;
  top: 112px; right: clamp(24px, 4vw, 56px);
  display: flex; flex-direction: column; align-items: flex-end; text-align: right;
  max-width: 340px;
  color: rgba(244, 240, 230, 0.9); font-weight: 500;
}
.hero-proof[hidden] { display: none; }
.hero-proof .proof-rule {
  width: 48px; height: 2px; margin-bottom: 16px;
  background: linear-gradient(90deg, var(--gold2), var(--gold));
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}
.hero-proof .proof-number {
  font-size: clamp(58px, 6.2vw, 88px); font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: 0;
  color: #f7f3e8;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75), 0 10px 34px rgba(0, 0, 0, 0.45);
}
.hero-proof .proof-label {
  margin-top: 18px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold2);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.hero-proof .proof-copy {
  margin-top: 10px; max-width: 30ch;
  font-size: 13px; line-height: 1.6; font-weight: 500;
  color: rgba(244, 240, 230, 0.78);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
:lang(zh-CN) .hero-proof .proof-label { letter-spacing: 0.14em; }
:lang(zh-CN) .hero-proof .proof-copy { line-height: 1.7; }

@media (max-width: 900px) {
  .hero-proof {
    position: relative; top: auto; right: auto;
    margin-top: 30px; align-items: flex-start; text-align: left;
    max-width: 100%;
  }
  .hero-proof .proof-number { font-size: 52px; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(210, 173, 99, 0.45); color: var(--gold2);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 16px; border-radius: 999px; background: rgba(10, 10, 12, 0.35);
  backdrop-filter: blur(6px);
}
.hero-dots { position: absolute; z-index: 3; right: clamp(20px, 4vw, 44px); bottom: 34px; display: flex; gap: 8px; }
.hero-dots i { width: 22px; height: 3px; border-radius: 2px; background: rgba(244, 240, 230, 0.28); transition: background 0.6s; }
.hero-dots i.on { background: var(--gold2); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg2); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head .h2 { margin: 14px 0 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .lead { margin: 0 auto; }

/* moments */
.moments { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.moment {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--card); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.moment:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.moment .ph { aspect-ratio: 4 / 4.6; overflow: hidden; }
.moment .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform 6s ease; }
.moment:hover .ph img { transform: scale(1.06); }
.moment .tx { padding: 18px 20px 22px; }
.moment .tx h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 9px; }
.moment .tx h3 svg { color: var(--gold); flex: none; }
.moment .tx p { font-size: 13.5px; color: var(--dim); }

/* team */
.team-stage { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.team-photo {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line2); box-shadow: var(--shadow); background: var(--card);
}
.team-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  opacity: 0; transition: opacity 1.1s ease, transform 7s ease, filter 1.1s ease, clip-path 1s ease;
  transform: scale(1.05); clip-path: inset(0 0 0 0); filter: blur(0);
}
.team-photo img.on { opacity: 1; transform: scale(1); }
.team-photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to top, rgba(5, 5, 7, 0.72), transparent);
}
.team-cap { position: absolute; z-index: 2; left: 24px; bottom: 20px; color: #f5f1e6; }
.team-cap b { display: block; font-size: 21px; }
.team-cap span { font-size: 13px; color: rgba(235, 229, 212, 0.75); }
.team-list { display: flex; flex-direction: column; gap: 4px; }
.team-item {
  display: flex; align-items: center; gap: 16px; padding: 13px 16px;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.team-item img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--line2); transition: border-color 0.3s, transform 0.3s; }
.team-item b { font-size: 15.5px; display: block; }
.team-item span { font-size: 13px; color: var(--dim); }
.team-item:hover { background: var(--card); }
.team-item.on { background: var(--card); border-color: var(--gold); transform: translateX(6px); }
.team-item.on img { border-color: var(--gold); transform: scale(1.06); }
.team-item.on b { color: var(--gold); }
[data-theme="light"] .team-item.on { background: #fff; }

/* capabilities */
.caps { display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; }
.cap {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 20px 10px 16px; text-align: center; transition: border-color 0.35s, transform 0.35s, box-shadow 0.35s;
}
.cap svg { color: var(--gold); margin: 0 auto 10px; }
.cap b { display: block; font-size: 13.5px; }
.cap span { font-size: 11px; color: var(--faint); display: block; margin-top: 3px; line-height: 1.35; }
.cap:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--glow); }

/* instead of apps */
.instead { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.inst {
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  padding: 20px 16px; text-align: center; transition: transform 0.35s, border-color 0.35s;
}
.inst:hover { transform: translateY(-5px); border-color: var(--line2); }
.inst .old { font-size: 12px; color: var(--faint); }
.inst .old .chip {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 8px;
  border: 1px dashed var(--line2); border-radius: 10px; padding: 8px 13px;
  color: var(--dim); font-size: 13px; font-weight: 600;
  text-decoration: line-through; text-decoration-color: rgba(217, 123, 108, 0.7);
}
.inst .arrow { color: var(--gold); margin: 14px 0 12px; display: flex; justify-content: center; }
.inst .new img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 18%; margin: 0 auto 10px; border: 2px solid var(--gold); }
.inst .new b { font-size: 14.5px; display: block; }
.inst .new span { font-size: 12px; color: var(--dim); }

/* why */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.why-orb {
  aspect-ratio: 1; border-radius: 50%; margin: 0 auto; max-width: 380px; width: 100%;
  display: flex; align-items: center; justify-content: center; position: relative;
  background: radial-gradient(circle at 50% 42%, rgba(210, 173, 99, 0.2), transparent 62%);
}
.why-orb::before, .why-orb::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(210, 173, 99, 0.4);
}
.why-orb::before { inset: 6%; animation: spin 26s linear infinite; border-style: dashed; }
.why-orb::after { inset: 17%; border-color: rgba(210, 173, 99, 0.22); animation: spin 40s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.why-orb .core {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: clamp(15px, 1.6vw, 19px); color: var(--gold2);
  background: radial-gradient(circle at 35% 30%, rgba(235, 207, 143, 0.25), rgba(12, 12, 14, 0.6));
  box-shadow: 0 0 60px rgba(210, 173, 99, 0.35);
  padding: 18%;
}
.why-orb .core img { width: 100%; height: auto; }
.why-list { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; font-size: 15.5px; }
.why-list svg { color: var(--gold); flex: none; margin-top: 3px; }
.why-list span { color: var(--dim); }

/* demo strip */
.demo-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.demo-copy .h2 { max-width: 14ch; }
.demo-copy .lead { margin-top: 12px; max-width: 46ch; }
.demo-copy .btn { margin-top: 26px; }
.demo-faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.demo-faces img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 18%;
  border-radius: 14px; border: 1px solid var(--line2); box-shadow: var(--shadow);
}

/* CTA */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0.5; }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), rgba(10, 10, 12, 0.35) 40%, var(--bg)); }
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { color: #f7f3e8; font-size: clamp(30px, 4.4vw, 52px); max-width: 18ch; margin: 0 auto 16px; }
.cta p { color: rgba(240, 234, 218, 0.8); margin-bottom: 32px; }
.cta .btn-ghost { color: #f4f0e6; border-color: rgba(244, 240, 230, 0.35); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg2); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot a { display: block; color: var(--dim); font-size: 14px; padding: 5px 0; }
.foot a:hover { color: var(--gold); }
.foot .brand { margin-bottom: 12px; }
.foot .tag { color: var(--faint); font-size: 13.5px; }
.foot-base { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }
footer.footer-strip { border-top: 1px solid var(--line); background: var(--bg2); padding: 18px 0 26px; color: var(--faint); font-size: 13px; }
footer.footer-strip .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.socials a:hover { color: var(--gold); border-color: var(--gold); }

/* theme toggle (preview helper) */
.theme-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 99;
  display: flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow); font-size: 12.5px; font-weight: 700;
}
.theme-toggle a { padding: 9px 16px; color: var(--dim); }
.theme-toggle a.on { background: var(--gold); color: var(--gold-ink); }

/* preview-only badge */
.preview-badge {
  position: fixed; left: 18px; bottom: 18px; z-index: 99;
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--dim);
  border: 1px solid var(--line2); border-radius: 999px; padding: 7px 14px;
  background: var(--card); opacity: 0.85; pointer-events: none;
}
@media (max-width: 640px) {
  .preview-badge { display: none; }
  footer.footer-strip .wrap { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* ============ app shell (inner pages) ============ */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side {
  border-right: 1px solid var(--line); background: var(--bg2);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.side .brand { padding: 4px 10px 18px; font-size: 17px; }
.side a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: 10px; color: var(--dim); font-size: 14px; font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.side a svg { flex: none; }
.side a:hover { color: var(--text); background: var(--card); }
.side a.on { color: var(--gold); background: var(--gold-soft); }
.side .sep { margin: 12px 10px 8px; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.side .me { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 10px; border-top: 1px solid var(--line); }
.side .me img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 1.5px solid var(--gold); }
.side .me b { font-size: 13.5px; display: block; }
.side .me span { font-size: 11.5px; color: var(--faint); }

.main { padding: 26px clamp(20px, 3vw, 36px) 48px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.topbar h1 { font-size: 22px; }
.topbar .sub { color: var(--faint); font-size: 13px; margin-top: 2px; }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--dim); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.card-pad { padding: 20px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat .k { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.stat .k svg { color: var(--gold); }
.stat .v { font-size: 27px; font-weight: 800; margin-top: 8px; }
.stat .d { font-size: 12px; margin-top: 4px; }
.stat .d.up { color: var(--ok); }
.stat .d.down { color: var(--bad); }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding: 14px 6px 0; }
.bars .b { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(to top, var(--gold), var(--gold2)); opacity: 0.85; position: relative; transition: opacity 0.3s; }
.bars .b:hover { opacity: 1; }
.bars .b.dim { background: var(--card2); border: 1px solid var(--line); }
.chart-x { display: flex; gap: 10px; padding: 8px 6px 0; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--faint); }

/* table */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; color: var(--faint); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: var(--gold-soft); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.pill.ok { color: var(--ok); background: rgba(127, 185, 138, 0.12); }
.pill.warn { color: var(--warn); background: rgba(217, 164, 91, 0.12); }
.pill.info { color: var(--info); background: rgba(127, 168, 201, 0.12); }
.pill.gold { color: var(--gold); background: var(--gold-soft); }
.t-person { display: flex; align-items: center; gap: 10px; }
.t-person img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.t-person b { font-size: 13.5px; display: block; }
.t-person span { font-size: 11.5px; color: var(--faint); }

/* chat */
.chat-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 14px; height: calc(100vh - 130px); min-height: 540px; }
.chat-main { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.chat-head b { font-size: 15.5px; display: block; }
.chat-head span { font-size: 12px; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.chat-head span i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-body { flex: 1; overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; max-width: 78%; }
.msg img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: center 15%; flex: none; }
.msg .bubble { padding: 13px 17px; border-radius: 4px 16px 16px 16px; background: var(--card2); border: 1px solid var(--line); font-size: 14.5px; }
.msg .meta { font-size: 11px; color: var(--faint); margin-top: 6px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--gold-soft); border-color: rgba(210, 173, 99, 0.3); border-radius: 16px 4px 16px 16px; }
.msg.me .meta { text-align: right; }
.chat-input { padding: 14px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat-input .field {
  flex: 1; background: var(--input); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; color: var(--dim); font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.chat-side { padding: 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.chat-side h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.kb-chip { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.kb-chip svg { color: var(--gold); flex: none; }
.kb-chip span { color: var(--dim); font-size: 11.5px; display: block; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 30px 28px; display: flex; flex-direction: column; position: relative; transition: transform 0.35s, box-shadow 0.35s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.hot { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--card) 40%); box-shadow: var(--glow); }
.plan .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(160deg, var(--gold2), var(--gold)); color: var(--gold-ink); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; padding: 6px 16px; border-radius: 999px; text-transform: uppercase; }
.plan h3 { font-size: 18px; }
.plan .price { font-size: 44px; font-weight: 800; margin: 14px 0 4px; }
.plan .price small { font-size: 14px; color: var(--faint); font-weight: 600; }
.plan .for { color: var(--dim); font-size: 13.5px; margin-bottom: 20px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; font-size: 14px; margin-bottom: 26px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--dim); }
.plan li svg { color: var(--gold); flex: none; margin-top: 3px; }
.plan li div { display: block; }
.plan li b { display: block; color: var(--text); font-weight: 600; }
.plan li span { display: block; margin-top: 3px; }
.plan .btn { justify-content: center; margin-top: auto; }

/* kb */
.kb-grid { display: grid; grid-template-columns: 300px 1fr; gap: 14px; }
.drop {
  border: 1.5px dashed var(--line2); border-radius: 14px; padding: 30px 20px;
  text-align: center; color: var(--dim); font-size: 13.5px; transition: border-color 0.3s, background 0.3s;
}
.drop:hover { border-color: var(--gold); background: var(--gold-soft); }
.drop svg { color: var(--gold); margin: 0 auto 12px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.doc:last-child { border-bottom: 0; }
.doc .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.doc b { font-size: 14px; display: block; }
.doc span { font-size: 12px; color: var(--faint); }
.doc .acts { margin-left: auto; display: flex; gap: 8px; }

/* today (life) */
.today-hero { display: grid; grid-template-columns: 1fr 340px; gap: 14px; margin-bottom: 14px; }
.greet { padding: 26px 30px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.greet h2 { font-size: 25px; margin: 8px 0 10px; }
.greet p { color: var(--dim); font-size: 14px; max-width: 46ch; }
.greet .glow { position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft), transparent 70%); }
.butler { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); min-height: 210px; }
.butler img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.butler .cap { position: absolute; inset: auto 0 0 0; padding: 30px 18px 14px; background: linear-gradient(to top, rgba(8, 8, 10, 0.8), transparent); color: #f4f0e6; }
.butler .cap b { font-size: 14.5px; display: block; }
.butler .cap span { font-size: 12px; color: rgba(235, 229, 212, 0.75); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { padding: 20px; }
.tile h4 { font-size: 13px; color: var(--faint); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.tile h4 svg { color: var(--gold); }
.agenda { display: flex; flex-direction: column; gap: 12px; }
.agenda .it { display: flex; gap: 12px; font-size: 13.5px; align-items: baseline; }
.agenda .it time { color: var(--gold); font-weight: 700; font-size: 12.5px; width: 52px; flex: none; }
.agenda .it span { color: var(--dim); }
.meter { height: 8px; border-radius: 6px; background: var(--card2); overflow: hidden; margin: 8px 0 6px; }
.meter i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }
.tile .big { font-size: 30px; font-weight: 800; }
.tile .big small { font-size: 13px; color: var(--faint); font-weight: 600; }

@media (max-width: 1080px) {
  .caps { grid-template-columns: repeat(3, 1fr); }
  .instead { grid-template-columns: repeat(2, 1fr); }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .team-stage, .why, .grid-2, .grid-2e, .today-hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .app { grid-template-columns: 64px 1fr; }
  .side a span, .side .sep, .side .me div, .side .brand span { display: none; }
  .nav-links { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
  .kb-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* leadership */
.exec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.exec-card {
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  background: var(--card); transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.exec-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.exec-card .ph { aspect-ratio: 1 / 1; overflow: hidden; }
.exec-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; transition: transform 6s ease; }
.exec-card:hover .ph img { transform: scale(1.05); }
.exec-card .tx { padding: 20px 22px 24px; }
.exec-card .name { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; }
.exec-card .role {
  display: inline-block; margin-top: 4px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; line-height: 1.5;
}
.exec-card .tx p { margin-top: 12px; font-size: 14px; color: var(--dim); }

/* initials avatar (testimonials / contacts) */
.avatar-init {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  border: 2px solid var(--gold); background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.t-person .avatar-init { width: 30px; height: 30px; font-size: 10.5px; border-width: 1.5px; }

/* ============ admin asset studio ============ */
.cfg-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.cfg-tabs a {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--dim); font-size: 13px; font-weight: 700; transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.cfg-tabs a:hover { color: var(--text); }
.cfg-tabs a.on { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.cfg-sec { margin-bottom: 26px; }
.cfg-sec > h3 { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.cfg-sec > .sub { font-size: 12.5px; color: var(--faint); margin-bottom: 14px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.asset-card { overflow: hidden; display: flex; flex-direction: column; }
.asset-card .ph { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--card2); }
.asset-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 14%; }
.asset-card .ph .slot {
  position: absolute; top: 10px; left: 10px;
}
.asset-card .bd { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cfg-field { display: flex; flex-direction: column; gap: 5px; }
.cfg-field label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.cfg-field .in {
  background: var(--input); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; font-size: 13px; color: var(--text); min-height: 34px;
}
.cfg-field .in.dim { color: var(--dim); }
.asset-acts { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.mini-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line2); border-radius: 8px; background: transparent;
  color: var(--dim); font-size: 12px; font-weight: 700; padding: 7px 12px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.mini-btn:hover { color: var(--gold); border-color: var(--gold); }
.mini-btn.gold { background: var(--gold-soft); border-color: var(--gold); color: var(--gold); }
.tgl {
  position: relative; width: 38px; height: 22px; border-radius: 999px; flex: none;
  background: var(--card2); border: 1px solid var(--line2); cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.tgl::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--faint); transition: left 0.25s, background 0.25s;
}
.tgl.on { background: var(--gold-soft); border-color: var(--gold); }
.tgl.on::after { left: 18px; background: var(--gold); }
.pool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-chips .pill { cursor: pointer; }
.pool-chips .pill.off { color: var(--faint); background: var(--card2); text-decoration: line-through; }
.cfg-row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cfg-row:last-child { border-bottom: 0; }
.cfg-row .lab { flex: 1; min-width: 0; }
.cfg-row .lab b { display: block; font-size: 13.5px; }
.cfg-row .lab span { display: block; font-size: 11.5px; color: var(--faint); }
.cfg-row .prev { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; object-position: center 14%; border: 1px solid var(--line2); flex: none; }
.cfg-row .prev.logo { object-fit: contain; padding: 8px; background: #101014; }
.cfg-row .prev.logo.lt { background: #f6f3ec; }
.drag { color: var(--faint); cursor: grab; flex: none; display: flex; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 700; }
.seg i { padding: 6px 14px; color: var(--dim); font-style: normal; cursor: pointer; }
.seg i.on { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 1080px) {
  .exec-grid { grid-template-columns: 1fr; }
  .demo-inner { grid-template-columns: 1fr; }
  .demo-faces { max-width: 520px; }
}

/* ============ book a demo modal ============ */
.modal-back {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(6, 6, 8, 0.68); backdrop-filter: blur(8px);
  animation: modal-fade 0.25s ease both;
}
.modal-back[hidden] { display: none; }
.modal {
  width: min(560px, calc(100vw - 28px)); max-height: min(720px, calc(100vh - 32px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line2); border-radius: 14px;
  box-shadow: var(--shadow), var(--glow); animation: modal-rise 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; gap: 13px; padding: 16px 18px;
  border-bottom: 1px solid var(--line); background: var(--card2);
}
.modal-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); flex: none; }
.modal-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.modal-head .eyebrow { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 800; }
.modal-title { font-size: 14.5px; font-weight: 700; margin-top: 2px; }
.modal-head .icon-btn { margin-left: auto; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--dim); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: var(--gold); border-color: var(--gold); }
.modal-chat {
  flex: 1; overflow-y: auto; padding: 20px 20px 10px; display: flex; flex-direction: column; gap: 14px;
  min-height: 240px; max-height: 52vh;
}
.modal-chat .msg { display: flex; gap: 10px; max-width: 86%; align-items: flex-start; }
.modal-chat .msg .avatar { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1.5px solid var(--gold); flex: none; }
.modal-chat .msg .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; }
.modal-chat .msg .bubble {
  padding: 11px 15px; border-radius: 4px 14px 14px 14px; background: var(--card2);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--text);
}
.modal-chat .msg.user { margin-left: auto; flex-direction: row-reverse; }
.modal-chat .msg.user .bubble { background: var(--gold-soft); border-color: rgba(210, 173, 99, 0.32); border-radius: 14px 4px 14px 14px; }
.typing { display: inline-flex; gap: 5px; align-items: center; min-width: 46px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: typing-bounce 1s ease infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }
.modal-foot { padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--card); color: var(--text); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.demo-field { display: flex; gap: 9px; }
.demo-field input {
  flex: 1; min-width: 0; background: var(--input); border: 1px solid var(--line2);
  border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 14px;
}
.demo-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.demo-field input[aria-invalid="true"] { border-color: var(--bad); }
.demo-consent { display: flex; flex-direction: column; gap: 12px; }
.demo-consent label {
  display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--dim); line-height: 1.45;
}
.demo-consent input { margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.demo-consent .btn { justify-content: center; }
.demo-consent .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.demo-done { display: flex; flex-direction: column; gap: 14px; }
.demo-summary {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px;
  background: var(--card2); border: 1px solid var(--line);
}
.demo-summary b { font-size: 13.5px; }
.demo-summary span { font-size: 12.5px; color: var(--dim); }
body.modal-open { overflow: hidden; }
@media (max-width: 520px) {
  .modal-chat .msg { max-width: 92%; }
  .demo-field { flex-direction: column; }
}

.chips + .demo-field { margin-top: 10px; }
.demo-skip { margin-top: 10px; display: flex; justify-content: flex-end; }
.link-btn {
  background: none; border: 0; color: var(--faint); font-size: 12.5px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 6px 8px;
}
.link-btn:hover { color: var(--gold); }

/* ============ landing widgets (login / support) ============ */
.modal-back { display: none; }
.modal-back:not([hidden]), .modal-back.open { display: flex; }
.modal-back[hidden] { display: none !important; }
#login-modal .modal { max-width: 460px; }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
.auth-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; font-size: 15px; font-weight: 700; color: var(--faint); cursor: pointer; }
.auth-tab.on { color: var(--gold); border-bottom-color: var(--gold); }
.modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.modal-field label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 700; }
.modal-field input { background: var(--input); border: 1px solid var(--line2); border-radius: 10px; padding: 11px 14px; color: var(--text); font-size: 14px; width: 100%; }
.modal-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.modal-error { display: none; color: var(--bad); font-size: 13px; margin: 6px 0 10px; }
.modal-error.show { display: block; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.modal-actions .btn { padding: 10px 20px; }
.support-bubble { position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(160deg, var(--gold2), var(--gold)); color: var(--gold-ink); font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: var(--glow); z-index: 100; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.support-bubble:hover, .support-bubble:focus-visible { transform: translateY(-2px) scale(1.05); box-shadow: var(--glow); outline: 2px solid var(--gold); outline-offset: 2px; }
.support-bubble:active { transform: scale(0.96); }
.support-panel { position: fixed; right: 22px; bottom: 86px; width: 340px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 120px); background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden; z-index: 100; }
.support-panel.open { display: flex; }
.support-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.support-head > span { font-weight: 800; font-size: 14px; }
.support-head .tab { margin-left: auto; display: flex; background: var(--card2); border-radius: 999px; padding: 3px; }
.support-head .tab button { border: 0; background: none; color: var(--faint); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; cursor: pointer; }
.support-head .tab button.active { background: var(--gold); color: var(--gold-ink); }
.support-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.support-foot { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.support-foot input { flex: 1; min-width: 0; background: var(--input); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 12px; color: var(--text); font-size: 13px; }
.support-foot .btn { padding: 9px 16px; font-size: 13px; }
.support-form { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.support-form input, .support-form textarea { background: var(--input); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; color: var(--text); font-size: 13px; resize: none; }
.support-form button { background: linear-gradient(160deg, var(--gold2), var(--gold)); color: var(--gold-ink); border: 0; border-radius: 999px; padding: 11px; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) {
  .support-panel { right: 16px; bottom: 78px; width: calc(100vw - 32px); }
  .support-bubble { right: 16px; bottom: 16px; }
}

/* login modal uses .open; book-a-demo uses [hidden] — id rules keep them independent */
#login-modal { display: none; }
#login-modal.open { display: flex; }
