:root {
  color-scheme: dark;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-pill: 0;
  --bg: #0a0f16;
  --surface: #111b26;
  --surface-raised: #17222f;
  --field: #0d151f;
  --line: #5a6f84;
  --line-strong: #637f9b;
  --text: #eaf3fb;
  --muted: #8aa0b4;
  --quiet: #7a90ab;
  --inverse: #0a0f16;
  --inverse-text: #eaf3fb;
  --danger: #d6d6d2;
  --danger-strong: #ff4d4f;
  --accent: #4fb8e8;
  --accent-strong: #2e97c9;
  --accent-contrast: #04263b;
  --accent2: #39ff8a;
  --accent2-contrast: #06250f;
  --running: var(--accent2);
  --warning: #b5b5b0;
  --shadow: rgba(0, 0, 0, 0.52);
}

.light-mode {
  color-scheme: light;
  --bg: #deded9;
  --surface: #f0f0eb;
  --surface-raised: #e8e8e2;
  --field: #f7f7f2;
  --line: #94948a;
  --line-strong: #636359;
  --text: #111111;
  --muted: #4a4a44;
  --quiet: #5f5f57;
  --inverse: #deded9;
  --inverse-text: #f5f5ef;
  --danger: #292926;
  --danger-strong: #c53030;
  --accent: #1f7aa8;
  --accent-strong: #15587c;
  --accent-contrast: #f5f5ef;
  --accent2: #1f9d57;
  --accent2-contrast: #f5f5ef;
  --running: var(--accent2);
  --warning: #55554f;
  --shadow: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 10000;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  color: var(--text);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.5;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
  border-radius: var(--radius-md);
}

button {
  cursor: pointer;
  border-radius: var(--radius-md);
}

.page-shell {
  width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 30px 0 22px;
}

body.has-floating-nav .page-shell {
  padding-bottom: 100px;
}

/* ======================================================== */
/* HEADER & NAVIGATION                                      */
/* ======================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-mark {
  border-color: var(--text);
  transform: scale(1.06);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.brand-mark-orbit {
  transform-box: view-box;
  transform-origin: 12px 12px;
  animation: brandOrbit 9s linear infinite;
}

.brand-mark-core {
  fill: var(--text);
}

.brand-mark-ring {
  stroke: var(--text);
}

.brand-mark-dot {
  fill: var(--text);
}

@keyframes brandOrbit {
  to {
    transform: rotate(360deg);
  }
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.header-user-pill:hover {
  border-color: var(--text);
}

.header-user-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.icon-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ======================================================== */
/* FLOATING NAVIGATION                                      */
/* ======================================================== */
.floating-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  width: fit-content;
  margin: 0 auto;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  box-shadow: 0 14px 34px var(--shadow);
  animation: floatingNavIn 0.4s ease both;
}

.floating-nav.section-hidden {
  display: none;
}

@keyframes floatingNavIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.floating-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: unset !important;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.floating-nav-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.floating-nav-btn:hover {
  color: var(--text);
  background: var(--surface);
}

.floating-nav-btn.is-active {
  color: var(--accent-contrast);
  background: var(--accent);
}

.floating-nav-btn:active {
  transform: scale(0.94);
}

/* ======================================================== */
/* TYPOGRAPHY & COMMON LABELS                               */
/* ======================================================== */
.eyebrow,
.panel-index,
.field-label,
.page-footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 22px;
  color: var(--muted);
  animation: fadeUp 0.5s ease both;
}

.eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--text);
}

/* ======================================================== */
/* LANDING SECTION                                          */
/* ======================================================== */
.landing-section {
  padding: 10px 0 20px;
}

.landing-hero {
  position: relative;
  display: grid;
  min-height: 340px;
  grid-template-columns: 1fr 340px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-bottom: 40px;
}

.landing-hero::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--bg) 60%);
  pointer-events: none;
  animation: glowBreathe 6s ease-in-out infinite;
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.landing-copy {
  position: relative;
  z-index: 1;
  padding: 30px 0 20px;
}

.landing-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.94;
  animation: fadeUp 0.55s ease 0.06s both;
}

.landing-hero h1 span {
  color: var(--accent);
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent);
}

.landing-description {
  max-width: 440px;
  margin: 22px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  animation: fadeUp 0.55s ease 0.12s both;
}

.landing-cta-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  animation: fadeUp 0.55s ease 0.18s both;
}

.landing-cta {
  width: fit-content !important;
  min-width: 220px;
}

.landing-footnote {
  color: var(--quiet);
  font-size: 13px;
  margin: 12px 0 0;
  animation: fadeUp 0.55s ease 0.22s both;
}

/* Geometric Hero Art */
.landing-visual {
  position: relative;
  z-index: 1;
  width: 290px;
  height: 270px;
  justify-self: end;
  animation: heroArtIn 0.7s ease 0.1s both;
}

.visual-grid {
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 20px 20px;
}

.visual-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 210px;
  height: 210px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 18s linear infinite;
}

.visual-ring::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent2) 70%, transparent);
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.visual-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: corePulse 3.5s ease-in-out infinite;
}

.visual-core span {
  transform: rotate(-45deg);
  text-align: center;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 36px color-mix(in srgb, var(--accent) 45%, transparent); }
  50% { box-shadow: 0 0 56px color-mix(in srgb, var(--accent) 65%, transparent); }
}

.visual-coordinate {
  position: absolute;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.visual-coordinate-top {
  top: 14px;
  right: 6px;
}

.visual-coordinate-bottom {
  bottom: 14px;
  left: 2px;
  line-height: 1.7;
}

/* Bento Grid: live stats + feature cards */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 12px;
  margin: 36px 0;
}

.bento-stats {
  grid-column: span 2;
  grid-row: span 2;
  padding: 22px 26px 26px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 0.55s ease 0.1s both;
}

.feature-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
  animation: fadeUp 0.5s ease both;
}

.feature-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2) { animation-delay: 0.12s; }
.feature-card:nth-child(3) { animation-delay: 0.19s; }
.feature-card:nth-child(4) { animation-delay: 0.26s; }

.feature-card:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px var(--shadow), 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.icon-badge {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 0;
  margin-bottom: 4px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon {
  width: 20px;
  height: 20px;
  color: inherit;
}

.feature-index {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.feature-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ======================================================== */
/* LANDING: TRUST BADGE & SOCIAL PROOF                      */
/* ======================================================== */
.landing-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  margin: 16px 0 0;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  animation: fadeUp 0.55s ease 0.26s both;
}

.landing-trust-badge .section-icon {
  margin-right: 0;
}

.landing-social-proof {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 13px;
  letter-spacing: 0.01em;
  animation: fadeUp 0.55s ease 0.3s both;
}

/* ======================================================== */
/* LANDING: LIVE STATS (FLEET)                              */
/* ======================================================== */
.landing-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.landing-stats-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.landing-stats-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.landing-stats-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--running);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.landing-stats-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
}

.landing-stats-number > span:first-child {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--accent2);
  text-shadow: 0 0 28px color-mix(in srgb, var(--accent2) 45%, transparent);
}

.landing-stats-unit {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.landing-stats-caption {
  margin: 10px 0 0;
  color: var(--quiet);
  font-size: 12px;
}

/* ======================================================== */
/* LANDING: HOW IT WORKS                                    */
/* ======================================================== */
.landing-steps {
  margin: 56px 0 0;
}

.landing-steps-title {
  margin: 0 0 26px;
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.step-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.15s ease;
  animation: fadeUp 0.5s ease both;
}

.step-card:nth-child(1) { animation-delay: 0.04s; }
.step-card:nth-child(2) { animation-delay: 0.1s; }
.step-card:nth-child(3) { animation-delay: 0.16s; }

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 12%, transparent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ======================================================== */
/* LANDING: PUBLIC PRICING                                  */
/* ======================================================== */
.landing-pricing {
  margin: 56px 0 0;
}

.landing-pricing-sub {
  margin: -14px 0 26px;
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.landing-pricing-cards {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
}

.landing-pricing-cards .plan-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
}

.landing-pricing-cards .plan-card-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.landing-pricing-cards .plan-card-limit {
  font-size: 12px;
  margin-bottom: 14px;
}

.plan-card-price {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.landing-pricing-cta {
  margin-top: auto;
  width: 100% !important;
}

/* ======================================================== */
/* LANDING: FAQ                                             */
/* ======================================================== */
.landing-faq {
  margin: 56px 0 0;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  margin-left: 16px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item:hover summary {
  background: var(--surface-raised);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* ======================================================== */
/* DASHBOARD & PANELS                                       */
/* ======================================================== */
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  padding: 24px 0 36px;
}

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 14px 38px var(--shadow);
  border-radius: var(--radius-lg);
}

.control-panel {
  min-height: 362px;
  padding: 25px 28px 23px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.panel-index {
  margin: 0 0 7px;
  color: var(--muted);
}

.panel-index span {
  color: var(--quiet);
}

.panel-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.panel-corner {
  color: var(--muted);
  font-size: 20px;
}

.section {
  animation: sectionIn 0.22s ease;
}

.section-hidden {
  display: none !important;
}

@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroArtIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ambientPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

button:active:not(:disabled),
.quick-game-chip:active,
.icon-btn:active {
  transform: scale(0.96);
}

.input-group {
  margin: 20px 0 0;
}

.field-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
}

.field-label span {
  color: var(--quiet);
}

input {
  width: 100%;
  height: 48px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: var(--field);
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

input::placeholder {
  color: var(--quiet);
}

input:focus {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.password-container {
  position: relative;
}

.password-container input {
  padding-right: 52px;
}

.toggle-password {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
}

.toggle-password:hover {
  color: var(--text);
}

.toggle-password svg {
  width: 18px;
  height: 18px;
}

/* ======================================================== */
/* BUTTONS                                                  */
/* ======================================================== */
button:not(.icon-btn):not(.toggle-password):not(.order-action-btn):not(.toast-close):not(.floating-nav-btn):not(.quick-game-chip):not(.auth-link) {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

button .section-icon {
  margin-right: 0;
}

button:not(.icon-btn):not(.toggle-password):not(.order-action-btn):not(.toast-close):not(.floating-nav-btn):not(.quick-game-chip):not(.auth-link):hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary-button {
  width: 100%;
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
}

.primary-button:hover:not(:disabled) {
  background: transparent !important;
  color: var(--accent) !important;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.secondary-button {
  width: 100%;
  border-color: var(--line-strong) !important;
  background: transparent !important;
  color: var(--text) !important;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
}

.stop-btn {
  border-color: var(--line-strong) !important;
  color: var(--muted) !important;
}

.stop-btn:hover:not(:disabled) {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
}

.logout-btn {
  justify-content: center !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}

.logout-btn:hover:not(:disabled) {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
}

.danger-button {
  border-color: var(--danger-strong, #ff4d4f) !important;
  color: var(--danger-strong, #ff4d4f) !important;
}

.danger-button:hover:not(:disabled) {
  background: var(--danger-strong, #ff4d4f) !important;
  color: #ffffff !important;
  border-color: var(--danger-strong, #ff4d4f) !important;
}

.button-group {
  display: flex;
  gap: 10px;
}

.button-group button {
  flex: 1;
}

.logout-group {
  margin-top: 10px;
}

.panel-footnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.footnote-mark {
  color: var(--text);
  font-weight: 700;
}

.error-message {
  margin: -6px 0 14px;
  color: var(--danger-strong, #ff4d4f);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  background: var(--surface-raised);
}

.auth-mode-toggle {
  width: 100%;
  justify-content: center !important;
  margin-top: 9px !important;
  color: var(--muted) !important;
  border-color: transparent !important;
}

.auth-mode-toggle:hover {
  background: transparent !important;
  color: var(--text) !important;
}

.auth-link {
  display: inline-block;
  width: fit-content;
  margin: -8px 0 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.auth-link:hover {
  color: var(--accent);
}

/* ======================================================== */
/* DASHBOARD USER BANNER & TABS                             */
/* ======================================================== */
.dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.avatar {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--text);
  font-weight: 700;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.avatar-tiny {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.avatar-large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.avatar-hero,
.avatar-settings {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.dashboard-welcome-copy {
  flex: 1;
  min-width: 0;
}

.account-email {
  margin: 0 0 2px;
  overflow-wrap: anywhere;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.plan-summary-card {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.plan-summary-value {
  margin: 0;
  color: var(--accent);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

.plan-summary-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.dashboard-signout {
  min-height: 36px !important;
  padding: 0 14px !important;
  font-size: 12px !important;
}

/* ======================================================== */
/* QUICK GAMES CHIPS & STEAM FARMING                        */
/* ======================================================== */
.quick-games-section {
  margin: 12px 0 14px;
}

.quick-games-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-bottom: 8px;
}

.quick-games-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-game-chip {
  padding: 6px 10px !important;
  min-height: 32px !important;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--field);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.quick-game-chip:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--surface-raised);
}

.quick-game-chip.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast);
}

.steam-account-panel {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.steam-guard-panel {
  padding: 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  margin: 14px 0;
}

.steam-qr-panel {
  padding: 20px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  margin: 14px 0;
  text-align: center;
}

.steam-qr-panel .panel-footnote {
  justify-content: center;
}

.steam-qr-code {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  padding: 12px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
}

.steam-qr-code img {
  display: block;
  width: 180px;
  height: 180px;
}

.steam-qr-status {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.steam-qr-status.is-scanned {
  color: var(--accent2);
}

.guard-code-input {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.25em;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
}

.subscription-panel {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.subscription-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}

.plan-card {
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  animation: fadeUp 0.4s ease both;
}

.plan-card:nth-child(1) { animation-delay: 0.03s; }
.plan-card:nth-child(2) { animation-delay: 0.08s; }
.plan-card:nth-child(3) { animation-delay: 0.13s; }

.plan-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.plan-card.is-current,
.plan-card-current {
  border-color: var(--accent);
  background: var(--surface-raised);
}

.plan-card.is-featured {
  border: 2px solid var(--accent);
}

.plan-card-badge {
  display: inline-block;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-card-name {
  margin: 0 0 6px;
  color: var(--text);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan-card-limit {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.plan-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.plan-badge-current {
  color: var(--accent);
}

.plan-badge-muted {
  color: var(--quiet);
}

/* ======================================================== */
/* PROFILE & SECURITY SETTINGS TAB                          */
/* ======================================================== */
.account-settings {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-heading {
  margin-bottom: 0;
}

.settings-heading p.field-label {
  margin-bottom: 4px;
}

.settings-heading h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.settings-form {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.field-row .field-label {
  margin: 0;
}

.inline-feedback {
  margin: -8px 0 12px;
  font-size: 12px;
  padding: 8px 12px;
}

.avatar-settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar-controls {
  flex: 1;
}

.file-input {
  width: 100%;
  height: 38px;
  padding: 5px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--muted);
}

/* Preset Avatars Gallery */
.preset-avatars-box {
  margin: 16px 0;
}

.preset-avatars-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.preset-avatars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
}

.preset-avatar-btn {
  width: 46px;
  height: 46px;
  min-height: 46px !important;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: var(--field);
  display: grid !important;
  place-items: center !important;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.preset-avatar-btn:hover {
  border-color: var(--text) !important;
  transform: translateY(-2px);
}

.remove-avatar-btn {
  border-color: transparent !important;
  color: var(--danger-strong, #ff4d4f) !important;
  font-size: 12px !important;
  min-height: 30px !important;
  padding: 0 8px !important;
}

/* Password Strength Bar */
.password-strength-container {
  margin: -8px 0 16px;
}

.strength-bar-bg {
  width: 100%;
  height: 3px;
  background: var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.strength-bar.weak { width: 33%; background-color: var(--danger-strong, #ff4d4f); }
.strength-bar.medium { width: 66%; background-color: var(--warning); }
.strength-bar.strong { width: 100%; background-color: var(--text); }

.strength-text {
  display: block;
  font-size: 12px;
  color: var(--quiet);
  margin-top: 4px;
}

.char-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--quiet);
}

.danger-zone {
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--surface-raised);
}

.settings-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 14px;
}

/* ======================================================== */
/* RIGHT COLUMN: STATUS BOX & TELEMETRY                     */
/* ======================================================== */
.status-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

.side-note {
  position: relative;
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.snapshot-status {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 700;
}

.snapshot-hours {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.snapshot-hours span:first-child {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent2);
  text-shadow: 0 0 20px color-mix(in srgb, var(--accent2) 40%, transparent);
}

.snapshot-hours-unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.side-note-caption {
  max-width: 280px;
  margin: 18px 0 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.6;
}

/* ======================================================== */
/* TOASTS & MODALS                                          */
/* ======================================================== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
  width: calc(100% - 48px);
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--text);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 14px 38px var(--shadow);
  animation: toastIn 0.2s ease forwards;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-item.toast-error {
  border-left-color: var(--danger-strong, #ff4d4f);
}

.toast-item.toast-success {
  border-left-color: var(--accent2);
}

.toast-item.toast-warning {
  border-left-color: var(--warning);
}

.toast-item.toast-info {
  border-left-color: var(--accent);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.toast-message {
  color: var(--muted);
  font-size: 12px;
}

.toast-close {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  min-height: unset !important;
}

.toast-close svg {
  width: 11px;
  height: 11px;
}

.toast-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--text);
}

.toast-item.toast-error .toast-icon {
  color: var(--danger-strong, #ff4d4f);
}

.toast-item.toast-warning .toast-icon {
  color: var(--warning);
}

.toast-item.toast-success .toast-icon {
  color: var(--accent2);
}

.toast-item.toast-info .toast-icon {
  color: var(--accent);
}

.toast-close:hover {
  color: var(--text);
  background: transparent !important;
}

.toast-item.toast-leaving {
  opacity: 0;
  transform: translateY(-8px);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.78);
  animation: modalOverlayIn 0.18s ease;
}

.modal-card,
.modal {
  width: min(100%, 420px);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 24px 80px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: modalCardIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalOverlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.modal-description,
.modal p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
}

/* ======================================================== */
/* FOOTER & RESPONSIVE                                      */
/* ======================================================== */
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 12px;
  margin-top: 36px;
}

.footer-divider {
  padding: 0 5px;
  color: var(--line-strong);
}

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

  .landing-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .landing-visual {
    justify-self: center;
    margin: 20px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-stats {
    grid-column: span 2;
    grid-row: span 1;
  }

  .floating-nav {
    bottom: 16px;
    gap: 2px;
    padding: 5px;
  }

  .floating-nav-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-shell {
    width: calc(100% - 28px);
  }

  .control-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .plan-cards {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-stats {
    grid-column: span 1;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
  }

  .header-controls {
    gap: 6px;
  }

  .floating-nav {
    left: 14px;
    right: 14px;
    bottom: 12px;
    width: auto;
    justify-content: space-around;
  }

  .floating-nav-btn {
    flex: 1;
    justify-content: center;
    height: 48px;
    padding: 0 4px;
  }

  .floating-nav-label {
    display: none;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .landing-hero h1 {
    font-size: clamp(36px, 10vw, 60px);
  }

  .avatar-settings-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-welcome {
    flex-wrap: wrap;
  }
}

/* ======================================================== */
/* ICONS — inline brand line-art (sharp, 1px, currentColor) */
/* ======================================================== */
.icon-sun,
.icon-moon,
.icon-eye,
.icon-eye-off {
  display: none;
}

body.dark-mode .icon-sun { display: block; }
body.light-mode .icon-moon { display: block; }

.toggle-password .icon-eye { display: block; }
.toggle-password.is-revealed .icon-eye { display: none; }
.toggle-password.is-revealed .icon-eye-off { display: block; }

.section-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  color: inherit;
  flex-shrink: 0;
}

.icon-label {
  display: inline-flex;
  align-items: center;
}

.plan-card-meter {
  display: flex;
  gap: 3px;
  margin: 0 0 9px;
}

.plan-card-meter span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.plan-card-meter span.is-filled {
  background: var(--accent);
  border-color: var(--accent);
}

.status-diamond {
  display: inline-flex;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  vertical-align: -1px;
  flex-shrink: 0;
}

.status-diamond rect {
  stroke: currentColor;
  stroke-width: 1.4;
}

.status-diamond.is-pulsing {
  animation: pulse 1.1s ease-in-out infinite;
}

.panel-cross {
  position: absolute;
  width: 11px;
  height: 11px;
  pointer-events: none;
}

.panel-cross::before,
.panel-cross::after {
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
  background: var(--line-strong);
  content: '';
}

.panel-cross::after {
  transform: rotate(90deg);
}

.panel-cross-tr {
  top: 16px;
  right: 16px;
}

.panel-cross-bl {
  bottom: 16px;
  left: 16px;
}

.side-note-symbol svg {
  display: block;
  width: 22px;
  height: 22px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ======================================================== */
/* BITCOIN CHECKOUT & ADMIN PAYMENT REVIEW                  */
/* ======================================================== */
.plan-card-buy {
  width: 100%;
  min-height: 40px !important;
  margin-top: 14px;
  padding: 0 12px !important;
  font-size: 12px !important;
  gap: 6px !important;
}

.plan-card-buy .icon {
  width: 14px;
  height: 14px;
}

.btc-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--field);
}

.btc-value {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
}

.btc-address {
  font-size: 12px;
}

.my-orders-list,
.admin-orders-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--field);
  font-size: 12px;
}

.order-row-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.order-row-plan {
  font-weight: 700;
  color: var(--text);
}

.order-row-meta {
  color: var(--muted);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  overflow-wrap: break-word;
}

.order-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}

.order-status-pending {
  color: var(--warning);
}

.order-status-confirmed {
  color: var(--running);
}

.order-status-cancelled {
  color: var(--quiet);
  text-decoration: line-through;
}

.order-row-actions {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
}

.order-action-btn {
  display: inline-flex;
  width: 30px;
  height: 30px;
  min-height: unset;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.order-action-btn:hover {
  background: var(--accent);
  color: var(--accent-contrast);
}

.order-action-btn.is-danger:hover {
  background: var(--danger-strong);
  border-color: var(--danger-strong);
  color: #fff;
}

.order-action-btn svg {
  width: 14px;
  height: 14px;
}

/* ======================================================== */
/* LEGAL PAGES (Terms / Privacy)                            */
/* ======================================================== */
.legal-content {
  max-width: 760px;
  margin: 8px auto 60px;
  padding: 0 4px;
}

.legal-content h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-updated {
  margin: 0 0 40px;
  color: var(--quiet);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body strong {
  color: var(--text);
}

.legal-placeholder {
  color: var(--danger-strong);
  font-weight: 700;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal-back:hover {
  color: var(--text);
}

.legal-footer-links {
  display: flex;
  gap: 16px;
}

.legal-footer-links a {
  color: inherit;
  text-decoration: none;
}

.legal-footer-links a:hover {
  color: var(--text);
}
