:root {
  --bg: #050508;
  --bg-secondary: #0a0a10;
  --fg: #ffffff;
  --muted: #6b7280;
  --muted-soft: #9aa4b2;
  --accent: #00ffd5;
  --accent-secondary: #0088ff;
  --card: rgba(10, 10, 20, 0.7);
  --card-strong: rgba(7, 7, 14, 0.86);
  --card-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(0, 255, 213, 0.15);
  --border-strong: rgba(0, 255, 213, 0.28);
  --glow: rgba(0, 255, 213, 0.24);
  --glow-strong: rgba(0, 255, 213, 0.42);
  --danger: #ff7f96;
  --success: #72f3b3;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
}

body {
  overflow-x: hidden;
  font-family: "Inter", "Segoe UI", sans-serif;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 255, 213, 0.1), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(0, 136, 255, 0.16), transparent 32%),
    radial-gradient(circle at 78% 82%, rgba(0, 255, 213, 0.08), transparent 25%);
  pointer-events: none;
  z-index: 0;
}

.scanlines::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 213, 0.014) 2px,
    rgba(0, 255, 213, 0.014) 4px
  );
  pointer-events: none;
  z-index: 2;
}

#canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 10;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.font-display,
.hero-copy h1,
.section-heading h2,
.brandmark strong,
.plan-card h2,
.plan-card h3,
.summary-card strong,
.metric-card strong,
.conversion-core strong,
.footer-brand .font-display {
  font-family: "Orbitron", monospace;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.muted-copy,
.brandmark small,
.site-nav a,
.field small,
.preview-meta span,
.summary-card span,
.metric-card span,
.plan-kicker,
.status-pill,
.ghost-link,
.primary-link,
.button-row,
.path-display,
.footer-links a,
.hero-badge span,
.eyebrow,
.preview-note,
.transform-grid p,
.path-block p,
.file-row span {
  font-size: 0.92rem;
}

.muted-copy {
  color: var(--muted-soft);
  line-height: 1.7;
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.site-header,
.panel,
.flash {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  max-width: 1400px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brandmark span:last-child {
  display: grid;
  gap: 4px;
}

.brandmark strong {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brandmark small {
  color: var(--muted);
}

.brandmark-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.22);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
  transform: translateY(-1px);
}

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

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-pill small {
  color: var(--muted-soft);
}

.user-pill img,
.avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.15), rgba(0, 136, 255, 0.18));
  color: var(--accent);
  font-weight: 700;
}

.page-shell {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

.page-shell > *,
.panel-grid > *,
.summary-row > *,
.card-grid > *,
.feature-grid > *,
.field-grid > *,
.compact-grid > *,
.transform-grid > *,
.path-grid > *,
.footer-grid > *,
.store-layout > * {
  min-width: 0;
}

.flash {
  max-width: 1400px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 18px;
}

.flash-success {
  color: #d6fff0;
  border-color: rgba(114, 243, 179, 0.28);
  background: rgba(114, 243, 179, 0.12);
}

.flash-error {
  color: #ffd9e0;
  border-color: rgba(255, 127, 150, 0.28);
  background: rgba(255, 127, 150, 0.12);
}

.hero,
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.hero::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(rgba(0, 255, 213, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 213, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95), transparent 95%);
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 213, 0.7), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.hero {
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  gap: 24px;
  align-items: start;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 213, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 136, 255, 0.14), transparent 36%),
    var(--card);
}

.hero-home,
.hero-dashboard,
.hero-store,
.hero-detail {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

.hero-home {
  min-height: min(76vh, 760px);
  align-items: center;
}

.hero-upload,
.hero-jobs,
.hero-admin {
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-line {
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-soft);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 16px rgba(114, 243, 179, 0.9);
}

.eyebrow,
.plan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-family: "Orbitron", monospace;
  font-size: 0.78rem;
}

.hero-actions,
.button-row,
.chip-row,
.viewport-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.primary-link,
.ghost-link,
.primary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease;
}

.primary-link,
.primary-button {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 10px 40px rgba(0, 255, 213, 0.22);
}

.ghost-link,
.ghost-button {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.danger-button {
  color: #ffdbe2;
  background: rgba(255, 127, 150, 0.08);
  border: 1px solid rgba(255, 127, 150, 0.2);
}

.primary-link:hover,
.primary-button:hover,
.ghost-link:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.primary-link:hover,
.primary-button:hover {
  box-shadow: 0 18px 50px rgba(0, 255, 213, 0.26);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.panel {
  padding: 24px;
}

.minor-panel {
  background: rgba(255, 255, 255, 0.045);
}

.accent-panel {
  background:
    linear-gradient(180deg, rgba(0, 255, 213, 0.08), rgba(0, 136, 255, 0.08)),
    var(--card);
}

.hero-panel {
  display: grid;
  gap: 20px;
}

.tech-panel {
  align-content: start;
}

.conversion-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.conversion-end {
  display: grid;
  gap: 8px;
  text-align: center;
}

.conversion-end span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  font-family: "Orbitron", monospace;
}

.conversion-end strong {
  font-family: "Orbitron", monospace;
  font-size: 1.05rem;
}

.conversion-core {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
}

.conversion-core strong {
  position: relative;
  z-index: 1;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.conversion-core-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.18), rgba(0, 136, 255, 0.18));
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 0 22px rgba(0, 255, 213, 0.14), 0 0 30px rgba(0, 255, 213, 0.12);
}

.metric-stack,
.stack-list,
.stack-form,
.path-grid,
.file-list {
  display: grid;
  gap: 14px;
}

.compact-metric-stack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-card,
.summary-card,
.list-item,
.field-callout,
.preview-meta,
.path-block,
.file-row,
.plan-foot,
.status-note {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.metric-card,
.summary-card {
  padding: 18px;
}

.metric-card strong,
.summary-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.58rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.metric-card span,
.summary-card span {
  color: var(--muted);
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.summary-card small,
.status-note p,
.list-item span,
.field-callout p,
.field small,
.preview-meta span,
.ordered-flow li,
.transform-grid p,
.path-block p,
.file-row span,
.footer-brand p,
.plan-card p {
  color: var(--muted-soft);
}

.summary-card small,
.preview-meta span,
.list-item strong,
.list-item span,
.inline-form p,
.table td,
.table th {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-note,
.field-callout,
.plan-foot {
  padding: 16px 18px;
}

.status-note strong {
  display: block;
  margin-bottom: 8px;
}

.tech-note {
  background:
    linear-gradient(135deg, rgba(0, 255, 213, 0.05), rgba(0, 136, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.panel-grid {
  display: grid;
  gap: 24px;
}

.triple-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.store-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: start;
}

.store-layout > :first-child {
  grid-column: 1;
  grid-row: 1;
}

.store-layout > :nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.upload-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  align-items: start;
}

.card-grid,
.feature-grid,
.summary-row,
.field-grid,
.compact-grid,
.transform-grid {
  display: grid;
  gap: 16px;
}

.card-grid,
.feature-grid,
.summary-row {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid > div {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.transform-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.list-item:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 255, 213, 0.08);
}

.meshy-status-toolbar,
.meshy-generation-header,
.meshy-generation-meta,
.meshy-generation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.meshy-status-toolbar {
  margin-bottom: 16px;
}

.generation-toolbar {
  align-items: start;
}

.generation-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.meshy-generation-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.meshy-generation-header > div,
.meshy-generation-actions {
  min-width: 0;
}

.meshy-generation-header strong {
  display: block;
  margin-bottom: 6px;
}

.meshy-generation-header span,
.meshy-generation-meta span {
  color: var(--muted-soft);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meshy-generation-meta {
  justify-content: flex-start;
  gap: 10px 16px;
}

.meshy-generation-message {
  margin: 0;
  color: var(--fg);
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.meshy-generation-log {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

.meshy-generation-log summary {
  cursor: pointer;
  color: var(--accent);
  font-family: "Orbitron", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.meshy-generation-log pre {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(4, 7, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-soft);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  font-size: 0.84rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.form-panel {
  display: grid;
  gap: 18px;
}

.generate-mode-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.generate-mode-heading {
  display: grid;
  gap: 6px;
}

.generate-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generate-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.generate-mode-button:hover,
.generate-mode-button.is-active {
  color: var(--fg);
  border-color: var(--border-strong);
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.14), rgba(0, 136, 255, 0.14));
  box-shadow: 0 0 24px rgba(0, 255, 213, 0.08);
  transform: translateY(-1px);
}

.generate-mode-panel {
  min-width: 0;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  color: var(--fg);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--fg);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 14, 0.9);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 213, 0.03);
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.compact-form input:focus,
.compact-form select:focus {
  outline: 2px solid rgba(0, 255, 213, 0.22);
  outline-offset: 0;
  border-color: var(--border-strong);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.field input[type="file"] {
  padding: 10px 12px;
  cursor: pointer;
  color: var(--muted-soft);
}

.field input[type="file"]::file-selector-button,
.field input[type="file"]::-webkit-file-upload-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.18), rgba(0, 136, 255, 0.18));
  color: var(--fg);
  cursor: pointer;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.field input[type="file"]::file-selector-button:hover,
.field input[type="file"]::-webkit-file-upload-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 213, 0.44);
  background: linear-gradient(135deg, rgba(0, 255, 213, 0.28), rgba(0, 136, 255, 0.24));
}

.field input[type="range"] {
  padding: 0;
  appearance: none;
  background: transparent;
  box-shadow: none;
}

.field input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 213, 0.28), rgba(0, 136, 255, 0.28));
}

.field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 18px rgba(0, 255, 213, 0.3);
}

.field input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 255, 213, 0.28), rgba(0, 136, 255, 0.28));
}

.field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  box-shadow: 0 0 18px rgba(0, 255, 213, 0.3);
}

.preview-panel {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 14px;
}

.viewport-toolbar {
  position: relative;
  z-index: 1;
}

.preview-stage {
  min-height: 660px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top, rgba(0, 255, 213, 0.1), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(0, 136, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #081018, #05090f);
}

.preview-stage canvas {
  display: block;
}

.preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.preview-meta > div {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.preview-meta span {
  line-height: 1.55;
}

.preview-meta strong,
.path-block strong,
.file-row strong,
.field-callout strong {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: "Orbitron", monospace;
  color: var(--fg);
}

.path-display {
  display: block;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--muted-soft);
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

.path-block,
.file-row {
  padding: 14px 16px;
}

.file-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  max-width: 100%;
  white-space: normal;
}

.status-queued,
.status-running,
.status-requested {
  background: rgba(0, 136, 255, 0.16);
  color: #9dd1ff;
}

.status-completed,
.status-fulfilled {
  background: rgba(114, 243, 179, 0.14);
  color: #cbffe5;
}

.status-failed,
.status-cancelled {
  background: rgba(255, 127, 150, 0.14);
  color: #ffdbe2;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: "Orbitron", monospace;
  font-weight: 500;
}

.table a {
  color: var(--accent);
}

.ordered-flow {
  margin: 0;
  padding-left: 22px;
  line-height: 1.8;
}

.plan-card {
  display: grid;
  gap: 14px;
}

.plan-card h2,
.plan-card h3 {
  margin: 0;
}

.plan-card p {
  margin: 0;
  line-height: 1.7;
}

.plan-price {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-price strong {
  font-size: 2rem;
}

.plan-foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-plan-card {
  min-height: 100%;
  align-content: start;
}

.store-action {
  margin-top: auto;
  width: 100%;
}

.store-action.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.inline-form,
.compact-form,
.user-line,
.table-actions,
.order-card,
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.inline-form,
.order-card,
.user-line {
  justify-content: space-between;
}

.inline-form > div,
.user-line > div,
.order-card > div {
  min-width: 0;
}

.compact-form,
.table-actions {
  flex-wrap: wrap;
}

.button-form {
  display: inline-flex;
}

.compact-form input,
.compact-form select {
  min-width: 120px;
  padding: 10px 12px;
  color: var(--fg);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 7, 14, 0.9);
}

.checkbox-line input {
  accent-color: var(--accent);
}

.job-log {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6f9ff;
  font-family: "IBM Plex Mono", "Consolas", monospace;
  white-space: pre-wrap;
}

.site-footer {
  margin-top: 8px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr) minmax(240px, 0.9fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-brand .font-display {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-brand p {
  max-width: 56ch;
  margin: 0;
  line-height: 1.7;
}

.footer-column,
.footer-list,
.footer-stat-grid {
  display: grid;
  gap: 14px;
}

.footer-list span {
  color: var(--muted-soft);
  line-height: 1.6;
}

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

.footer-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-stat strong {
  display: block;
  font-family: "Orbitron", monospace;
  font-size: 1.4rem;
}

.footer-stat span {
  color: var(--muted-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  transition: color 180ms ease;
}

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

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 20px;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tab-link:hover,
.tab-link.active {
  color: var(--fg);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.discord-callout {
  grid-column: 2;
  grid-row: 1 / span 2;
  position: sticky;
  top: 110px;
  display: grid;
  gap: 18px;
}

.discord-button {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms ease, transform 800ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  border-radius: 999px;
}

@media (max-width: 1180px) {
  .site-header,
  .inline-form,
  .order-card,
  .user-line {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-home,
  .hero-dashboard,
  .hero-store,
  .hero-detail,
  .upload-grid,
  .two-grid,
  .triple-grid,
  .store-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }

  .discord-callout {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 14px;
  }

  .site-header {
    top: 10px;
    padding: 16px;
  }

  .field-grid,
  .compact-grid,
  .transform-grid,
  .preview-meta,
  .compact-metric-stack,
  .footer-stat-grid,
  .plan-foot {
    grid-template-columns: 1fr;
  }

  .conversion-strip {
    grid-template-columns: 1fr;
  }

  .conversion-core {
    justify-self: center;
  }

  .preview-stage {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .site-nav {
    justify-content: flex-start;
  }

  .preview-stage {
    min-height: 420px;
  }
}

@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;
  }
}
