/* Hoodoo Alaska — brand: #40BFF0, charcoal, mountain geometry */

:root {
  --brand: #40bff0;
  --brand-dim: #2a9bc7;
  --brand-glow: rgba(64, 191, 240, 0.35);
  --ink: #0a0b0d;
  --ink-soft: #12151a;
  --slate: #1c2229;
  --muted: #8b95a5;
  --paper: #e8ecf1;
  --white: #f7f9fb;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Slim bar; logo is larger and hangs below (and above) the bar */
  --header-h: 4rem;
  --header-logo-hang: 3.35rem;
  --header-anchor: calc(var(--header-h) + var(--header-logo-hang));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--brand);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  top: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  overflow: visible;
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  overflow: visible;
  /* Keep nav clear of the bust-out logo (width + gutter) */
  padding-left: clamp(10.5rem, 40vw, 17rem);
}

.brand {
  position: absolute;
  left: 1.25rem;
  bottom: 0;
  /* Straddle the bar: mountain peeks above, wordmark hangs into the page */
  transform: translateY(40%);
  z-index: 102;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  line-height: 0;
}

.brand-logo {
  display: block;
  width: clamp(175px, 32vw, 248px);
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: flex-end;
    padding-left: clamp(6.75rem, 50vw, 10.75rem);
    padding-right: 1.25rem;
  }

  .brand {
    left: 1rem;
    transform: translateY(38%);
  }

  .brand-logo {
    width: clamp(132px, 46vw, 188px);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--white);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
}

.nav-list a {
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--brand);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: var(--ink) !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #5ccfff;
  color: var(--ink) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 11, 13, 0.97);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    visibility: hidden;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-list a {
    font-size: 1.125rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 880px);
  padding: calc(var(--header-anchor) + 2.5rem) 1.5rem 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--brand-glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(64, 191, 240, 0.12), transparent 50%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 45%, var(--slate) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 4 L52 48 L8 48 Z' fill='none' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-lede {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38em;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #5ccfff;
  color: var(--ink);
}

.btn-secondary {
  background: rgba(64, 191, 240, 0.15);
  color: var(--paper);
  border-color: rgba(64, 191, 240, 0.45);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(64, 191, 240, 0.28);
  border-color: var(--brand);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-clip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: var(--ink-soft);
  clip-path: polygon(0 100%, 0 35%, 15% 55%, 30% 25%, 45% 50%, 60% 20%, 75% 45%, 100% 15%, 100% 100%);
  z-index: 0;
}

/* Sections */
.section {
  padding: 5rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--white);
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Services */
.services {
  background: var(--ink-soft);
  padding-top: 3rem;
}

.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  background: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.25s;
}

.service-card:hover {
  border-color: rgba(64, 191, 240, 0.35);
  box-shadow: 0 0 0 1px rgba(64, 191, 240, 0.15);
}

.service-card-wide {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .service-card-wide {
    grid-column: span 2;
  }
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--brand);
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-name {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
}

.service-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* About */
.about {
  position: relative;
  background: var(--ink);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.about-angled {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  background: var(--ink-soft);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 85% 70%, 65% 35%, 40% 60%, 20% 30%, 0 55%);
  pointer-events: none;
}

.about-inner {
  position: relative;
  padding-top: 2rem;
}

.about-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 40rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  background: linear-gradient(180deg, var(--slate) 0%, var(--ink-soft) 100%);
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.contact-header {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}

a.contact-card:hover,
a.contact-card:focus-visible {
  border-color: var(--brand);
  background: rgba(64, 191, 240, 0.08);
}

.contact-card-static {
  cursor: default;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.contact-value {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--white);
  word-break: break-word;
}

/* Footer */
.site-footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--ink);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(139, 149, 165, 0.7);
}

/* Home — shop / configurator spotlight */
.shop-spotlight {
  background: var(--slate);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-spotlight-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.shop-spotlight-copy {
  flex: 1 1 280px;
  max-width: 640px;
}

.shop-spotlight-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.shop-spotlight .section-title {
  margin-bottom: 0.75rem;
}

.shop-spotlight-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.shop-spotlight-text strong {
  color: var(--paper);
  font-weight: 600;
}

.shop-spotlight-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cart-nav-count {
  font-weight: 700;
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* App pages (account, login, admin, viewer) */
.page-app .app-main {
  padding: calc(var(--header-anchor) + 1.5rem) 1.25rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-viewer .app-main {
  max-width: none;
}

.app-panel {
  background: rgba(28, 34, 41, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2rem 1.5rem;
}

.app-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.app-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.app-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
}

.app-back {
  margin: 0 0 1rem;
}

.app-back a {
  color: var(--brand);
  text-decoration: none;
}

.app-back a:hover {
  text-decoration: underline;
}

.auth-card {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-card:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.auth-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 0 1rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.auth-field input {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-soft);
  color: var(--paper);
  font: inherit;
}

.auth-feedback {
  margin: 0.75rem 0 0;
  font-size: 0.9375rem;
  color: var(--brand);
  min-height: 1.25rem;
}

.auth-feedback--error {
  color: #ff9a9a !important;
  font-weight: 600;
}

.auth-login-hint {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-login-hint code {
  font-size: 0.75rem;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.login-hint {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  line-height: 1.55;
}

.login-hint code {
  font-size: 0.8125rem;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.login-hint a {
  color: var(--brand);
}

/* --- Auth flow (sign in / register / forgot) --- */
.page-auth-flow {
  min-height: 100vh;
  background: var(--ink);
}

.page-auth-flow::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(64, 191, 240, 0.18), transparent 52%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(64, 191, 240, 0.08), transparent 45%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(64, 191, 240, 0.06), transparent 50%);
}

.page-auth-flow .site-header {
  z-index: 101;
}

.auth-flow-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(var(--header-anchor) + 2rem) 1.25rem 3.5rem;
  box-sizing: border-box;
}

/* Centered sign-in / forgot: one floating card, full viewport height feel */
.auth-flow-main.auth-scene {
  max-width: none;
  min-height: calc(100vh - var(--header-anchor));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-anchor) + 0.5rem) 1.25rem 2.5rem;
}

.auth-scene-inner {
  width: 100%;
  max-width: 420px;
}

.auth-flow-main--wide {
  max-width: 560px;
}

.auth-flow-main--stack {
  padding-top: calc(var(--header-anchor) + 0.75rem);
  padding-bottom: 3.5rem;
}

.auth-back-link {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.auth-flow-header {
  margin-bottom: 1.75rem;
}

.auth-flow-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.auth-flow-lede {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.auth-hero-card {
  width: 100%;
  padding: 2.25rem 1.85rem 1.85rem;
  border-radius: 22px;
  background: linear-gradient(
    160deg,
    rgba(34, 40, 50, 0.97) 0%,
    rgba(16, 19, 24, 0.94) 55%,
    rgba(8, 10, 14, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 0 0 1px rgba(64, 191, 240, 0.12),
    0 24px 48px -12px rgba(0, 0, 0, 0.65),
    0 0 80px -20px rgba(64, 191, 240, 0.12);
  backdrop-filter: blur(16px);
}

.auth-hero-eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
}

.auth-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 1.95rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.auth-hero-lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.auth-hero-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.auth-field--sleek .auth-field-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.auth-field--sleek input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 11, 13, 0.65);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field--sleek input::placeholder {
  color: rgba(139, 149, 165, 0.75);
}

.auth-field--sleek input:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.auth-field--sleek input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(64, 191, 240, 0.2);
}

.auth-hero-submit {
  margin-top: 0.25rem;
  width: 100%;
  padding: 0.95rem 1.5rem !important;
  font-size: 1rem !important;
  border-radius: 12px !important;
}

.auth-feedback--center {
  text-align: center;
  margin-top: 1rem !important;
  min-height: 1.5rem;
}

.auth-feedback--success {
  color: #8fd9f0 !important;
}

.auth-hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero-links--single {
  justify-content: center;
}

.auth-hero-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.auth-hero-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

.auth-hero-link--accent:hover {
  color: #7dd4f5;
}

.auth-hero-card-note {
  margin-top: 1.25rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-note-p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.auth-note-p a {
  color: var(--brand);
}

.auth-dev-hint {
  margin-top: 2rem;
  max-width: 480px;
  width: 100%;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.auth-dev-hint summary {
  cursor: pointer;
  font-weight: 600;
  color: rgba(139, 149, 165, 0.9);
  list-style: none;
}

.auth-dev-hint summary::-webkit-details-marker {
  display: none;
}

.auth-dev-hint[open] summary {
  margin-bottom: 0.5rem;
}

.auth-dev-hint p {
  margin: 0;
  line-height: 1.5;
}

.auth-dev-hint code {
  font-size: 0.75rem;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.auth-dev-hint a {
  color: var(--brand);
}

/* Register: stacked cards */
.auth-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-item-card {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    rgba(32, 38, 46, 0.95) 0%,
    rgba(14, 17, 22, 0.96) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 1px rgba(64, 191, 240, 0.06),
    0 12px 36px rgba(0, 0, 0, 0.4);
}

.auth-item-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.auth-item-step {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand), #2a9bc7);
  box-shadow: 0 4px 16px rgba(64, 191, 240, 0.25);
}

.auth-item-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 0 0 0.2rem;
  letter-spacing: -0.02em;
}

.auth-item-desc {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-stack-actions {
  margin-top: 0.5rem;
  text-align: center;
}

.auth-stack-submit {
  width: 100%;
  max-width: 100%;
  padding: 0.95rem 1.5rem !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
}

.auth-stack-alt {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.auth-stack-alt a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-stack-alt a:hover {
  text-decoration: underline;
}

.account-gate {
  padding: 1rem 0;
}

.account-profile {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.orders-row {
  margin: 0 0 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.orders-row-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem 1rem;
  background: rgba(10, 11, 13, 0.5);
  color: var(--paper);
  text-decoration: none;
}

.orders-row-link:hover {
  background: rgba(64, 191, 240, 0.08);
}

.orders-row-date {
  flex: 1 1 200px;
}

.orders-row-total {
  font-weight: 700;
  color: var(--brand);
}

.orders-row-status {
  text-transform: capitalize;
  color: var(--muted);
  font-size: 0.9375rem;
}

.order-head {
  margin-bottom: 1.5rem;
}

.order-meta {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.order-total {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.order-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.order-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-line {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.muted {
  color: var(--muted);
  font-size: 0.9375rem;
}

.nav-logout {
  font: inherit;
  font-size: inherit;
  color: var(--paper);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-logout:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.nav-auth-sep {
  color: var(--muted);
  margin: 0 0.25rem;
}

/* Viewer */
.viewer-header {
  position: relative;
}

.viewer-main {
  padding-top: var(--header-anchor);
  min-height: calc(100vh - var(--header-anchor));
  display: flex;
  flex-direction: column;
}

.viewer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.viewer-slug-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.viewer-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.viewer-slug-field input {
  min-width: 220px;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-soft);
  color: var(--paper);
  font: inherit;
}

.viewer-status {
  margin: 0;
  flex: 1 1 200px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.viewer-wrap {
  position: relative;
  flex: 1;
  min-height: 50vh;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(64, 191, 240, 0.06) 0%, transparent 60%);
}

.viewer-canvas {
  display: block;
  width: 100%;
  height: min(70vh, 800px);
  touch-action: none;
}

.viewer-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  pointer-events: none;
}

.viewer-empty p {
  margin: 0.25rem 0;
  max-width: 420px;
}

/* Admin */
.admin-body {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.admin-scroll {
  overflow-x: auto;
}

.admin-subhead {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  padding: 0.5rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-inv-input {
  width: 5.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-soft);
  color: var(--paper);
  font: inherit;
}

.admin-3d-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
}

.admin-field input,
.admin-field select {
  min-width: 200px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ink-soft);
  color: var(--paper);
  font: inherit;
}

.admin-asset-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.admin-asset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-form {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

.page-admin .btn-primary {
  justify-self: start;
}
