@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/estedad/Estedad-arabic.woff2") format("woff2-variations"),
       url("../fonts/estedad/Estedad-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Estedad";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/estedad/Estedad-latin.woff2") format("woff2-variations"),
       url("../fonts/estedad/Estedad-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/vazirmatn/Vazirmatn-Variable.woff2") format("woff2");
}

:root {
  --primary-950: #4b0718;
  --primary-900: #6f1522;
  --primary-800: #7a1826;
  --primary: #8f1d2c;
  --primary-500: #b4233f;
  --coral: #b45309;
  --orange: #b45309;
  --orange-700: #92400e;
  --cyan: #0f766e;
  --cyan-soft: #ccfbf1;
  --teal: #14532d;
  --lime: #166534;
  --gold: #b45309;
  --ink: #1c1917;
  --ink-2: #292524;
  --surface: #ffffff;
  --surface-2: #faf7f4;
  --surface-3: #f4ebe6;
  --line: #e7d5cf;
  --muted: #57534e;
  --success: #166534;
  --danger: #b4233f;
  --focus: #0f766e;
  --color-primary: var(--primary);
  --color-on-primary: #ffffff;
  --color-secondary: var(--teal);
  --color-accent: var(--gold);
  --color-cta: var(--primary);
  --color-background: var(--surface-2);
  --color-foreground: var(--ink);
  --color-card: var(--surface);
  --color-muted: var(--surface-3);
  --color-muted-foreground: var(--muted);
  --color-border: var(--line);
  --color-ring: var(--focus);
  --color-destructive: var(--danger);
  --color-success: var(--success);
  --font-display: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --ease-spring: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-1: 0 1px 2px rgba(28, 25, 23, .06);
  --shadow-2: 0 8px 24px rgba(28, 25, 23, .08);
  --shadow-clay: var(--shadow-1);
  --max: 1180px;
  --sidebar: 272px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --touch: 44px;
  --glass-bg: rgba(255, 255, 255, .42);
  --glass-bg-strong: rgba(255, 255, 255, .64);
  --glass-bg-dark: rgba(20, 12, 16, .46);
  --glass-border: rgba(255, 255, 255, .58);
  --glass-border-dark: rgba(255, 255, 255, .26);
  --glass-blur: 16px;
  --glass-saturate: 170%;
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, .72);
  --glass-depth: 0 12px 36px rgba(28, 25, 23, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #ead8d0;
  background-image:
    radial-gradient(42rem 26rem at 8% -6%, rgba(143, 29, 44, .28), transparent 72%),
    radial-gradient(34rem 22rem at 96% 4%, rgba(180, 83, 9, .22), transparent 70%),
    radial-gradient(36rem 28rem at 78% 78%, rgba(15, 118, 110, .18), transparent 72%),
    radial-gradient(28rem 20rem at 4% 94%, rgba(20, 83, 45, .14), transparent 68%),
    linear-gradient(180deg, #f7efe9 0%, #ead8d0 46%, #f4e6de 100%);
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.7;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
.glass-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.glass-orbs span {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .85;
}
.glass-orbs span:nth-child(1) {
  width: 22rem;
  height: 22rem;
  top: -6rem;
  inset-inline-end: -4rem;
  background: radial-gradient(circle, rgba(143, 29, 44, .38), transparent 68%);
  animation: glass-drift 18s var(--ease-out) infinite;
}
.glass-orbs span:nth-child(2) {
  width: 18rem;
  height: 18rem;
  top: 38%;
  inset-inline-start: -6rem;
  background: radial-gradient(circle, rgba(15, 118, 110, .3), transparent 70%);
  animation: glass-drift 22s var(--ease-out) infinite reverse;
}
.glass-orbs span:nth-child(3) {
  width: 16rem;
  height: 16rem;
  bottom: 8%;
  inset-inline-end: 12%;
  background: radial-gradient(circle, rgba(180, 83, 9, .32), transparent 68%);
  animation: glass-drift 16s var(--ease-out) infinite;
}
@keyframes glass-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 14px) scale(1.06); }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select, textarea { font: inherit; }
button, [type="submit"], [type="button"], label[for], select, summary { cursor: pointer; }
button { touch-action: manipulation; }
code, pre, .num { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.35;
  text-wrap: balance;
  margin-block-start: 0;
  color: var(--ink);
}
h1 { font-size: clamp(1.55rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.2rem, 2.2vw, 1.85rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: clamp(.98rem, 1.3vw, 1.15rem); font-weight: 750; }
p { text-wrap: pretty; }
::selection { background: var(--gold); color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  inset-inline-start: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  transition: top .18s var(--ease-out);
}
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.icon .fill { fill: currentColor; stroke: none; }

/* Public navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 10px;
  background: transparent;
}
.header-bar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 8px 12px 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), 0 10px 30px rgba(28, 25, 23, .08);
  backdrop-filter: blur(18px) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(18px) saturate(var(--glass-saturate));
}
.nav {
  min-height: 0;
  display: contents;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-inline-start: 6px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(111, 11, 37, .2);
}
.brand-copy { display: grid; line-height: 1.15; font-size: 1.05rem; }
.brand-copy small { color: var(--muted); font: 500 .68rem var(--font-body); letter-spacing: 0; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}
.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 650;
  font-size: .92rem;
  transition: color .18s, background-color .18s, transform .18s var(--ease-spring);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--primary); background: rgba(169, 15, 51, .08); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

/* Buttons */
.btn, .btn-primary, .btn-secondary, .btn-ghost {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 21px;
  border: 2px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: .93rem;
  font-weight: 780;
  line-height: 1.2;
  transition: transform .16s var(--ease-spring), box-shadow .18s, background-color .18s, color .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary-900);
  box-shadow: none;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--primary-800); box-shadow: var(--shadow-1); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-secondary {
  color: var(--primary);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--glass-inset);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.btn-secondary:hover { color: #fff; background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.btn-ghost { color: var(--ink-2); background: transparent; padding-inline: 10px; }
.btn-ghost:hover { color: var(--primary); background: rgba(169, 15, 51, .06); }
.btn-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero {
  min-height: min(560px, calc(100dvh - 72px));
  position: relative;
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
  background: var(--primary-950);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(23, 7, 18, .12) 0%, rgba(23, 7, 18, .18) 42%, rgba(23, 7, 18, .9) 83%),
    url("../img/safiran-hero-3d.webp") center / cover no-repeat;
  transform: scale(1.025);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, transparent 58%, rgba(21, 19, 38, .78)),
    radial-gradient(circle at 78% 18%, rgba(255, 187, 36, .2), transparent 22rem);
}
.hero-layers { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-shape {
  position: absolute;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 38% 62% 62% 38% / 48% 40% 60% 52%;
}
.hero-shape.one { width: 310px; height: 310px; top: -115px; right: 8%; transform: translateY(var(--parallax-y, 0)) rotate(18deg); }
.hero-shape.two { width: 160px; height: 160px; bottom: 7%; right: 46%; background: rgba(8, 145, 178, .12); transform: translateY(var(--parallax-y, 0)) rotate(-25deg); }
.hero-copy {
  position: relative;
  max-width: 720px;
  margin-inline-start: auto;
  padding-block: clamp(72px, 10vw, 128px);
}
.eyebrow, .section-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
  font-size: .83rem;
  letter-spacing: .035em;
}
.eyebrow::before, .section-kicker::before {
  content: "";
  width: 28px;
  height: 4px;
  border-radius: 8px;
  background: currentColor;
  box-shadow: 8px 0 0 var(--coral);
}
.hero h1 {
  color: #fff;
  max-width: 15ch;
  margin: 0 0 20px;
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.08;
  text-shadow: 0 4px 0 rgba(75, 7, 24, .18), 0 18px 45px rgba(0,0,0,.22);
}
.hero .hero-lede {
  max-width: 48ch;
  margin: 0 0 30px;
  color: #f8e9e8;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
}
.hero .btn-secondary { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }
.hero .btn-secondary:hover { background: #fff; color: var(--primary-900); }
.hero .btn-ghost { color: #fff; }
.hero-badge {
  position: absolute;
  bottom: 38px;
  inset-inline-start: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(21,19,38,.38);
  backdrop-filter: blur(12px);
  font-weight: 650;
}
.hero-badge .pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(132,204,22,.14);
}

.prop-strip {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 32px));
  margin: -32px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(16px);
}
.prop-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 24px;
  border-inline-end: 1px solid var(--line);
}
.prop-item:last-child { border-inline-end: 0; }
.prop-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-500), var(--primary-900));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 6px 0 rgba(111,11,37,.12);
}
.prop-copy { display: grid; line-height: 1.35; }
.prop-copy strong { font-family: var(--font-display); font-size: 1.02rem; }
.prop-copy small { color: var(--muted); }

/* Public content */
.section { padding-block: clamp(70px, 9vw, 118px); position: relative; }
.section > .wrap > h1:first-child {
  max-width: 16ch;
  margin-bottom: 38px;
  color: var(--primary-900);
  text-shadow: 0 3px 0 rgba(169,15,51,.09);
}
.section > .wrap > h1:first-child::before {
  content: "";
  display: block;
  width: 54px;
  height: 8px;
  margin-bottom: 15px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--orange), var(--coral), var(--cyan));
  box-shadow: 0 5px 0 rgba(169,15,51,.08);
}
.section-tint {
  background:
    linear-gradient(120deg, rgba(169,15,51,.08), rgba(8,145,178,.09));
  border-block: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2 { margin-bottom: 6px; }
.section-kicker { color: var(--primary); margin-bottom: 8px; }
.lede { max-width: 58ch; margin: 0; color: var(--muted); font-size: 1.02rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  overflow: hidden;
  transition: transform .24s var(--ease-spring), box-shadow .24s, border-color .24s;
}
.card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  inset-inline-end: -45px;
  bottom: -55px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,69,.13), transparent 68%);
  pointer-events: none;
}
a.card:hover, .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: rgba(169,15,51,.3); }
.card h2, .card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--cyan-soft);
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 rgba(8,145,178,.1), 0 5px 0 rgba(8,145,178,.08);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--primary);
  font-weight: 800;
}
.card-link .icon { width: 17px; height: 17px; }
.branch-card:nth-child(2n) .card-icon { color: var(--teal); background: #ccfbf1; }
.article-card { min-height: 245px; display: flex; flex-direction: column; }
.article-card .card-link { margin-top: auto; }
.tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid rgba(169,15,51,.12);
  border-radius: 9px;
  color: var(--primary-900);
  background: #fff0f1;
  font-size: .78rem;
  font-weight: 750;
}
.price { color: var(--primary); font-family: var(--font-display); font-size: 1.2rem; font-weight: 850; }
.feature-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding: clamp(30px, 5vw, 58px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  border: 1px solid var(--glass-border-dark);
  background:
    linear-gradient(135deg, rgba(20, 12, 16, .62), rgba(75, 7, 24, .48)),
    url("../img/safiran-hero-3d.webp") center / cover no-repeat;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--glass-inset), 0 28px 70px rgba(21,19,38,.28);
}
.feature-stage h2 { color: #fff; }
.feature-stage p { color: #d8d4e4; }
.feature-art {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 24px;
  transform: perspective(900px) rotateY(7deg) rotateX(2deg);
  box-shadow: -18px 22px 0 rgba(255,92,69,.14), -34px 38px 60px rgba(0,0,0,.25);
}
.feature-list { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 10px; align-items: center; }
.feature-list .icon { color: var(--lime); }
.muted { color: var(--muted); }
.nap { font-style: normal; }
.article-body { width: min(100%, 68ch); font-size: 1.08rem; }
.article-body p { margin-block: 1.2em; }

/* Auth */
.auth-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(340px, 560px) 1fr;
  background: var(--surface-2);
}
.auth-main {
  display: grid;
  align-content: center;
  width: min(100%, 500px);
  padding: clamp(28px, 6vw, 72px);
  margin-inline: auto;
}
.auth-main h1 { font-size: clamp(1.45rem, 3vw, 2.2rem); margin-block: 28px 8px; }
.auth-art {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(21,19,38,.25)),
    url("../img/safiran-hero-3d.webp") 38% center / cover no-repeat;
}
.auth-art::after {
  content: "جایی برای رشد، بازی و ساختن آینده";
  position: absolute;
  right: clamp(30px, 5vw, 72px);
  bottom: clamp(34px, 8vw, 90px);
  width: min(520px, calc(100% - 60px));
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 4.8rem);
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 9px 30px rgba(0,0,0,.35);
}

/* Forms */
.form { display: grid; gap: 17px; max-width: 500px; }
.form-wide { max-width: 760px; }
label { display: grid; gap: 7px; font-weight: 720; color: var(--ink-2); }
label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 9px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 14px;
  border: 1.5px solid var(--glass-border);
  border-radius: 13px;
  background: var(--glass-bg-strong);
  color: var(--ink);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 120px; resize: vertical; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; accent-color: var(--primary); }
input:hover, select:hover, textarea:hover { border-color: rgba(169,15,51,.42); }
input:focus, select:focus, textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(8,145,178,.12);
  background: #fff;
}
.flash {
  padding: 13px 16px;
  margin-block: 12px;
  border: 1px solid;
  border-radius: 14px;
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.flash-ok { background: rgba(231, 248, 239, .72); border-color: #a8e4c2; color: #075d38; }
.flash-err { background: rgba(255, 240, 241, .78); border-color: #f6b7c3; color: #8e1730; }
.demo-code {
  width: fit-content;
  padding: 12px 18px;
  border: 2px dashed var(--primary-500);
  border-radius: 16px;
  color: var(--primary);
  background: #fff;
  font: 900 2rem var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .14em;
}
.field-help { color: var(--muted); font-size: .78rem; font-weight: 500; }

/* Mobile application kit */
.mobile-tabbar { display: none; }
.mobile-more-sheet,
.mobile-sheet-scrim { display: none; }
.drawer-open { overflow: hidden; }

/* Panel shell */
.panel-body {
  background-color: #ead8d0;
  background-image:
    radial-gradient(circle at 88% 0, rgba(143,29,44,.16), transparent 28rem),
    radial-gradient(circle at 15% 85%, rgba(15,118,110,.14), transparent 26rem),
    linear-gradient(180deg, #f7efe9, #ead8d0);
}
.panel-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.side {
  position: sticky;
  top: 0;
  z-index: 110;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  overflow-y: auto;
  color: #f6f1f5;
  background:
    radial-gradient(circle at 35% 0, rgba(255,92,69,.2), transparent 18rem),
    linear-gradient(165deg, #271126, #151326 58%, #0d2530);
  border-inline-end: 1px solid rgba(255,255,255,.08);
}
.side::after {
  content: "";
  position: fixed;
  width: 210px;
  height: 210px;
  inset-inline-start: -110px;
  bottom: -90px;
  border: 34px solid rgba(8,145,178,.07);
  border-radius: 50%;
  pointer-events: none;
}
.side-brand { color: #fff; padding: 4px 5px 18px; }
.side-brand .brand-mark { width: 48px; height: 48px; }
.side-brand small { color: #c6bdc9; }
.user-panel {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}
.user-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold), var(--orange));
  font-family: var(--font-display);
  font-weight: 900;
}
.user-panel strong, .user-panel small { display: block; line-height: 1.35; }
.user-panel small { color: #bfb6c3; font-size: .75rem; }
.side-nav { display: grid; gap: 4px; }
.side-nav a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: #d8d0dc;
  font-weight: 620;
  transition: background .18s, color .18s, transform .18s;
}
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(-2px); }
.side-nav a.active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 5px 0 rgba(194,65,12,.35), 0 12px 25px rgba(249,115,22,.18);
}
.side-nav .icon { width: 20px; height: 20px; }
.side-nav-label {
  margin: 16px 14px 6px;
  color: rgba(255, 248, 240, .52);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.side-nav-label:first-child { margin-top: 4px; }
.side-bottom { margin-top: auto; padding-top: 18px; }
.side-bottom .btn-secondary { width: 100%; color: #f8e9e8; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.04); box-shadow: none; }
.side-bottom .btn-secondary:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.panel-main { min-width: 0; padding: 0 clamp(16px, 3.4vw, 48px) 40px; }
.panel-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(169,15,51,.08);
}
.panel-title { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.85rem); }
.panel-subtitle { margin: 1px 0 0; color: var(--muted); font-size: .87rem; }
.panel-top-actions { display: flex; align-items: center; gap: 10px; }
.panel-icon-button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.panel-menu { display: none; }
.panel-content { max-width: 1500px; margin-inline: auto; }
.panel-content > h2 { margin-top: 38px; font-size: 1.55rem; }
.panel-content > .form,
.panel-content > form.form {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.panel-content > ul:not(.feature-list) {
  display: grid;
  gap: 9px;
  padding: 0;
  list-style: none;
}
.panel-content > ul:not(.feature-list) > li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-1);
}
.panel-footer {
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.panel-scrim { display: none; }

/* Dashboard */
.welcome-banner {
  min-height: 270px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  margin-bottom: 26px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-inset), var(--glass-depth);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.welcome-copy { padding: clamp(24px, 4vw, 48px); position: relative; z-index: 1; }
.welcome-copy h2 { margin-bottom: 9px; font-size: clamp(1.8rem, 3.2vw, 3.15rem); }
.welcome-copy p { max-width: 42ch; color: var(--muted); }
.welcome-art {
  min-height: 270px;
  height: 100%;
  background:
    linear-gradient(90deg, #fff 0, rgba(255,255,255,.02) 22%),
    url("../img/safiran-dashboard-3d.webp") left center / cover no-repeat;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat-card {
  position: relative;
  min-height: 148px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 21px;
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  inset-inline-end: -28px;
  bottom: -36px;
  border-radius: 50%;
  background: var(--stat-soft, #fff0f1);
}
.stat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--stat-color, var(--primary));
  background: var(--stat-soft, #fff0f1);
}
.stat-label { color: var(--muted); font-size: .84rem; font-weight: 650; }
.stat-value { margin-top: 15px; font: 900 clamp(1.8rem, 3vw, 2.6rem) var(--font-display); line-height: 1; }
.stat-card.cyan { --stat-color: var(--cyan); --stat-soft: var(--cyan-soft); }
.stat-card.green { --stat-color: var(--success); --stat-soft: #dcfce7; }
.stat-card.orange { --stat-color: var(--orange-700); --stat-soft: #ffedd5; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .7fr); gap: 20px; margin-top: 22px; }
.panel-card {
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.panel-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-card-head h2 { margin: 0; font-size: 1.35rem; }
.quick-links { display: grid; gap: 9px; }
.quick-link {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  font-weight: 700;
  transition: transform .18s, border-color .18s, background .18s;
}
.quick-link:hover { transform: translateX(-3px); border-color: var(--primary-500); background: #fff; }
.quick-link .icon { color: var(--primary); }

/* Tables — opaque-enough inner surface so glass is not stacked inside glass */
.table-scroll {
  width: 100%;
  margin-block: 18px;
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--glass-inset);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
table { width: 100%; min-width: 620px; border-collapse: collapse; background: transparent; }
th, td { padding: 14px 15px; border-bottom: 1px solid #eee6e9; text-align: right; vertical-align: middle; }
th { color: var(--muted); background: #fcf9fa; font-size: .79rem; font-weight: 780; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fff8f6; }
tbody tr:last-child td { border-bottom: 0; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 10px;
  background: #f3f0f5;
  color: var(--ink-2);
  font-size: .78rem;
  font-weight: 750;
}
.status-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-badge.paid, .status-badge.approved, .status-badge.active, .status-badge.present { color: var(--success); background: #e8f8ef; }
.status-badge.pending, .status-badge.late { color: #9a4c05; background: #fff4d6; }
.status-badge.failed, .status-badge.rejected, .status-badge.revoked, .status-badge.absent { color: var(--danger); background: #fff0f1; }

/* Footer */
.site-footer {
  position: relative;
  margin-top: 0;
  padding: 70px 0 28px;
  overflow: hidden;
  color: #e8e2ec;
  border-top: 1px solid var(--glass-border-dark);
  background:
    linear-gradient(180deg, rgba(20,12,16,.55), rgba(20,12,16,.78)),
    radial-gradient(circle at 92% 20%, rgba(255,92,69,.22), transparent 20rem),
    radial-gradient(circle at 8% 100%, rgba(8,145,178,.18), transparent 22rem),
    var(--ink);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.foot-grid > div {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border-dark);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.footer-brand { color: #fff; font: 850 1.25rem var(--font-display); }
.foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 42px; }
.foot-grid h3 { color: #fff; margin-bottom: 12px; }
.foot-links { display: grid; gap: 7px; }
.foot-links a { color: #cfc7d3; }
.foot-links a:hover { color: var(--gold); }
.credit { margin-top: 35px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #bcb4c1; font-size: .82rem; }
.credit a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Motion is opt-in in JS; content stays visible without JavaScript */
.motion-ready .reveal:not(.on) { opacity: 0; transform: translateY(18px) scale(.985); }
.reveal.on { animation: reveal-in .52s var(--ease-out) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.float-soft { animation: float-soft 5.5s ease-in-out infinite; }
@keyframes float-soft { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

@media (max-width: 1180px) {
  .header-bar { gap: 10px; }
  .nav-links a { padding-inline: 9px; font-size: .88rem; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .prop-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-bar { grid-template-columns: auto 1fr auto; position: relative; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    padding: 14px;
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    box-shadow: var(--glass-depth);
    z-index: 40;
  }
  .nav-links.open { display: grid; gap: 4px; }
  .nav-links a { width: 100%; min-height: 48px; font-size: 1.05rem; font-weight: 750; border-radius: 14px; }
  .menu-toggle { display: inline-flex; }
  .hero::before { background-position: 35% center; }
  .hero-copy { max-width: 620px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-stage { grid-template-columns: 1fr; }
  .feature-art { transform: none; aspect-ratio: 16 / 8; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .panel-shell { display: block; }
  .side {
    position: fixed;
    inset: 0 auto 0 0;
    inset-inline-start: auto;
    inset-inline-end: 0;
    width: min(var(--sidebar), calc(100vw - 46px));
    transform: translateX(110%);
    transition: transform .28s var(--ease-out);
    z-index: 130;
    box-shadow: -22px 0 60px rgba(21,19,38,.25);
  }
  .side.open { transform: translateX(0); }
  .panel-scrim {
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(21,19,38,.5);
    backdrop-filter: blur(3px);
  }
  .panel-scrim.open { display: block; }
  .panel-menu { display: grid; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .public-app-shell,
  .panel-body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .wrap { width: min(100% - 24px, var(--max)); }
  .site-header { padding-block: 8px; }
  .header-bar {
    grid-template-columns: auto 1fr auto;
    min-height: 62px;
    border-radius: 18px;
    padding: 6px 8px;
  }
  .site-header .btn-primary { display: none; }
  .brand-copy small { display: none; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .hero { min-height: min(520px, calc(100dvh - 68px)); align-items: end; }
  .hero::before {
    background:
      linear-gradient(0deg, rgba(21,19,38,.92) 0, rgba(21,19,38,.62) 50%, rgba(21,19,38,.06) 100%),
      url("../img/safiran-hero-3d.webp") 34% center / cover no-repeat;
  }
  .hero-copy { padding-block: 160px 86px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .hero-badge { display: none; }
  .hero .btn-row > * { flex: 1 1 150px; }
  .prop-strip { grid-template-columns: 1fr; margin-top: -18px; }
  .prop-item { min-height: 76px; padding: 13px 16px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .prop-item:last-child { border-bottom: 0; }
  .prop-icon { width: 44px; height: 44px; }
  .section { padding-block: 66px; }
  .section-heading { align-items: start; flex-direction: column; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-stage { padding: 24px; border-radius: 24px; }
  .feature-art { aspect-ratio: 4 / 3; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  .mobile-tabbar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 120;
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 -12px 34px rgba(21,19,38,.12);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .mobile-tabbar a,
  .mobile-tabbar button {
    min-width: 0;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 5px 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: #746b78;
    font-size: .67rem;
    font-weight: 700;
    line-height: 1.15;
    transition: color .16s, background .16s, transform .16s var(--ease-spring);
  }
  .mobile-tabbar a:active,
  .mobile-tabbar button:active { transform: scale(.94); }
  .mobile-tabbar .icon { width: 22px; height: 22px; }
  .mobile-tabbar .active {
    color: var(--primary);
    background: #fff0f1;
  }
  .mobile-tabbar .active .icon {
    filter: drop-shadow(0 4px 6px rgba(169,15,51,.2));
    transform: translateY(-1px);
  }
  .panel-mobile-tabs {
    border-top-color: rgba(8,145,178,.15);
    background: rgba(21,19,38,.96);
  }
  .panel-mobile-tabs a,
  .panel-mobile-tabs button { color: #bfb6c3; }
  .panel-mobile-tabs .active { color: var(--ink); background: linear-gradient(145deg, var(--gold), var(--orange)); }
  .panel-body .side,
  .panel-body .panel-scrim { display: none !important; }
  .mobile-sheet-scrim {
    position: fixed;
    inset: 0;
    z-index: 135;
    border: 0;
    background: rgba(21,19,38,.56);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .mobile-sheet-scrim.open {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .mobile-more-sheet {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 140;
    max-height: min(78dvh, 680px);
    display: block;
    padding: 8px 14px calc(22px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.1);
    border-bottom: 0;
    border-radius: 26px 26px 0 0;
    background:
      radial-gradient(circle at 85% 0, rgba(255,92,69,.18), transparent 17rem),
      linear-gradient(165deg, #271126, #151326 65%, #0d2530);
    color: #fff;
    box-shadow: 0 -24px 70px rgba(21,19,38,.3);
    transform: translateY(108%);
    visibility: hidden;
    transition: transform .28s var(--ease-out), visibility .28s;
  }
  .mobile-more-sheet.open { transform: translateY(0); visibility: visible; }
  .sheet-handle {
    width: 46px;
    height: 5px;
    margin: 2px auto 11px;
    border-radius: 5px;
    background: rgba(255,255,255,.28);
  }
  .sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
  }
  .sheet-header strong,
  .sheet-header small { display: block; }
  .sheet-header strong { font: 850 1.2rem var(--font-display); }
  .sheet-header small { color: #bfb6c3; font-size: .75rem; }
  .sheet-header .panel-icon-button { color: #fff; border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.08); box-shadow: none; }
  .sheet-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sheet-nav-label {
    grid-column: 1 / -1;
    margin: 8px 4px 0;
    color: #bfb6c3;
    font-size: .72rem;
    font-weight: 800;
  }
  .sheet-nav a {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 17px;
    background: rgba(255,255,255,.06);
    color: #e4dde7;
    font-size: .82rem;
    font-weight: 700;
  }
  .sheet-nav a.active { color: var(--ink); background: linear-gradient(145deg, var(--gold), var(--orange)); }
  .sheet-nav-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 13px;
    background: rgba(255,255,255,.1);
  }
  .panel-main { padding-inline: 12px; padding-bottom: 20px; }
  .panel-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 70px;
    margin: 0 -12px 14px;
    padding-inline: 12px;
    background: rgba(247,245,251,.9);
    backdrop-filter: blur(16px);
  }
  .panel-subtitle { display: none; }
  .panel-top-actions .btn-ghost { display: none; }
  .panel-menu { display: none; }
  .panel-title { font-size: 1.35rem; }
  .panel-content > .form,
  .panel-content > form.form { max-width: none !important; padding: 17px; border-radius: 19px; }
  .welcome-banner { grid-template-columns: 1fr; }
  .welcome-copy { padding: 24px; }
  .welcome-art { min-height: 190px; order: -1; background-position: 30% center; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 132px; padding: 16px; }
  .stat-value { font-size: 1.8rem; }
  .panel-card { padding: 16px; }
  .table-scroll {
    margin-inline: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  table.mobile-card-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }
  .mobile-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .mobile-card-table tbody { display: grid; gap: 12px; }
  .mobile-card-table tbody tr {
    display: grid;
    gap: 0;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-1);
  }
  .mobile-card-table tbody td {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px dashed #eadfe3;
    overflow-wrap: anywhere;
    text-align: left;
  }
  .mobile-card-table tbody td:last-child { border-bottom: 0; }
  .mobile-card-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 35%;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 750;
    text-align: right;
  }
  .mobile-card-table tbody td:not([data-label])::before { display: none; }
  .mobile-card-table tbody td select { max-width: 58%; }
  .btn, .btn-primary, .btn-secondary { min-height: 48px; }
}

@media (max-width: 390px) {
  .stat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .motion-ready .reveal:not(.on) { opacity: 1; transform: none; }
  .hero::before, .feature-art { transform: none !important; }
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  font-size: .9rem;
}
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; }
.check-row input { margin-top: 4px; width: 18px; height: 18px; }
.survey-report { padding: 12px 0; border-bottom: 1px solid var(--line); }
.survey-report:last-child { border-bottom: 0; }
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.channel-grid legend { font-weight: 720; margin-bottom: 8px; }
.channel-opt {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--glass-border);
  border-radius: 13px;
  font-weight: 650;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.channel-opt:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-3);
}
.auth-switch { margin-top: 18px; color: var(--muted); }
.auth-switch a { color: var(--primary); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-actions form { margin: 0; }
.section { content-visibility: auto; contain-intrinsic-size: 1px 640px; }
.hero, .prop-strip { content-visibility: visible; }
.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 8px;
}
.role-pick-btn {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-1);
  text-align: start;
}
.role-pick-btn strong { font-size: 1.02rem; }
.role-pick-btn small { color: var(--muted); font-size: .82rem; }
.role-pick-btn:hover, .role-pick-btn:focus-visible {
  border-color: var(--primary);
  background: var(--surface-3);
}
.person-chip a { color: var(--primary); font-weight: 750; }
@media (max-width: 520px) {
  .role-pick { grid-template-columns: 1fr; }
}

.app-promo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset), var(--glass-depth);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.app-promo-visual {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--primary-900);
  box-shadow: var(--shadow-clay);
}
.app-promo-visual img { width: 100%; height: 100%; object-fit: cover; }
.app-promo-copy h2 { margin: 0 0 8px; }
.app-promo-copy p { margin: 0 0 16px; color: var(--muted); }
.app-sticky {
  position: fixed;
  z-index: 160;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px 10px 14px;
  border-radius: 20px;
  background: var(--glass-bg-dark);
  border: 1px solid var(--glass-border-dark);
  color: #fff;
  box-shadow: var(--glass-depth);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  min-height: 64px;
}
.app-sticky.is-on { display: grid; }
.app-sticky img { width: 44px; height: 44px; border-radius: 14px; }
.app-sticky strong { display: block; font-size: .92rem; }
.app-sticky small { color: #d7cfd6; }
.app-sticky .btn-primary { min-height: 44px; padding-inline: 16px; }
.app-sticky-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
}
.public-app-shell.has-app-sticky { padding-bottom: 88px; }
@media (max-width: 900px) {
  .app-sticky { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .app-promo { grid-template-columns: 1fr; }
}
.in-club-app .app-sticky,
.in-club-app .app-promo,
.in-club-app .app-download-link { display: none !important; }
.android-hero { padding-top: 48px; }
.android-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; }
.android-phone {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.install-steps { padding: 0 1.2rem; line-height: 2; }
@media (max-width: 900px) {
  .android-hero-grid { grid-template-columns: 1fr; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.logout-form { display: inline-flex; margin: 0; }
.btn-logout {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(180, 35, 63, .28);
  background: #fff;
  color: var(--danger);
  font-weight: 750;
  box-shadow: var(--shadow-1);
}
.btn-logout:hover { background: var(--danger); color: #fff; }
.panel-top-actions .btn-logout { background: #fff8f7; }
.sheet-logout { margin-top: 16px; }
.sheet-logout .btn-logout { width: 100%; background: rgba(180,35,63,.18); color: #ffd4d4; border-color: rgba(255,255,255,.14); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.academy-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cal-dow { font-size: .75rem; font-weight: 750; color: var(--muted); text-align: center; padding: 6px 0; }
.cal-cell {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.cal-cell:hover,
.cal-cell:focus-within {
  border-color: rgba(169, 15, 51, .45);
  box-shadow: var(--shadow-1);
}
.cal-cell.is-empty { background: transparent; border-color: transparent; cursor: default; box-shadow: none; }
.cal-cell.has-event { border-color: rgba(169,15,51,.28); background: var(--surface-2); }
.cal-day {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 8px 10px;
  font-weight: 800;
  font-size: .85rem;
  color: inherit;
  text-decoration: none;
}
.cal-chip {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 28px;
  padding: 6px 8px;
  min-height: 32px;
  border-radius: 8px;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(169,15,51,.1);
  color: var(--primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.cal-chip + .cal-chip { margin-top: 4px; }
.cal-chip.kind-match { background: rgba(249,115,22,.16); color: var(--orange-700); }
.cal-chip.kind-camp { background: var(--cyan-soft); color: var(--cyan); }
.plan-box {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.7);
}
.plan-legend {
  margin: 0 0 10px;
  font: 750 .95rem var(--font-display);
  color: var(--ink);
}
.plan-modes,
.plan-day-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.plan-weekdays .muted { width: 100%; margin: 0 0 8px; }
label.plan-mode,
label.plan-day,
label.plan-mini-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-height: 40px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.plan-mode:has(input:checked),
.plan-day:has(input:checked),
.plan-mini-day:has(input:checked) {
  border-color: rgba(169,15,51,.4);
  background: rgba(169,15,51,.08);
  color: var(--primary);
}
.plan-weekdays,
.plan-picker { display: none; }
.plan-box:has([value="week"]:checked) .plan-weekdays,
.plan-box:has([value="month"]:checked) .plan-weekdays,
.plan-box[data-mode="week"] .plan-weekdays,
.plan-box[data-mode="month"] .plan-weekdays {
  display: block;
}
.plan-box:has([value="days"]:checked) .plan-picker,
.plan-box[data-mode="days"] .plan-picker { display: block; }
.plan-mini {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
label.plan-mini-day {
  position: relative;
  min-width: 0;
  padding: 6px 0;
}
.plan-mini-day input { position: absolute; opacity: 0; pointer-events: none; }
.form-grid-2, .form-grid-3 { display: grid; gap: 12px; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.shop-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset), var(--shadow-1);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shop-card-art {
  height: 92px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(169,15,51,.12), rgba(8,145,178,.12));
}
.shop-card-art .icon { width: 40px; height: 40px; }
.shop-card .btn-row input { width: 72px; min-height: 44px; }
.price { font-size: 1.15rem; font-weight: 850; color: var(--primary); }
.wizard-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.wizard-steps li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: .82rem;
  font-weight: 750;
}
.wizard-steps li.is-on { background: linear-gradient(145deg, var(--gold), var(--orange)); color: var(--ink); }
.wizard-pane { margin-bottom: 16px; }
.report-card {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.report-card legend { font-weight: 800; padding-inline: 8px; }
.check-inline { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.medal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.medal-card {
  padding: 14px;
  border-radius: 18px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}
.medal-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(251,191,36,.25);
}
.id-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; }
.player-code { font-size: 1.4rem; font-weight: 850; letter-spacing: .04em; color: var(--primary); }
.medal-row { display: flex; flex-wrap: wrap; gap: 8px; }
.medal-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(251,191,36,.2); font-size: .8rem; font-weight: 750;
}
.tier-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 750; font-size: .8rem; }
.tier-novice { background: var(--surface-3); }
.tier-bronze { background: #f4e4d4; }
.tier-silver { background: #e4e9f0; }
.tier-gold { background: #ffe8a3; }
.tier-diamond { background: #dbeafe; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 18px; }
.person-chip.is-on { background: var(--primary); color: #fff; }
.inline-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .form-grid-2, .form-grid-3, .shop-grid, .id-hero { grid-template-columns: 1fr; }
  .cal-cell { min-height: 64px; }
  .cal-chip { font-size: .6rem; }
  .hide-sm { display: none !important; }
}

/* V3 Glass + 3D hero + motion (user-requested glass style) */
main,
.site-footer,
.panel-shell,
.auth-main {
  position: relative;
  z-index: 1;
}
.site-header { z-index: 100; }
.page-hero {
  padding: 24px 28px;
  border-radius: var(--radius-xl);
  margin-bottom: 28px;
}
.glass,
.glass-dark {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-inset), var(--glass-depth);
}
.glass::before,
.glass-dark::before,
.card::before,
.shop-card::before,
.auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.5) 0%, transparent 42%);
  opacity: .7;
  z-index: 0;
}
.glass-dark::before {
  background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, transparent 46%);
  opacity: .55;
}
.glass > *,
.glass-dark > *,
.card > *,
.shop-card > *,
.auth-main > * { position: relative; z-index: 1; }
.glass-dark {
  color: #fff;
  background: var(--glass-bg-dark);
  border-color: var(--glass-border-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(12, 8, 10, .28);
}
.hero-3d {
  min-height: min(640px, calc(100dvh - 72px));
  perspective: 1200px;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .95fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(72px, 10vw, 128px);
}
.hero-3d .hero-copy {
  margin-inline-start: 0;
  max-width: none;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-xl);
}
.hero-3d .hero-lede { color: #f4ecec; }
.hero-3d-stage {
  position: relative;
  min-height: 280px;
  transform-style: preserve-3d;
}
.hero-3d-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(-24px 28px 36px rgba(0,0,0,.35));
  animation: float-3d 6.5s var(--ease-out) infinite;
  transform: rotateY(-12deg) rotateX(6deg);
}
.hero-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  inset-inline-end: 12%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(180,83,9,.18) 42%, transparent 70%);
  filter: blur(2px);
  transform: translateY(var(--parallax-y, 0));
}
.prop-strip,
.card,
.stat-card,
.panel-card,
.welcome-banner,
.app-promo,
.channel-opt,
.choice-card,
.player-switcher,
.panel-icon-button,
.auth-main,
.shop-card,
.page-hero,
.medal-card,
.report-card {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.user-panel,
.hero .btn-secondary {
  background: rgba(255,255,255,.12);
  border: 1px solid var(--glass-border-dark);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  box-shadow: none;
}
.panel-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-inline: -8px;
  padding: 12px 8px;
  border-bottom: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.auth-page {
  background-color: #ead8d0;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(255,255,255,.45), transparent 18rem),
    radial-gradient(circle at 88% 88%, rgba(143,29,44,.18), transparent 22rem),
    linear-gradient(180deg, #f7efe9, #ead8d0);
}
.auth-main {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 5vw, 40px);
  margin-block: 24px;
}
.signup-kind {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  min-height: 72px;
  padding: 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
}
.choice-card strong { display: block; }
.choice-card small { color: var(--muted); }
.choice-card:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(143,29,44,.16);
}
.error-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180,35,63,.28);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}
.empty-state {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}
.player-switcher {
  margin: 0 0 16px;
  padding: 12px;
  border-radius: var(--radius-md);
}
.player-switcher-now { margin: 0 0 8px; font-size: .85rem; }
.player-switcher form { display: grid; gap: 8px; }
@keyframes float-3d {
  0%, 100% { transform: rotateY(-12deg) rotateX(6deg) translateY(0); }
  50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-10px); }
}
.credit-specialties {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
}
.site-footer .credit-specialties { color: #d7cfd6; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 64px 48px; }
  .hero-3d-stage { max-width: 280px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-3d-art { animation: none; transform: none; }
  .glass-orbs span { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass-orbs { display: none; }
  .glass, .glass-dark, .site-header, .prop-strip, .card, .stat-card, .panel-card,
  .welcome-banner, .app-promo, .auth-main, .panel-topbar, .mobile-tabbar,
  .shop-card, .page-hero, .medal-card, .report-card, .feature-stage,
  .btn-secondary, .menu-toggle, .table-scroll, .person-chip, .channel-opt,
  .app-sticky, .site-footer, .ui-window, .footer-shell .ui-window,
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select, textarea {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
    color: var(--ink);
  }
  .glass-dark, .hero-3d .hero-copy, .feature-stage, .app-sticky, .site-footer {
    background: var(--primary-950);
    color: #fff;
  }
  body, .panel-body, .auth-page { background: var(--surface-2); }
}

/* V14: windows, professional footer, floating 3D mobile dock */
.ui-window {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 28px);
  margin-bottom: 20px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-inset), var(--glass-depth);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.ui-window::before,
.panel-card::after,
.card::after,
.auth-main::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 42%;
  height: 46%;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.55), transparent 70%);
  opacity: .55;
  z-index: 0;
}
.ui-window-head,
.ui-window > * { position: relative; z-index: 1; }
.ui-window-head { margin-bottom: 16px; }
.ui-window-head h2 { margin: 0 0 6px; font-size: 1.28rem; }
.ui-window-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.panel-content > .form,
.panel-content > form.form,
.auth-main .form { position: relative; z-index: 1; }
.user-edit-form {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
}
.user-edit-form input,
.user-edit-form select { min-height: 44px; }
.login-gates { display: grid; gap: 12px; }
.login-gate-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  text-decoration: none;
  color: inherit;
  grid-template-columns: 1fr;
  transform: perspective(720px) rotateX(0deg);
  transition: transform .22s var(--ease-out), box-shadow .22s;
}
.login-gate-card:hover,
.login-gate-card:focus-visible {
  transform: perspective(720px) rotateX(6deg) translateY(-4px);
  box-shadow: 0 18px 36px rgba(21,19,38,.16);
}
.login-step { margin: 0 0 14px; color: var(--muted); }
.footer-shell {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.footer-shell .ui-window {
  margin: 0;
  color: inherit;
  background: rgba(255,255,255,.08);
  border-color: var(--glass-border-dark);
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font: 850 1.15rem var(--font-display); }
.footer-brand small { display: block; color: #d7cfd6; font: 600 .78rem var(--font); }
.footer-app-cta { margin-top: 12px; }
.footer-credit-bar {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.panel-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.panel-footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.panel-footer-links a { color: var(--ink-2); font-weight: 700; }
@keyframes dock-float {
  0%, 100% { transform: perspective(920px) rotateX(10deg) translateY(0); }
  50% { transform: perspective(920px) rotateX(10deg) translateY(-5px); }
}
@keyframes tab-exam {
  0% { transform: translateY(10px) scale(.86); }
  55% { transform: translateY(-12px) scale(1.12); }
  100% { transform: translateY(-8px) scale(1.06); }
}
.mobile-tabbar.dock-3d .dock-pop { animation: tab-exam .55s var(--ease-spring); }
@keyframes menu-exam {
  from { opacity: 0; transform: perspective(900px) rotateX(-18deg) translateY(16px); }
  to { opacity: 1; transform: perspective(900px) rotateX(0deg) translateY(0); }
}
@media (max-width: 900px) {
  .footer-shell { grid-template-columns: 1fr 1fr; }
  .nav-links.open {
    animation: menu-exam .48s var(--ease-spring) both;
    transform-origin: top center;
    box-shadow: 0 22px 48px rgba(21,19,38,.22), var(--glass-inset);
  }
}
@media (max-width: 680px) {
  .footer-shell { grid-template-columns: 1fr; gap: 12px; }
  .public-app-shell,
  .panel-body {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer { padding: 28px 0 calc(18px + env(safe-area-inset-bottom, 0px)); }
  .in-club-app .site-footer { padding-bottom: 12px; }
  .app-kit-footer .footer-shell { gap: 10px; }
  .mobile-tabbar.dock-3d {
    inset-inline: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    min-height: 72px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 28px;
    background:
      linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.22)),
      var(--glass-bg);
    box-shadow:
      0 18px 40px rgba(21,19,38,.28),
      0 1px 0 rgba(255,255,255,.7) inset,
      0 -14px 28px rgba(143,29,44,.12);
    transform: perspective(920px) rotateX(10deg);
    transform-origin: bottom center;
    animation: dock-float 4.8s ease-in-out infinite;
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }
  .mobile-tabbar.dock-3d a,
  .mobile-tabbar.dock-3d button {
    border-radius: 20px;
    transform-origin: center bottom;
  }
  .mobile-tabbar.dock-3d .active {
    color: #fff;
    background: linear-gradient(160deg, var(--primary), #6f1024);
    box-shadow: 0 10px 18px rgba(143,29,44,.32);
    animation: tab-exam .7s var(--ease-spring) both;
  }
  .panel-mobile-tabs.dock-3d {
    background:
      linear-gradient(180deg, rgba(55,28,48,.55), rgba(21,19,38,.92)),
      rgba(21,19,38,.88);
  }
  .panel-mobile-tabs.dock-3d .active {
    color: var(--ink);
    background: linear-gradient(145deg, var(--gold), var(--orange));
  }
  .app-sticky { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ui-window { padding: 16px; border-radius: 20px; }
  .card, .panel-card, .stat-card, .shop-card, .auth-main {
    border-radius: 20px;
  }
}
.in-club-app .mobile-tabbar.dock-3d {
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
@media (prefers-reduced-motion: reduce) {
  .mobile-tabbar.dock-3d,
  .mobile-tabbar.dock-3d .active,
  .nav-links.open,
  .login-gate-card { animation: none !important; transform: none !important; }
}

.auth-page.auth-wide {
  grid-template-columns: 1fr;
  align-items: start;
}
.auth-page.auth-wide .auth-main {
  width: min(100% - 20px, 880px);
  max-width: 880px;
  margin-block: 20px 96px;
  align-content: start;
}
.auth-page.auth-wide .auth-art { display: none; }
.auth-page.auth-wide .form { max-width: none; }
.register-steps li.is-done { background: rgba(22,101,52,.16); color: var(--success); }
.reg-map {
  display: grid;
  gap: 10px;
}
.reg-map iframe {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: #e7eef2;
}
.file-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--primary);
  border-radius: 18px;
  background: rgba(255,255,255,.55);
}
.file-card input[type="file"] { min-height: 44px; }
.file-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
}
.sms-pattern { margin: 0 0 16px; }
.wizard-pane h2:focus { outline: none; }
@media (max-width: 680px) {
  .auth-page.auth-wide .auth-main { padding: 20px 16px; }
  .reg-map iframe { min-height: 200px; }
}

.promo-slider {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: #12080b;
  box-shadow: 0 18px 42px rgba(28, 12, 16, .22);
  isolation: isolate;
}
.promo-track {
  position: relative;
  width: 100%;
  min-width: 100%;
  min-height: 280px;
  height: min(56.25vw, 78vh);
  background: #12080b;
}
.promo-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s var(--ease-out), visibility .6s var(--ease-out);
  pointer-events: none;
  display: grid; align-items: end;
  min-height: 100%;
}
.promo-slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; z-index: 1; }
.promo-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
}
.promo-slide.is-on img { animation: none; }
@keyframes promo-ken {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}
.promo-slide::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 64%, rgba(12,6,8,.62) 100%);
}
.promo-copy { position: relative; z-index: 1; padding-block: 0 36px; }
.promo-copy.wrap {
  width: 100%;
  max-width: none;
  padding-inline: 68px;
}
.promo-card {
  position: relative;
  max-width: min(440px, 42vw);
  padding: 12px 16px 12px;
  color: #fff8f0;
  background: rgba(12, 6, 8, .52);
  border: 1px solid rgba(255, 236, 210, .22);
  border-radius: 16px;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  box-shadow: 0 10px 24px rgba(8,4,6,.28);
}
.promo-card::before {
  content: "";
  position: absolute;
  inset-inline: 18px auto;
  top: 0;
  width: min(120px, 40%);
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #e8c48a, #fff4d6 55%, transparent);
}
.promo-card .eyebrow {
  margin: 0 0 6px;
  color: #f3d5a8;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.promo-card h1,
.promo-card .promo-lead {
  color: #fff8f0;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
}
.promo-card h1 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: 0;
}
.promo-lead {
  margin: 0 0 14px;
  color: rgba(255, 248, 240, .9);
  font-size: .98rem;
  line-height: 1.55;
  max-width: 42ch;
}
.promo-cta {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 12px;
  border-color: rgba(255, 220, 180, .38);
  box-shadow: 0 8px 20px rgba(75, 7, 24, .38);
}
.slider-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
}
.slider-btn {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.88); cursor: pointer; color: var(--ink); font-weight: 800;
}
.slider-btn svg { width: 18px; height: 18px; }
.promo-arrow {
  position: absolute;
  top: 46%;
  z-index: 3;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 210, .5);
  background: rgba(255, 248, 240, .94);
  color: var(--primary-950);
  box-shadow: 0 10px 24px rgba(12, 6, 8, .28);
}
.promo-slider [data-slider-prev] { inset-inline-start: 12px; transform: translateY(-50%); }
.promo-slider [data-slider-next] { inset-inline-end: 12px; transform: translateY(-50%); }
.promo-slider [data-slider-prev]:hover,
.promo-slider [data-slider-next]:hover { background: #fff; transform: translateY(-50%) scale(1.04); }
.promo-slider [data-slider-prev]:active,
.promo-slider [data-slider-next]:active { transform: translateY(-50%) scale(.97); }
/* RTL: prev sits on the right and must point right; next sits on the left and points left. */
.promo-slider [data-slider-prev] svg { transform: scaleX(-1); }
.promo-slider [data-slider-next] svg { transform: none; }
.slider-dots { display: flex; gap: 8px; justify-content: center; }
.promo-dots {
  position: absolute;
  inset-inline: 0;
  bottom: 12px;
  z-index: 3;
  pointer-events: none;
}
.slider-dots button {
  width: 8px; height: 8px; border-radius: 99px; border: 0;
  background: rgba(255,248,240,.45); cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 0 0 1px rgba(12,6,8,.2);
}
.slider-dots button.is-on { background: #f3d5a8; width: 22px; }
.tile-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -28px; position: relative; z-index: 2;
}
.tile-card { display: grid; gap: 8px; padding: 20px; min-height: 160px; text-decoration: none; color: inherit; }
.tile-card:hover { transform: translateY(-4px); }
.about-split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.staff-deck { perspective: none; }
.staff-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
}
.staff-card {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 0;
  margin: 0;
  transform: none;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity .4s ease;
  z-index: 0;
}
.staff-card.is-front {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  z-index: 2;
}
.staff-card.is-next,
.staff-card.is-prev {
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: none;
}
.staff-photo {
  position: relative;
  overflow: hidden;
  border-start-start-radius: 16px;
  border-end-start-radius: 16px;
  isolation: isolate;
}
.staff-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; display: block; }
.staff-hero-meta { display: none; }
.staff-copy {
  position: relative;
  z-index: 2;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: var(--surface);
}
.staff-box { padding: 12px; border-radius: 14px; background: rgba(155,28,28,.08); }
.staff-box p { margin: 4px 0 0; }
.staff-box-gold { background: rgba(180,83,9,.12); }
.staff-nav { position: relative; }
.staff-dots { display: none; }
.staff-deck [data-deck-prev] svg { transform: scaleX(-1); }
.staff-deck [data-deck-next] svg { transform: none; }
.star-row, .license-grid, .honor-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px;
}
.honor-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.star-card, .license-card, .honor-card { padding: 16px; }
.star-card img, .license-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 18px; }
.rank-board {
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 8px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 244, 214, .35), rgba(255, 255, 255, .42) 28%, rgba(255, 255, 255, .28)),
    var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-inset), var(--glass-depth);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
}
.rank-board::before {
  content: "";
  display: block;
  height: 3px;
  margin: 0 12px 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #e8c48a, #fff4d6 45%, #cfd6e0 78%, transparent);
}
.rank-row {
  display: grid;
  grid-template-columns: 36px 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid transparent;
}
.rank-pos {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  background: rgba(28, 25, 23, .08);
  color: var(--ink);
}
.rank-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .85);
}
.rank-who { min-width: 0; }
.rank-who strong {
  display: block;
  font-size: .92rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-who span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-tier { display: none; }
.rank-pts {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
  text-align: start;
}
.rank-pts b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
}
.rank-gold {
  min-height: 68px;
  padding: 10px 12px;
  color: #3f2a08;
  background: linear-gradient(165deg, #fff8dc 0%, #f3d089 48%, #e0b04a 100%);
  border-color: rgba(176, 124, 22, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62), 0 10px 22px rgba(180, 83, 9, .16);
  grid-template-columns: 40px 52px minmax(0, 1fr) auto;
}
.rank-gold .rank-pos {
  width: 36px;
  height: 36px;
  color: #4a3208;
  background: linear-gradient(180deg, #fff4c8, #d4a017);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(120, 80, 8, .25);
}
.rank-gold .rank-avatar {
  width: 48px;
  height: 48px;
  border-color: #f3d5a8;
}
.rank-gold .rank-who strong { font-size: 1rem; }
.rank-gold .rank-who span,
.rank-gold .rank-pts { color: #5c4314; }
.rank-silver {
  color: #1c1917;
  background: linear-gradient(165deg, #f7f8fb 0%, #d5dce6 52%, #b7c0cc 100%);
  border-color: rgba(110, 120, 140, .32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.rank-silver .rank-pos {
  color: #2a3038;
  background: linear-gradient(180deg, #f4f6f8, #9aa6b4);
}
.rank-bronze {
  color: #3f2410;
  background: linear-gradient(165deg, #f8eadc 0%, #e0b089 55%, #c4844a 100%);
  border-color: rgba(156, 86, 32, .3);
}
.rank-bronze .rank-pos {
  color: #3f2410;
  background: linear-gradient(180deg, #f3d2b0, #c67a38);
}
.rank-rest {
  background: rgba(255, 255, 255, .58);
  border-color: var(--glass-border);
}
@media (min-width: 700px) {
  .rank-row {
    grid-template-columns: 44px 52px minmax(0, 1fr) auto auto;
    min-height: 64px;
    padding: 10px 14px;
  }
  .rank-gold {
    grid-template-columns: 48px 60px minmax(0, 1fr) auto auto;
    min-height: 76px;
  }
  .rank-avatar { width: 48px; height: 48px; }
  .rank-gold .rank-avatar { width: 56px; height: 56px; }
  .rank-tier {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .46);
  }
  .rank-pts { font-size: .8rem; }
  .rank-pts b { font-size: 1.15rem; }
}
.card-slider { position: relative; }
.card-slider-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; -webkit-overflow-scrolling: touch;
}
.shop-slide, .article-slide {
  flex: 0 0 min(78vw, 280px); scroll-snap-align: start; text-decoration: none; color: inherit; padding: 16px;
}
.shop-slide-art {
  display: grid; place-items: center; height: 140px; border-radius: 16px; background: rgba(155,28,28,.1); margin-bottom: 10px;
}
.shop-slide-art img, .article-cover { width: 100%; height: 140px; object-fit: cover; border-radius: 16px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hall-map { width: 100%; min-height: 220px; border: 0; border-radius: 16px; }
.landing-sub { margin: 32px 0 12px; }
.footer-licenses {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  padding: 8px 0 18px;
}
.footer-license {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px;
  border: 1px solid var(--glass-border); border-radius: 16px; background: rgba(255,255,255,.4);
}
.footer-license small { display: block; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }
.btn-danger {
  min-height: 40px; padding: 8px 12px; border-radius: 12px; border: 1px solid rgba(180,35,63,.3);
  background: rgba(180,35,63,.08); color: var(--danger); font-weight: 700; cursor: pointer;
}
.week-board {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px;
}
.week-col {
  min-height: 140px; padding: 10px; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px solid var(--glass-border);
}
.week-col h3 { margin: 0 0 8px; font-size: .85rem; }
.week-chip {
  display: block; margin-bottom: 6px; padding: 8px; border-radius: 10px; background: rgba(143,29,44,.08);
  color: inherit; text-decoration: none; font-size: .82rem; font-weight: 700;
}
.cal-cell { cursor: pointer; }
.table-window { overflow: auto; }
@media (max-width: 900px) {
  .tile-grid, .footer-licenses, .contact-grid { grid-template-columns: 1fr 1fr; }
  .about-split, .staff-card { grid-template-columns: 1fr; }
  .staff-stage { min-height: 0; }
  .staff-photo { border-radius: 16px 16px 0 0; }
  .staff-photo img { min-height: 180px; max-height: 220px; }
  .promo-track {
    max-height: min(42vh, 360px);
    height: min(56.25vw, 42vh, 360px);
  }
  .promo-copy { padding-block: 18px 48px; }
  .promo-card { padding: 14px 16px 12px; }
  .promo-card h1 { font-size: clamp(1.15rem, 3.6vw, 1.7rem); color: #fff8f0; }
}
@media (max-width: 640px) {
  .footer-licenses, .contact-grid { grid-template-columns: 1fr; }
  .tile-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }
  .tile-card.ui-window {
    min-height: 0;
    margin-bottom: 0;
    padding: 12px;
    gap: 6px;
    border-radius: 16px;
  }
  .tile-card .card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 12px;
  }
  .tile-card .card-icon .icon { width: 18px; height: 18px; }
  .tile-card h2 {
    margin: 0;
    font-size: .92rem;
    line-height: 1.35;
  }
  .tile-card p {
    margin: 0;
    font-size: .75rem;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .promo-slider { border-radius: 0 0 16px 16px; }
  .promo-track,
  .promo-slide,
  .promo-slide img {
    min-height: 168px;
    height: min(56.25vw, 220px);
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .promo-slide img { object-fit: cover; }
  .promo-copy,
  .promo-copy.wrap {
    padding-block: 8px 30px;
    padding-inline: 52px;
  }
  .promo-slide::after {
    background: linear-gradient(180deg, rgba(12,6,8,.12) 0%, rgba(12,6,8,.08) 40%, rgba(12,6,8,.72) 100%);
  }
  .promo-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    max-width: 100%;
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(14, 7, 10, .66);
    border-color: rgba(255, 236, 210, .22);
  }
  .promo-card::before { inset-inline: 10px auto; width: 56px; }
  .promo-card .eyebrow,
  .promo-card .promo-lead { display: none; }
  .promo-card h1 {
    flex: 1 1 140px;
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    color: #fff8f0;
    letter-spacing: 0;
  }
  .promo-cta {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 14px;
    font-size: .84rem;
    border-radius: 12px;
  }
  .promo-arrow {
    top: auto;
    bottom: 56px;
    width: 44px;
    height: 44px;
    min-width: 44px;
  }
  .promo-slider [data-slider-prev],
  .promo-slider [data-slider-next],
  .promo-slider [data-slider-prev]:hover,
  .promo-slider [data-slider-next]:hover,
  .promo-slider [data-slider-prev]:active,
  .promo-slider [data-slider-next]:active {
    transform: none;
  }
  .promo-slider [data-slider-prev] { inset-inline-start: 6px; }
  .promo-slider [data-slider-next] { inset-inline-end: 6px; }
  .promo-dots { bottom: 8px; }
  .staff-deck {
    perspective: none;
    position: relative;
  }
  .staff-stage {
    min-height: 0;
    overflow: hidden;
    border-radius: 20px;
  }
  .staff-card,
  .staff-card.ui-window {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    border-radius: 20px;
  }
  .staff-card.is-front {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }
  .staff-card.is-next, .staff-card.is-prev { display: none; }
  .staff-photo {
    position: relative;
    border-radius: 20px 20px 0 0;
    height: min(58vw, 260px);
    min-height: 200px;
    max-height: 260px;
  }
  .staff-photo img {
    min-height: 100%;
    max-height: none;
    height: 100%;
    object-position: center top;
  }
  .staff-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12,6,8,.04) 28%, rgba(12,6,8,.78) 100%);
    pointer-events: none;
  }
  .staff-hero-meta {
    display: grid;
    gap: 6px;
    position: absolute;
    inset-inline: 14px;
    bottom: 28px;
    z-index: 1;
    color: #fff8f0;
  }
  .staff-hero-meta .tag {
    background: rgba(143, 29, 44, .92);
    border-color: rgba(255, 236, 210, .28);
    color: #fff8f0;
  }
  .staff-hero-meta h3 {
    margin: 0;
    color: #fff8f0;
    font-size: 1.15rem;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
  }
  .staff-copy .staff-id { display: none; }
  .staff-copy {
    padding: 12px 14px 16px;
    gap: 8px;
  }
  .staff-copy > p {
    margin: 0;
    font-size: .86rem;
    line-height: 1.55;
  }
  .staff-box { padding: 8px 10px; }
  .staff-box strong { font-size: .78rem; }
  .staff-box p { font-size: .8rem; }
  .staff-nav {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: min(58vw, 260px);
    max-height: 260px;
    margin: 0;
    display: block;
    z-index: 5;
    pointer-events: none;
  }
  .staff-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: absolute;
    inset-inline: 0;
    bottom: 10px;
    pointer-events: auto;
    z-index: 6;
  }
  .staff-dots button {
    background: rgba(255, 248, 240, .45);
    box-shadow: 0 0 0 1px rgba(12, 6, 8, .25);
  }
  .staff-dots button.is-on { background: #f3d5a8; width: 22px; }
  .staff-nav [data-deck-status] { display: none; }
  .staff-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 236, 210, .5);
    background: rgba(255, 248, 240, .94);
    color: var(--primary-950);
    box-shadow: 0 10px 24px rgba(12, 6, 8, .28);
    pointer-events: auto;
  }
  .staff-deck [data-deck-prev] { inset-inline-start: 8px; }
  .staff-deck [data-deck-next] { inset-inline-end: 8px; }
  .shop-slide, .article-slide { flex-basis: min(72vw, 240px); padding: 12px; }
  .shop-slide-art, .shop-slide-art img, .article-cover { height: 110px; }
  .star-card img, .license-card img { width: 52px; height: 52px; }
  .rank-board { padding: 8px; gap: 6px; border-radius: 18px; }
  .rank-row {
    min-height: 52px;
    padding: 6px 8px;
    gap: 8px;
    border-radius: 14px;
  }
  .rank-gold { min-height: 60px; padding: 8px 10px; }
  .rank-who strong { font-size: .86rem; }
  .rank-pts b { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .staff-card { transition: none; transform: none !important; }
  .promo-slide.is-on img { animation: none; }
}
.cal-day { color: inherit; text-decoration: none; }
.analytics-hero { margin-bottom: 18px; }
.analytics-kpis { margin-bottom: 18px; }
.analytics-grid { margin-bottom: 18px; }
.chart-card { min-height: 280px; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut { transform: rotate(-90deg); }
.donut-track { fill: none; stroke: rgba(143,29,44,.12); stroke-width: 12; }
.donut-fill { fill: none; stroke: #8f1d2c; stroke-width: 12; stroke-linecap: round; }
.donut text { transform: rotate(90deg); transform-origin: 60px 60px; font-size: 18px; font-weight: 800; fill: #1c1917; font-family: var(--font-display); }
.chart-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chart-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-inline-end: 8px; }
.swatch.paid { background: #8f1d2c; }
.swatch.due { background: #b45309; }
.bar-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 180px; }
.bar-col { display: grid; gap: 8px; justify-items: center; }
.bar-stack { display: flex; gap: 4px; align-items: end; height: 140px; width: 100%; justify-content: center; }
.bar-stack .bar { width: 12px; border-radius: 8px 8px 4px 4px; min-height: 6px; }
.bar-stack .bar.paid { background: #8f1d2c; }
.bar-stack .bar.due { background: #b45309; }
.hbar { display: grid; gap: 10px; }
.hbar-row { display: grid; grid-template-columns: minmax(80px, 140px) 1fr auto; gap: 10px; align-items: center; }
.hbar-track { height: 10px; border-radius: 99px; background: rgba(143,29,44,.1); overflow: hidden; }
.hbar-track i { display: block; height: 100%; background: linear-gradient(90deg, #8f1d2c, #b45309); border-radius: 99px; }
@media (max-width: 900px) {
  .week-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar-chart { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .week-board { grid-template-columns: 1fr; }
  .hbar-row { grid-template-columns: 1fr; }
}

.panel-topbar > div:first-child { min-width: 0; }
.tour-assist-btn {
  min-height: 46px;
  min-width: 46px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 15px;
  border: 1px solid rgba(180, 83, 9, .28);
  background: linear-gradient(180deg, #fffdf8, #fff3e4);
  color: #7a1826;
  font: 750 .82rem var(--font-display);
  box-shadow: var(--shadow-1);
  cursor: pointer;
  touch-action: manipulation;
}
.tour-assist-btn .icon { width: 18px; height: 18px; flex: 0 0 auto; }
.tour-assist-btn:hover,
.tour-assist-btn:focus-visible {
  color: #4b0718;
  border-color: var(--gold);
  background: linear-gradient(180deg, #fff8ee, #f6e2c4);
  outline: none;
}
.tour-assist-btn:focus-visible { box-shadow: 0 0 0 3px rgba(15, 118, 110, .35); }
body.tour-open { overflow: hidden; }
.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 4200;
  pointer-events: none;
}
.tour-layer[hidden] { display: none !important; }
.tour-spot {
  position: fixed;
  top: 20%;
  left: 20%;
  width: 120px;
  height: 80px;
  pointer-events: none;
  border-radius: 18px;
  box-shadow: 0 0 0 3px rgba(243, 213, 168, .95), 0 0 0 9999px rgba(12, 6, 8, .62);
  transition: top .35s var(--ease-out), left .35s var(--ease-out), width .35s var(--ease-out), height .35s var(--ease-out);
}
.tour-spot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 2px solid rgba(243, 213, 168, .7);
  animation: tour-pulse 1.8s ease-out infinite;
}
.tour-card {
  position: fixed;
  pointer-events: auto;
  width: min(400px, calc(100vw - 24px));
  padding: 20px 20px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdf9 0%, #fff8f0 100%);
  border: 1px solid rgba(180, 83, 9, .2);
  box-shadow: 0 24px 48px rgba(12, 6, 8, .28);
  color: var(--ink);
}
.tour-kicker {
  margin: 0 0 8px;
  color: #92400e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.tour-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tour-step {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  white-space: nowrap;
}
.tour-bar {
  display: block;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: rgba(143, 29, 44, .12);
  overflow: hidden;
}
.tour-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f1d2c, #b45309);
  transition: width .35s var(--ease-out);
}
.tour-title {
  margin: 0 0 8px;
  font: 850 1.15rem/1.35 var(--font-display);
  color: var(--ink);
}
.tour-body {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: .92rem;
  line-height: 1.7;
}
.tour-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
.tour-skip,
.tour-mute,
.tour-back,
.tour-next {
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border-radius: 13px;
  font: 750 .88rem var(--font-display);
  cursor: pointer;
  touch-action: manipulation;
}
.tour-skip-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.tour-skip,
.tour-mute {
  border: 0;
  background: transparent;
  color: var(--muted);
}
.tour-mute {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}
.tour-skip:hover,
.tour-skip:focus-visible,
.tour-mute:hover,
.tour-mute:focus-visible { color: var(--danger); }
.tour-back {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}
.tour-back:disabled { opacity: .4; cursor: default; }
.tour-next {
  border: 0;
  background: linear-gradient(135deg, #8f1d2c, #b45309);
  color: #fff8f0;
  box-shadow: var(--shadow-1);
}
.tour-next:hover,
.tour-next:focus-visible { filter: brightness(1.05); }
.tour-skip:focus-visible,
.tour-mute:focus-visible,
.tour-back:focus-visible,
.tour-next:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.tour-card.is-docked {
  inset-inline: 12px;
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  top: auto;
  left: 12px;
  width: auto;
}
.tour-card.is-docked .tour-actions {
  grid-template-columns: 1fr 1fr;
}
.tour-card.is-docked .tour-skip-group {
  grid-column: 1 / -1;
}
@keyframes tour-pulse {
  0% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@media (max-width: 900px) {
  .tour-assist-btn {
    padding: 8px 10px;
    gap: 6px;
  }
  .tour-assist-btn span {
    font-size: .7rem;
    line-height: 1.2;
    max-width: 8.6rem;
    text-align: start;
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tour-spot,
  .tour-bar i { transition: none; }
  .tour-spot::after { animation: none; }
}

.panel-workspace {
  display: grid;
  gap: 16px;
}
.panel-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  scrollbar-width: thin;
  position: sticky;
  top: 8px;
  z-index: 12;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.panel-tab,
a.panel-tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-2);
  font: 750 .88rem var(--font-display);
  cursor: pointer;
  touch-action: manipulation;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.panel-tab:hover,
.panel-tab:focus-visible,
a.panel-tab:hover,
a.panel-tab:focus-visible {
  color: var(--primary);
  background: rgba(169, 15, 51, .06);
  outline: none;
}
.panel-tab.is-on,
a.panel-tab.is-on {
  color: #fff8f0;
  background: linear-gradient(135deg, #8f1d2c, #b45309);
  box-shadow: var(--shadow-1);
}
.panel-panes { min-width: 0; }
.panel-pane { display: none; }
.panel-pane.is-on { display: block; }
.panel-pane > .ui-window,
.panel-pane > .panel-card,
.panel-pane > .form { margin-top: 0; }
body.panel-busy #panel-stage {
  opacity: .55;
  pointer-events: none;
}
body.panel-busy::after {
  content: "";
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 4300;
  background: linear-gradient(90deg, #8f1d2c, #b45309, #8f1d2c);
  background-size: 200% 100%;
  animation: panel-busy 1s linear infinite;
}
@keyframes panel-busy {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
@media (max-width: 900px) {
  .panel-tabs {
    top: 0;
    margin-inline: -2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.panel-busy::after { animation: none; }
}
.cms-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}


