:root {
  color-scheme: dark;
  --page: #050505;
  --text: #fff7ec;
  --muted: #b9aaa0;
  --faint: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(15, 13, 16, 0.88);
  --panel-2: rgba(255, 255, 255, 0.055);
  --accent: #d9ad66;
  --accent-2: #7b4cf0;
  --hot: #c93631;
  --good: #74c275;
  --ink: #0b0807;
  --hero: url("assets/hero-noir.svg");
  --hero-pos: center top;
  --hero-size: cover;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
}

body[data-style="racing"] {
  --page: #f4f4f6;
  --text: #111114;
  --muted: #5f6268;
  --faint: rgba(8, 10, 14, 0.07);
  --line: rgba(8, 10, 14, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-2: rgba(255, 255, 255, 0.82);
  --accent: #e70e20;
  --accent-2: #0e0f13;
  --hot: #e70e20;
  --good: #13864d;
  --ink: #fff;
  --hero: url("assets/hero-racing.svg");
}

body[data-style="royal"] {
  --page: #080510;
  --text: #fff4ff;
  --muted: #c0acc8;
  --faint: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(16, 9, 24, 0.9);
  --panel-2: rgba(255, 255, 255, 0.06);
  --accent: #e4b76e;
  --accent-2: #9a5cff;
  --hot: #d13a72;
  --good: #77c5b2;
  --ink: #110815;
  --hero: url("assets/hero-royal.svg");
}

body[data-style="velocity"] {
  --page: #030303;
  --text: #fff6f4;
  --muted: #c7a6a2;
  --faint: rgba(255, 39, 52, 0.11);
  --line: rgba(255, 42, 49, 0.24);
  --panel: rgba(10, 10, 12, 0.9);
  --panel-2: rgba(255, 255, 255, 0.06);
  --accent: #f01825;
  --accent-2: #ffffff;
  --hot: #ff2734;
  --good: #77d56b;
  --ink: #fff;
  --hero: url("assets/uploads/brand/theme-racing-neon.png");
  --hero-pos: center 38%;
  --hero-size: cover;
}

body[data-style="cosmos"] {
  --page: #020712;
  --text: #f4f8ff;
  --muted: #9fb8dc;
  --faint: rgba(90, 168, 255, 0.12);
  --line: rgba(88, 165, 255, 0.28);
  --panel: rgba(6, 15, 35, 0.9);
  --panel-2: rgba(29, 82, 167, 0.16);
  --accent: #6fd7ff;
  --accent-2: #8f6bff;
  --hot: #8f6bff;
  --good: #73ffd2;
  --ink: #061020;
  --hero: url("assets/uploads/brand/theme-future-explorer.png");
  --hero-pos: center 30%;
  --hero-size: cover;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 240px),
    var(--page);
  color: var(--text);
}

button {
  font: inherit;
}

.proposal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px clamp(18px, 4vw, 52px);
  background: color-mix(in srgb, var(--page) 86%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.overline {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.05;
}

.style-tabs,
.selected-style {
  display: grid;
  gap: 6px;
  padding: 6px;
  background: var(--faint);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-style {
  min-width: 180px;
  justify-items: center;
  padding: 10px 18px;
}

.selected-style span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.selected-style strong {
  color: var(--accent);
  font-size: 18px;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-entry {
  display: grid;
  min-height: 56px;
  padding: 0 18px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}

.style-tabs {
  grid-template-columns: repeat(3, minmax(94px, 1fr));
}

.style-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.profile-avatar[data-profile-edit] {
  cursor: pointer;
}

.style-tab.active {
  background: var(--accent);
  color: var(--ink);
}

.canvas {
  padding: 26px clamp(16px, 4vw, 52px) 56px;
}

.concept {
  display: grid;
  grid-template-columns: minmax(300px, 560px) 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 26px;
}

.concept-copy {
  max-width: 600px;
}

.concept-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.5vw, 58px);
  line-height: 1.02;
}

.concept-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.concept-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 10px;
}

.concept-points span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.phone-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(330px, 420px));
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  align-items: start;
}

.phone {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.phone h3 {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.device {
  width: min(100%, 390px);
  min-height: 806px;
  padding: 11px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.4);
}

body[data-style="racing"] .device {
  background: linear-gradient(145deg, #ffffff, #c8ccd5 52%, #0c0d10);
  border-color: rgba(0, 0, 0, 0.16);
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 6px 16px 11px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

body[data-style="racing"] .status-bar {
  color: #111;
}

.app-screen {
  position: relative;
  min-height: 758px;
  overflow: hidden;
  padding: 0 14px 76px;
  background:
    linear-gradient(180deg, transparent 0, color-mix(in srgb, var(--page) 88%, transparent) 310px),
    var(--page);
  border: 1px solid var(--line);
  border-radius: 26px;
}

.home-screen {
  padding-top: 0;
}

.hero-visual {
  position: relative;
  min-height: 330px;
  margin: 0 -14px;
  padding: 18px 18px 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), color-mix(in srgb, var(--page) 92%, transparent) 94%),
    var(--hero) var(--hero-pos) / var(--hero-size) no-repeat;
}

body[data-style="velocity"] .hero-visual {
  min-height: 350px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(3, 3, 3, 0.24) 48%, color-mix(in srgb, var(--page) 96%, transparent) 98%),
    radial-gradient(circle at 12% 15%, rgba(255, 38, 48, 0.24), transparent 32%),
    var(--hero) var(--hero-pos) / var(--hero-size) no-repeat;
}

body[data-style="cosmos"] .hero-visual {
  min-height: 350px;
  background:
    linear-gradient(180deg, rgba(1, 6, 18, 0.08), rgba(2, 7, 18, 0.28) 58%, color-mix(in srgb, var(--page) 96%, transparent) 98%),
    radial-gradient(circle at 78% 26%, rgba(111, 215, 255, 0.2), transparent 34%),
    var(--hero) var(--hero-pos) / var(--hero-size) no-repeat;
}

.app-top,
.page-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
}

.app-top {
  color: #fff;
}

.location-dot {
  width: 12px;
  height: 12px;
  border: 3px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.location-dot::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -8px;
  width: 3px;
  height: 8px;
  background: currentColor;
  transform: rotate(45deg);
}

.app-top strong {
  flex: 1;
  font-size: 15px;
}

.icon-btn,
.page-nav button,
.back-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: currentColor;
  text-decoration: none;
}

.bell {
  position: relative;
}

.bell::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  width: 15px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 5px 5px;
}

.bell::after {
  content: "3";
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--hot);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.brand-lockup {
  margin-top: 44px;
  color: #fff;
}

.spade-mark {
  width: 44px;
  height: 52px;
  margin-bottom: 10px;
  background: var(--accent);
  clip-path: path("M22 0C36 14 44 24 44 35C44 45 36 52 22 52C8 52 0 45 0 35C0 24 8 14 22 0Z");
}

.spade-mark.has-image {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.28);
  background-image: var(--brand-logo);
  background-position: center;
  background-size: cover;
  clip-path: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.brand-lockup h2 {
  margin-bottom: 3px;
  font-size: 46px;
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-lockup p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 5px;
}

body[data-style="velocity"] .brand-lockup {
  margin-top: 52px;
}

body[data-style="velocity"] .brand-lockup h2 {
  font-style: italic;
  text-shadow: 0 0 22px rgba(240, 24, 37, 0.55);
}

body[data-style="velocity"] .brand-lockup p {
  color: rgba(255, 244, 242, 0.9);
}

body[data-style="cosmos"] .brand-lockup {
  margin-top: 52px;
}

body[data-style="cosmos"] .brand-lockup h2 {
  text-shadow: 0 0 24px rgba(111, 215, 255, 0.58);
}

body[data-style="cosmos"] .brand-lockup p {
  color: #d8edff;
}

.lift-card {
  position: relative;
  margin-top: -42px;
}

.match-card,
.score-panel,
.invite-banner,
.activity-card,
.profile-card,
.score-hero,
.chart-card,
.rules-strip,
.mini-panel,
.module-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.match-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.section-label,
.score-panel span,
.score-hero span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.match-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 18px;
}

.home-match-list {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.home-match-row {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-match-row + .home-match-row {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-match-row strong {
  margin: 0;
}

.match-card p,
.score-panel p,
.score-hero p {
  margin: 0;
  color: var(--muted);
}

.score-delta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.score-delta-row p {
  min-width: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.score-delta-row span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}

.score-delta-row b {
  display: block;
  color: var(--accent);
  font-size: 17px;
  line-height: 1.1;
}

.avatar-stack {
  display: flex;
  margin-right: 4px;
}

.avatar-stack i {
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, #ffe3c0 0 20%, transparent 21%),
    linear-gradient(135deg, #222, var(--accent));
}

.primary-btn {
  display: grid;
  place-items: center;
  grid-column: 2;
  min-width: 96px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 92%, #fff), var(--accent));
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.score-panel {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 8px;
  min-height: 148px;
  margin-top: 12px;
  padding: 16px;
  overflow: hidden;
}

.score-panel strong,
.score-hero strong {
  display: block;
  margin: 8px 0 8px;
  color: var(--text);
  font-size: 48px;
  line-height: 0.95;
  font-weight: 950;
}

.score-panel [data-home-points-balance],
.score-hero [data-home-points-balance],
.score-hero [data-points-balance] {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.score-panel em,
.score-hero em {
  display: inline;
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
  vertical-align: baseline;
}

.speed-chip,
.premium-spade {
  position: relative;
  place-self: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--accent-2) 0 18%, transparent 19%),
    conic-gradient(from 28deg, var(--accent), #181015, var(--accent), #24121b, var(--accent));
  box-shadow: inset 0 0 0 13px rgba(0, 0, 0, 0.45), 0 0 34px color-mix(in srgb, var(--accent) 44%, transparent);
}

.speed-chip::after,
.premium-spade::after {
  content: "";
  position: absolute;
  inset: 38px;
  background: var(--accent);
  clip-path: path("M22 0C36 14 44 24 44 35C44 45 36 52 22 52C8 52 0 45 0 35C0 24 8 14 22 0Z");
  transform: scale(.68);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

[data-home-module][hidden] {
  display: none !important;
}

.shortcut-grid button,
.shortcut-grid a {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 92px;
  padding: 12px 4px 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.shortcut-grid i,
.rules-strip i {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 52%, #000));
}

.shortcut-grid i::before,
.rules-strip i::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}

.nav-wallet::before {
  inset: 8px 7px 10px;
  border-radius: 3px;
  box-shadow: inset 0 -5px 0 var(--ink);
}

.i-trophy::after,
.i-win::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 6px;
  width: 16px;
  height: 5px;
  background: var(--ink);
}

.i-bottle::before {
  inset: 5px 12px;
  border-radius: 8px 8px 3px 3px;
}

.i-calendar::after,
.i-check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  width: 15px;
  border-top: 3px solid var(--ink);
}

.i-users::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 20px;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 20px 20px 4px 4px;
}

.invite-banner {
  display: grid;
  grid-template-columns: 1fr 132px;
  min-height: 126px;
  margin-top: 12px;
  padding: 16px;
  overflow: hidden;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 58%),
    var(--panel);
}

.invite-banner p {
  margin-bottom: 5px;
  color: var(--muted);
  font-weight: 800;
}

.invite-banner strong {
  display: block;
  margin-bottom: 14px;
  font-size: 22px;
}

.invite-banner button,
.invite-banner a {
  display: inline-grid;
  place-items: center;
  min-width: 96px;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.cards-art {
  position: relative;
}

.cards-art::before,
.cards-art::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .16);
  transform: rotate(-13deg);
  right: 44px;
  top: 10px;
}

.cards-art::after {
  right: 6px;
  top: 0;
  transform: rotate(12deg);
  background:
    radial-gradient(circle at 50% 38%, var(--hot) 0 16%, transparent 17%),
    #fff;
}

.activity-card {
  margin-top: 12px;
  padding: 14px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.card-title button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.activity-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 0;
  border-top: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.activity-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.activity-row strong {
  display: block;
  margin-bottom: 4px;
}

.activity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.green {
  color: var(--good);
}

.signed {
  color: #d9ad66;
}

.red {
  color: var(--hot);
}

.cup-thumb,
.flag-thumb {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    radial-gradient(circle at center, var(--accent) 0 22%, transparent 23%),
    linear-gradient(135deg, #050505, color-mix(in srgb, var(--accent) 50%, #111));
}

.flag-thumb {
  background:
    linear-gradient(135deg, transparent 42%, var(--accent) 43% 56%, transparent 57%),
    #111;
}

.member-campaign-sheet {
  position: absolute;
  inset: 0;
  z-index: 30;
}

.member-campaign-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(6px);
}

.member-campaign-panel {
  position: absolute;
  right: 14px;
  bottom: 86px;
  left: 14px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(217, 173, 102, 0.32);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 94%, #000);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.member-campaign-panel p {
  margin: 0;
  color: var(--muted);
}

.member-campaign-badge {
  width: max-content;
  padding: 5px 9px;
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.member-campaign-badge.signed {
  background: rgba(217, 173, 102, 0.12);
}

.member-campaign-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.member-campaign-info div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.member-campaign-info span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.member-campaign-info strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.member-campaign-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.member-campaign-actions.is-signed {
  grid-template-columns: minmax(0, 1fr) minmax(116px, 0.8fr);
  align-items: stretch;
}

.member-campaign-signup {
  grid-column: 1 / -1;
  width: 100%;
}

.member-campaign-actions.is-signed .member-campaign-signup {
  grid-column: auto;
}

.member-campaign-cancel {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.member-campaign-cancel:hover {
  border-color: rgba(217, 173, 102, 0.42);
  background: rgba(217, 173, 102, 0.1);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 68px;
  padding: 7px 12px 6px;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.bottom-nav button,
.bottom-nav a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bottom-nav .active {
  color: var(--accent);
}

.bottom-nav i {
  width: 22px;
  height: 22px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 6px;
}

body[data-style="velocity"] .match-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 238, 0.9));
  border-color: rgba(255, 255, 255, 0.36);
  color: #171010;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.36), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

body[data-style="velocity"] .match-card p,
body[data-style="velocity"] .match-card .section-label {
  color: #4c3c3c;
}

body[data-style="velocity"] .primary-btn,
body[data-style="velocity"] .invite-banner a {
  background: linear-gradient(180deg, #ff3b43, #ad0710);
  color: #fff;
  box-shadow: 0 10px 20px rgba(240, 24, 37, 0.35);
}

body[data-style="velocity"] .score-panel,
body[data-style="velocity"] .invite-banner {
  background:
    linear-gradient(120deg, rgba(240, 24, 37, 0.45), rgba(0, 0, 0, 0.18) 58%),
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.14), transparent 36%),
    rgba(15, 6, 8, 0.9);
  border-color: rgba(240, 24, 37, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055), 0 16px 34px rgba(240, 24, 37, 0.16);
}

body[data-style="velocity"] .score-delta-row p {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
}

body[data-style="velocity"] .speed-chip {
  border-radius: 20px;
  background:
    repeating-conic-gradient(from 45deg, rgba(255, 255, 255, 0.88) 0 9deg, transparent 9deg 18deg),
    radial-gradient(circle at center, #0a0a0b 0 48%, transparent 49%),
    conic-gradient(from 240deg, #ff3138, #0d0d0f, #ff3138);
  transform: skewX(-7deg);
}

body[data-style="velocity"] .shortcut-grid a {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(230, 230, 232, 0.92));
  border-color: rgba(255, 255, 255, 0.44);
  color: #141417;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body[data-style="velocity"] .shortcut-grid i {
  background: linear-gradient(145deg, #f01825, #7a050a);
}

body[data-style="velocity"] .bottom-nav {
  background: rgba(8, 8, 10, 0.86);
  border-top-color: rgba(240, 24, 37, 0.3);
  box-shadow: 0 -16px 34px rgba(240, 24, 37, 0.1);
}

body[data-style="cosmos"] .match-card,
body[data-style="cosmos"] .score-panel,
body[data-style="cosmos"] .invite-banner {
  background:
    linear-gradient(140deg, rgba(15, 47, 102, 0.48), rgba(5, 12, 30, 0.84)),
    rgba(4, 10, 24, 0.92);
  border-color: rgba(111, 215, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(143, 107, 255, 0.15), 0 0 28px rgba(61, 151, 255, 0.14);
}

body[data-style="cosmos"] .match-card,
body[data-style="cosmos"] .shortcut-grid a,
body[data-style="cosmos"] .bottom-nav {
  border-radius: 14px;
}

body[data-style="cosmos"] .primary-btn,
body[data-style="cosmos"] .invite-banner a {
  background: linear-gradient(135deg, #263bff, #6fd7ff);
  color: #fff;
  box-shadow: 0 0 24px rgba(111, 215, 255, 0.32);
}

body[data-style="cosmos"] .score-delta-row p {
  background: rgba(17, 45, 92, 0.42);
  border-color: rgba(111, 215, 255, 0.2);
}

body[data-style="cosmos"] .speed-chip {
  background:
    radial-gradient(circle at 50% 50%, rgba(111, 215, 255, 0.96) 0 8%, transparent 9%),
    repeating-radial-gradient(circle at center, transparent 0 19px, rgba(111, 215, 255, 0.35) 20px 21px),
    conic-gradient(from 130deg, #6fd7ff, #2317a9, #8f6bff, #6fd7ff);
  box-shadow: inset 0 0 0 13px rgba(3, 9, 22, 0.64), 0 0 42px rgba(111, 215, 255, 0.28);
}

body[data-style="cosmos"] .shortcut-grid a {
  background: linear-gradient(180deg, rgba(12, 36, 78, 0.78), rgba(4, 12, 32, 0.92));
  border-color: rgba(111, 215, 255, 0.26);
  box-shadow: inset 0 0 18px rgba(111, 215, 255, 0.06), 0 10px 26px rgba(0, 0, 0, 0.28);
}

body[data-style="cosmos"] .shortcut-grid i {
  background: linear-gradient(145deg, #6fd7ff, #5137d8);
}

body[data-style="cosmos"] .bottom-nav {
  background: rgba(3, 10, 26, 0.88);
  border-color: rgba(111, 215, 255, 0.3);
  box-shadow: inset 0 0 26px rgba(111, 215, 255, 0.08), 0 -18px 36px rgba(34, 92, 200, 0.12);
}

.center-action {
  transform: translateY(-24px);
}

.center-action i {
  width: 56px;
  height: 56px;
  border: 4px solid color-mix(in srgb, var(--page) 90%, #fff);
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}

.center-action i::after {
  content: "";
  position: absolute;
  inset: 14px;
  background: var(--ink);
  clip-path: path("M14 0C23 9 28 15 28 22C28 28 23 32 14 32C5 32 0 28 0 22C0 15 5 9 14 0Z");
}

.staff-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.staff-login-dialog {
  display: grid;
  gap: 14px;
  width: min(380px, 100%);
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.45);
}

.staff-login-dialog strong {
  font-size: 22px;
}

.staff-login-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.staff-login-dialog input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.staff-login-dialog p {
  min-height: 20px;
  margin: 0;
  color: var(--hot);
  font-weight: 900;
}

.staff-login-dialog div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.staff-login-dialog button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 950;
}

.staff-login-dialog button[type="submit"] {
  background: var(--accent);
  color: var(--ink);
}

.score-screen {
  padding-top: 14px;
}

.page-nav {
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-nav h2 {
  margin: 0;
  font-size: 23px;
}

.page-nav button:last-child,
.page-nav a:last-child {
  display: grid;
  place-items: center;
  width: auto;
  min-width: 74px;
  padding: 0 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.back-btn {
  position: relative;
}

.back-btn::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr 78px;
  gap: 12px;
  align-items: center;
  min-height: 142px;
  padding: 14px;
}

.profile-avatar {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, #efe0c6 0 16%, transparent 17%),
    linear-gradient(135deg, #0a0b0f, var(--hot));
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.profile-avatar.small {
  width: 46px;
  height: 46px;
  border-width: 2px;
}

.profile-avatar.has-image {
  background-size: cover;
}

.profile-avatar.has-image::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.profile-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.profile-main strong span {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--hot);
  color: #fff;
  font-size: 11px;
}

.profile-main p,
.profile-main em {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-style: normal;
}

.profile-edit-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 44px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.profile-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
}

.profile-editor-overlay[hidden] {
  display: none;
}

.profile-editor-dialog {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.48);
}

.profile-editor-dialog .card-title button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.profile-editor-avatar {
  justify-self: center;
  width: 86px;
  height: 86px;
}

.profile-editor-dialog label {
  display: grid;
  gap: 8px;
}

.profile-editor-dialog label span,
.profile-editor-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.profile-editor-dialog input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.progress {
  height: 8px;
  overflow: hidden;
  background: var(--faint);
  border-radius: 999px;
}

.progress i {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--accent));
}

.rank-shield {
  display: grid;
  place-items: center;
  width: 72px;
  height: 84px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(145deg, var(--hot), #17161b);
  clip-path: polygon(50% 0, 94% 18%, 86% 76%, 50% 100%, 14% 76%, 6% 18%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.28);
}

.score-hero {
  display: grid;
  grid-template-columns: 1fr 128px;
  gap: 10px;
  min-height: 182px;
  margin-top: 14px;
  padding: 18px;
  background:
    linear-gradient(120deg, rgba(0, 0, 0, .16), color-mix(in srgb, var(--hot) 24%, transparent)),
    var(--panel);
}

.premium-spade {
  width: 138px;
  height: 138px;
}

.chart-card {
  margin-top: 14px;
  padding: 14px;
}

.pill-set {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 138px;
  padding: 4px;
  background: var(--faint);
  border-radius: 8px;
}

.pill-set span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-radius: 6px;
}

.pill-set .active {
  background: var(--accent);
  color: var(--ink);
}

.trend-chart {
  width: 100%;
  height: 170px;
  overflow: visible;
}

.grid-line {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.chart-fill {
  fill: color-mix(in srgb, var(--hot) 36%, transparent);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4;
}

.chart-dots circle {
  fill: var(--page);
  stroke: var(--accent);
  stroke-width: 4;
}

.trend-chart text,
.trend-labels text {
  fill: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.trend-labels text[data-trend-label="highest"] {
  fill: var(--accent);
}

.rules-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
  padding: 12px 8px;
}

.rules-strip div {
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.rules-strip span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.rules-strip strong {
  color: var(--accent);
  font-size: 11px;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mini-panel {
  padding: 12px;
}

.mini-panel p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-panel b {
  color: var(--hot);
}

.score-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.score-actions button,
.score-actions a {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.score-actions button:last-child,
.score-actions a:last-child {
  background: var(--panel);
  color: var(--text);
}

.module-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.module-card {
  min-height: 220px;
  padding: 16px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.6;
}

.mini-table {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  min-height: 126px;
  align-items: center;
}

.mini-table strong {
  grid-column: 1 / 4;
  display: grid;
  place-items: center;
  width: 112px;
  height: 56px;
  margin: -10px auto;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-2) 46%, #0b0b0d);
  border: 3px solid var(--accent);
}

.mini-table button {
  width: 36px;
  height: 36px;
  margin: auto;
  border: 0;
  border-radius: 50%;
  background: var(--good);
  color: #fff;
  font-weight: 900;
}

.mini-table .booked {
  background: var(--hot);
}

.bottle-line {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  border-top: 1px solid var(--line);
}

.bottle-line i {
  width: 30px;
  height: 58px;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(90deg, #1b0d10, var(--accent), #3b1712);
}

.bottle-line strong {
  display: block;
}

.bottle-line p {
  margin: 4px 0 0;
}

.rank-module ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-module li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
}

.rank-module span,
.rank-module em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.decay-meter {
  height: 16px;
  margin: 30px 0 22px;
  overflow: hidden;
  background: var(--faint);
  border-radius: 999px;
}

.decay-meter i {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--hot));
}

.reservation-body {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 24px 12px;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 173, 102, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--page);
}

.reservation-shell {
  width: min(100%, 430px);
}

.reservation-screen {
  min-height: 900px;
  overflow: hidden;
  padding: 0 14px 20px;
  background:
    linear-gradient(180deg, rgba(217, 173, 102, 0.12), transparent 230px),
    var(--page);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.42);
}

.reservation-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 12px;
  align-items: center;
  padding: 10px 0 18px;
}

.reservation-nav h1 {
  margin: 0;
  font-size: 26px;
}

.reservation-nav .overline {
  margin-bottom: 4px;
}

.reservation-nav .back-btn {
  display: block;
  color: var(--text);
}

.booking-event-card,
.booking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.booking-event-card span,
.booking-summary span,
.table-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.booking-event-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

.booking-event-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.booking-event-card em {
  display: grid;
  place-items: center;
  min-width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-style: normal;
  font-weight: 950;
}

.table-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}

.table-tabs span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.table-carousel {
  display: grid;
  grid-auto-columns: 92%;
  grid-auto-flow: column;
  gap: 14px;
  margin: 0 -14px;
  overflow-x: auto;
  padding: 0 14px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.table-carousel::-webkit-scrollbar {
  display: none;
}

.booking-table-card {
  position: relative;
  min-height: 520px;
  padding: 16px;
  overflow: hidden;
  scroll-snap-align: center;
  background:
    radial-gradient(circle at 50% 52%, rgba(217, 173, 102, 0.23), transparent 42%),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.booking-table-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(217, 173, 102, 0.08);
  border-radius: 7px;
  pointer-events: none;
}

.booking-table-card::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 114px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(217, 173, 102, 0.16), transparent 66%);
  filter: blur(14px);
  transform: translateX(-50%);
  pointer-events: none;
}

.table-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.table-card-head strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
}

.table-card-head em {
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.seat-map {
  position: relative;
  z-index: 1;
  height: 372px;
  margin-top: 6px;
}

.poker-table {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 222px;
  height: 128px;
  place-items: center;
  border: 5px solid rgba(217, 173, 102, 0.94);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.14), transparent 44%),
    radial-gradient(circle at 50% 64%, rgba(98, 46, 125, 0.58), transparent 55%),
    linear-gradient(155deg, #4b1d5e, #1a0824 68%);
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.52),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06),
    inset 0 -18px 34px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%) perspective(400px) rotateX(5deg);
}

.poker-table::before {
  content: "";
  position: absolute;
  inset: 13px 22px;
  border: 1px solid rgba(217, 173, 102, 0.42);
  border-radius: 50%;
}

.poker-table::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 173, 102, 0.22), transparent 62%);
  transform: translate(-50%, -50%);
}

.seat-choice {
  position: absolute;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(217, 173, 102, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(145deg, #1d171a, #070607);
  color: var(--text);
  font-size: 20px;
  font-weight: 950;
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.seat-choice.selected {
  border-color: var(--accent);
  background:
    radial-gradient(circle at 38% 28%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(145deg, #f1c879, var(--accent));
  color: var(--ink);
  box-shadow:
    0 0 0 5px rgba(217, 173, 102, 0.18),
    0 18px 36px rgba(217, 173, 102, 0.2);
}

.seat-choice.booked {
  border-color: rgba(217, 82, 72, 0.45);
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.14), transparent 28%),
    linear-gradient(145deg, #c33b34, #761915);
  color: #fff;
  cursor: not-allowed;
  opacity: 0.76;
}

.seat-1 {
  left: calc(50% - 27px);
  top: 18px;
}

.seat-2 {
  right: 66px;
  top: 38px;
}

.seat-3 {
  right: -8px;
  top: 112px;
}

.seat-4 {
  right: -8px;
  bottom: 112px;
}

.seat-5 {
  right: 66px;
  bottom: 38px;
}

.seat-6 {
  left: calc(50% - 27px);
  bottom: 18px;
}

.seat-7 {
  left: 66px;
  bottom: 38px;
}

.seat-8 {
  left: -8px;
  bottom: 112px;
}

.seat-9 {
  left: -8px;
  top: 112px;
}

.seat-10 {
  left: 66px;
  top: 38px;
}

.seat-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.seat-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b1618;
}

.seat-legend .selected {
  background: var(--accent);
}

.seat-legend .booked {
  background: var(--hot);
}

.booking-summary {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  background: color-mix(in srgb, var(--panel) 92%, #000);
  backdrop-filter: blur(16px);
}

.booking-summary strong {
  display: block;
  margin-top: 5px;
  font-size: 17px;
}

.booking-actions {
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
}

.booking-summary .primary-btn {
  grid-column: auto;
  min-width: 116px;
}

.booking-summary .ghost-btn {
  min-width: 96px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 900;
}

.booking-summary .ghost-btn[hidden] {
  display: none;
}

.booking-summary .primary-btn:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

.booking-toast {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: rgba(217, 173, 102, 0.13);
  border: 1px solid rgba(217, 173, 102, 0.34);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 900;
  text-align: center;
}

.prototype-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(86vw, 360px);
  margin: 0;
  padding: 12px 16px;
  background: rgba(12, 10, 12, 0.94);
  border: 1px solid rgba(217, 173, 102, 0.35);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  color: var(--accent);
  font-weight: 900;
  text-align: center;
  transform: translateX(-50%);
}

.mobile-page-body {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 18px 12px;
  background:
    radial-gradient(circle at 50% 0, rgba(217, 173, 102, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--page);
}

.mobile-page {
  width: min(100%, 430px);
  min-height: 880px;
  padding: 0 14px 22px;
  background:
    linear-gradient(180deg, rgba(217, 173, 102, 0.1), transparent 260px),
    var(--page);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.42);
}

.miniapp-body {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--page);
}

.miniapp-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  background: var(--page);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.miniapp-preview-shell {
  padding: 12px 10px 0;
}

.miniapp-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.miniapp-preview-toolbar div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.miniapp-preview-toolbar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.miniapp-preview-toolbar strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.miniapp-preview-toolbar a {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 34px;
  padding: 0 10px;
  background: var(--accent);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.miniapp-preview-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 8px 0 10px;
}

.miniapp-preview-tabs a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 34px;
  padding: 0 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.miniapp-preview-tabs a.active {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  color: var(--text);
}

.miniapp-screen {
  min-height: calc(100vh - 40px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding-bottom: 0;
}

.miniapp-screen .bottom-nav {
  position: sticky;
  z-index: 12;
  bottom: 0;
  margin: 14px -14px 0;
}

.miniapp-score-link {
  color: var(--text);
  text-decoration: none;
}

.miniapp-primary-grid {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: -42px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.miniapp-primary-grid .lift-card {
  margin-top: 0;
}

.miniapp-action-card {
  min-height: 118px;
}

.miniapp-section-card {
  margin-bottom: 8px;
}

.miniapp-section-card .card-title a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.home-event-carousel {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.home-event-carousel::-webkit-scrollbar {
  display: none;
}

.home-event-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 14px;
  margin: 2px 0 4px;
}

.home-event-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.home-event-dots button.active {
  background: var(--accent);
}

.miniapp-screen .home-event-dots {
  display: none;
}

.home-event-card {
  min-height: 184px;
  scroll-snap-align: start;
}

.home-event-carousel.miniapp-primary-grid {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: 1fr;
  margin-top: -42px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.home-event-carousel.miniapp-primary-grid .home-event-card {
  min-height: 118px;
  scroll-snap-align: none;
}

.miniapp-tournament-card {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.12), rgba(201, 54, 49, 0.08)),
    var(--panel);
}

.miniapp-tournament-card .primary-btn {
  border: 0;
}

.miniapp-tournament-card .primary-btn:disabled {
  opacity: .56;
}

.miniapp-tournament-chip {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 8px;
  background: rgba(217, 173, 102, 0.12);
}

.miniapp-tournament-chip span {
  color: var(--accent);
  font-size: 15px;
  font-weight: 950;
}

.page-nav-solid {
  display: grid;
  grid-template-columns: 42px 1fr 78px;
  align-items: center;
  gap: 10px;
  padding: 8px 0 16px;
}

.page-nav-solid h1 {
  margin: 0;
  font-size: 24px;
  text-align: center;
}

.page-card,
.leader-hero,
.bottle-hero,
.shop-hero,
.points-balance-card,
.checkin-hero,
.profile-stats,
.verify-code-card {
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.leader-hero {
  background:
    radial-gradient(circle at 50% 18%, rgba(217, 173, 102, 0.22), transparent 48%),
    var(--panel);
}

.leader-hero h2,
.shop-hero h2,
.bottle-hero h2 {
  margin-bottom: 12px;
  font-size: 30px;
}

.podium-hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: 8px;
  align-items: end;
  margin-top: 22px;
}

.podium-hero div {
  min-height: 120px;
  padding: 12px 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.podium-hero .champion {
  min-height: 154px;
  background: linear-gradient(180deg, rgba(217, 173, 102, 0.18), rgba(255, 255, 255, 0.06));
}

.podium-hero span {
  display: grid;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.podium-hero strong,
.podium-hero em {
  display: block;
  font-style: normal;
}

.podium-hero em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.reward-row,
.leader-list li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
}

.reward-row:first-of-type {
  border-top: 0;
}

.reward-row p {
  margin: 0;
  color: var(--text);
}

.reward-row b,
.leader-list span,
.leader-list em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.leader-list .is-mine {
  margin: 5px -8px;
  padding: 0 8px;
  background: rgba(217, 173, 102, 0.12);
  border: 1px solid rgba(217, 173, 102, 0.24);
  border-radius: 8px;
}

.leader-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.my-rank-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(217, 173, 102, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
}

.my-rank-card span {
  color: var(--muted);
  font-weight: 900;
}

.my-rank-card strong {
  color: var(--accent);
  font-size: 26px;
}

.my-rank-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.page-nav .page-nav-action {
  color: var(--text);
  text-decoration: none;
  font-weight: 950;
}

.page-nav-spacer {
  width: 42px;
  height: 42px;
}

.bottle-hero {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 14px;
  align-items: center;
}

.bottle-hero p,
.shop-hero p,
.points-balance-card p,
.checkin-hero p,
.muted-copy {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.vault-bottle {
  width: 58px;
  height: 128px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px 24px 8px 8px;
  background: linear-gradient(90deg, #221013, var(--accent), #3b1712);
  box-shadow: 0 0 36px rgba(217, 173, 102, 0.18);
}

.bottle-detail-card .large {
  border-top: 0;
}

.bottle-progress {
  height: 8px;
  margin: 8px 0 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.bottle-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 42%, #fff));
}

.bottle-withdraw-picker {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bottle-withdraw-picker span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.bottle-withdraw-picker div {
  display: grid;
  grid-template-columns: 34px 58px 34px;
  gap: 8px;
  align-items: center;
}

.bottle-withdraw-picker button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 18px;
  font-weight: 950;
}

.bottle-withdraw-picker button:disabled,
.wide-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bottle-withdraw-picker strong {
  color: var(--accent);
  text-align: center;
}

.wide-action {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.wide-action.secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.verify-code-card {
  text-align: center;
}

.verify-code-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.verify-code-card strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-size: 32px;
}

.bottle-history p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.bottle-history b {
  color: var(--accent);
}

.bottle-history em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.shop-category-tabs {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 8px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}

.category-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
}

.category-tabs .active {
  background: var(--accent);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-card {
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card i,
.reward-product i {
  display: block;
  width: 100%;
  height: 82px;
  margin-bottom: 10px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(217, 173, 102, 0.28), transparent 40%),
    linear-gradient(145deg, #241017, #070607);
}

.product-card i.has-image {
  background-color: #14100f;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.product-card strong,
.reward-product strong {
  display: block;
  margin-bottom: 5px;
}

.product-card p,
.reward-product p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.product-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 1px solid rgba(217, 173, 102, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
}

.product-card em,
.reward-product em {
  display: block;
  margin: 10px 0;
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.product-card > button,
.reward-product button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.qty-stepper {
  display: grid;
  grid-template-columns: 34px minmax(28px, 1fr) 34px;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}

.qty-stepper button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.qty-stepper strong {
  margin: 0;
  text-align: center;
  color: #fff4dc;
}

.product-stepper {
  margin-top: 10px;
}

.shop-cart {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 92%, #000);
  border: 1px solid var(--line);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.cart-summary-button {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.shop-cart span,
.points-balance-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.shop-cart strong {
  display: block;
  margin-top: 2px;
}

.shop-cart em {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.shop-cart .primary-btn {
  grid-column: auto;
  min-width: 108px;
}

body[data-style="racing"] .mobile-page {
  background:
    linear-gradient(180deg, rgba(231, 14, 32, 0.08), transparent 250px),
    #f4f4f6;
}

body[data-style="racing"] .page-card,
body[data-style="racing"] .product-card,
body[data-style="racing"] .shop-cart,
body[data-style="racing"] .cart-drawer,
body[data-style="racing"] .order-history-drawer,
body[data-style="racing"] .profile-stats,
body[data-style="racing"] .profile-action-card,
body[data-style="racing"] .profile-menu {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(12, 12, 16, 0.12);
  box-shadow: 0 16px 32px rgba(8, 10, 14, 0.1);
}

body[data-style="racing"] .product-card i,
body[data-style="racing"] .profile-page-card {
  background:
    radial-gradient(circle at 18% 20%, rgba(231, 14, 32, 0.28), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 14, 32, 0.08));
}

body[data-style="racing"] .profile-avatar,
body[data-style="racing"] .action-icon {
  background: linear-gradient(135deg, #0e0f13, #e70e20);
}

body[data-style="royal"] .mobile-page,
body[data-style="velocity"] .mobile-page,
body[data-style="cosmos"] .mobile-page {
  background:
    radial-gradient(circle at 82% 0, color-mix(in srgb, var(--accent-2) 28%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 260px),
    var(--page);
}

body[data-style="royal"] .page-card,
body[data-style="royal"] .product-card,
body[data-style="royal"] .shop-cart,
body[data-style="royal"] .cart-drawer,
body[data-style="royal"] .order-history-drawer,
body[data-style="royal"] .profile-stats,
body[data-style="royal"] .profile-action-card,
body[data-style="royal"] .profile-menu {
  background:
    linear-gradient(145deg, rgba(154, 92, 255, 0.12), rgba(228, 183, 110, 0.06)),
    var(--panel);
  border-color: rgba(228, 183, 110, 0.22);
}

body[data-style="royal"] .product-card i,
body[data-style="royal"] .profile-page-card {
  background:
    radial-gradient(circle at 78% 18%, rgba(228, 183, 110, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(154, 92, 255, 0.24), rgba(16, 9, 24, 0.92));
}

body[data-style="velocity"] .page-card,
body[data-style="velocity"] .product-card,
body[data-style="velocity"] .shop-cart,
body[data-style="velocity"] .cart-drawer,
body[data-style="velocity"] .order-history-drawer,
body[data-style="velocity"] .profile-stats,
body[data-style="velocity"] .profile-action-card,
body[data-style="velocity"] .profile-menu {
  background:
    linear-gradient(145deg, rgba(255, 39, 52, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 12, 0.92);
  border-color: rgba(255, 42, 49, 0.24);
}

body[data-style="velocity"] .product-card i,
body[data-style="velocity"] .profile-page-card {
  background:
    linear-gradient(135deg, rgba(240, 24, 37, 0.85), rgba(10, 10, 12, 0.92)),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.18), transparent 34%);
}

body[data-style="velocity"] .category-tabs .active,
body[data-style="velocity"] .product-card > button,
body[data-style="velocity"] .shop-cart .primary-btn,
body[data-style="velocity"] .stored-balance-card a {
  background: linear-gradient(135deg, #f01825, #ffffff);
}

body[data-style="cosmos"] .page-card,
body[data-style="cosmos"] .product-card,
body[data-style="cosmos"] .shop-cart,
body[data-style="cosmos"] .cart-drawer,
body[data-style="cosmos"] .order-history-drawer,
body[data-style="cosmos"] .profile-stats,
body[data-style="cosmos"] .profile-action-card,
body[data-style="cosmos"] .profile-menu {
  background:
    linear-gradient(145deg, rgba(17, 45, 92, 0.52), rgba(4, 12, 32, 0.9)),
    rgba(6, 15, 35, 0.9);
  border-color: rgba(111, 215, 255, 0.28);
  box-shadow: inset 0 0 18px rgba(111, 215, 255, 0.06), 0 18px 38px rgba(0, 0, 0, 0.24);
}

body[data-style="cosmos"] .product-card i,
body[data-style="cosmos"] .profile-page-card {
  background:
    radial-gradient(circle at 72% 20%, rgba(111, 215, 255, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(35, 23, 169, 0.42), rgba(4, 12, 32, 0.95));
}

body[data-style="cosmos"] .category-tabs .active,
body[data-style="cosmos"] .product-card > button,
body[data-style="cosmos"] .shop-cart .primary-btn,
body[data-style="cosmos"] .stored-balance-card a {
  background: linear-gradient(135deg, #263bff, #6fd7ff);
  color: #fff;
}

.cart-drawer,
.order-history-drawer {
  margin-top: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-drawer .card-title button,
.order-history-drawer .card-title button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.cart-lines {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 112px;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.cart-line p,
.cart-empty {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cart-line em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.order-history-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.order-history-card {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.order-history-head,
.order-history-lines p,
.order-history-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.order-history-head strong {
  display: block;
}

.order-history-head p,
.order-history-lines p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.order-history-head em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.order-history-lines {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.order-history-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.order-history-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-history-total strong {
  color: var(--accent);
}

.order-panel {
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-lines {
  display: grid;
  gap: 8px;
}

.order-lines p,
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.order-lines p:first-child {
  border-top: 0;
}

.order-lines span,
.order-total span {
  color: var(--muted);
}

.order-lines strong,
.order-total strong {
  color: var(--accent);
}

.order-total {
  margin-top: 8px;
  border-top-color: rgba(217, 173, 102, 0.3);
}

.payment-method-card {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 173, 102, 0.24);
}

.payment-method-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.payment-method-card div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-method-card button {
  min-height: 44px;
  padding: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.payment-method-card button.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.payment-method-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 11px;
}

.points-balance-card strong {
  display: block;
  margin: 8px 0;
  font-size: 48px;
  line-height: 1;
}

.reward-products {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.reward-product {
  display: grid;
  grid-template-columns: 74px 1fr 76px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reward-product i {
  width: 74px;
  height: 74px;
  margin: 0;
}

.reward-product button {
  grid-column: 3;
}

.reward-product-empty {
  grid-template-columns: 1fr;
}

.reward-product-empty p {
  margin-top: 6px;
  line-height: 1.55;
}

.redeem-panel {
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reward-rules-panel {
  margin-top: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 90% 8%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  scroll-margin-top: 18px;
}

.reward-rules-panel .card-title button {
  min-width: 64px;
  height: 36px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
}

.reward-rules-panel > p:first-of-type {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.reward-rule-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.reward-rule-product {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reward-rule-product strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.3;
}

.reward-rule-product p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.reward-rule-product em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.reward-rule-legal {
  margin-top: 14px;
}

.redeem-panel p,
.redeem-ledger p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.redeem-panel p:first-of-type {
  border-top: 0;
}

.redeem-panel span,
.redeem-ledger span,
.redeem-ledger em {
  color: var(--muted);
  font-style: normal;
}

.redeem-panel strong,
.redeem-ledger b {
  color: var(--accent);
}

.checkin-hero strong {
  display: block;
  margin: 8px 0;
  font-size: 38px;
}

.standalone {
  margin-top: 14px;
}

.task-panel p,
.ledger-list p,
.rule-detail-list p {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.task-panel p:first-of-type,
.ledger-list p:first-of-type,
.rule-detail-list p:first-of-type {
  border-top: 0;
}

.task-panel b,
.ledger-list b {
  color: var(--accent);
}

.task-panel em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.task-panel .done {
  color: var(--muted);
}

.task-panel .done em {
  color: var(--accent);
}

.invite-result-card {
  margin-top: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invite-result-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.invite-result-card strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-size: 20px;
}

.invite-result-card p {
  color: var(--muted);
  line-height: 1.6;
}

.reward-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
}

.reward-summary strong {
  color: var(--accent);
}

.ledger-list em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.rule-detail-list strong {
  color: var(--accent);
}

.decay-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.decay-rule-grid div {
  min-width: 0;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decay-rule-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decay-rule-grid strong {
  color: var(--accent);
  font-size: 13px;
}

.point-legal-card {
  scroll-margin-top: 12px;
}

.legal-rule-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.legal-rule-list li {
  position: relative;
  padding: 11px 12px 11px 28px;
  color: var(--text);
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.legal-rule-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 12px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.legal-final-copy {
  margin: 14px 0 0;
  color: var(--accent);
  line-height: 1.65;
  font-weight: 900;
}

.profile-page-card {
  margin-top: 14px;
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 173, 102, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--panel);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.profile-stats div {
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
}

.profile-stats strong {
  font-size: 18px;
}

.profile-wallet strong {
  color: #fff7ea;
}

.stored-balance-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  background:
    radial-gradient(circle at 86% 12%, rgba(217, 173, 102, 0.18), transparent 36%),
    var(--panel);
}

.stored-balance-card span,
.stored-value-hero span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stored-balance-card strong,
.stored-value-hero strong {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.stored-balance-card p,
.stored-value-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.stored-balance-card a {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
}

.honor-progress-card {
  overflow: hidden;
}

.honor-current {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background:
    linear-gradient(120deg, rgba(217, 173, 102, 0.14), rgba(126, 55, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 173, 102, 0.18);
  border-radius: 8px;
}

.honor-current span,
.honor-current em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.honor-current strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 24px;
}

.honor-meter-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.honor-meter-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.honor-meter-list strong {
  color: #fff;
  font-size: 12px;
}

.honor-meter-list i {
  display: block;
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.honor-meter-list b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hot), var(--accent));
  border-radius: inherit;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.profile-action-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  min-height: 82px;
  padding: 12px;
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.profile-action-card strong {
  align-self: end;
  font-size: 15px;
}

.profile-action-card em {
  grid-column: 2;
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.action-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(145deg, var(--accent), #6c4520);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.action-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: #140b0b;
}

.action-booking::before {
  border-radius: 4px;
  clip-path: polygon(12% 18%, 88% 18%, 88% 88%, 12% 88%);
  box-shadow: inset 0 6px 0 #140b0b;
}

.action-bottle::before {
  width: 16px;
  height: 24px;
  border-radius: 4px 4px 6px 6px;
  clip-path: polygon(35% 0, 65% 0, 65% 28%, 82% 40%, 82% 100%, 18% 100%, 18% 40%, 35% 28%);
}

.action-reward::before {
  border-radius: 3px;
  clip-path: polygon(8% 24%, 42% 24%, 50% 8%, 58% 24%, 92% 24%, 92% 92%, 8% 92%);
}

.action-order::before {
  border-radius: 3px;
  clip-path: polygon(15% 18%, 78% 18%, 90% 34%, 84% 86%, 22% 86%);
}

.action-wallet::before {
  border-radius: 4px;
  clip-path: polygon(10% 26%, 78% 26%, 92% 42%, 92% 84%, 10% 84%);
  box-shadow: inset 0 -7px 0 #140b0b;
}

.stored-value-hero {
  margin-top: 14px;
  background:
    radial-gradient(circle at 82% 16%, rgba(217, 173, 102, 0.22), transparent 34%),
    linear-gradient(135deg, rgba(217, 173, 102, 0.1), rgba(255, 255, 255, 0.03)),
    var(--panel);
}

.stored-value-hero strong {
  font-size: 52px;
}

.stored-plan-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.stored-plan-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stored-plan-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stored-plan-card strong {
  display: block;
  color: #fff7ea;
  font-size: 28px;
}

.stored-plan-card p {
  grid-column: 1;
  margin: 0;
  color: var(--accent);
  font-weight: 900;
}

.stored-plan-card button {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 950;
}

.stored-ledger-card {
  margin-top: 14px;
}

.stored-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.stored-ledger-row:first-child {
  border-top: 0;
}

.stored-ledger-row span {
  color: var(--muted);
}

.stored-ledger-row strong {
  color: var(--accent);
}

.profile-menu {
  display: grid;
  gap: 2px;
}

.profile-menu a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--line);
}

.profile-menu a:first-child {
  border-top: 0;
}

.profile-menu span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.recent-activity-card {
  margin-bottom: 24px;
}

.recent-activity-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.recent-activity-row:first-of-type {
  border-top: 0;
}

.recent-activity-row > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  background: rgba(217, 173, 102, 0.1);
  border: 1px solid rgba(217, 173, 102, 0.18);
  border-radius: 6px;
}

.recent-activity-row strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.recent-activity-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.recent-activity-row em {
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 28% 0, rgba(217, 173, 102, 0.14), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 46px 46px,
    var(--page);
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--page) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-topbar nav {
  display: flex;
  gap: 10px;
}

.admin-topbar a {
  display: grid;
  min-height: 40px;
  padding: 0 14px;
  place-items: center;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.admin-topbar a.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.admin-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.admin-sidebar,
.admin-hero-panel,
.admin-section,
.admin-log-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.admin-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-sidebar strong {
  padding: 8px 8px 12px;
  color: var(--accent);
  font-size: 16px;
}

.admin-sidebar button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.admin-sidebar button.active {
  color: var(--ink);
  background: var(--accent);
}

.admin-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 20%, rgba(217, 173, 102, 0.16), transparent 34%),
    var(--panel);
}

.admin-hero-panel h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.admin-hero-panel p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-kpis div {
  min-height: 96px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-kpis span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-kpis strong {
  color: var(--accent);
  font-size: 34px;
}

.ops-config-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.ops-config-overview article {
  min-height: 118px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.1), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ops-config-overview span,
.ops-config-overview em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.45;
}

.ops-config-overview strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.05;
}

.admin-section {
  display: none;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.admin-section.active {
  display: block;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.admin-section-head h2 {
  margin-bottom: 6px;
  font-size: 24px;
}

.admin-section-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.config-impact-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.config-impact-note span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 10px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.config-impact-note em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-section-head button {
  min-width: 112px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-config-card {
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-config-card > span {
  color: var(--accent);
  font-size: 18px;
  font-weight: 950;
}

.admin-config-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-config-card em {
  align-self: end;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.admin-config-card input,
.admin-table input,
.admin-table select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.admin-table {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-section .admin-table + .admin-table {
  margin-top: 12px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

[data-admin-match-config] .admin-table-row,
[data-admin-table-config] .admin-table-row {
  grid-template-columns: 1.1fr minmax(120px, 1fr) minmax(120px, 1fr);
}

.admin-table-row:first-child {
  border-top: 0;
}

.admin-table-row.head {
  min-height: 44px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
}

.admin-table-row span:first-child {
  color: var(--accent);
  font-weight: 950;
}

.admin-product-list {
  display: grid;
  gap: 10px;
}

.admin-product-list article {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 120px minmax(180px, 1fr) 110px 90px 100px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product-list span,
.admin-product-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-product-list .reward-config-row {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  align-items: end;
}

.admin-product-list .reward-config-row.is-draft {
  border-color: rgba(217, 173, 102, 0.34);
  background: rgba(217, 173, 102, 0.055);
}

.reward-empty-state {
  grid-template-columns: 1fr !important;
  align-items: start;
}

.reward-empty-state strong {
  color: #fff4dc;
  font-size: 16px;
}

.reward-empty-state p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 850;
}

.reward-config-row label {
  display: grid;
  gap: 6px;
}

.reward-config-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reward-config-row input,
.reward-config-row select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
}

.reward-row-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 2px;
}

.reward-row-actions span {
  margin-right: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.reward-row-actions button {
  min-width: 74px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.reward-row-actions button:last-child {
  color: #ffb8b8;
  border-color: rgba(255, 100, 100, 0.32);
}

.admin-image-upload {
  display: grid;
  grid-template-columns: 82px minmax(78px, 1fr);
  gap: 8px;
  align-items: center;
}

.admin-image-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-image-preview {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(217, 173, 102, 0.22), transparent 42%),
    linear-gradient(145deg, #241017, #070607);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-image-preview.has-image span {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff4dc;
}

.admin-upload-button {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(217, 173, 102, 0.38);
  border-radius: 8px;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.admin-upload-button.uploading {
  opacity: 0.62;
  pointer-events: none;
}

.admin-image-upload small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.brand-image-upload {
  grid-template-columns: 140px minmax(120px, 1fr);
}

.brand-image-preview {
  width: 140px;
  height: 92px;
}

.brand-logo-preview {
  width: 92px;
  height: 92px;
  border-radius: 18px;
}

.commerce-product-row .admin-image-upload {
  grid-template-columns: 1fr;
}

.commerce-product-row .admin-image-preview {
  grid-row: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.admin-product-list strong {
  color: var(--accent);
}

.commerce-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.commerce-actions button:first-child {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff4dc;
}

.commerce-summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(220px, 0.7fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 173, 102, 0.18);
  border-radius: 8px;
  background: rgba(217, 173, 102, 0.06);
}

.commerce-summary span,
.commerce-summary em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.commerce-summary strong {
  color: #fff4dc;
}

.commerce-product-list {
  gap: 12px;
}

.admin-product-list .commerce-product-row {
  grid-template-columns: 160px minmax(280px, 1.25fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: start;
  min-height: 150px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-product-list .commerce-product-row.is-draft {
  border-color: rgba(217, 173, 102, 0.34);
  background: rgba(217, 173, 102, 0.055);
}

.commerce-product-main,
.commerce-product-meta {
  display: grid;
  gap: 10px;
}

.commerce-product-main {
  grid-template-columns: minmax(0, 1.2fr) 112px;
}

.commerce-product-main .wide {
  grid-column: 1 / -1;
}

.commerce-product-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.commerce-product-row label {
  display: grid;
  gap: 6px;
}

.commerce-product-row label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.commerce-product-row input,
.commerce-product-row select {
  width: 100%;
}

.commerce-product-foot {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.commerce-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.commerce-row-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.commerce-row-actions button:hover {
  border-color: rgba(217, 173, 102, 0.45);
  background: rgba(217, 173, 102, 0.12);
}

.commerce-empty-state {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: center;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.commerce-empty-state strong {
  color: #fff4dc;
}

.commerce-empty-state p {
  margin: 0;
  color: var(--muted);
}

.reward-mode strong {
  color: #fff4dc;
}

.decay-config-panel {
  margin-top: 14px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(217, 173, 102, 0.24);
  border-radius: 8px;
}

.decay-config-panel .card-title button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 950;
}

.decay-config-panel .card-title button.enabled {
  background: var(--accent);
  color: var(--ink);
}

.decay-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.decay-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decay-form-grid input,
.decay-form-grid select,
.point-notice-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.point-notice-config-panel {
  margin-top: 14px;
}

.point-notice-config-panel .card-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.point-notice-form {
  display: grid;
  gap: 12px;
}

.point-notice-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.point-notice-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.6;
  resize: vertical;
}

.decay-preview {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decay-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decay-preview strong {
  display: block;
  margin: 7px 0;
  color: var(--accent);
  line-height: 1.6;
}

.decay-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.decay-job-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.decay-job-head,
.decay-job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.decay-job-head button,
.decay-job-row button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 950;
}

.decay-job-row {
  min-height: 58px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.decay-job-row strong,
.decay-job-row p {
  margin: 0;
}

.decay-job-row em {
  color: var(--accent);
  font-style: normal;
}

.decay-job-row button:disabled {
  opacity: 0.45;
}

.tournament-screen-body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 12%, rgba(201, 54, 49, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(217, 173, 102, 0.18), transparent 30%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 54px 54px,
    #050505;
}

.tournament-screen {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: clamp(16px, 2vw, 28px);
  min-height: 100vh;
  padding: clamp(20px, 3vw, 48px);
}

.tournament-stage {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}

.tournament-brand h1 {
  max-width: 1120px;
  margin: 0 0 10px;
  font-size: clamp(46px, 6vw, 108px);
  line-height: .95;
}

.tournament-brand p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 900;
}

.tournament-status-pill {
  display: grid;
  min-width: 160px;
  min-height: 54px;
  padding: 0 22px;
  place-items: center;
  background: var(--accent);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 950;
}

.tournament-clock-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.8fr) minmax(220px, 1fr);
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
}

.blind-box,
.clock-core,
.tournament-kpi-strip article,
.tournament-footer-grid div,
.tournament-control-main,
.tournament-level-list,
.control-clock-card,
.tournament-config-editor,
.tournament-count-editor,
.tournament-player-panel {
  background: rgba(15, 13, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

.blind-box {
  display: grid;
  align-content: center;
  gap: 16px;
  min-height: 300px;
  padding: clamp(18px, 2.2vw, 34px);
}

.blind-box.current {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
}

.blind-box span,
.tournament-kpi-strip span,
.tournament-footer-grid span,
.control-clock-card span,
.tournament-config-editor span,
.tournament-count-editor span,
.level-row em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.blind-box strong {
  font-size: clamp(34px, 3.5vw, 66px);
  line-height: 1;
}

.blind-box p {
  margin: 0;
  color: var(--accent);
  font-size: clamp(24px, 2.4vw, 44px);
  font-weight: 950;
}

.clock-core {
  display: grid;
  align-content: center;
  gap: 24px;
  min-height: 300px;
  padding: clamp(20px, 3vw, 46px);
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(201, 54, 49, 0.08)),
    rgba(15, 13, 16, 0.88);
}

.clock-value {
  color: var(--text);
  font-size: clamp(84px, 13vw, 230px);
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: .82;
  text-align: center;
}

.clock-bar {
  height: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
}

.clock-bar i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--hot));
  border-radius: inherit;
  transition: width .3s ease;
}

.tournament-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.tournament-kpi-strip article {
  min-height: 124px;
  padding: clamp(16px, 1.8vw, 24px);
}

.tournament-kpi-strip strong {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-size: clamp(34px, 4vw, 68px);
  font-variant-numeric: tabular-nums;
  line-height: .95;
}

.tournament-footer-grid {
  display: grid;
  grid-template-columns: .8fr 1.5fr 1fr;
  gap: clamp(12px, 1.4vw, 20px);
}

.tournament-footer-grid div {
  min-height: 76px;
  padding: 16px 18px;
}

.tournament-footer-grid strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(18px, 1.6vw, 28px);
}

.tournament-control-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 18px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.tournament-control-hero,
.tournament-overview-grid,
.tournament-runbook {
  grid-column: 1 / -1;
  min-width: 0;
}

.tournament-control-hero,
.tournament-overview-grid article,
.tournament-runbook article {
  background: rgba(15, 13, 16, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.tournament-control-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 20%, rgba(217, 173, 102, 0.16), transparent 34%),
    rgba(15, 13, 16, 0.82);
}

.tournament-control-hero h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.tournament-control-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.tournament-compliance-card {
  min-height: 190px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 173, 102, 0.3);
  border-radius: 8px;
}

.tournament-compliance-card span,
.tournament-overview-grid span,
.tournament-runbook span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.tournament-compliance-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.35;
}

.tournament-compliance-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.tournament-compliance-card a,
.tournament-runbook a,
.tournament-runbook button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.tournament-compliance-card a:hover,
.tournament-runbook a:hover,
.tournament-runbook button:hover {
  border-color: var(--accent);
}

.tournament-overview-grid,
.tournament-runbook {
  display: grid;
  gap: 12px;
}

.tournament-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tournament-runbook {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tournament-overview-grid article {
  min-height: 132px;
  padding: 16px;
}

.tournament-overview-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1.08;
}

.tournament-overview-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.tournament-runbook article {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 190px;
  padding: 16px;
}

.tournament-runbook strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.35;
}

.tournament-runbook p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.tournament-runbook a,
.tournament-runbook button {
  width: 100%;
}

.tournament-control-main,
.tournament-level-list {
  min-width: 0;
  padding: 18px;
}

.control-clock-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 16px;
  align-items: center;
  min-height: 210px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.12), rgba(201, 54, 49, 0.08)),
    rgba(255, 255, 255, 0.04);
}

.control-clock-card strong {
  display: block;
  margin: 8px 0;
  font-size: 74px;
  font-variant-numeric: tabular-nums;
  line-height: .92;
}

.control-clock-card p {
  margin: 0;
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
}

.control-next {
  min-height: 140px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.control-next strong {
  font-size: 34px;
}

.tournament-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.tournament-action-grid button,
.tournament-config-editor button,
.tournament-count-editor button,
[data-tournament-refresh],
.level-editor-actions button,
.level-config-row button {
  min-height: 46px;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
}

.tournament-action-grid button:nth-child(2),
.tournament-action-grid button:nth-child(5),
.tournament-action-grid button:nth-child(6),
[data-tournament-refresh],
.level-editor-actions button:not(:last-child),
.level-config-row button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.tournament-count-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 150px;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 16px;
}

.tournament-count-editor label {
  display: grid;
  gap: 8px;
}

.tournament-count-editor input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.tournament-config-editor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 160px;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
  padding: 16px;
}

.tournament-config-editor label {
  display: grid;
  gap: 8px;
}

.tournament-config-editor label.wide {
  grid-column: span 2;
}

.tournament-config-editor input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 900;
}

.tournament-player-panel {
  margin-top: 16px;
  padding: 16px;
}

.tournament-player-list {
  display: grid;
  gap: 8px;
}

.player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 82px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.player-row strong {
  min-width: 0;
}

.player-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.player-row button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.player-row button:disabled {
  opacity: .55;
}

.tournament-level-list {
  position: sticky;
  top: 98px;
  align-self: start;
  overflow-x: auto;
}

.level-editor-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.level-editor-actions button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 12px;
}

.level-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 72px;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.level-row.active {
  color: var(--accent);
}

.level-row strong {
  min-width: 0;
}

.level-config-head,
.level-config-row {
  display: grid;
  grid-template-columns: 82px minmax(78px, 1fr) 68px 68px 72px 34px;
  gap: 8px;
  align-items: center;
}

.level-config-head {
  min-height: 34px;
  padding: 12px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.level-config-row {
  min-height: 58px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.level-config-row.active {
  color: var(--accent);
}

.level-config-row input,
.level-config-row select {
  width: 100%;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.number-stepper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: stretch;
  min-height: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.level-config-row .number-stepper input {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.number-stepper-controls {
  display: grid;
  grid-template-rows: 1fr 1fr;
  border-left: 1px solid var(--line);
}

.level-config-row .number-stepper button {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.level-config-row .number-stepper button + button {
  border-top: 1px solid var(--line);
}

.number-stepper:focus-within {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line));
}

.number-stepper.disabled {
  opacity: .48;
}

.level-config-row input:disabled {
  opacity: .48;
}

.level-config-row button {
  min-height: 34px;
  padding: 0;
}

@media (max-width: 980px) {
  .tournament-screen {
    min-height: auto;
    overflow: auto;
  }

  .tournament-clock-panel,
  .tournament-kpi-strip,
  .tournament-footer-grid,
	  .tournament-control-shell,
	  .tournament-control-hero,
	  .tournament-overview-grid,
	  .tournament-runbook,
	  .control-clock-card,
	  .tournament-config-editor,
	  .tournament-count-editor {
	    grid-template-columns: 1fr;
	  }

  .tournament-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blind-box,
  .clock-core {
    min-height: 220px;
  }

	  .tournament-level-list {
	    position: static;
	  }

	  .tournament-config-editor label.wide {
	    grid-column: auto;
	  }
	}

.admin-log-card {
  padding: 16px;
}

.admin-log-card p {
  display: grid;
  grid-template-columns: 64px 1fr 100px;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.admin-log-card p:first-of-type {
  border-top: 0;
}

.admin-log-card span,
.admin-log-card em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.clerk-page {
  min-height: 900px;
}

.clerk-hero {
  display: grid;
  grid-template-columns: 1fr 116px;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 173, 102, 0.2), transparent 38%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.clerk-hero span,
.clerk-scan-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.clerk-hero strong {
  display: block;
  margin: 6px 0;
  color: var(--accent);
  font-size: 48px;
  line-height: 1;
}

.clerk-hero p,
.clerk-scan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.clerk-hero button {
  min-height: 76px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 950;
}

.clerk-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.clerk-quick-stats button {
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.clerk-quick-stats span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.clerk-quick-stats strong {
  color: var(--muted);
  font-size: 12px;
}

.clerk-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.clerk-step-strip span {
  display: grid;
  min-height: 32px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.clerk-scan-card {
  margin-top: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.04)),
    var(--panel);
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
}

.clerk-scan-card strong {
  display: block;
  margin: 8px 0;
  color: var(--accent);
  font-size: 30px;
  letter-spacing: 1px;
}

.clerk-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.clerk-tabs button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 900;
}

.clerk-tabs button.active {
  background: var(--accent);
  color: var(--ink);
}

.clerk-ticket-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.clerk-ticket {
  display: grid;
  grid-template-columns: 48px 1fr 62px 54px;
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.clerk-ticket.active {
  border-color: rgba(217, 173, 102, 0.56);
  box-shadow: inset 0 0 0 1px rgba(217, 173, 102, 0.18);
}

.clerk-ticket.is-done {
  opacity: 0.62;
}

.clerk-ticket > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 32px;
  color: var(--accent);
  background: rgba(217, 173, 102, 0.1);
  border: 1px solid rgba(217, 173, 102, 0.2);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 950;
}

.clerk-ticket strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.clerk-ticket p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.clerk-ticket em {
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.clerk-ticket button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.clerk-member-line {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.clerk-member-line strong {
  display: block;
  margin-bottom: 4px;
}

.clerk-member-line p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.clerk-detail-list {
  display: grid;
  gap: 2px;
  margin: 12px 0 0;
}

.clerk-detail-list div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  min-height: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.clerk-detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.clerk-detail-list dd {
  margin: 0;
  font-weight: 900;
}

.clerk-detail-card {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  border-color: rgba(217, 173, 102, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.clerk-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  margin-top: 14px;
}

.clerk-actions button {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 950;
}

.clerk-actions button:first-child {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.clerk-actions button:last-child {
  color: var(--ink);
  background: var(--accent);
  border: 0;
}

.clerk-log {
  margin-bottom: 24px;
}

.clerk-log p {
  display: grid;
  grid-template-columns: 54px 1fr 74px;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.clerk-log p:first-of-type {
  border-top: 0;
}

.clerk-log span,
.clerk-log em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.member-admin-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.member-admin-hero,
.member-overview-grid article,
.member-search-panel,
.member-detail-panel > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.member-admin-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(217, 173, 102, 0.16), transparent 34%),
    var(--panel);
}

.member-admin-hero h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.member-admin-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.member-risk-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  align-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
}

.member-risk-card span,
.member-risk-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.member-risk-card strong {
  color: var(--accent);
  font-size: 24px;
}

.member-overview-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.member-overview-grid article {
  min-height: 118px;
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.1), rgba(255, 255, 255, 0.035));
}

.member-overview-grid span,
.member-overview-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.member-overview-grid strong {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.member-search-panel {
  align-self: start;
  padding: 18px;
}

.member-segment-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.member-segment-tabs button {
  min-height: 38px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.member-segment-tabs button.active {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.member-search-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.member-search-box input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.member-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.member-list[hidden],
.member-list button[hidden] {
  display: none;
}

.member-list button {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-list button.active {
  border-color: rgba(217, 173, 102, 0.55);
  background: linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.04));
}

.member-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
}

.member-list strong,
.member-list em {
  font-style: normal;
}

.member-list em {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.member-detail-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.member-profile-hero {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 92% 18%, rgba(217, 173, 102, 0.18), transparent 34%),
    var(--panel);
}

.member-profile-hero span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.member-profile-hero h2 {
  margin: 4px 0;
  font-size: 30px;
}

.member-profile-hero p {
  margin: 0;
  color: var(--muted);
}

.member-profile-hero > strong {
  color: var(--accent);
  font-size: 44px;
}

.member-admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.member-admin-stats div {
  min-height: 84px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.member-admin-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.member-admin-stats strong {
  color: #fff7ea;
  font-size: 24px;
}

.member-adjust-card {
  display: block;
}

.member-adjust-form,
.member-bottle-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-adjust-form label,
.member-bottle-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.member-bottle-form .wide {
  grid-column: 1 / -1;
}

.member-adjust-form input,
.member-adjust-form select,
.member-bottle-form input,
.member-bottle-form select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.deposit-date-control {
  display: grid;
  gap: 8px;
}

.deposit-date-control input[type="date"] {
  width: 100%;
  color-scheme: dark;
}

.deposit-date-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.deposit-date-actions button {
  min-height: 34px;
  padding: 0 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.deposit-date-actions button:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .deposit-date-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.member-ledger-card p:first-of-type {
  color: var(--accent);
}

.member-ledger-card em {
  text-align: right;
}

.member-bottle-log-card em {
  text-align: right;
}

.dashboard-shell {
  display: grid;
  gap: 16px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.dashboard-hero,
.dashboard-workbar,
.dashboard-launch-grid article,
.dashboard-billing-panel,
.dashboard-tasks article,
.dashboard-kpi-grid article,
.dashboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 173, 102, 0.17), transparent 34%),
    var(--panel);
}

.dashboard-hero h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-service-card {
  display: grid;
  gap: 7px;
  min-height: 138px;
  align-content: center;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
}

.dashboard-service-card span,
.dashboard-service-card p,
.dashboard-service-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-service-card strong {
  color: var(--accent);
  font-size: 24px;
}

.dashboard-service-card a {
  display: grid;
  min-height: 34px;
  margin-top: 4px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-workbar {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.dashboard-period {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-period button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 950;
}

.dashboard-period button.active {
  color: var(--ink);
  background: var(--accent);
}

.dashboard-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-quick-links a,
.dashboard-tasks a {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.dashboard-quick-links a:first-child,
.dashboard-tasks a {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.dashboard-tasks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-launch-grid article {
  display: grid;
  gap: 8px;
  min-height: 178px;
  align-content: space-between;
  padding: 16px;
}

.dashboard-launch-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-launch-grid strong {
  color: var(--text);
  font-size: 19px;
  line-height: 1.35;
}

.dashboard-launch-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-launch-grid a {
  display: grid;
  min-height: 38px;
  place-items: center;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.dashboard-launch-grid article:first-child a,
.dashboard-launch-grid a:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
}

.dashboard-billing-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.dashboard-workorder-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.dashboard-billing-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-billing-head strong {
  font-size: 18px;
}

.dashboard-billing-head p {
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-billing-head a {
  display: grid;
  min-height: 38px;
  padding: 0 14px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-billing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-billing-grid article,
.dashboard-workorder-grid article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  align-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-billing-grid span,
.dashboard-billing-grid em,
.dashboard-workorder-grid span,
.dashboard-workorder-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-billing-grid strong,
.dashboard-workorder-grid strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.3;
}

.dashboard-workorder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-workorder-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 12px;
}

.dashboard-workorder-form,
.dashboard-workorder-list article {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-workorder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.dashboard-workorder-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-workorder-form .wide,
.dashboard-workorder-form button {
  grid-column: 1 / -1;
}

.dashboard-workorder-form input,
.dashboard-workorder-form select,
.dashboard-workorder-form textarea {
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.dashboard-workorder-form textarea {
  min-height: 96px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.dashboard-workorder-form button {
  min-height: 42px;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-weight: 950;
}

.dashboard-workorder-list {
  display: grid;
  gap: 10px;
}

.dashboard-workorder-list article {
  display: grid;
  gap: 7px;
  min-height: 96px;
  align-content: center;
  padding: 14px;
}

.dashboard-workorder-list span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.dashboard-workorder-list strong {
  color: var(--text);
  font-size: 17px;
}

.dashboard-workorder-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-billing-records {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-billing-records p {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 170px;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.dashboard-billing-records p:first-child {
  border-top: 0;
}

.dashboard-billing-records span,
.dashboard-billing-records em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-billing-records strong {
  color: var(--text);
}

.dashboard-billing-records em {
  text-align: right;
}

.platform-shell {
  display: grid;
  gap: 16px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.platform-hero,
.platform-panel,
.platform-summary-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.platform-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 173, 102, 0.17), transparent 34%),
    var(--panel);
}

.platform-hero h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.platform-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.platform-service-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: center;
  padding: 16px;
  background: linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(217, 173, 102, 0.28);
  border-radius: 8px;
}

.platform-service-card span,
.platform-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.platform-service-card strong {
  color: var(--accent);
  font-size: 24px;
}

.platform-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.platform-summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 124px;
  align-content: center;
  padding: 16px;
}

.platform-summary-grid span,
.platform-summary-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.platform-summary-grid strong {
  color: var(--accent);
  font-size: 30px;
}

.platform-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.platform-customer-list {
  display: grid;
  gap: 10px;
}

.platform-customer-list article {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(160px, 0.7fr) minmax(0, 1.2fr) 96px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}

.platform-customer-list article.active,
.platform-customer-list article:hover {
  border-color: rgba(217, 173, 102, 0.5);
}

.platform-customer-list span {
  color: var(--accent);
  font-weight: 950;
}

.platform-customer-list strong {
  color: var(--text);
}

.platform-customer-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.platform-customer-list em {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-style: normal;
  font-weight: 950;
}

.platform-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.platform-detail-grid article {
  display: grid;
  gap: 7px;
  min-height: 112px;
  align-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.platform-detail-grid span,
.platform-detail-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.platform-detail-grid strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.3;
}

.platform-detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-detail-columns h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.platform-detail-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.platform-detail-list p {
  display: grid;
  gap: 6px;
  min-height: 70px;
  align-content: center;
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.platform-detail-list p:first-child {
  border-top: 0;
}

.platform-detail-list span,
.platform-detail-list em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.platform-detail-list strong {
  color: var(--text);
}

.dashboard-tasks article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  min-height: 126px;
  align-items: start;
  padding: 14px;
}

.dashboard-tasks article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
}

.dashboard-tasks strong {
  display: block;
  margin-bottom: 4px;
}

.dashboard-tasks p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.dashboard-tasks a {
  grid-column: 1 / -1;
  align-self: end;
  min-height: 38px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-kpi-grid article {
  min-height: 124px;
  padding: 16px;
}

.dashboard-kpi-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-kpi-grid strong {
  display: block;
  color: var(--accent);
  font-size: 32px;
  line-height: 1;
}

.dashboard-kpi-grid em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.dashboard-grid,
.dashboard-lower-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.dashboard-grid {
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
}

.dashboard-card {
  min-width: 0;
  padding: 16px;
}

.dashboard-chart-card {
  min-height: 250px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
  height: 142px;
  padding: 18px 12px 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px) 0 0 / 100% 42px,
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bar-chart i {
  display: block;
  min-height: 18px;
  background: linear-gradient(180deg, var(--accent), rgba(201, 54, 49, 0.78));
  border-radius: 7px 7px 0 0;
  box-shadow: 0 0 18px rgba(217, 173, 102, 0.18);
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dashboard-flow {
  display: grid;
  gap: 2px;
}

.dashboard-flow p,
.dashboard-rank li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.dashboard-flow p:first-child,
.dashboard-rank li:first-child {
  border-top: 0;
}

.dashboard-flow span,
.dashboard-muted {
  color: var(--muted);
}

.dashboard-flow strong,
.dashboard-rank span,
.dashboard-rank em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.bottle-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bottle-dashboard div {
  min-height: 82px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bottle-dashboard span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bottle-dashboard strong {
  color: var(--accent);
  font-size: 28px;
}

.dashboard-muted {
  margin: 12px 0 0;
  line-height: 1.6;
}

.dashboard-rank {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-rank li {
  grid-template-columns: 42px 1fr auto;
}

.dashboard-alerts {
  display: grid;
  gap: 2px;
}

.dashboard-alerts [data-alert-row] {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border-top: 1px solid var(--line);
}

.dashboard-alerts [data-alert-row]:first-of-type {
  border-top: 0;
}

.dashboard-alerts p {
  margin: 0;
}

.dashboard-alerts strong {
  display: block;
  margin-bottom: 5px;
}

.dashboard-alerts p span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-alerts button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.dashboard-alerts [data-alert-row].resolved {
  opacity: 0.5;
}

.dashboard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-actions a {
  display: grid;
  min-height: 46px;
  place-items: center;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.campaign-shell {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.campaign-ops-hero,
.campaign-summary-grid,
.campaign-playbook {
  grid-column: 1 / -1;
}

.campaign-ops-hero,
.campaign-list-panel,
.campaign-detail-panel > section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.campaign-ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 20%, rgba(217, 173, 102, 0.16), transparent 34%),
    var(--panel);
}

.campaign-ops-hero h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.campaign-ops-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.campaign-compliance-card {
  min-height: 168px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 173, 102, 0.3);
  border-radius: 8px;
}

.campaign-compliance-card span,
.campaign-summary-grid span,
.campaign-playbook span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.campaign-compliance-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.35;
}

.campaign-compliance-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.campaign-summary-grid,
.campaign-playbook {
  display: grid;
  gap: 12px;
}

.campaign-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campaign-playbook {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-summary-grid article,
.campaign-playbook article {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.campaign-summary-grid article {
  min-height: 128px;
  padding: 16px;
}

.campaign-summary-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--accent);
  font-size: 30px;
}

.campaign-summary-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.campaign-playbook article {
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 190px;
  padding: 16px;
}

.campaign-playbook strong {
  color: var(--accent);
  font-size: 22px;
  line-height: 1.35;
}

.campaign-playbook p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.campaign-playbook button {
  min-height: 36px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.campaign-playbook button:hover {
  border-color: var(--accent);
}

.campaign-list-panel {
  align-self: start;
  padding: 18px;
}

.campaign-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.campaign-list button {
  display: grid;
  grid-template-columns: 54px 1fr 68px;
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.campaign-list button.active {
  border-color: rgba(217, 173, 102, 0.56);
  background: linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.04));
}

.campaign-list span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 38px;
  color: var(--accent);
  background: rgba(217, 173, 102, 0.1);
  border: 1px solid rgba(217, 173, 102, 0.22);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.campaign-list em {
  color: var(--accent);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.campaign-detail-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.campaign-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 90% 18%, rgba(217, 173, 102, 0.18), transparent 34%),
    var(--panel);
}

.campaign-hero-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.campaign-hero-card h2 {
  margin: 6px 0;
  font-size: 32px;
}

.campaign-hero-card p {
  margin: 0;
  color: var(--muted);
}

.campaign-hero-card > strong {
  display: grid;
  min-width: 88px;
  min-height: 40px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
}

.campaign-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
}

.campaign-stats div {
  min-height: 92px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.campaign-stats span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.campaign-stats strong {
  color: #fff7ea;
  font-size: 24px;
}

.campaign-config-card {
  display: block;
}

.campaign-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.campaign-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.campaign-form input,
.campaign-form select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.campaign-preview {
  margin-top: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(217, 173, 102, 0.24);
  border-radius: 8px;
}

.campaign-preview span,
.campaign-preview em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.campaign-preview strong {
  display: block;
  margin: 6px 0;
  color: var(--accent);
  font-size: 22px;
}

.campaign-preview p {
  margin: 0 0 8px;
  color: var(--text);
}

.campaign-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 14px;
}

.campaign-actions button {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 950;
}

.campaign-actions button:first-child {
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.campaign-actions button:last-child {
  color: var(--ink);
  background: var(--accent);
  border: 0;
}

.campaign-log-card p:first-of-type {
  color: var(--accent);
}

.order-shell {
  display: grid;
  gap: 16px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.order-hero,
.order-panel,
.order-log-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.order-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 86% 20%, rgba(217, 173, 102, 0.16), transparent 34%),
    var(--panel);
}

.order-hero h2 {
  margin-bottom: 8px;
  font-size: 32px;
}

.order-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.order-service-card {
  min-height: 168px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 173, 102, 0.3);
  border-radius: 8px;
}

.order-service-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.order-service-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.35;
}

.order-service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.order-overview-grid,
.order-task-board {
  display: grid;
  gap: 12px;
}

.order-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-task-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-overview-grid article,
.order-task-board article {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
}

.order-overview-grid article {
  min-height: 136px;
  padding: 16px;
}

.order-overview-grid span,
.order-task-board span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.order-overview-grid strong {
  display: block;
  margin: 12px 0 8px;
  color: var(--accent);
  font-size: 30px;
}

.order-overview-grid em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.order-task-board article {
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 178px;
  padding: 16px;
}

.order-task-board div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-task-board strong {
  color: var(--accent);
  font-size: 28px;
}

.order-task-board p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-task-board a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  color: var(--text);
  text-decoration: none;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.order-task-board a:hover {
  border-color: var(--accent);
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.order-summary div {
  min-height: 96px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.order-summary strong {
  color: var(--accent);
  font-size: 34px;
}

.order-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.order-tabs button {
  min-height: 44px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.order-tabs button.active {
  color: var(--ink);
  background: var(--accent);
}

.order-panel {
  display: none;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.order-panel.active {
  display: block;
}

.mobile-page .order-panel {
  display: block;
}

.mobile-page .order-panel[hidden] {
  display: none;
}

.order-table {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(100px, 1fr) minmax(90px, 0.8fr) minmax(96px, 0.8fr) minmax(118px, 0.9fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.order-row:first-child {
  border-top: 0;
}

.order-row.head {
  min-height: 44px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
}

.order-row strong {
  color: var(--accent);
}

.order-row span,
.order-row b {
  font-weight: 900;
}

.order-row em {
  color: #fff7ea;
  font-style: normal;
  font-weight: 950;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-row button,
.stock-card button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font-weight: 900;
}

.order-row.is-finished {
  opacity: 0.58;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stock-card {
  min-height: 180px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stock-card.low {
  border-color: rgba(201, 54, 49, 0.48);
  background:
    linear-gradient(135deg, rgba(201, 54, 49, 0.13), rgba(255, 255, 255, 0.04));
}

.stock-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.stock-card strong {
  display: block;
  margin: 10px 0;
  color: var(--accent);
  font-size: 22px;
}

.stock-card p {
  min-height: 44px;
  color: var(--muted);
  line-height: 1.5;
}

.stock-card button {
  width: 100%;
}

.order-log-card p:first-of-type {
  color: var(--accent);
}

.settings-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  width: min(1320px, calc(100% - 32px));
  margin: 22px auto 46px;
}

.settings-sidebar,
.settings-hero,
.settings-panel,
.settings-release-panel,
.settings-log-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.settings-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.settings-sidebar strong {
  padding: 8px 8px 12px;
  color: var(--accent);
  font-size: 16px;
}

.settings-sidebar button {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
}

.settings-sidebar button.active {
  color: var(--ink);
  background: var(--accent);
}

.settings-sidebar-link {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(135deg, var(--accent), #78d7ad);
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}

.settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.settings-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(217, 173, 102, 0.18), transparent 34%),
    var(--panel);
}

.settings-hero h2 {
  margin-bottom: 8px;
  font-size: 30px;
}

.settings-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.settings-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin-top: 16px;
}

.settings-status-grid article {
  min-height: 78px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-status-grid span,
.settings-status-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.settings-status-grid strong {
  color: var(--text);
  font-size: 19px;
}

.settings-preview-card {
  min-height: 150px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(217, 173, 102, 0.16), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.035);
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(217, 173, 102, 0.24);
  border-radius: 8px;
}

.settings-preview-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-preview-card strong {
  display: block;
  margin: 14px 0 8px;
  color: var(--accent);
  font-size: 30px;
}

.settings-preview-card p {
  color: var(--text);
}

.settings-phone-preview {
  min-height: 360px;
  padding: 12px;
  background: #050606;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 26px;
}

.settings-phone-top {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 950;
}

.settings-phone-hero {
  min-height: 170px;
  display: grid;
  align-content: end;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58)),
    var(--hero);
  background-position: center;
  background-size: cover;
  border-radius: 18px;
}

.settings-phone-hero span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.settings-phone-hero strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--text);
  font-size: 30px;
}

.settings-phone-hero p {
  color: var(--muted);
  font-size: 13px;
}

.settings-phone-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.settings-phone-actions span {
  min-height: 62px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.settings-progress-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
}

.settings-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.settings-progress-head strong {
  font-size: 18px;
}

.settings-progress-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.settings-progress-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.settings-progress-head a,
.settings-progress-actions button {
  display: grid;
  min-height: 40px;
  padding: 0 14px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}

.settings-progress-actions button {
  cursor: pointer;
  border: 0;
}

.settings-progress-actions button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.settings-progress-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.settings-progress-steps article {
  display: grid;
  gap: 7px;
  min-height: 88px;
  align-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-progress-steps article[data-settings-jump] {
  cursor: pointer;
}

.settings-progress-steps article[data-settings-jump]:hover {
  border-color: rgba(217, 173, 102, 0.42);
}

.settings-progress-steps article > span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.settings-progress-steps article.done > span,
.settings-progress-steps article.active > span {
  background: var(--accent);
  border-color: var(--accent);
}

.settings-progress-steps article.active {
  border-color: rgba(217, 173, 102, 0.48);
}

.settings-progress-steps article.ready {
  border-color: rgba(116, 194, 117, 0.48);
}

.settings-progress-steps strong {
  font-size: 14px;
}

.settings-progress-steps em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.settings-release-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.settings-release-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.settings-release-head strong {
  font-size: 18px;
}

.settings-release-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.settings-release-head span {
  display: grid;
  min-height: 34px;
  padding: 0 12px;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.settings-release-flow,
.settings-release-grid {
  display: grid;
  gap: 10px;
}

.settings-release-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.settings-release-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-release-flow article,
.settings-release-grid article {
  display: grid;
  gap: 6px;
  min-height: 92px;
  align-content: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-release-flow article.active,
.settings-release-flow article.done {
  border-color: rgba(217, 173, 102, 0.48);
}

.settings-release-flow article.done {
  background: linear-gradient(135deg, rgba(116, 194, 117, 0.13), rgba(255, 255, 255, 0.04));
}

.settings-release-flow span,
.settings-release-flow em,
.settings-release-grid span,
.settings-release-grid em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.settings-release-flow strong,
.settings-release-grid strong {
  color: var(--text);
  font-size: 16px;
}

.settings-release-grid a {
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}

.settings-panel {
  display: none;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.settings-panel.active {
  display: block;
}

.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-form-grid.compact {
  margin-top: 14px;
}

.settings-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-form-grid .wide {
  grid-column: 1 / -1;
}

.settings-form-grid input,
.settings-form-grid select,
.settings-form-grid textarea,
.settings-table input,
.settings-table select {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.settings-form-grid textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  line-height: 1.6;
}

.brand-swatch-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.brand-swatch-row button {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.brand-swatch-row button.active {
  border-color: rgba(217, 173, 102, 0.55);
}

.brand-swatch-row i {
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, #090706, var(--accent));
  border-radius: 8px;
}

.brand-swatch-row button:nth-child(2) i {
  background: linear-gradient(145deg, #08080a, #e70e20);
}

.brand-swatch-row button:nth-child(3) i {
  background: linear-gradient(145deg, #160820, #e4b76e);
}

.brand-swatch-row button:nth-child(4) i {
  background: linear-gradient(145deg, #050505, #f01825);
}

.brand-swatch-row button:nth-child(5) i {
  background: linear-gradient(145deg, #020712, #6fd7ff 62%, #8f6bff);
}

.module-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.module-toggle-grid button {
  display: grid;
  gap: 8px;
  min-height: 82px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 950;
}

.module-toggle-grid button.enabled {
  border-color: rgba(217, 173, 102, 0.42);
  background: linear-gradient(135deg, rgba(217, 173, 102, 0.14), rgba(255, 255, 255, 0.04));
}

.module-toggle-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-subhead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-subhead strong {
  color: #fff7ea;
  font-size: 15px;
}

.bottom-nav-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stored-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bottom-nav-config label,
.stored-plan-grid label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav-config select,
.stored-plan-grid input {
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
}

.settings-table {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(3, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.settings-row:first-child {
  border-top: 0;
}

.settings-row.head {
  min-height: 44px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 12px;
  font-weight: 900;
}

.settings-row strong {
  color: var(--accent);
}

.staff-role-list {
  display: grid;
  gap: 10px;
}

.staff-role-list article {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.staff-role-list span,
.staff-role-list em {
  color: var(--accent);
  font-style: normal;
  font-weight: 950;
}

.staff-role-list strong {
  color: var(--text);
}

.settings-log-card p:first-of-type {
  color: var(--accent);
}

@media (max-width: 1120px) {
  .concept,
  .phone-stage,
  .module-board {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    justify-items: center;
  }

  .module-board {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .admin-shell,
  .admin-hero-panel,
  .member-admin-shell,
  .member-admin-hero,
  .member-overview-grid,
  .campaign-shell,
  .campaign-ops-hero,
  .campaign-summary-grid,
  .campaign-playbook,
  .platform-shell,
  .platform-hero,
  .platform-summary-grid,
  .platform-detail-grid,
  .platform-detail-columns,
  .settings-shell,
  .dashboard-hero,
  .order-hero,
  .settings-hero,
  .settings-status-grid,
  .settings-progress-steps,
  .settings-release-flow,
  .settings-release-grid,
  .ops-config-overview,
  .dashboard-workbar,
  .dashboard-quick-links,
  .dashboard-launch-grid,
  .dashboard-billing-grid,
  .dashboard-workorder-grid,
  .dashboard-workorder-layout,
  .dashboard-tasks,
  .dashboard-grid,
  .dashboard-lower-grid,
  .order-overview-grid,
  .order-task-board {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .settings-sidebar {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-sidebar strong,
  .settings-sidebar strong {
    grid-column: 1 / -1;
  }

  .admin-card-grid,
  .admin-kpis,
  .ops-config-overview,
  .dashboard-tasks,
  .dashboard-quick-links,
  .dashboard-launch-grid,
  .member-admin-stats,
  .member-admin-hero,
  .member-overview-grid,
  .campaign-summary-grid,
  .campaign-playbook,
  .campaign-stats,
  .dashboard-kpi-grid,
  .order-summary,
  .order-overview-grid,
  .order-task-board,
  .stock-grid,
  .decay-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .proposal-header {
    position: relative;
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions,
  .admin-topbar,
  .admin-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar nav {
    flex-wrap: wrap;
  }

  .admin-topbar a {
    flex: 1 1 120px;
  }

  .style-tabs,
  .concept-points,
  .module-board {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    width: min(100% - 20px, 430px);
  }

  .member-admin-shell {
    width: min(100% - 20px, 430px);
  }

  .dashboard-shell {
    width: min(100% - 20px, 430px);
  }

  .campaign-shell {
    width: min(100% - 20px, 430px);
  }

  .order-shell {
    width: min(100% - 20px, 430px);
  }

  .settings-shell {
    width: min(100% - 20px, 430px);
  }

  .admin-sidebar,
  .settings-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-product-list article,
  .admin-log-card p,
  .member-profile-hero,
  .member-adjust-form,
  .member-overview-grid,
  .member-segment-tabs,
  .campaign-hero-card,
  .campaign-form,
  .campaign-actions,
  .dashboard-actions,
  .dashboard-billing-records p,
  .platform-customer-list article,
  .dashboard-workorder-form,
  .bottle-dashboard,
  .settings-form-grid,
  .brand-swatch-row,
  .module-toggle-grid,
  .settings-status-grid,
  .settings-progress-steps,
  .settings-release-flow,
  .settings-release-grid,
  .staff-role-list article {
    grid-template-columns: 1fr;
  }

  .settings-progress-head,
  .settings-release-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-billing-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-billing-records em {
    text-align: left;
  }

  .settings-progress-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-form-grid .wide {
    grid-column: auto;
  }

  .commerce-actions,
  .commerce-product-foot {
    justify-content: stretch;
  }

  .commerce-actions button {
    flex: 1 1 140px;
  }

  .commerce-summary,
  .commerce-product-main,
  .commerce-product-meta {
    grid-template-columns: 1fr;
  }

  .admin-product-list .reward-config-row {
    grid-template-columns: 1fr;
  }

  .commerce-product-foot {
    grid-column: auto;
    flex-direction: column;
  }

  .order-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-table {
    overflow-x: auto;
  }

  .order-row {
    width: max(680px, 100%);
  }

  .admin-table {
    overflow-x: auto;
  }

  .settings-table {
    overflow-x: auto;
  }

  .admin-table-row {
    width: max(620px, 100%);
  }

  .settings-row {
    width: max(620px, 100%);
  }

  .decay-rule-grid {
    grid-template-columns: 1fr;
  }

  .canvas {
    padding-inline: 12px;
  }

  .device {
    width: min(100%, 390px);
  }

  .brand-lockup h2 {
    font-size: 40px;
  }

  .score-panel strong,
  .score-hero strong {
    font-size: 42px;
  }
}

body.saas-home {
  --saas-bg: #08100f;
  --saas-ink: #fffaf0;
  --saas-muted: #b5c0b8;
  --saas-line: rgba(255, 255, 255, 0.14);
  --saas-panel: rgba(10, 18, 18, 0.86);
  --saas-soft: rgba(255, 255, 255, 0.07);
  --saas-accent: #e1b96c;
  --saas-accent-2: #36d1a8;
  --saas-danger: #dc4d41;
  --saas-blue: #7ab7ff;
  background:
    linear-gradient(180deg, rgba(8, 16, 15, 0.1), var(--saas-bg) 580px),
    var(--saas-bg);
  color: var(--saas-ink);
}

body.saas-home[data-saas-theme="royal"] {
  --saas-bg: #0c0713;
  --saas-panel: rgba(19, 12, 29, 0.88);
  --saas-accent: #e5bd77;
  --saas-accent-2: #9b7cff;
  --saas-blue: #7fd4ff;
}

body.saas-home[data-saas-theme="racing"] {
  --saas-bg: #0c0d0e;
  --saas-panel: rgba(18, 18, 20, 0.9);
  --saas-accent: #ff4b45;
  --saas-accent-2: #f6cf70;
  --saas-blue: #83d9ff;
}

.saas-home a,
.saas-home button,
.saas-home input,
.saas-home textarea {
  font: inherit;
}

.saas-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 54px);
  background: color-mix(in srgb, var(--saas-bg) 86%, transparent);
  border-bottom: 1px solid var(--saas-line);
  backdrop-filter: blur(18px);
}

.saas-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--saas-ink);
  text-decoration: none;
}

.saas-brand span {
  width: 28px;
  height: 28px;
  background:
    radial-gradient(circle at 50% 72%, var(--saas-accent) 0 18%, transparent 19%),
    linear-gradient(135deg, var(--saas-accent-2), var(--saas-accent));
  border-radius: 7px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--saas-accent) 35%, transparent);
}

.saas-brand strong {
  font-size: 16px;
  letter-spacing: 0;
}

.saas-nav nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
}

.saas-nav nav a,
.saas-preview-links a {
  color: var(--saas-muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.saas-nav-actions,
.saas-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.solid-action,
.ghost-action {
  display: inline-grid;
  min-height: 42px;
  padding: 0 18px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--saas-line);
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
}

.solid-action {
  color: #10110d;
  background: linear-gradient(135deg, var(--saas-accent), var(--saas-accent-2));
  border-color: transparent;
}

.ghost-action {
  color: var(--saas-ink);
  background: rgba(255, 255, 255, 0.06);
}

.saas-hero {
  position: relative;
  min-height: min(780px, 84vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--saas-line);
}

.saas-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
}

.saas-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 10, 10, 0.94), rgba(6, 10, 10, 0.64) 45%, rgba(6, 10, 10, 0.18)),
    linear-gradient(180deg, rgba(6, 10, 10, 0), var(--saas-bg) 100%);
}

.saas-hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding: 76px 0 96px;
}

.saas-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.95;
}

.saas-hero-copy > p:not(.overline) {
  max-width: 700px;
  color: color-mix(in srgb, var(--saas-ink) 78%, var(--saas-muted));
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.7;
}

.saas-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.saas-trust-row span {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  color: var(--saas-muted);
  font-size: 13px;
  font-weight: 900;
}

.saas-band {
  padding: 70px clamp(16px, 4vw, 54px);
}

.saas-intro {
  background: var(--saas-bg);
}

.saas-section-head {
  display: grid;
  grid-template-columns: minmax(260px, 590px) minmax(260px, 560px);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.saas-section-head.compact {
  display: block;
  max-width: 760px;
}

.saas-section-head h2,
.contact-copy h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
}

.saas-section-head p:last-child,
.contact-copy p:last-child {
  margin-bottom: 0;
  color: var(--saas-muted);
  font-size: 16px;
  line-height: 1.75;
}

.saas-feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.saas-feature-grid article,
.pricing-grid article,
.saas-config-panel,
.saas-delivery-panel,
.saas-auth-callout,
.contact-form {
  background: var(--saas-panel);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
}

.saas-feature-grid article {
  min-height: 230px;
  padding: 22px;
}

.saas-feature-grid strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 19px;
}

.saas-feature-grid p,
.pricing-grid li,
.pricing-title p,
.panel-head p,
.delivery-steps p {
  color: var(--saas-muted);
  line-height: 1.65;
}

.saas-icon {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--saas-accent), var(--saas-accent-2));
  position: relative;
}

.saas-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(8, 10, 9, 0.8);
  border-radius: 5px;
}

.saas-icon.mtt::after {
  border-radius: 50%;
}

.saas-icon.publish::after {
  transform: rotate(45deg);
}

.saas-icon.service::after {
  border-radius: 2px 2px 50% 50%;
}

.saas-studio,
.saas-pricing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 260px),
    color-mix(in srgb, var(--saas-bg) 94%, #ffffff);
}

.saas-product-showcases {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.saas-showcase-row {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent),
    var(--saas-panel);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.saas-showcase-row.mtt-showcase {
  grid-template-columns: minmax(280px, 410px) minmax(420px, 1fr);
}

.saas-showcase-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  min-height: 420px;
  padding: clamp(12px, 2vw, 24px);
}

.saas-showcase-copy h3 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.1;
}

.saas-showcase-copy > p:not(.overline) {
  margin: 0;
  color: var(--saas-muted);
  font-size: 16px;
  line-height: 1.75;
}

.showcase-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-chip-row span {
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  color: var(--saas-muted);
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.showcase-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.saas-showcase-visual {
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(240px, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 520px;
  padding: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 20%, color-mix(in srgb, var(--saas-accent) 18%, transparent), transparent 34%),
    radial-gradient(circle at 84% 72%, color-mix(in srgb, var(--saas-accent-2) 18%, transparent), transparent 30%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.showcase-phone {
  width: min(100%, 320px);
  justify-self: center;
  padding: 12px;
  background: #070807;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.showcase-miniapp-screen {
  display: grid;
  gap: 10px;
  min-height: 500px;
  padding: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--saas-accent) 12%, transparent), transparent 220px),
    #111513;
  border-radius: 22px;
}

.showcase-miniapp-hero {
  min-height: 160px;
  display: grid;
  align-content: end;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.48)),
    var(--hero);
  background-size: cover;
  border-radius: 8px;
}

.showcase-miniapp-hero span {
  color: var(--saas-accent);
  font-size: 12px;
  font-weight: 950;
}

.showcase-miniapp-hero strong {
  margin-top: 6px;
  font-size: 25px;
}

.showcase-miniapp-hero p {
  margin: 4px 0 0;
  color: var(--saas-muted);
  font-size: 13px;
}

.showcase-miniapp-balance {
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.showcase-miniapp-balance span,
.showcase-miniapp-balance em {
  color: var(--saas-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.showcase-miniapp-balance strong {
  display: block;
  margin: 4px 0;
  color: var(--saas-accent);
  font-size: 34px;
}

.showcase-miniapp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.showcase-miniapp-grid a {
  min-height: 76px;
  display: grid;
  gap: 5px;
  place-items: center;
  color: var(--saas-ink);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.showcase-miniapp-grid i {
  width: 24px;
  height: 24px;
}

.showcase-page-stack {
  display: grid;
  gap: 10px;
}

.showcase-page-stack a {
  display: grid;
  gap: 4px;
  min-height: 86px;
  align-content: center;
  padding: 14px;
  color: var(--saas-ink);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  text-decoration: none;
}

.showcase-page-stack strong {
  font-size: 17px;
}

.showcase-page-stack span {
  color: var(--saas-muted);
  font-size: 13px;
  line-height: 1.5;
}

.mtt-screen-preview {
  min-height: 520px;
  display: grid;
  gap: 16px;
  align-content: stretch;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at 50% 34%, color-mix(in srgb, var(--saas-accent) 18%, transparent), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), transparent),
    #070908;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 90px rgba(0, 0, 0, 0.36);
}

.mtt-preview-top,
.mtt-preview-blinds,
.mtt-preview-kpis,
.mtt-preview-footer {
  display: grid;
  gap: 12px;
}

.mtt-preview-top {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.mtt-preview-top span,
.mtt-preview-blinds span,
.mtt-preview-kpis span,
.mtt-preview-footer span {
  color: var(--saas-muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mtt-preview-top strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(24px, 3vw, 42px);
}

.mtt-preview-top em {
  display: grid;
  min-height: 40px;
  place-items: center;
  padding: 0 14px;
  color: #11120e;
  background: var(--saas-accent);
  border-radius: 8px;
  font-style: normal;
  font-weight: 950;
}

.mtt-preview-clock {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: var(--saas-accent);
  background:
    radial-gradient(circle, color-mix(in srgb, var(--saas-accent) 12%, transparent), transparent 58%),
    rgba(255, 255, 255, 0.045);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  font-size: clamp(66px, 11vw, 132px);
  font-weight: 950;
  line-height: 1;
}

.mtt-preview-blinds,
.mtt-preview-kpis {
  grid-template-columns: repeat(3, 1fr);
}

.mtt-preview-kpis {
  grid-template-columns: repeat(4, 1fr);
}

.mtt-preview-blinds div,
.mtt-preview-kpis article,
.mtt-preview-footer {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.mtt-preview-blinds strong,
.mtt-preview-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(19px, 2.1vw, 30px);
}

.mtt-preview-footer {
  grid-template-columns: minmax(160px, auto) 1fr;
  align-items: center;
}

.saas-auth-callout {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
}

.saas-auth-callout p {
  margin: 5px 0 0;
  color: var(--saas-muted);
}

body.saas-home[data-saas-auth="user"] .saas-auth-callout {
  border-color: color-mix(in srgb, var(--saas-accent-2) 48%, var(--saas-line));
}

.saas-workbench {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(320px, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: start;
}

.saas-config-panel,
.saas-delivery-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.panel-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.panel-head > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--saas-soft);
  color: var(--saas-accent);
  font-weight: 950;
}

.panel-head strong {
  display: block;
  font-size: 18px;
}

.panel-head p {
  margin: 2px 0 0;
  font-size: 13px;
}

.saas-field {
  display: grid;
  gap: 8px;
}

.saas-field span,
.contact-form span {
  color: var(--saas-muted);
  font-size: 13px;
  font-weight: 900;
}

.saas-field input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--saas-ink);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  outline: 0;
}

.theme-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.theme-switcher button {
  min-height: 40px;
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  color: var(--saas-muted);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-weight: 900;
}

.theme-switcher button.active {
  color: #11120e;
  background: var(--saas-accent);
  border-color: transparent;
}

.saas-module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.saas-module-list label {
  display: flex;
  min-height: 42px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  color: var(--saas-muted);
  font-weight: 850;
}

.saas-module-list input {
  accent-color: var(--saas-accent);
}

.saas-phone-zone {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--saas-accent-2) 22%, transparent), transparent 32%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.saas-device {
  width: min(100%, 390px);
  min-height: 720px;
  padding: 14px;
  background: #080908;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.saas-mini-screen {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--saas-accent) 12%, transparent), transparent 220px),
    #111513;
  border-radius: 22px;
}

.mini-hero {
  min-height: 178px;
  display: grid;
  align-content: end;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.06)),
    var(--hero);
  background-size: cover;
  border-radius: 8px;
}

.mini-hero span {
  color: var(--saas-accent);
  font-size: 12px;
  font-weight: 950;
}

.mini-hero strong {
  margin-top: 6px;
  font-size: 25px;
  line-height: 1.15;
}

.mini-hero p {
  margin: 4px 0 0;
  color: var(--saas-muted);
}

.mini-balance,
.mini-event,
.mini-action-grid a {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.mini-balance {
  padding: 16px;
}

.mini-balance span {
  color: var(--saas-muted);
  font-size: 12px;
  font-weight: 900;
}

.mini-balance strong {
  display: block;
  margin-top: 6px;
  color: var(--saas-accent);
  font-size: 34px;
}

.mini-balance em {
  font-size: 13px;
  font-style: normal;
}

.mini-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mini-action-grid a {
  min-height: 84px;
  display: grid;
  gap: 7px;
  place-items: center;
  color: var(--saas-ink);
  text-decoration: none;
  font-weight: 850;
}

.mini-action-grid i,
.saas-mini-mtt {
  width: 26px;
  height: 26px;
}

.saas-mini-mtt {
  display: block;
  border: 2px solid var(--saas-accent);
  border-radius: 50%;
  position: relative;
}

.saas-mini-mtt::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--saas-accent);
}

.mini-event {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.mini-event span,
.mini-event p {
  color: var(--saas-muted);
}

.mini-event strong {
  display: block;
  margin: 4px 0;
}

.mini-event p {
  margin: 0;
  font-size: 13px;
}

.mini-event a {
  display: grid;
  min-width: 68px;
  min-height: 38px;
  place-items: center;
  color: #11120e;
  background: var(--saas-accent);
  border-radius: 8px;
  font-weight: 950;
  text-decoration: none;
}

.mini-tabbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--saas-line);
  color: var(--saas-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.saas-preview-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.saas-preview-links a {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
}

.delivery-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.delivery-steps li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.delivery-steps li > span {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 2px solid var(--saas-line);
  border-radius: 50%;
}

.delivery-steps li.done > span,
.delivery-steps li.active > span {
  background: var(--saas-accent-2);
  border-color: var(--saas-accent-2);
}

.delivery-steps strong {
  display: block;
}

.delivery-steps p {
  margin: 2px 0 0;
  font-size: 13px;
}

.wide-action {
  width: 100%;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid article {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.pricing-grid article.featured {
  border-color: color-mix(in srgb, var(--saas-accent) 62%, var(--saas-line));
  box-shadow: 0 28px 90px color-mix(in srgb, var(--saas-accent) 18%, transparent);
}

.pricing-grid article.selected {
  border-color: var(--saas-accent-2);
  box-shadow: 0 24px 88px color-mix(in srgb, var(--saas-accent-2) 18%, transparent);
}

.pricing-title span {
  color: var(--saas-accent);
  font-size: 13px;
  font-weight: 950;
}

.pricing-title strong {
  display: block;
  margin: 8px 0 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.pricing-title p {
  margin: 6px 0 0;
}

.pricing-grid ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 0;
}

.renewal {
  min-height: 42px;
  display: grid;
  align-items: center;
  padding: 0 12px;
  color: var(--saas-accent-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--saas-line);
  border-radius: 8px;
  font-weight: 950;
}

.saas-contact {
  display: grid;
  grid-template-columns: minmax(260px, 560px) minmax(300px, 560px);
  gap: 28px;
  align-items: start;
  background: var(--saas-bg);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form .wide,
.contact-form button {
  grid-column: 1 / -1;
}

[data-preview-module][hidden] {
  display: none;
}

@media (max-width: 1120px) {
  .saas-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saas-workbench,
  .saas-showcase-row,
  .saas-showcase-row.mtt-showcase,
  .saas-showcase-visual,
  .pricing-grid,
  .saas-contact,
  .saas-section-head {
    grid-template-columns: 1fr;
  }

  .saas-phone-zone {
    order: 2;
  }

  .saas-delivery-panel {
    order: 3;
  }
}

@media (max-width: 720px) {
  .saas-nav {
    position: relative;
    grid-template-columns: 1fr;
    gap: 14px;
    padding-block: 14px;
  }

  .saas-nav nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .saas-hero-actions,
  .saas-auth-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .saas-nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .saas-hero {
    min-height: 560px;
  }

  .saas-hero-copy {
    margin-inline: 18px;
    padding-top: 62px;
  }

  .saas-feature-grid,
  .saas-module-list,
  .contact-form,
  .mini-action-grid,
  .showcase-miniapp-grid,
  .mtt-preview-blinds,
  .mtt-preview-kpis,
  .mtt-preview-footer {
    grid-template-columns: 1fr;
  }

  .saas-showcase-row {
    padding: 12px;
  }

  .saas-showcase-copy,
  .saas-showcase-visual,
  .mtt-screen-preview {
    min-height: auto;
  }

  .showcase-miniapp-screen {
    min-height: 460px;
  }

  .mtt-preview-clock {
    min-height: 132px;
  }

  .saas-band {
    padding-block: 48px;
  }

  .saas-device {
    min-height: 680px;
  }

  .saas-mini-screen {
    min-height: 610px;
  }
}
