/* ==========================================================================
   LUMEN — Premium Black & Gold Cinematic UI
   Design: Deep black, gold accents, Discord-inspired left layout, premium motion
   ========================================================================== */

:root {
  /* Core palette */
  --bg-deep: #060608;
  --bg-main: #0a0a0d;
  --bg-panel: #0d0d11;
  --bg-elevated: #111116;
  --bg-card: #0f0f13;
  --bg-card-hover: #14141a;

  --gold: #c9a227;
  --gold-light: #ddb83a;
  --gold-dim: #8b7320;
  --gold-glow: rgba(201, 162, 39, 0.25);
  --gold-glow-strong: rgba(201, 162, 39, 0.4);

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(201, 162, 39, 0.35);
  --text-primary: #f0f0f2;
  --text-secondary: #9a9aa5;
  --text-muted: #5c5c68;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --sidebar-icon-w: 72px;
  --nav-panel-w: 240px;
  --right-panel-w: 280px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.5s;
}

/* Global simplification: remove unused main tabs */
.icon-item[data-panel='gallery'],
.icon-item[data-panel='community'],
.icon-item[data-panel='activity'] {
  display: none !important;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 600; margin: 0; }
.gold-text { color: var(--gold); }
.font-display { font-family: 'Cormorant Garamond', serif; }

/* ==========================================================================
   Custom scrollbars — premium dark theme (main + textarea + panels)
   ========================================================================== */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-deep);
}
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.nav-panel-content::-webkit-scrollbar,
.auth-gate-card::-webkit-scrollbar,
.auth-form textarea::-webkit-scrollbar,
textarea.auth-input::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track,
.nav-panel-content::-webkit-scrollbar-track,
.auth-gate-card::-webkit-scrollbar-track,
.auth-form textarea::-webkit-scrollbar-track,
textarea.auth-input::-webkit-scrollbar-track {
  background: var(--bg-deep);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.nav-panel-content::-webkit-scrollbar-thumb,
.auth-gate-card::-webkit-scrollbar-thumb,
.auth-form textarea::-webkit-scrollbar-thumb,
textarea.auth-input::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
  border: 2px solid var(--bg-deep);
}
body::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover,
.nav-panel-content::-webkit-scrollbar-thumb:hover,
.auth-gate-card::-webkit-scrollbar-thumb:hover,
.auth-form textarea::-webkit-scrollbar-thumb:hover,
textarea.auth-input::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}
body::-webkit-scrollbar-thumb:active,
.main-content::-webkit-scrollbar-thumb:active,
.nav-panel-content::-webkit-scrollbar-thumb:active,
.auth-gate-card::-webkit-scrollbar-thumb:active,
.auth-form textarea::-webkit-scrollbar-thumb:active,
textarea.auth-input::-webkit-scrollbar-thumb:active {
  background: var(--gold);
}
.auth-gate-card,
.auth-form textarea,
textarea.auth-input {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-elevated) var(--bg-panel);
}

/* ==========================================================================
   Auth gate (Log In / Sign Up) — first screen
   ========================================================================== */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 2.5vw, 1.75rem);
  background: var(--bg-deep);
}
.auth-gate.is-hidden,
.auth-gate.auth-gate-is-hidden {
  display: none;
}
.auth-gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.auth-gate-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 600px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 65%);
  opacity: 0.4;
}
.auth-gate-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
/* Magazine landing shell: editorial + form */
.auth-gate-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2.5vw, 1.35rem);
  width: 100%;
  max-width: 1120px;
  max-height: min(940px, 100vh - 1.25rem);
  min-height: 0;
  margin: 0 auto;
  align-items: stretch;
}
@media (min-width: 960px) {
  .auth-gate-layout {
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 430px);
    gap: 1rem 1.5rem;
    max-width: 1220px;
    max-height: min(960px, 100vh - 1rem);
  }
}
.auth-gate-editorial {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.auth-gate-editorial-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.3rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.24);
  background: linear-gradient(168deg, rgba(20, 18, 16, 0.98) 0%, var(--bg-panel) 48%, rgba(8, 8, 7, 0.99) 100%);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
@media (min-width: 960px) {
  .auth-gate-editorial-inner {
    padding: 1.15rem 1.25rem 1.1rem;
    gap: 0.75rem;
    overflow-y: auto;
    max-height: min(940px, 100vh - 1.25rem);
    min-height: min(520px, 72vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
  }
}
.auth-gate-editorial-head {
  text-align: start;
}
@media (min-width: 960px) {
  .auth-gate-editorial-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, min(42%, 15.5rem));
    grid-template-rows: auto auto auto;
    column-gap: 1.1rem;
    row-gap: 0.35rem;
    align-items: start;
  }
  .auth-gate-editorial-issue {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0.35rem;
  }
  .auth-gate-eyebrow {
    grid-column: 1;
    grid-row: 2;
    margin-bottom: 0.25rem;
  }
  .auth-gate-editorial-title {
    grid-column: 1;
    grid-row: 3;
    margin-bottom: 0;
  }
  .auth-gate-editorial-lede {
    grid-column: 2;
    grid-row: 2 / span 2;
    align-self: center;
    max-width: none;
    margin: 0;
    padding-inline-start: 1rem;
    border-inline-start: 1px solid rgba(201, 162, 39, 0.22);
    font-size: clamp(0.82rem, 1.05vw, 0.93rem);
    line-height: 1.55;
  }
}
.auth-gate-editorial-issue {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}
.auth-gate-editorial-issue-label {
  flex: 1;
  min-width: 0;
}
.auth-gate-editorial-issue-num {
  flex-shrink: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(212, 175, 95, 0.92);
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.06);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.auth-gate-editorial-inner:hover .auth-gate-editorial-issue-num {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.09);
}
.auth-gate-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-gate-editorial-title {
  margin: 0 0 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.auth-gate-editorial-accent {
  font-style: italic;
  color: rgba(212, 175, 95, 0.95);
}
.auth-gate-editorial-lede {
  margin: 0;
  font-size: clamp(0.88rem, 1.35vw, 0.98rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 52ch;
}
.auth-gate-editorial-lede::first-letter {
  float: left;
  margin: 0.06em 0.45rem 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 600;
  font-style: italic;
  line-height: 0.78;
  color: rgba(212, 175, 95, 0.95);
}
.auth-gate-editorial-visuals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 0 1 auto;
  min-height: 0;
}
.auth-gate-fig {
  margin: 0;
}
.auth-gate-fig--hero {
  position: relative;
}
.auth-gate-fig-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 22px);
  background: #0e0c0a;
  --auth-px: 0;
  --auth-py: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.35s ease,
    box-shadow 0.4s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}
.auth-gate-fig--hero .auth-gate-fig-frame:hover {
  border-color: rgba(201, 162, 39, 0.32);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 162, 39, 0.15);
}
.auth-gate-fig--hero .auth-gate-fig-frame {
  aspect-ratio: 16 / 10;
  max-height: 220px;
}
.auth-gate-fig-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: translate(calc(var(--auth-px) * 10px), calc(var(--auth-py) * 8px)) scale(1.04);
  transition: transform 0.55s var(--ease-out-expo);
}
.auth-gate-fig-frame:hover .auth-gate-fig-img {
  transform: translate(calc(var(--auth-px) * 12px), calc(var(--auth-py) * 9px)) scale(1.07);
}
.auth-gate-fig-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
}
.auth-gate-fig-scrim--soft {
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}
.auth-gate-fig-cap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.45rem;
  padding-inline: 0.1rem;
}
.auth-gate-fig-kicker {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-gate-fig-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.auth-gate-fig--hero .auth-gate-fig-cap--overlay {
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.45rem;
  margin-top: 0;
  padding: 0;
  border-radius: 12px;
  z-index: 2;
  pointer-events: none;
}
.auth-gate-spotlight-btn {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font: inherit;
  text-align: start;
  color: inherit;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s ease;
}
.auth-gate-spotlight-btn:hover {
  border-color: rgba(201, 162, 39, 0.5);
  background: linear-gradient(
    165deg,
    rgba(201, 162, 39, 0.12) 0%,
    rgba(0, 0, 0, 0.82) 100%
  );
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}
.auth-gate-spotlight-btn:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px rgba(201, 162, 39, 0.55);
}
.auth-gate-spotlight-cta {
  margin-top: 0.35rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.25s ease, gap 0.3s var(--ease-out-expo);
}
.auth-gate-spotlight-btn:hover .auth-gate-spotlight-cta {
  color: rgba(232, 205, 130, 0.98);
  gap: 0.55rem;
}
.auth-gate-spotlight-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}
.auth-gate-spotlight-btn:hover .auth-gate-spotlight-arrow {
  transform: translateX(4px);
}
.auth-gate-fig--hero .auth-gate-fig-cap--overlay .auth-gate-fig-line {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.auth-gate-fig--hero .auth-gate-fig-cap--overlay .auth-gate-fig-kicker {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.auth-gate-story-hit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: start;
  border-radius: inherit;
}
.auth-gate-story-hit:focus-visible {
  outline: none;
}
.auth-gate-story-tile .auth-gate-fig-frame {
  position: relative;
}
.auth-gate-story-peek {
  position: absolute;
  bottom: 0.45rem;
  left: 0.5rem;
  right: 0.5rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.4s var(--ease-out-expo);
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.auth-gate-story-hit:hover .auth-gate-story-peek,
.auth-gate-story-hit:focus-visible .auth-gate-story-peek {
  opacity: 1;
  transform: translateY(0);
}
.auth-gate-story-hit:hover .auth-gate-fig-frame,
.auth-gate-story-hit:focus-visible .auth-gate-fig-frame {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(201, 162, 39, 0.22);
}
.auth-gate-story-hit:focus-visible .auth-gate-fig-frame {
  box-shadow:
    0 0 0 2px var(--bg-deep),
    0 0 0 4px rgba(201, 162, 39, 0.55),
    0 18px 44px rgba(0, 0, 0, 0.48);
}
.auth-gate-story-hit:hover + .auth-gate-fig-cap--sm,
.auth-gate-story-hit:focus-visible + .auth-gate-fig-cap--sm {
  color: var(--text-primary);
}
.auth-gate-story-hit:hover + .auth-gate-fig-cap--sm {
  transition: color 0.25s ease;
}
.auth-gate-fig-cap--sm {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}
.auth-gate-fig-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.auth-gate-fig--sm .auth-gate-fig-frame {
  aspect-ratio: 1;
  max-height: 140px;
}
@media (min-width: 960px) {
  .auth-gate-editorial-visuals {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.52fr);
    grid-template-rows: 1fr 1fr;
    gap: 0.65rem;
    flex: 1 1 auto;
    min-height: 0;
    align-self: stretch;
  }
  .auth-gate-fig--hero {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .auth-gate-fig--hero .auth-gate-fig-frame {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: none;
    aspect-ratio: unset;
  }
  .auth-gate-fig-pair {
    grid-column: 2;
    grid-row: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    min-width: 0;
  }
  .auth-gate-fig-pair > .auth-gate-fig--sm {
    flex: 1;
    min-height: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }
  .auth-gate-fig--sm .auth-gate-fig-frame {
    flex: 1 1 auto;
    min-height: 64px;
    max-height: none;
    aspect-ratio: unset;
  }
  .auth-gate-editorial-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem 1.15rem;
    padding-top: 0.7rem;
    margin-top: 0.1rem;
    padding-inline: 0.4rem 0.55rem;
  }
  .auth-gate-quote {
    flex: 1 1 min(300px, 62%);
    margin-bottom: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .auth-gate-editorial-footer .auth-gate-intl {
    flex: 0 1 min(280px, 36%);
    text-align: end;
  }
}
@media (max-width: 959px) {
  .auth-gate-layout {
    max-height: none;
  }
  .auth-gate-editorial-inner {
    padding: 1rem 1.05rem 1.15rem;
    gap: 0.85rem;
  }
  .auth-gate-editorial-visuals {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.65rem;
    padding-bottom: 0.4rem;
    margin-inline: -0.25rem;
    padding-inline: 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .auth-gate-fig-pair {
    display: flex;
    flex-direction: row;
    gap: 0.65rem;
    flex: 0 0 auto;
  }
  .auth-gate-fig--hero {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }
  .auth-gate-fig--hero .auth-gate-fig-frame {
    max-height: 180px;
  }
  .auth-gate-fig--sm {
    flex: 0 0 min(38vw, 160px);
    scroll-snap-align: start;
  }
  .auth-gate-fig--sm .auth-gate-fig-frame {
    max-height: 120px;
    aspect-ratio: 4 / 3;
  }
  .auth-gate-editorial-footer .auth-gate-quote {
    font-size: 0.98rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .auth-gate-intl {
    font-size: 0.78rem;
  }
}
.auth-gate-editorial-footer {
  flex-shrink: 0;
  margin-top: 0.35rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(12, 10, 8, 0.2) 0%, rgba(6, 6, 5, 0.94) 35%);
  border-radius: 0 0 10px 10px;
  margin-inline: -0.15rem;
  padding-inline: 0.35rem 0.5rem;
  padding-bottom: 0.15rem;
  position: relative;
  z-index: 2;
}
.auth-gate-quote {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0 0.55rem 1rem;
  border-inline-start: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  transition:
    border-inline-start-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}
.auth-gate-quote:hover {
  border-inline-start-color: rgba(232, 205, 130, 0.95);
  color: rgba(255, 255, 255, 0.98);
  box-shadow: inset 6px 0 24px -6px rgba(201, 162, 39, 0.08);
}
.auth-gate-quote p {
  margin: 0;
}
.auth-gate-editorial-footer .auth-gate-intl {
  margin: 0;
}
.auth-gate-intl {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.auth-gate-intl-label {
  display: inline-block;
  margin-inline-end: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.28);
  vertical-align: middle;
}
.auth-gate-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  max-height: min(90vh, 880px);
  overflow-y: auto;
  padding: 1.65rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, rgba(30, 28, 24, 0.4) 0%, var(--bg-panel) 22%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.35s ease, border-color 0.25s ease;
}
.auth-gate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.55), transparent);
  opacity: 0.85;
  pointer-events: none;
}
@media (min-width: 960px) {
  .auth-gate-form-panel {
    margin-inline: 0;
    max-width: none;
    max-height: min(920px, 100vh - 1.5rem);
    align-self: stretch;
  }
}
@keyframes authGatePanelFlash {
  0% {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }
  35% {
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(201, 162, 39, 0.35);
    border-color: rgba(201, 162, 39, 0.55);
  }
  100% {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  }
}
.auth-gate-panel-flash {
  animation: authGatePanelFlash 0.55s ease-out;
}
.auth-gate-brand {
  text-align: center;
  margin-bottom: 1.15rem;
}
.auth-gate-masthead-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.auth-gate-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out-expo), color 0.25s ease;
}
.auth-gate-form-panel:hover .auth-gate-icon {
  transform: scale(1.05);
  color: var(--gold-light);
}
.auth-gate-icon svg { width: 32px; height: 32px; }
.auth-gate-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.15;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}
.auth-gate-title-main {
  color: var(--text-primary);
}
.auth-gate-title-mark {
  font-size: 0.72em;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.9);
}
.auth-gate-subtitle {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
  max-width: 28ch;
  margin-inline: auto;
}
.auth-access-rail {
  margin-bottom: 1rem;
}
.auth-access-rail-label {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.auth-mode-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem 0.8rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.04) 0%, rgba(22, 20, 18, 0.85) 100%);
  color: var(--text-secondary);
  font-family: inherit;
  text-align: start;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-out-expo),
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.3s ease;
}
.auth-mode-tile:hover {
  color: var(--text-primary);
  border-color: rgba(201, 162, 39, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.auth-mode-tile.active {
  color: var(--text-primary);
  border-color: rgba(201, 162, 39, 0.55);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.14) 0%, rgba(18, 16, 14, 0.95) 100%);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12), 0 12px 32px rgba(0, 0, 0, 0.4);
}
.auth-mode-tile-kicker {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.95;
}
.auth-mode-tile-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}
.auth-mode-tile-desc {
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}
.auth-mode-tile:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold);
}
.auth-stage-line {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border-inline-start: 3px solid rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.06);
}
.auth-forms-shell {
  position: relative;
  min-height: 0;
}
.auth-hint--signup {
  margin-top: 0.75rem;
}
@media (prefers-reduced-motion: reduce) {
  .auth-gate-fig-img,
  .auth-gate-fig-frame:hover .auth-gate-fig-img {
    transform: none;
    transition: none;
  }
  .auth-gate-fig-frame,
  .auth-gate-fig--hero .auth-gate-fig-frame:hover,
  .auth-gate-story-hit:hover .auth-gate-fig-frame,
  .auth-gate-story-hit:focus-visible .auth-gate-fig-frame {
    transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .auth-gate-spotlight-btn,
  .auth-gate-spotlight-btn:hover {
    transform: none;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .auth-gate-spotlight-btn:hover .auth-gate-spotlight-cta {
    gap: 0.35rem;
  }
  .auth-gate-spotlight-btn:hover .auth-gate-spotlight-arrow {
    transform: none;
  }
  .auth-gate-story-peek,
  .auth-gate-story-hit:hover .auth-gate-story-peek,
  .auth-gate-story-hit:focus-visible .auth-gate-story-peek {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .auth-gate-panel-flash {
    animation: none;
  }
  .auth-mode-tile:hover,
  .auth-mode-tile.active {
    transform: none;
  }
  .auth-gate-form-panel:hover .auth-gate-icon {
    transform: none;
  }
  .auth-input:focus {
    transform: none;
  }
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.auth-form[hidden] { display: none !important; }
.auth-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.auth-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.auth-input::placeholder { color: var(--text-muted); }
.auth-input:hover:not(:focus) {
  border-color: rgba(201, 162, 39, 0.22);
}
.auth-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
  transform: translateY(-1px);
}
.auth-submit {
  margin-top: 0.5rem;
}
.auth-tester-rail {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(100, 200, 255, 0.28);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: linear-gradient(165deg, rgba(100, 180, 255, 0.07) 0%, transparent 55%);
}
.auth-tester-rail-label {
  margin: 0 0 0.4rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(140, 200, 255, 0.85);
}
.auth-tester-login-btn {
  width: 100%;
  justify-content: center;
  border-color: rgba(100, 180, 255, 0.35) !important;
  color: #b8dcff !important;
}
.auth-tester-login-btn:hover {
  border-color: rgba(140, 210, 255, 0.55) !important;
  background: rgba(100, 180, 255, 0.1) !important;
}
.auth-tester-rail-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.auth-tester-code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
}
.auth-form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8em;
}
.auth-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9aa5' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.auth-textarea {
  min-height: 80px;
  resize: vertical;
}
.auth-file {
  padding: 0.5rem 0;
  cursor: pointer;
}
.auth-file::file-selector-button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--gold);
  font-family: inherit;
  cursor: pointer;
  margin-right: 0.75rem;
}
.auth-file-list {
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  min-height: 1.5rem;
}
.auth-file-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.auth-file-list-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-file-list-remove {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.auth-file-list-remove:hover {
  color: var(--text-primary);
  background: rgba(239, 68, 68, 0.2);
}
.auth-hint-inline {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}
.auth-age-display {
  margin: 0.35rem 0 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.auth-payment-fields {
  margin-top: 0.75rem;
}
.auth-payment-fields[hidden] { display: none !important; }
.auth-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.auth-message[hidden] { display: none !important; }
.auth-message.auth-message-success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.auth-message.auth-message-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}
.auth-message.auth-message-info {
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
}
.auth-hint {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* App shell hidden until logged in */
.app-shell[hidden] { display: none !important; }

/* ==========================================================================
   Dashboard stat cards
   ========================================================================== */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.dashboard-stat {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  transition: border-color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo);
}
.dashboard-stat:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}
.dashboard-stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.dashboard-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.dashboard-stat-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  font-family: system-ui, sans-serif;
  max-width: 14rem;
}
.admin-dashboard-revenue-toolbar {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.admin-dashboard-revenue-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}
.admin-dashboard-revenue-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.admin-dashboard-select {
  min-width: 11rem;
  max-width: 100%;
}
.admin-dashboard-custom-range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
}
.admin-dashboard-date {
  min-width: 9.5rem;
}
.admin-dashboard-date-sep {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.admin-dashboard-revenue-caption {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* Admin overview — analytics shell, KPIs, Chart.js cards */
.admin-overview-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.admin-dashboard-toolbar-enhanced {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(28, 26, 22, 0.95) 0%, rgba(14, 14, 16, 0.98) 55%, rgba(18, 16, 12, 0.92) 100%);
  border-color: rgba(201, 162, 39, 0.18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.admin-dashboard-toolbar-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(201, 162, 39, 0.12), transparent 55%);
  pointer-events: none;
}
.admin-dashboard-toolbar-head {
  position: relative;
  margin-bottom: 0.75rem;
}
.admin-dashboard-toolbar-kicker {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.admin-dashboard-toolbar-lead {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  max-width: 36rem;
}
.admin-overview-range-hint {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--text-muted);
  position: relative;
}
.admin-overview-kpis {
  margin-top: 1.35rem;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem 1.1rem;
}
.dashboard-stat--kpi {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(22, 22, 26, 0.95) 0%, rgba(10, 10, 12, 0.98) 100%);
}
.dashboard-stat--kpi::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.45), transparent);
  opacity: 0.85;
  pointer-events: none;
}
.dashboard-stat--kpi.dashboard-stat--revenue::after {
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.75), rgba(201, 162, 39, 0.35), transparent);
}
.admin-overview-charts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: 1.15rem 1.25rem;
  margin-top: 1.5rem;
}
.admin-chart-card--wide {
  grid-column: 1 / -1;
}
@media (max-width: 960px) {
  .admin-overview-charts-grid {
    grid-template-columns: 1fr;
  }
}
.admin-chart-card {
  position: relative;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(24, 24, 28, 0.96) 0%, rgba(11, 11, 13, 0.99) 100%);
  transition: border-color var(--duration-fast), box-shadow var(--duration-normal) var(--ease-out-expo);
}
.admin-chart-card:hover {
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}
.admin-chart-card__head {
  margin-bottom: 0.65rem;
}
.admin-chart-card__title {
  margin: 0 0 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}
.admin-chart-card__sub {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 28rem;
}
.admin-chart-card__canvas-wrap {
  position: relative;
  min-height: 200px;
  height: 240px;
}
.admin-chart-card__canvas-wrap--doughnut {
  max-width: 280px;
  margin: 0 auto;
  height: 220px;
  min-height: 200px;
}
.admin-chart-card__canvas-wrap--wide {
  min-height: 220px;
  height: 260px;
}
.admin-chart-card__canvas-wrap canvas {
  display: block;
  max-width: 100%;
}
.admin-overview-charts-fallback {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.approvals-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.approval-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}
.approval-card h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.approval-card p { margin: 0 0 0.35rem; font-size: 0.9rem; color: var(--text-secondary); }
.approval-card .approval-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.approval-card .approval-actions .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }
.approvals-empty { color: var(--text-muted); font-size: 0.95rem; }

/* Approved Users dashboard */
.approved-users-dashboard { margin-top: 0.5rem; }
.users-admin-category { margin-bottom: 2rem; }
.users-admin-category:last-of-type { margin-bottom: 0; }
.users-admin-category-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-accounts-list { margin-bottom: 0; }
.admin-account-row { cursor: default; }
.admin-account-row .admin-account-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
.approved-users-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.5rem; }
.approved-user-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem 1.25rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--duration-normal), border-color var(--duration-normal), box-shadow var(--duration-normal), transform var(--duration-fast);
}
.approved-user-row:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--gold-glow);
}
.approved-user-row:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--gold); }
.approved-user-row:active { transform: scale(0.99); }
.approved-user-row:hover .approved-user-row-action { opacity: 1; transform: translateX(0); }
.approved-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.approved-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-subtle);
  transition: border-color var(--duration-fast);
}
.approved-user-avatar.approved-user-avatar-active { border-color: #43b581; }
.approved-user-row:hover .approved-user-avatar { border-color: var(--gold-dim); }
.approved-user-row.approved-user-row-active:hover .approved-user-avatar { border-color: #43b581; }
.approved-user-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.approved-user-avatar-placeholder {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold);
}
.approved-user-row-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-sizing: border-box;
}
.approved-user-row-status-dot.status-dot-online { background: #43b581; }
.approved-user-row-status-dot.status-dot-offline { background: #747f8d; }
.approved-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.approved-user-name { font-weight: 600; font-size: 0.95rem; }
.approved-user-email { font-size: 0.8rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.approved-user-shop {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.approved-user-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.status-badge.status-role-inline {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-badge--tester {
  background: rgba(100, 180, 255, 0.2) !important;
  color: #9fd4ff !important;
  border: 1px solid rgba(100, 180, 255, 0.35);
}
.status-badge--tester-hint {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-muted) !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}
.approved-user-row-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-normal), transform var(--duration-normal);
  white-space: nowrap;
}
.approved-users-list { position: relative; z-index: 0; }
.approved-user-row { position: relative; z-index: 1; }
.approved-user-row:hover { z-index: 2; }
.approved-user-detail-container {
  margin-top: 1rem;
  position: relative;
  z-index: 10;
}
.approved-user-detail-container .user-profile-card {
  position: relative;
  z-index: 10;
}

/* Discord-style user profile card */
.user-profile-card.user-profile-discord {
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.user-profile-banner {
  height: 80px;
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.12) 0%, var(--bg-elevated) 35%, var(--bg-main) 100%);
  background-size: cover;
  background-position: center;
}
.user-profile-top {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
  margin-top: -44px;
  position: relative;
  flex-wrap: wrap;
}
.user-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.user-profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.user-profile-avatar.user-profile-avatar-active { border-color: #43b581; }
.user-profile-avatar.user-profile-avatar-inactive { border-color: #747f8d; }
.user-profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.user-profile-avatar-placeholder {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--gold);
}
.user-profile-status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--bg-card);
  box-sizing: border-box;
}
.user-profile-status-dot.status-dot-online { background: #43b581; }
.user-profile-status-dot.status-dot-offline { background: #747f8d; }
.user-profile-identity { flex: 1; min-width: 0; padding-bottom: 0.25rem; }
.user-profile-name { margin: 0 0 0.15rem; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
.user-profile-email { margin: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.user-profile-shop-tag {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.user-profile-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.user-profile-action-wrap { flex-shrink: 0; margin-left: auto; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.user-profile-action-wrap .edit-user-profile-btn {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
}
.user-profile-action-wrap .edit-user-profile-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  color: var(--gold);
}
.btn-profile-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast), transform var(--duration-fast);
}
.btn-profile-action:hover { transform: translateY(-1px); }
.btn-profile-action-icon { font-size: 1rem; line-height: 1; }
.btn-profile-active {
  background: linear-gradient(135deg, #43b581 0%, #3ca374 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(67, 181, 129, 0.35);
}
.btn-profile-active:hover { background: linear-gradient(135deg, #4fd18a 0%, #43b581 100%); box-shadow: 0 4px 12px rgba(67, 181, 129, 0.45); }
.btn-profile-inactive {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-profile-inactive:hover { background: rgba(255, 255, 255, 0.06); color: #e57373; border-color: rgba(244, 67, 54, 0.5); }
.user-profile-details {
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.user-profile-detail-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}
.user-profile-detail-row:last-child { border-bottom: none; }
.user-profile-detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.user-profile-detail-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}
.user-profile-detail-value a { color: var(--gold); }
.user-profile-detail-row-validids .user-profile-detail-value { margin-bottom: 0.5rem; }
.user-profile-meta-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.user-profile-meta-footer-item {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.user-profile-edit-mode .user-profile-edit-form { padding: 1rem 0; }
.user-profile-edit-title {
  font-size: 1rem;
  margin: 0 0 1rem 0;
  color: var(--gold);
}
.user-profile-edit-form .user-profile-detail-row { display: flex; flex-direction: column; gap: 0.25rem; }
.user-profile-edit-form .auth-input { width: 100%; max-width: 100%; }
.user-profile-edit-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.valid-ids-thumbnails-wrap { margin-top: 0.25rem; }
.valid-ids-thumbnails-wrap .valid-ids-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
}
.valid-ids-thumbnails-wrap .valid-id-thumb { margin: 0; width: 100%; min-width: 0; }
.valid-id-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100px;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}
.valid-id-thumb:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--gold-glow);
  transform: translateY(-2px);
}
.valid-id-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.valid-id-thumb .valid-id-thumb-name { font-size: 0.72rem; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.valid-id-view-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--bg-elevated);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.valid-id-thumb:hover .valid-id-view-label { color: var(--gold-light); background: rgba(201, 162, 39, 0.2); }
.valid-id-pdf-icon { font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.valid-ids-hint { font-size: 0.8rem; color: var(--text-muted); }
.valid-ids-section { margin-top: 0.75rem; }
.valid-ids-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.valid-id-media-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast);
}
.valid-id-media-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--gold-glow);
  transform: translateY(-2px);
}
.valid-id-media-card:hover .valid-id-media-view { background: var(--gold); color: var(--bg-deep); }
.valid-id-media-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}
.valid-id-media-name {
  font-size: 0.8rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  color: var(--text-primary);
}
.valid-id-media-view {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.valid-ids-no-preview-callout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.valid-ids-no-preview-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.15);
  border-radius: 50%;
}
.valid-ids-chips-only .valid-ids-cards { margin-top: 0; }
.valid-id-chip-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.valid-ids-no-files { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--text-secondary); }
.status-badge { font-size: 0.7rem; padding: 0.25rem 0.55rem; border-radius: 999px; font-weight: 600; }
.status-badge.status-active { background: rgba(67, 181, 129, 0.25); color: #43b581; }
.status-badge.status-inactive { background: rgba(244, 67, 54, 0.2); color: #e57373; }
.status-badge.status-role { background: rgba(201, 162, 39, 0.35); color: var(--bg-deep); border: 1px solid rgba(201, 162, 39, 0.5); }

/* Valid ID image modal */
.valid-id-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.valid-id-modal[hidden] { display: none; }
.valid-id-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.valid-id-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.valid-id-modal-content img { max-width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--radius-sm); }
.valid-id-modal-caption { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.valid-id-modal-no-preview { margin: 1rem 0 0; font-size: 0.9rem; color: var(--text-secondary); max-width: 320px; text-align: center; }
.valid-id-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.valid-id-modal-close:hover { background: var(--bg-main); }

/* Owner credential save confirmation */
.owner-save-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.owner-save-confirm-modal[hidden] { display: none; }
.owner-save-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.owner-save-confirm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(165deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.08), 0 0 40px rgba(201, 162, 39, 0.1);
}
.owner-save-confirm-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.35rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.owner-save-confirm-close:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.06); }
.owner-save-confirm-title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.owner-save-confirm-message {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.owner-save-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* ==========================================================================
   App shell & layout
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-icon-w) var(--nav-panel-w) 1fr;
  grid-template-rows: 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  transition: grid-template-columns var(--duration-normal) var(--ease-out-expo);
  --shell-icon-offset: var(--sidebar-icon-w);
}
.app-shell--icon-collapsed {
  --shell-icon-offset: 0px;
}
.app-shell > .icon-sidebar,
.app-shell > .nav-panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.app-shell > .icon-sidebar {
  overflow: visible;
}
.app-shell > .main-content {
  min-height: 0;
}

@media (min-width: 901px) {
  .app-shell--icon-collapsed {
    grid-template-columns: 0 var(--nav-panel-w) 1fr;
  }
  .app-shell--icon-collapsed .icon-sidebar {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0;
    margin: 0;
    padding: 0;
    border-right: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }
  .app-shell--nav-collapsed:not(.app-shell--icon-collapsed) {
    grid-template-columns: var(--sidebar-icon-w) 0 1fr;
  }
  .app-shell--icon-collapsed.app-shell--nav-collapsed {
    grid-template-columns: 0 0 1fr;
  }
  .app-shell--nav-collapsed .nav-panel {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0;
    margin: 0;
    padding: 0;
    border-right: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
  }
  .app-shell--nav-collapsed:not(.app-shell--icon-collapsed) .main-content {
    padding-inline-start: 2.35rem;
  }
  .app-shell--icon-collapsed:not(.app-shell--nav-collapsed) .main-content {
    padding-inline-start: 2.35rem;
  }
  .app-shell--icon-collapsed.app-shell--nav-collapsed .main-content {
    padding-inline-start: 3.15rem;
  }
  .app-shell--icon-collapsed.app-shell--nav-collapsed .icon-sidebar-recall {
    top: 40%;
  }
  .app-shell--icon-collapsed.app-shell--nav-collapsed .nav-panel-recall {
    top: 60%;
  }
}

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: var(--sidebar-icon-w) var(--nav-panel-w) 1fr; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: var(--sidebar-icon-w) 1fr; }
  .nav-panel { transform: translateX(-100%); }
  .nav-panel.is-open { transform: translateX(0); }
}

@media (max-width: 900px) {
  /* Phone-first navigation:
     - main tabs live in a fixed bottom bar
     - the section list (nav panel) becomes a bottom drawer above it */
  .app-shell { grid-template-columns: 1fr; }

  .icon-sidebar {
    flex-direction: row;
    width: 100%;
    height: auto;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    border-right: 0;
    border-top: 1px solid var(--border-subtle);
    padding: 0.5rem 0.35rem calc(0.5rem + env(safe-area-inset-bottom));
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }

  /* Match reference: no brand icon in the bottom bar */
  .sidebar-brand { display: none; }
  .icon-sidebar-collapse-desktop {
    display: none !important;
  }
  .sidebar-brand, .icon-nav, .sidebar-footer { flex-direction: row; }

  /* Ensure everything stays in a single row and scrolls horizontally. */
  .icon-sidebar > * { flex: 0 0 auto; }
  .icon-nav, .sidebar-footer { flex-direction: row; flex-wrap: nowrap; gap: 0.25rem; }
  .sidebar-footer { margin-top: 0; padding-top: 0; border-top: 0; }
  /* Hard guarantee: never wrap into a second line */
  .icon-sidebar,
  .icon-nav,
  .sidebar-footer {
    flex-wrap: nowrap !important;
  }
  /* Keep Settings + avatar pinned to the right */
  .sidebar-footer { margin-left: auto; }

  /* Profile avatar on the far right (mobile) */
  .sidebar-footer-user {
    display: flex;
    padding-top: 0;
    width: auto;
  }
  .profile-hover-wrap { min-width: 0; }
  .profile-trigger {
    width: 48px;
    height: 48px;
  }
  /* Disable the large popout on mobile; avatar acts as identity only */
  .profile-popout { display: none !important; }
  /* Profile is accessed via Settings → Profile on mobile. */

  .main-content { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Bottom drawer for sections ("second layer") */
  .nav-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: auto;
    height: min(60vh, 520px);
    z-index: 121;
    border-right: 0;
    border-top: 1px solid var(--border-subtle);
    border-left: 0;
    box-shadow: 0 -18px 36px rgba(0,0,0,0.55);
    border-radius: 16px 16px 0 0;
    transform: translateY(110%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
  }
  .nav-panel.is-open { transform: translateY(0); }

  /* The top header stays visible like a sheet handle. */
  .nav-panel-header {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  }
}

/* ==========================================================================
   Entrance overlay — cinematic load
   ========================================================================== */
.entrance-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}
.entrance-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}
#intro-overlay {
  z-index: 10001;
}
.entrance-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--gold-glow) 0%, transparent 60%);
  opacity: 0;
  animation: entranceGlow 1.2s var(--ease-out-expo) 0.3s forwards;
}
.entrance-logo {
  position: relative;
  z-index: 1;
  text-align: center;
  opacity: 0;
  transform: scale(0.92);
  animation: entranceLogo 1s var(--ease-out-expo) 0.4s forwards;
}
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-primary);
  display: block;
  max-width: 90vw;
  line-height: 1.3;
}
.logo-line {
  display: block;
  width: 0;
  height: 2px;
  margin: 0.75rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: entranceLine 0.8s var(--ease-out-expo) 1s forwards;
}

/* ==========================================================================
   Trophy Shop — My Orders (reseller) — magazine dashboard
   ========================================================================== */
.my-orders-root.my-orders-dashboard {
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, var(--bg-card) 45%);
}
.my-orders-list-root {
  min-height: 0;
}
.my-orders-toolbar[hidden] {
  display: none !important;
}
.my-orders-stats {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.my-orders-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1fr) auto;
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 1.15rem;
}
@media (max-width: 900px) {
  .my-orders-toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }
  .my-orders-field--search {
    grid-column: 1 / -1;
  }
  .my-orders-field--actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.my-orders-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.my-orders-label--spacer {
  visibility: hidden;
}
.my-orders-search,
.my-orders-date,
.my-orders-sort {
  width: 100%;
  min-height: 2.35rem;
  font-size: 0.85rem;
}
.my-orders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.6rem;
  margin-top: 0.15rem;
}
.my-orders-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.my-orders-chip:hover {
  color: var(--text-secondary);
  border-color: rgba(201, 162, 39, 0.35);
}
.my-orders-chip--active {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}
.section-title--mag-my-orders {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.my-orders-lede {
  max-width: 40rem;
  line-height: 1.5;
  font-size: 0.92rem;
}
.my-orders-section-header {
  position: relative;
  padding-bottom: 0.15rem;
}
.my-orders-section-header::after {
  content: '';
  display: block;
  margin-top: 1.15rem;
  max-width: 10rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 39, 0.15) 70%, transparent 100%);
  border-radius: 2px;
}

.my-orders-empty,
.my-orders-empty-copy {
  color: var(--text-secondary);
}
.my-orders-empty--login {
  margin: 0;
  padding: 0.5rem 0;
}
.my-orders-empty-card {
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.2);
}
.my-orders-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.my-orders-empty-filter {
  text-align: center;
  padding: 1.5rem 1rem;
}
.my-orders-empty-filter .my-orders-empty {
  margin: 0 0 0.75rem;
}

/* My Orders — dense list: no hero images (fast with many orders); details for breakdown + receipts */
.my-orders-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0;
}
.my-order-card--compact {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left-width: 3px;
  background: rgba(0, 0, 0, 0.2);
  text-align: start;
  transition: border-color 0.18s ease, box-shadow 0.2s ease;
}
.my-order-card--compact.my-order-card--theme-gold {
  border-left-color: rgba(201, 162, 39, 0.5);
}
.my-order-card--compact.my-order-card--theme-moss {
  border-left-color: rgba(74, 222, 128, 0.35);
}
.my-order-card--compact.my-order-card--theme-ember {
  border-left-color: rgba(248, 113, 113, 0.42);
}
.my-order-card--compact.my-order-card--theme-amber {
  border-left-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.04);
}
.my-order-card--compact:hover {
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}
.my-order-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem 0.95rem 0.5rem;
}
.my-order-compact-customer {
  margin: 0.2rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  word-break: break-all;
}
.my-order-owner-remove {
  flex: 0 0 auto;
  font-size: 0.68rem !important;
  padding: 0.28rem 0.55rem !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: rgba(252, 165, 165, 0.95) !important;
}
.my-order-owner-remove:hover {
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.08) !important;
}
.my-order-history-delete {
  flex: 0 0 auto;
  font-size: 0.68rem !important;
  padding: 0.28rem 0.55rem !important;
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: rgba(252, 165, 165, 0.95) !important;
}
.my-order-history-delete:hover {
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.08) !important;
}
.my-orders-history-bulk {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.35rem;
}
.my-orders-delete-all-history {
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: rgba(252, 165, 165, 0.95) !important;
}
.my-orders-delete-all-history:hover {
  border-color: rgba(248, 113, 113, 0.55) !important;
  color: #fecaca !important;
  background: rgba(248, 113, 113, 0.08) !important;
}
.my-order-history-strip {
  margin: 0;
  padding: 0.45rem 0.95rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-secondary);
  background: rgba(201, 162, 39, 0.08);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}
.my-order-card--history.my-order-card--compact:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}
.my-order-compact-head__id-block {
  flex: 1 1 min(100%, 11rem);
  min-width: 0;
}
.my-order-compact-kicker {
  display: block;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.08rem;
}
.my-order-compact-id {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: ui-monospace, 'Segoe UI Mono', 'Cascadia Code', monospace;
  line-height: 1.25;
  color: var(--text-primary);
  word-break: break-all;
}
.my-order-compact-when {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex: 1 1 auto;
  min-width: 0;
}
.my-order-compact-head .my-order-status-pill {
  flex: 0 0 auto;
}
.my-order-compact-amt-block {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
}
.my-order-compact-amt-label {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.my-order-compact-amt {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.my-order-compact-details {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.my-order-compact-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.65rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  transition: background 0.15s ease, color 0.15s ease;
}
.my-order-compact-summary:hover {
  background: rgba(201, 162, 39, 0.07);
  color: var(--text-primary);
}
.my-order-compact-summary::-webkit-details-marker {
  display: none;
}
.my-order-compact-summary__lines {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.my-order-compact-summary__hint {
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.my-order-compact-summary__hint::after {
  content: '▾';
  font-size: 0.6rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}
.my-order-compact-details[open] .my-order-compact-summary__hint::after {
  transform: rotate(180deg);
}
.my-order-compact-panel {
  padding: 0 0.8rem 0.65rem;
}
@media (prefers-reduced-motion: no-preference) {
  .my-order-compact-panel {
    animation: myOrderCompactPanelIn 0.2s var(--ease-out-expo);
  }
}
@keyframes myOrderCompactPanelIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.my-order-compact-teaser {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.my-order-compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.my-order-btn {
  transition: transform 0.12s ease, filter 0.15s ease;
}
.my-order-btn:active {
  transform: scale(0.98);
}

.my-order-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.my-order-status-new,
.my-order-status-processing,
.my-order-status-job_created {
  border-color: rgba(130, 160, 200, 0.35);
  background: rgba(80, 120, 180, 0.1);
  color: #b8d4f0;
}
.my-order-status-completed {
  border-color: rgba(100, 220, 160, 0.4);
  background: rgba(100, 220, 160, 0.1);
  color: #86efac;
}
.my-order-status-declined {
  border-color: rgba(240, 90, 90, 0.45);
  background: rgba(240, 90, 90, 0.1);
  color: #fca5a5;
}
.my-order-status-for_payment {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
}

.my-order-deposit {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
}
.my-order-deposit-lead {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text-primary);
}
.my-order-deposit-hint {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.my-order-deposit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.my-order-deposit-missing {
  margin: 0;
  font-size: 0.72rem;
  color: #fca5a5;
}
.my-order-deposit-missing code {
  font-size: 0.68rem;
}
.my-order-deposit-qr {
  margin: 0.35rem 0 0.5rem;
}
.my-order-deposit-qr-img {
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #fff;
}
.my-order-deposit-sim {
  margin-top: 0.25rem;
  font-size: 0.65rem !important;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .my-order-compact-panel {
    animation: none !important;
  }
}
@media (max-width: 720px) {
  .my-order-compact-head .my-order-compact-amt-block {
    width: 100%;
    margin-left: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.15rem;
  }
}

/* Reseller receipt editor */
.agp-reseller-receipt-form { margin-top: 1rem; }
.agp-reseller-receipt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.agp-reseller-receipt-grid > * { min-width: 0; }
.agp-reseller-receipt-field--span2 { grid-column: 1 / -1; }
.agp-reseller-receipt-logo-preview { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; padding: 0.6rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); background: rgba(255,255,255,0.02); color: var(--text-secondary); font-size: 0.9rem; }
.agp-reseller-receipt-logo-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.2); }
.agp-reseller-receipt-form .auth-input { width: 100%; max-width: 100%; min-width: 0; }
.agp-reseller-receipt-form input[type='file'].auth-input { overflow: hidden; text-overflow: ellipsis; }
.agp-reseller-receipt-lines { margin-top: 1rem; }
.agp-reseller-receipt-lines-title { margin: 0 0 0.5rem; font-size: 1rem; color: var(--text-primary); }
.agp-reseller-receipt-line-list { display: grid; gap: 0.75rem; }
.agp-reseller-receipt-line { padding: 0.85rem; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); background: rgba(255,255,255,0.02); }
.agp-reseller-receipt-line-head { display: flex; gap: 0.65rem; align-items: flex-start; }
.agp-reseller-receipt-line-idx { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(201,162,39,0.12); color: var(--gold); border: 1px solid rgba(201,162,39,0.25); flex: 0 0 auto; }
.agp-reseller-receipt-line-name { color: var(--text-primary); font-size: 0.95rem; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.agp-reseller-receipt-line-fields { margin-top: 0.75rem; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.75rem; }
.agp-reseller-receipt-line-fields > * { min-width: 0; }

@media (max-width: 900px) {
  .agp-reseller-receipt-grid { grid-template-columns: 1fr; }
  .agp-reseller-receipt-line-fields { grid-template-columns: 1fr; }
  .my-order-card-body { align-items: flex-start; }
  .my-order-card-actions { width: 100%; justify-content: flex-start; }
}
@keyframes entranceGlow { to { opacity: 1; } }
@keyframes entranceLogo { to { opacity: 1; transform: scale(1); } }
@keyframes entranceLine { to { width: 120px; } }

/* ==========================================================================
   Icon sidebar (far left)
   ========================================================================== */
.icon-sidebar {
  background: var(--bg-main);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.5rem;
}
.sidebar-brand {
  margin-bottom: 0.5rem;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo);
}
.brand-icon svg { width: 24px; height: 24px; }
.icon-sidebar:hover .brand-icon { color: var(--gold-light); }

.icon-sidebar-collapse-desktop {
  display: none;
  width: 36px;
  height: 32px;
  margin: 0 0 0.35rem;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.icon-sidebar-collapse-desktop:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.05);
}
.icon-sidebar-collapse-desktop:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (min-width: 901px) {
  .icon-sidebar-collapse-desktop {
    display: flex;
  }
}

.icon-nav, .sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.icon-item {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
/* Activity panel: visible only when .is-admin is on app shell (admin + owner) */
.icon-item.icon-sidebar--admin-owner-only {
  display: none;
}
.app-shell.is-admin .icon-item.icon-sidebar--admin-owner-only {
  display: flex;
}
/* Test order (shared Place an order form): owner only */
.icon-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transform: scale(1.05);
}
.icon-item.active {
  color: var(--gold);
}
.icon-item.active .icon-wrap {
  filter: drop-shadow(0 0 8px var(--gold-glow));
}
.icon-item .active-indicator {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gold);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 10px var(--gold-glow);
  transition: height var(--duration-normal) var(--ease-out-expo);
}
.icon-item.active .active-indicator {
  height: 24px;
  animation: goldPulse 2.5s ease-in-out infinite;
}
@keyframes goldPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--gold-glow); }
  50% { opacity: 0.85; box-shadow: 0 0 16px var(--gold-glow-strong); }
}
.icon-wrap { display: flex; }
.icon-wrap svg { width: 22px; height: 22px; }
.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}
.sidebar-footer-user {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.5rem;
}
.profile-hover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.profile-trigger {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.profile-trigger:hover {
  background: rgba(255, 255, 255, 0.06);
}
.profile-trigger .user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-trigger .user-avatar .profile-initial {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}
.profile-trigger .user-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.profile-trigger .user-status.status-online { background: #43b581; box-shadow: 0 0 8px #43b581; }
/* Discord-style profile popout — matches reference UI and format */
.profile-popout {
  position: absolute;
  bottom: 0;
  left: 100%;
  transform: translateX(12px);
  width: 340px;
  background: #111214;
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 162, 39, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
  overflow: hidden;
  z-index: 100;
}
.profile-hover-wrap:hover .profile-popout,
.profile-hover-wrap.is-popout-open .profile-popout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.profile-popout-banner {
  height: 72px;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(201, 162, 39, 0.18) 40%, var(--bg-main) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-popout-banner-title {
  display: none;
}
.profile-popout-body {
  position: relative;
  padding: 16px 16px 20px;
  padding-top: 52px;
  background: #111214;
}
.profile-popout-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0;
  min-height: 0;
}
/* Avatar: bottom-left of banner, straddles banner/body line (reference); slightly smaller, exact fit */
.profile-popout-avatar-wrap {
  position: absolute;
  top: -44px;
  left: 16px;
  width: 88px;
  height: 88px;
}
.profile-popout-avatar-wrap .profile-popout-avatar,
.profile-popout-avatar-wrap .user-avatar.profile-popout-avatar {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px;
  min-height: 88px;
  border-radius: 50%;
  border: 6px solid #111214;
  box-sizing: border-box;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profile-popout-avatar .profile-initial {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(201, 162, 39, 0.4);
}
.profile-popout-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Status dot: bottom-right of avatar, on top of border */
.profile-popout-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border: 3px solid #111214;
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow: 0 0 8px rgba(67, 181, 129, 0.6);
}
.profile-popout-status.status-online { background: #43b581; }
.profile-popout-badges {
  position: absolute;
  top: -20px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  max-width: min(280px, 72vw);
  justify-content: flex-end;
  padding: 0.35rem 0.6rem;
  background: rgba(30, 30, 35, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold-dim);
}
.profile-popout-name {
  margin: 6px 0 0.2rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-popout-shop-name {
  margin: 0 0 0.35rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  line-height: 1.35;
  word-break: break-word;
}
.profile-popout-username {
  margin: 0 0 0.75rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-popout-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 0 0 0.75rem 0;
}
.profile-popout-section {
  margin-bottom: 0.75rem;
}
.profile-popout-section:last-of-type { margin-bottom: 0; }
.profile-popout-section-label {
  margin: 0 0 0.35rem 0;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.profile-popout-about {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.profile-popout-activity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.profile-popout-activity-icon {
  font-size: 1rem;
  color: var(--gold);
}
.profile-popout-activity-text {
  font-size: 0.85rem;
  color: var(--text-primary);
}
.profile-popout-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.profile-popout-btn-edit {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(180deg, #8b3a3a 0%, #6b2a2a 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.profile-popout-btn-edit:hover {
  background: linear-gradient(180deg, #9e4444 0%, #8b3a3a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.profile-dropup-item {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast);
  font-family: inherit;
}
.profile-dropup-item:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}
.profile-dropup-item.auth-logout {
  margin-top: 0.15rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}
/* (Removed) Admin Panel padlock icon button */

/* Settings (Profit Share): resellers + owner only — hide gear for admin accounts */
.app-shell.hide-reseller-settings .icon-sidebar .icon-item[data-panel='settings'] {
  display: none !important;
}

/* ==========================================================================
   Secondary nav panel (sections / channels)
   ========================================================================== */
.nav-panel {
  background: var(--bg-panel);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  min-height: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  width: var(--nav-panel-w);
}
.nav-panel-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.nav-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.nav-panel-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 0;
}
.nav-panel-collapse-desktop {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-panel-collapse-desktop:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}
.nav-panel-collapse-desktop:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (min-width: 901px) {
  .nav-panel-collapse-desktop {
    display: flex;
  }
}
.nav-panel-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast), background var(--duration-fast);
}
.nav-panel-toggle:hover { color: var(--gold); background: rgba(255,255,255,0.04); }
.nav-panel-recall,
.icon-sidebar-recall {
  display: none;
}
@media (min-width: 901px) {
  .nav-panel-recall {
    display: flex;
    position: fixed;
    top: 50%;
    left: var(--shell-icon-offset, var(--sidebar-icon-w));
    transform: translateY(-50%);
    z-index: 90;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 2rem;
    min-height: 5.75rem;
    padding: 0.5rem 0.12rem;
    margin: 0;
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(10, 10, 12, 0.94);
    color: var(--gold-light);
    cursor: pointer;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.38);
    font: inherit;
    backdrop-filter: blur(8px);
    transition:
      border-color var(--duration-fast),
      background var(--duration-fast),
      color var(--duration-fast),
      top var(--duration-normal) var(--ease-out-expo);
  }
  .nav-panel-recall:hover {
    border-color: rgba(201, 162, 39, 0.65);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
  }
  .nav-panel-recall:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  .nav-panel-recall__chev {
    font-size: 1.12rem;
    line-height: 1;
    font-weight: 300;
  }
  .nav-panel-recall__text {
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
  }
  .nav-panel-recall[hidden] {
    display: none !important;
  }

  .icon-sidebar-recall {
    display: flex;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 91;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    width: 2rem;
    min-height: 5.75rem;
    padding: 0.5rem 0.12rem;
    margin: 0;
    border: 1px solid rgba(201, 162, 39, 0.42);
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(10, 10, 12, 0.94);
    color: var(--gold-light);
    cursor: pointer;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.38);
    font: inherit;
    backdrop-filter: blur(8px);
    transition:
      border-color var(--duration-fast),
      background var(--duration-fast),
      color var(--duration-fast),
      top var(--duration-normal) var(--ease-out-expo);
  }
  .icon-sidebar-recall:hover {
    border-color: rgba(201, 162, 39, 0.65);
    color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
  }
  .icon-sidebar-recall:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
  }
  .icon-sidebar-recall__chev {
    font-size: 1.12rem;
    line-height: 1;
    font-weight: 300;
  }
  .icon-sidebar-recall__text {
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
  }
  .icon-sidebar-recall[hidden] {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .nav-panel { position: fixed; left: var(--shell-icon-offset, var(--sidebar-icon-w)); top: 0; bottom: 0; z-index: 100; box-shadow: 4px 0 24px rgba(0,0,0,0.4); }
  .nav-panel-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-panel-toggle svg { width: 20px; height: 20px; }
}

.nav-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}
.nav-group {
  padding: 0 0.75rem 1rem;
}
.nav-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0.75rem 0.5rem;
  margin-bottom: 0.25rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: color var(--duration-fast), background var(--duration-fast), padding-left var(--duration-normal);
  text-align: left;
}
.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  padding-left: 1rem;
}
.nav-item.active {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border-left: 2px solid transparent;
  border-left-color: var(--gold);
  padding-left: calc(0.75rem - 2px);
}
.nav-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-width: 2.25rem;
  font-size: 0.65rem;
  color: inherit;
  opacity: 0.9;
}

/* Section identity icon (no dot, no circle background) */
.nav-item-icon svg {
  width: 18px;
  height: 18px;
}
.nav-item-ident-glyph {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.95;
}
.nav-item.active .nav-item-icon {
  color: var(--gold);
  opacity: 1;
}

/* ==========================================================================
   Trophy Shop (explore panel) — premium catalog UI
   ========================================================================== */
.trophy-shop-section.active {
  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--bg-main);
}
.trophy-shop-hero {
  position: relative;
  margin: -0.5rem -2rem 2rem;
  padding: 2rem 2rem 2.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  overflow: hidden;
}
@media (max-width: 900px) {
  .trophy-shop-hero { margin-left: -1.25rem; margin-right: -1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
}
.trophy-shop-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 20% 30%, rgba(201, 162, 39, 0.15), transparent 50%),
    radial-gradient(ellipse 50% 60% at 85% 70%, rgba(201, 162, 39, 0.08), transparent 45%);
  pointer-events: none;
}
.trophy-shop-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.trophy-shop-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.trophy-shop-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.25);
}
.trophy-shop-tagline {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36rem;
}
.trophy-shop-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 520px;
  padding: 0.55rem 0.65rem 0.55rem 0.85rem;
  background: #060608;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 8px 32px rgba(0, 0, 0, 0.45);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.trophy-shop-search-bar:focus-within {
  border-color: rgba(201, 162, 39, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(201, 162, 39, 0.2),
    0 0 24px rgba(201, 162, 39, 0.12);
}
.trophy-shop-search-caret {
  display: inline-block;
  width: 2px;
  height: 1.1rem;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 1px;
  flex-shrink: 0;
  animation: trophyShopCaret 1.1s steps(1, end) infinite;
}
@keyframes trophyShopCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}
@media (prefers-reduced-motion: reduce) {
  .trophy-shop-search-caret { animation: none; opacity: 1; }
}
.trophy-shop-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}
.trophy-shop-search-input::placeholder {
  color: rgba(201, 162, 39, 0.35);
}
.trophy-shop-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.trophy-shop-search-btn:hover {
  background: rgba(201, 162, 39, 0.22);
  color: var(--gold-light);
}
.trophy-shop-search-btn:active { transform: scale(0.96); }
.trophy-shop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.trophy-shop-chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--text-muted);
  background: rgba(201, 162, 39, 0.06);
  cursor: pointer;
  font-family: inherit;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    color var(--duration-fast),
    box-shadow var(--duration-fast);
}
.trophy-shop-chip:hover {
  color: var(--text-secondary);
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}
.trophy-shop-chip.is-active {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.18);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.12);
}
.trophy-shop-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}
.trophy-shop-section-header .section-title {
  color: var(--text-primary);
}
.trophy-shop-section-header .section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}
.trophy-shop-section-header .section-subtitle {
  color: var(--text-secondary);
}

/* Trophy Shop — magazine layout + sticky cart rail */
.trophy-shop-mag-dek {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.trophy-shop-section-header--mag .section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.trophy-shop-section-header--mag .section-subtitle {
  max-width: 38rem;
}
.trophy-shop-mag-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1.75rem 2rem;
  align-items: start;
  margin-top: 1.25rem;
}
.trophy-shop-mag-main {
  min-width: 0;
}
.trophy-shop-cart-rail {
  position: relative;
}
.trophy-shop-cart-rail-inner {
  position: sticky;
  top: calc(var(--nav-h, 56px) + 0.75rem);
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(201, 162, 39, 0.22);
  background:
    linear-gradient(160deg, rgba(201, 162, 39, 0.07) 0%, transparent 42%),
    var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.trophy-shop-cart-rail-eyebrow {
  margin: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.trophy-shop-cart-rail-title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  color: var(--gold-light);
  line-height: 1.2;
}
.trophy-shop-cart-rail-lead {
  margin: 0.5rem 0 1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.trophy-shop-sidebar-cart-empty {
  text-align: center;
  padding: 1rem 0.5rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(201, 162, 39, 0.2);
  background: rgba(0, 0, 0, 0.2);
}
.trophy-shop-sidebar-cart-empty[hidden] {
  display: none !important;
}
.trophy-shop-sidebar-cart-empty-icon {
  display: block;
  font-size: 1.5rem;
  color: rgba(201, 162, 39, 0.35);
  margin-bottom: 0.35rem;
}
.trophy-shop-sidebar-cart-empty-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trophy-shop-sidebar-cart-empty-copy {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.trophy-shop-sidebar-cart-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.5rem;
}
.trophy-shop-sidebar-cart-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trophy-shop-sidebar-cart-list {
  max-height: min(42vh, 280px);
  overflow-y: auto;
  margin: 0 0 0.65rem;
  padding: 0;
  list-style: none;
  scrollbar-width: thin;
}
.trophy-shop-sidebar-cart-list .trophy-order-cart-item {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trophy-shop-sidebar-cart-list .trophy-order-cart-item:last-child {
  border-bottom: none;
}
.trophy-shop-sidebar-cart-list .trophy-order-cart-item-meta {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.trophy-shop-sidebar-cart-totals {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(201, 162, 39, 0.15);
}
.trophy-shop-cart-rail-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.9;
}
.trophy-catalog-grid--mag {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.5rem 1.35rem;
}
@media (min-width: 1100px) {
  .trophy-catalog-grid--mag {
    grid-template-columns: 1.15fr 0.85fr;
    grid-auto-rows: minmax(180px, auto);
  }
  .trophy-catalog-grid--mag .trophy-catalog-card--mag-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    min-height: 280px;
  }
  .trophy-catalog-grid--mag .trophy-catalog-card--mag-featured .trophy-catalog-card-media {
    aspect-ratio: auto;
    min-height: 220px;
  }
  .trophy-catalog-grid--mag .trophy-catalog-card--mag-featured .trophy-catalog-card-body {
    justify-content: center;
    padding: 1.35rem 1.5rem;
  }
}
.trophy-catalog-card--mag-featured {
  border-color: rgba(201, 162, 39, 0.38);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.08), 0 16px 48px rgba(0, 0, 0, 0.4);
}
.trophy-catalog-card--mag-featured::before {
  content: 'Spotlight';
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
  pointer-events: none;
}
@media (max-width: 960px) {
  .trophy-shop-mag-wrap {
    grid-template-columns: 1fr;
  }
  .trophy-shop-cart-rail-inner {
    position: relative;
    top: auto;
  }
}

/* ========== Trophy Shop — Price calculator (premium UI) ========== */
.trophy-calc-section.active {
  background:
    radial-gradient(ellipse 90% 50% at 50% -20%, rgba(201, 162, 39, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(201, 162, 39, 0.05), transparent 45%),
    var(--bg-main);
}
.trophy-calc-hero-head {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}
.trophy-calc-page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.trophy-calc-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.7);
  animation: trophy-calc-pulse 2.2s ease-in-out infinite;
}
@keyframes trophy-calc-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}
.trophy-calc-page-title.section-title {
  margin-bottom: 0.5rem;
}
.trophy-calc-hero-head .section-title::after {
  margin-left: auto;
  margin-right: auto;
}
.trophy-calc-page-sub.section-subtitle {
  margin-left: auto;
  margin-right: auto;
  max-width: 32rem;
  line-height: 1.55;
}
.trophy-calculator-stage {
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.25rem 1rem;
}
.trophy-calculator-ambient {
  position: absolute;
  inset: -12% -8% auto;
  height: 55%;
  background: radial-gradient(ellipse closest-side, rgba(201, 162, 39, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}
.trophy-calculator-stage .trophy-calculator {
  position: relative;
  z-index: 1;
}

/* ========== Trophy Shop — Order (premium studio preview + motion) ========== */
.trophy-order-section.active {
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(201, 162, 39, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 30%, rgba(100, 180, 255, 0.06), transparent 45%),
    radial-gradient(ellipse 75% 45% at 15% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--bg-main);
}
.trophy-order-page-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.trophy-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.75rem;
}
.trophy-order-layout--unified {
  max-width: min(100%, 76rem);
  margin-left: auto;
  margin-right: auto;
}

/* —— Order page: magazine masthead + editorial measure —— */
.trophy-order-masthead .section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.trophy-order-masthead .section-subtitle {
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.trophy-order-testbench-actions {
  margin-top: 0.85rem;
}
.trophy-order-testbench-notify {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201, 162, 39, 0.22);
}
.trophy-order-testbench-hint {
  margin: 0 0 0.65rem;
  max-width: 46rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.trophy-order-testbench-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}
.trophy-order-test-mount {
  margin-top: 0.35rem;
}
.trophy-order-form--magazine {
  padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.15rem, 2.5vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 18px;
}
.trophy-order-form--magazine .trophy-order-form-section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
  line-height: 1.3;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.18);
  padding-bottom: 0.75rem;
}
.trophy-order-form--magazine .trophy-order-form-section-hint {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trophy-order-form--magazine .trophy-order-step1-fields .trophy-order-subsection {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.26) 100%);
}
.trophy-order-form--magazine .trophy-order-step1-fields .trophy-order-subsection:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

/* Step 1: form fields + live preview side by side */
.trophy-order-step1-with-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17.5rem, min(32vw, 28rem));
  gap: 1.35rem 2rem;
  /* start = right column is only as tall as its content so sticky can pin the whole studio rail */
  align-items: start;
  overflow: visible;
}
@media (min-width: 75rem) {
  .trophy-order-step1-with-preview {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, min(30vw, 30rem));
    gap: 1.5rem 2.25rem;
  }
}
.trophy-order-step1-fields {
  min-width: 0;
}
.trophy-order-step1-preview-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  /* Entire studio column stays fixed in the viewport while the left config scrolls */
  position: sticky;
  top: 1rem;
  align-self: start;
  z-index: 2;
}
/* Notes under preview — natural height (no stretched grid cell) */
.trophy-order-step1-preview-col .trophy-order-subsection--under-preview {
  min-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.trophy-order-step1-preview-col .trophy-order-subsection--under-preview:hover {
  transform: none;
  box-shadow: none;
}
.trophy-order-step1-preview-col .trophy-order-subsection--under-preview .trophy-order-subsection-title {
  margin-bottom: 0;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  opacity: 0.95;
}
.trophy-order-step1-preview-col .trophy-order-step1-notes {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-left: 3px solid rgba(201, 162, 39, 0.55);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.09) 0%, rgba(0, 0, 0, 0.32) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.trophy-order-step1-preview-col .trophy-order-step1-notes.trophy-order-panel:hover {
  transform: none;
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 20px 52px rgba(0, 0, 0, 0.32);
}
.trophy-order-step1-preview-col .trophy-order-textarea {
  flex: 1 1 auto;
  min-height: 12rem;
  resize: vertical;
  line-height: 1.6;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.trophy-order-step1-preview-col .trophy-order-textarea:focus {
  transform: none;
}
.trophy-order-step1-preview-col .trophy-order-textarea:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
@media (min-width: 52rem) {
  .trophy-order-step1-preview-col .trophy-order-textarea {
    min-height: min(18rem, 42vh);
  }
}
/* Validation: warm amber ring (less harsh than red on dark UI) */
.trophy-order-step1-preview-col .trophy-order-textarea.trophy-order-input--invalid,
.trophy-order-step1-preview-col .trophy-order-step1-notes.trophy-order-field--error {
  border-color: rgba(251, 191, 36, 0.55) !important;
  box-shadow:
    0 0 0 2px rgba(251, 191, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.trophy-order-subsection--notes {
  margin-top: 0.25rem;
}
.trophy-order-step1-fields .trophy-order-step1-notes {
  margin: 0 !important;
}
.trophy-order-step1-notes {
  margin: 0 !important;
  padding: 0.85rem 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid rgba(100, 180, 255, 0.45);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.trophy-order-step1-notes.trophy-order-field--error,
.trophy-order-design-refs-field.trophy-order-field--error,
.trophy-order-deadline-field.trophy-order-field--error {
  border-color: rgba(248, 113, 113, 0.55);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}
.trophy-order-deadline-field.trophy-order-field--error .trophy-order-date-picker__open {
  border-color: rgba(248, 113, 113, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}
/* Cart — ship-by deadline: native calendar + long month display */
.trophy-order-deadline-field {
  width: 100%;
  max-width: 100%;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.06) 0%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.trophy-order-deadline-field:hover {
  border-color: rgba(201, 162, 39, 0.28);
}
.trophy-order-deadline-lead {
  margin: 0 0 0.65rem !important;
  font-size: 0.74rem;
  line-height: 1.45;
}
.trophy-order-deadline-footnote {
  margin: 0.65rem 0 0 !important;
}
.trophy-order-date-picker {
  position: relative;
  display: block;
  width: 100%;
}
.trophy-order-input--date-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.trophy-order-date-picker__open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.15rem;
  padding: 0.78rem 1rem 0.78rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.trophy-order-date-picker__open:hover {
  border-color: rgba(201, 162, 39, 0.5);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.12);
  background: rgba(201, 162, 39, 0.07);
}
.trophy-order-date-picker__open:active {
  transform: scale(0.995);
}
.trophy-order-date-picker__open:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.trophy-order-date-picker__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  flex: 1;
  min-width: 0;
}
.trophy-order-date-picker__value.is-placeholder {
  font-weight: 500;
  color: var(--text-muted);
}
.trophy-order-date-picker__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  opacity: 0.92;
}
.trophy-order-input--invalid,
.trophy-order-textarea.trophy-order-input--invalid,
.trophy-order-select.trophy-order-input--invalid {
  border-color: rgba(248, 113, 113, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.45);
}
.trophy-order-design-refs-field.trophy-order-field--error .trophy-order-file-input {
  outline: 2px solid rgba(248, 113, 113, 0.65);
  outline-offset: 2px;
}
.trophy-order-cart-item--invalid {
  border-color: rgba(248, 113, 113, 0.55) !important;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.35);
}
.trophy-order-step1-notes .trophy-order-label {
  margin-bottom: 0.35rem;
}
.trophy-order-step1-notes-tax-hint {
  margin: 0 0 0.6rem;
}
.trophy-order-step1-preview-col .trophy-order-step1-notes-tax-hint {
  font-size: 0.7rem;
  line-height: 1.55;
  opacity: 0.92;
}
.trophy-order-step1-footer-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.05rem;
  margin-top: 1rem;
  padding-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trophy-order-form--magazine .trophy-order-step1-footer-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
  gap: 1.2rem;
}
.trophy-order-form--magazine .trophy-order-step1-footer-bar--compact {
  margin-top: 0.85rem;
  padding-top: 1rem;
  gap: 0.65rem;
}
.trophy-order-form--magazine .trophy-order-unity-below-qty {
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.trophy-order-form--magazine .trophy-order-checkout-hint {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.trophy-order-form--magazine .trophy-order-select:focus,
.trophy-order-form--magazine .trophy-order-input:focus {
  transform: none;
}
@media (min-width: 48rem) {
  .trophy-order-step1-footer-bar:not(.trophy-order-step1-footer-bar--compact) {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: 1.2rem 1.65rem;
    align-items: stretch;
  }
}
.trophy-order-step1-footer-bar--compact {
  grid-template-columns: 1fr;
}
.trophy-order-step1-footer-bar--compact .trophy-order-step1-add {
  margin-top: 0;
}
.trophy-order-step1-footer-bar .trophy-order-step1-totals {
  margin-top: 0;
  min-width: 0;
  flex: 1;
  justify-content: flex-start;
}
.trophy-order-step1-footer-bar .trophy-order-estimate--step1 {
  flex: 1 1 auto;
}
.trophy-order-step1-footer-bar .trophy-order-estimate-caption {
  max-width: none;
}
.trophy-order-step1-qty-bar {
  margin-top: 0;
  max-width: none;
}
.trophy-order-step1-qty-card {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 32px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trophy-order-step1-qty-card:hover {
  border-color: rgba(201, 162, 39, 0.48);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 40px rgba(0, 0, 0, 0.28);
}
.trophy-order-step1-qty-card:focus-within {
  border-color: rgba(201, 162, 39, 0.6);
  box-shadow:
    0 0 0 2px rgba(201, 162, 39, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.trophy-order-step1-qty-hint {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.trophy-order-input--qty {
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
  padding: 0.72rem 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.trophy-order-step1-totals {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}
.trophy-order-step1-add {
  margin-top: 0.15rem;
}
.trophy-order-step1-add .trophy-order-add-line--step1 {
  width: 100%;
  max-width: none;
  justify-content: center;
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.trophy-order-step1-preview-col .trophy-order-preview {
  /* Column is sticky; inner card stays normal flow (no nested sticky) */
  position: relative;
  top: auto;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 16px;
}
/* 1:1 Live studio frame — trophy SVG centered inside square stage */
.trophy-order-step1-preview-col .trophy-order-preview-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  width: calc(100% - 1.7rem);
  /* Keep a real box: min-height:0 was overriding base 300px and could collapse the SVG to zero height in flex/grid. */
  min-height: 240px;
  max-height: min(72vw, 28rem);
  margin: 0 auto 0.65rem;
  border-radius: 14px;
  /* Don’t clip drop-shadows on the trophy SVG */
  overflow: visible;
}
.trophy-order-step1-preview-col .trophy-order-preview-stage .trophy-order-svg-3d {
  flex: 0 0 auto;
  width: min(78%, 220px);
  min-width: 150px;
  max-width: min(78%, 220px);
  max-height: 88%;
  margin: 0;
  padding: 0.35rem 0.25rem 0.5rem;
  z-index: 3;
}
.trophy-order-step1-preview-col .trophy-order-preview-stage .trophy-order-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
}
/* Spec strip: horizontal chips under square */
.trophy-order-step1-preview-col .trophy-order-legend {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.25rem 1rem 0.35rem;
  justify-content: center;
}
.trophy-order-step1-preview-col .trophy-order-legend li {
  flex: 1 1 auto;
  min-width: 5.25rem;
  max-width: 10rem;
  padding: 0.42rem 0.55rem;
  font-size: 0.72rem;
  cursor: default;
}
.trophy-order-step1-preview-col .trophy-preview-sample-disclaimer {
  margin: 0 0.85rem 0.9rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.7rem;
  line-height: 1.55;
  text-align: left;
  font-style: italic;
  border-radius: 10px;
  border-color: rgba(201, 162, 39, 0.25);
  background: rgba(0, 0, 0, 0.25);
}
.trophy-order-preview--magazine .trophy-order-preview-header {
  padding: 1rem 1.15rem 0.75rem;
}
.trophy-order-preview--magazine .trophy-order-preview-title {
  font-size: 1.2rem;
}
.trophy-order-preview--magazine .trophy-order-preview-sub {
  font-size: 0.72rem;
  max-width: none;
}
@media (max-width: 52rem) {
  .trophy-order-step1-with-preview {
    grid-template-columns: 1fr;
  }
  .trophy-order-step1-preview-col {
    position: relative;
    top: auto;
    z-index: auto;
  }
}
.trophy-order-unity-below-qty {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin: 0.35rem 0 1.1rem;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.06) 0%, rgba(0, 0, 0, 0.2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.trophy-order-subsection {
  margin-bottom: 1rem;
  padding: 0.8rem 0.9rem 0.95rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.trophy-order-subsection:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}
.trophy-order-subsection:last-of-type {
  margin-bottom: 0.35rem;
}
.trophy-order-subsection-title {
  margin: 0 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.trophy-order-subsection-lead {
  margin: -0.25rem 0 0.75rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.trophy-order-qty-row {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trophy-order-panel--in-unity {
  margin-bottom: 0 !important;
  border-left-color: rgba(100, 180, 255, 0.35);
}
.trophy-order-panel--in-unity:hover {
  border-left-color: rgba(100, 180, 255, 0.65);
}
.trophy-order-breakdown--step1 {
  margin: 0;
}
.trophy-order-tax-note--step1 {
  margin: 0;
}
.trophy-order-estimate--step1 {
  margin-bottom: 0;
}
.trophy-order-form {
  padding: 1.35rem 1.45rem 1.6rem;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, var(--bg-card) 52%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.trophy-order-form:focus-within {
  border-color: rgba(201, 162, 39, 0.35);
}
.trophy-order-form-section {
  margin-bottom: 1.35rem;
}
.trophy-order-panel {
  padding: 1rem 1rem 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.18);
  border-left: 3px solid rgba(201, 162, 39, 0.45);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}
.trophy-order-panel:hover {
  border-left-color: rgba(201, 162, 39, 0.85);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}
.trophy-order-form-section-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}
.trophy-order-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 11px;
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0a0906;
  background: linear-gradient(165deg, #f5e6b8 0%, var(--gold-light) 38%, var(--gold) 100%);
  border: 1px solid rgba(0, 0, 0, 0.22);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 2px 14px rgba(201, 162, 39, 0.42);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}
.trophy-order-form-section-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.trophy-order-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.05rem;
}
.trophy-order-field--span {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .trophy-order-field-grid {
    grid-template-columns: 1fr;
  }
}
.trophy-order-label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.trophy-order-label .trophy-order-label-req {
  font-weight: 500;
  color: var(--text-muted);
}
.trophy-order-optional {
  font-weight: 400;
  color: var(--text-muted);
}
.trophy-order-select,
.trophy-order-input,
.trophy-order-textarea {
  width: 100%;
  padding: 0.68rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.25s ease;
}
.trophy-order-select:hover,
.trophy-order-input:hover,
.trophy-order-textarea:hover {
  border-color: rgba(201, 162, 39, 0.25);
}
.trophy-order-select:focus,
.trophy-order-input:focus,
.trophy-order-textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
  transform: translateY(-1px);
}
.trophy-order-textarea {
  resize: vertical;
  min-height: 6.5rem;
}
.trophy-order-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.trophy-order-breakdown {
  margin: 0.75rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-secondary);
  animation: trophy-order-fade-in 0.5s ease;
}
.trophy-order-breakdown .trophy-calc-breakdown-line {
  margin: 0;
}
.trophy-order-breakdown .trophy-calc-breakdown-line + .trophy-calc-breakdown-line {
  margin-top: 0.4rem;
}
@keyframes trophy-order-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.trophy-order-tax-note {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.trophy-order-estimate {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(201, 162, 39, 0.42);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.14) 0%, rgba(201, 162, 39, 0.05) 100%);
  border-radius: calc(var(--radius-md) + 2px);
  box-shadow:
    0 0 40px rgba(201, 162, 39, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.trophy-order-estimate-copy {
  flex: 1 1 12rem;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.trophy-order-estimate-caption {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 22rem;
}
.trophy-order-estimate-shine {
  position: absolute;
  inset: -50% -30%;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.07) 52%,
    transparent 65%
  );
  animation: trophy-estimate-shine 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes trophy-estimate-shine {
  0%,
  100% {
    transform: translateX(-12%) translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  50% {
    transform: translateX(12%) translateY(5%) rotate(2deg);
    opacity: 0.85;
  }
}
.trophy-order-estimate-label {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.trophy-order-estimate-value {
  position: relative;
  z-index: 1;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(201, 162, 39, 0.25);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  margin-left: auto;
  align-self: center;
}
@media (min-width: 48rem) {
  .trophy-order-step1-footer-bar .trophy-order-estimate-value {
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  }
}
.trophy-order-estimate:hover .trophy-order-estimate-value {
  transform: scale(1.02);
}

/* Multi-line order cart */
.trophy-order-cart {
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
}
.trophy-order-cart--under-preview {
  margin-bottom: 0;
  width: 100%;
}
.trophy-order-cart--in-cart-section {
  margin: 0.85rem 0 0;
  margin-bottom: 0;
  width: 100%;
}
.trophy-order-cart-section .trophy-order-profile-hint {
  margin-bottom: 0;
}
.trophy-order-cart-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
}
.trophy-order-cart-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.trophy-order-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.trophy-order-cart-clear {
  margin-left: auto;
}
.trophy-order-cart-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: min(40vh, 280px);
  overflow-y: auto;
}
.trophy-order-cart-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.trophy-order-cart-item-main {
  display: flex;
  gap: 0.6rem;
  flex: 1 1 12rem;
  min-width: 0;
}
.trophy-order-cart-item-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}
.trophy-order-cart-item-text {
  min-width: 0;
}
.trophy-order-cart-item-title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
.trophy-order-cart-item-notes {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}
.trophy-order-cart-item-refs {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.trophy-order-design-refs-field {
  margin-top: 0.25rem;
}
.trophy-order-design-hint {
  margin: 0 0 0.5rem;
}
.trophy-order-design-count-hint {
  margin: 0.35rem 0 0.5rem;
}
.trophy-order-design-refs-field:focus-within {
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.12);
}
.trophy-order-file-input {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-radius: 10px;
  border: 1px dashed rgba(201, 162, 39, 0.42);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;
}
.trophy-order-file-input:hover {
  border-color: rgba(201, 162, 39, 0.58);
  background: rgba(201, 162, 39, 0.06);
  transform: translateY(-1px);
}
.trophy-order-file-input:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.75);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}
.trophy-order-file-input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.22), rgba(201, 162, 39, 0.1));
  color: var(--gold-light);
  cursor: pointer;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
}
.trophy-order-file-input::file-selector-button:hover {
  filter: brightness(1.12);
}
.trophy-order-file-input::file-selector-button:active {
  transform: scale(0.98);
}
.trophy-order-design-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.trophy-order-design-thumb {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
}
.trophy-order-design-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.trophy-order-ref-qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.trophy-order-ref-qty-row .trophy-order-label {
  margin-bottom: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.trophy-order-ref-qty-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
}
.trophy-order-official-receipt-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.trophy-order-official-receipt-label input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--gold, #c9a227);
}
.trophy-order-input--qty-inline {
  width: auto;
  min-width: 3rem;
  max-width: 4.25rem;
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.42rem 0.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.trophy-order-ref-qty-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.trophy-order-ref-qty-row.trophy-order-field--error {
  border-top-color: rgba(251, 191, 36, 0.35);
}
.trophy-order-design-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.35rem !important;
  height: 1.35rem !important;
  min-height: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 1rem !important;
  border-radius: 4px !important;
  background: rgba(0, 0, 0, 0.65) !important;
  color: #fff !important;
}
.trophy-order-cart-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.trophy-order-cart-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.trophy-order-cart-item-price-hint {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.trophy-order-cart-remove {
  font-size: 0.72rem !important;
  padding: 0.2rem 0.5rem !important;
}
.trophy-order-cart-totals {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.trophy-order-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.2rem 0;
}
.trophy-order-cart-row--due {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(201, 162, 39, 0.25);
  font-size: 0.88rem;
  color: var(--text-primary);
}
.trophy-order-cart-row--due strong {
  color: var(--gold-light);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.trophy-order-checkout-hint {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.trophy-order-toast-ok {
  color: var(--gold-light);
  font-weight: 700;
}

.trophy-order-actions {
  margin-top: 0.65rem;
}
.trophy-order-actions--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  max-width: 22rem;
}
.trophy-order-actions--split.trophy-order-actions--has-cart {
  grid-template-columns: 1fr 1fr;
  max-width: 28rem;
}
.trophy-order-actions--checkout-only {
  display: block;
  max-width: 36rem;
  margin-top: 0.85rem;
}
.trophy-order-actions--checkout-only .trophy-order-submit {
  width: 100%;
  max-width: none;
}
@media (max-width: 520px) {
  .trophy-order-actions--split.trophy-order-actions--has-cart {
    grid-template-columns: 1fr;
  }
}
.trophy-order-add-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.trophy-order-add-line:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.65);
  transform: translateY(-1px);
}
.trophy-order-add-line-icon {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.9;
}
.trophy-order-submit {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: 0.85rem 1.25rem;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}
.trophy-order-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(201, 162, 39, 0.25);
}
.trophy-order-submit:active {
  transform: translateY(0);
}
.trophy-order-submit-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0;
  animation: trophy-submit-glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes trophy-submit-glow {
  0%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 0.45;
  }
  60% {
    opacity: 0.2;
  }
}
.trophy-order-form-message {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.88rem;
  line-height: 1.45;
}
.trophy-order-form-message--ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #86efac;
}
.trophy-order-form-message--error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* —— Preview card: studio / 3D / slow motion —— */
.trophy-order-preview {
  position: sticky;
  top: 1rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, var(--bg-card) 35%, #12121a 100%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(201, 162, 39, 0.08);
  transition:
    box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.45s ease;
}
.trophy-order-preview-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.15rem 1.2rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trophy-order-preview-live {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25), 0 0 14px rgba(74, 222, 128, 0.65);
  animation: trophy-live-pulse 2.8s ease-in-out infinite;
}
@keyframes trophy-live-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
}
.trophy-order-preview-title {
  margin: 0 0 0.3rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.trophy-order-preview-sub {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 22rem;
}
.trophy-order-preview-controls {
  margin: 0 1.15rem 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.trophy-order-preview-controls .trophy-order-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.trophy-order-preview-body-select {
  margin-top: 0.4rem;
  width: 100%;
  max-width: 20rem;
  color-scheme: dark;
}
.trophy-order-preview-controls-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
}
.trophy-order-preview--tick {
  animation: trophy-preview-tick 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes trophy-preview-tick {
  0% {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }
  35% {
    box-shadow:
      0 32px 64px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(201, 162, 39, 0.45) inset,
      0 0 60px rgba(201, 162, 39, 0.22);
    border-color: rgba(201, 162, 39, 0.55);
  }
  100% {
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  }
}

.trophy-order-preview-stage {
  position: relative;
  min-height: 300px;
  margin: 0 0.85rem 0.85rem;
  border-radius: calc(var(--radius-md) + 4px);
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(201, 162, 39, 0.18), transparent 58%),
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(120, 180, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a0f 0%, #15151c 48%, #0e0e14 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
}
.trophy-order-preview-aurora {
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background: conic-gradient(from 200deg at 50% 50%, transparent, rgba(201, 162, 39, 0.06), transparent, rgba(100, 180, 255, 0.05), transparent);
  animation: trophy-aurora-spin 28s linear infinite;
  opacity: 0.65;
  pointer-events: none;
}
@keyframes trophy-aurora-spin {
  to {
    transform: rotate(360deg);
  }
}
.trophy-order-preview-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.trophy-order-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.35;
  animation: trophy-orb-drift 14s ease-in-out infinite alternate;
}
.trophy-order-orb--a {
  width: 120px;
  height: 120px;
  left: 5%;
  top: 15%;
  background: rgba(201, 162, 39, 0.35);
  animation-delay: -2s;
}
.trophy-order-orb--b {
  width: 100px;
  height: 100px;
  right: 8%;
  bottom: 25%;
  background: rgba(100, 160, 220, 0.3);
  animation-delay: -5s;
}
@keyframes trophy-orb-drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(12px, -18px) scale(1.08);
  }
}
.trophy-order-preview-floor {
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: 78%;
  height: 18%;
  z-index: 0;
  transform: translateX(-50%);
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.55), transparent 70%);
  pointer-events: none;
  animation: trophy-floor-breathe 6s ease-in-out infinite;
}
@keyframes trophy-floor-breathe {
  0%,
  100% {
    opacity: 0.75;
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    opacity: 0.95;
    transform: translateX(-50%) scaleX(1.04);
  }
}
.trophy-order-preview-glare {
  position: absolute;
  top: 0;
  left: -40%;
  width: 55%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 100%
  );
  animation: trophy-glare-sweep 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes trophy-glare-sweep {
  0%,
  100% {
    left: -45%;
    opacity: 0.4;
  }
  50% {
    left: 95%;
    opacity: 0.7;
  }
}

.trophy-order-svg-3d {
  position: relative;
  z-index: 3;
  max-width: 240px;
  margin: 0 auto;
  padding: 1.25rem 0.5rem 1.5rem;
  perspective: 520px;
  transform-style: preserve-3d;
  animation: trophy-float-main 7s ease-in-out infinite;
}
@keyframes trophy-float-main {
  0%,
  100% {
    transform: translateY(0) rotateX(2deg) rotateY(-4deg);
  }
  50% {
    transform: translateY(-10px) rotateX(4deg) rotateY(4deg);
  }
}
.trophy-order-svg {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 20px rgba(201, 162, 39, 0.08));
  transition: filter 0.6s ease;
}
.trophy-order-floor-glow {
  animation: trophy-floor-glow-pulse 5s ease-in-out infinite;
}
@keyframes trophy-floor-glow-pulse {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

.trophy-order-tier-anim {
  transform-origin: 100px 165px;
  animation: trophy-tier-breathe 5.5s ease-in-out infinite;
}
.trophy-order-tier--3.trophy-order-tier-anim {
  animation-delay: 0s;
}
.trophy-order-tier--2.trophy-order-tier-anim {
  animation-delay: 0.35s;
}
.trophy-order-tier--1.trophy-order-tier-anim {
  animation-delay: 0.7s;
}

/* Cup stack only when single/double/triple would use legacy cups — all three body modes use custom art */
.trophy-order-svg[data-layout='trophy'][data-tiers='single'] .trophy-order-cups-stack,
.trophy-order-svg[data-layout='trophy'][data-tiers='double'] .trophy-order-cups-stack,
.trophy-order-svg[data-layout='trophy'][data-tiers='triple'] .trophy-order-cups-stack {
  display: none;
}

/* Single body = flat shield + GA-style base (catalog GA001 family) */
.trophy-order-single-flat {
  display: none;
}
.trophy-order-svg[data-layout='trophy'][data-tiers='single'] .trophy-order-single-flat {
  display: block;
}
.trophy-order-single-base-stack {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}
.trophy-order-single-body.trophy-order-tier-anim {
  transform-origin: 100px 145px;
  animation-delay: 0.15s;
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-single-body {
  filter: brightness(1.1) saturate(1.06);
}
.trophy-order-svg[data-body-look='wood'] .trophy-order-single-top-bar,
.trophy-order-svg[data-body-look='metal'] .trophy-order-single-top-bar {
  opacity: 0.55;
}

/* Double body = two offset vertical panels (GAD-style acrylic / glass) */
.trophy-order-double-panels {
  display: none;
}
.trophy-order-svg[data-layout='trophy'][data-tiers='double'] .trophy-order-double-panels {
  display: block;
}
.trophy-order-double-base-stack {
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}
.trophy-order-double-layer {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.38));
}
.trophy-order-double-layer--back.trophy-order-tier-anim {
  transform-origin: 96px 168px;
  animation-delay: 0s;
}
.trophy-order-double-layer--front.trophy-order-tier-anim {
  transform-origin: 112px 175px;
  animation-delay: 0.45s;
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-double-layer--back {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42)) brightness(1.14) saturate(1.08);
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-double-layer--front {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.36)) brightness(1.08);
}
.trophy-order-svg[data-body-look='glass'] .trophy-order-double-back,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-double-back {
  fill: url(#trophy-double-back-blue);
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-double-back {
  fill: url(#trophy-double-back-blue);
}
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-double-back {
  fill: url(#trophy-double-back-amber);
}
.trophy-order-svg[data-body-look='wood'] .trophy-order-double-back {
  fill: url(#trophy-grad-wood);
}
.trophy-order-svg[data-body-look='metal'] .trophy-order-double-back {
  fill: url(#trophy-grad-metal);
}
.trophy-order-svg[data-body-look='glass'] .trophy-order-double-front,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-double-front,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-double-front {
  fill: url(#trophy-double-front-clear);
}
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-double-front {
  fill: url(#trophy-double-front-warm);
}
.trophy-order-svg[data-body-look='wood'] .trophy-order-double-front {
  fill: url(#trophy-grad-wood);
  opacity: 0.55;
}
.trophy-order-svg[data-body-look='metal'] .trophy-order-double-front {
  fill: url(#trophy-grad-metal);
  opacity: 0.45;
}

/* Triple body = layered flat plates (not stacked cups) */
.trophy-order-triple-plates {
  display: none;
}
.trophy-order-svg[data-layout='trophy'][data-tiers='triple'] .trophy-order-triple-plates {
  display: block;
}
.trophy-order-triple-base-block {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}
.trophy-order-plate-stack {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}
.trophy-order-plate-stack--back.trophy-order-tier-anim {
  transform-origin: 95px 175px;
  animation-delay: 0s;
}
.trophy-order-plate-stack--mid.trophy-order-tier-anim {
  transform-origin: 104px 168px;
  animation-delay: 0.4s;
}
.trophy-order-plate-stack--front.trophy-order-tier-anim {
  transform-origin: 112px 198px;
  animation-delay: 0.78s;
}

@keyframes trophy-tier-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.015);
  }
}

.trophy-order-cup-shine {
  animation: trophy-shine-glint 4s ease-in-out infinite;
  opacity: 0.85;
}
@keyframes trophy-shine-glint {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.trophy-order-preview-sparkles {
  position: absolute;
  inset: 12% 8% 22%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.trophy-order-preview-sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation: trophy-sparkle 3.2s ease-in-out infinite;
}
.trophy-order-preview-sparkles span:nth-child(1) {
  left: 22%;
  top: 18%;
  animation-delay: 0s;
}
.trophy-order-preview-sparkles span:nth-child(2) {
  left: 68%;
  top: 22%;
  animation-delay: 0.6s;
}
.trophy-order-preview-sparkles span:nth-child(3) {
  left: 48%;
  top: 12%;
  animation-delay: 1.2s;
}
.trophy-order-preview-sparkles span:nth-child(4) {
  left: 78%;
  top: 38%;
  animation-delay: 1.8s;
}
.trophy-order-preview-sparkles span:nth-child(5) {
  left: 32%;
  top: 35%;
  animation-delay: 2.4s;
}
@keyframes trophy-sparkle {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
.trophy-order-preview-stage:has(.trophy-order-svg[data-body-look='glass']) .trophy-order-preview-sparkles,
.trophy-order-preview-stage:has(.trophy-order-svg[data-body-look='crystal']) .trophy-order-preview-sparkles {
  opacity: 0.75;
}

.trophy-order-svg .trophy-order-cup-bowl,
.trophy-order-svg .trophy-order-cup-rim {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  transition: fill 0.55s ease, stroke 0.55s ease, filter 0.55s ease;
}
.trophy-order-svg .trophy-order-handle,
.trophy-order-svg .trophy-order-finial-ball {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.75;
  transition: fill 0.55s ease, stroke 0.55s ease, filter 0.55s ease;
}
.trophy-order-svg .trophy-order-stem-flange,
.trophy-order-svg .trophy-order-stem-cap {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.75;
  transition: fill 0.55s ease, stroke 0.55s ease, filter 0.55s ease;
}
.trophy-order-svg .trophy-order-cup-depth {
  pointer-events: none;
}
.trophy-order-finial {
  display: none;
}
.trophy-order-svg[data-tiers='triple'] .trophy-order-finial--t3 {
  display: block;
}
.trophy-order-svg[data-tiers='double'] .trophy-order-finial--t2 {
  display: block;
}
.trophy-order-svg[data-tiers='single'] .trophy-order-finial--t1 {
  display: block;
}
.trophy-order-svg .trophy-order-base {
  transition: fill 0.55s ease, stroke 0.55s ease;
}
.trophy-order-svg .trophy-order-base--mid {
  filter: brightness(0.92);
}
.trophy-order-svg .trophy-order-base--foot {
  filter: brightness(0.82);
}

/* Tiered ASUS-style pedestal: depth + top sheen (SVG) */
.trophy-order-svg .trophy-order-premium-pedestal {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.06));
}
.trophy-order-svg .trophy-order-premium-top {
  opacity: 0.88;
  pointer-events: none;
}
.trophy-order-svg .trophy-order-premium-bevel {
  pointer-events: none;
}
.trophy-order-svg .trophy-order-premium-rim {
  pointer-events: none;
}

.trophy-order-svg[data-layout='trophy'] .trophy-order-scene-plaque {
  display: none;
}
.trophy-order-svg[data-layout='plaque'] .trophy-order-scene-trophy {
  display: none;
}
.trophy-order-svg[data-tiers='single'] .trophy-order-tier--2,
.trophy-order-svg[data-tiers='single'] .trophy-order-tier--3 {
  display: none;
}
.trophy-order-svg[data-tiers='double'] .trophy-order-tier--3 {
  display: none;
}

/* Body look → cup, handles, finial, neck & stem hardware */
.trophy-order-svg[data-body-look='glass'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='glass'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='glass'] .trophy-order-stem,
.trophy-order-svg[data-body-look='glass'] .trophy-order-handle,
.trophy-order-svg[data-body-look='glass'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='glass'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='glass'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-glass);
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-stem,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-handle,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-glass);
  filter: brightness(1.25) saturate(1.2) drop-shadow(0 0 8px rgba(180, 220, 255, 0.35));
}
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-stem,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-handle,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-acrylic);
  stroke: rgba(255, 190, 120, 0.45);
  stroke-width: 1.2;
}
.trophy-order-svg[data-body-look='wood'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='wood'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='wood'] .trophy-order-stem,
.trophy-order-svg[data-body-look='wood'] .trophy-order-handle,
.trophy-order-svg[data-body-look='wood'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='wood'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='wood'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-wood);
}
.trophy-order-svg[data-body-look='metal'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='metal'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='metal'] .trophy-order-stem,
.trophy-order-svg[data-body-look='metal'] .trophy-order-handle,
.trophy-order-svg[data-body-look='metal'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='metal'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='metal'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-metal);
}
.trophy-order-svg[data-body-look='plaque'] .trophy-order-cup-bowl,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-cup-rim,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-stem,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-handle,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-finial-ball,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-stem-flange,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-stem-cap {
  fill: url(#trophy-grad-marble);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
}

/* Base look */
.trophy-order-svg[data-base-look='wood'] .trophy-order-base {
  fill: url(#trophy-grad-wood);
  stroke: rgba(0, 0, 0, 0.3);
  stroke-width: 0.75;
}
.trophy-order-svg[data-base-look='metal'] .trophy-order-base {
  fill: url(#trophy-grad-metal);
  stroke: rgba(255, 255, 255, 0.25);
  stroke-width: 0.75;
}
.trophy-order-svg[data-base-look='marble'] .trophy-order-base {
  fill: url(#trophy-grad-marble);
  stroke: rgba(0, 0, 0, 0.18);
  stroke-width: 0.75;
}
.trophy-order-svg[data-base-look='acrylic'] .trophy-order-base {
  fill: url(#trophy-grad-acrylic) !important;
  stroke: rgba(255, 200, 140, 0.55) !important;
  stroke-width: 1 !important;
  filter: drop-shadow(0 4px 12px rgba(255, 160, 80, 0.2));
}

/* Plaque scene */
.trophy-order-plaque-board,
.trophy-order-plaque-inner {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 0.75;
  transition: fill 0.55s ease, filter 0.55s ease;
}
.trophy-order-plaque-shine {
  opacity: 0.6;
  animation: trophy-shine-glint 5s ease-in-out infinite;
}
.trophy-order-svg[data-body-look='glass'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='glass'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-glass);
}
.trophy-order-svg[data-body-look='crystal'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='crystal'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-glass);
  filter: brightness(1.15) drop-shadow(0 0 6px rgba(180, 220, 255, 0.25));
}
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='acrylic'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-acrylic);
}
.trophy-order-svg[data-body-look='wood'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='wood'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-wood);
}
.trophy-order-svg[data-body-look='metal'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='metal'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-metal);
}
.trophy-order-svg[data-body-look='plaque'] .trophy-order-plaque-board,
.trophy-order-svg[data-body-look='plaque'] .trophy-order-plaque-inner {
  fill: url(#trophy-grad-metal);
  filter: brightness(0.88);
}

.trophy-order-svg[data-base-look='wood'] .trophy-order-plaque-stand,
.trophy-order-svg[data-base-look='wood'] .trophy-order-plaque-foot {
  fill: url(#trophy-grad-wood);
}
.trophy-order-svg[data-base-look='metal'] .trophy-order-plaque-stand,
.trophy-order-svg[data-base-look='metal'] .trophy-order-plaque-foot {
  fill: url(#trophy-grad-metal);
}
.trophy-order-svg[data-base-look='marble'] .trophy-order-plaque-stand,
.trophy-order-svg[data-base-look='marble'] .trophy-order-plaque-foot {
  fill: url(#trophy-grad-marble);
}
.trophy-order-svg[data-base-look='acrylic'] .trophy-order-plaque-stand,
.trophy-order-svg[data-base-look='acrylic'] .trophy-order-plaque-foot {
  fill: url(#trophy-grad-acrylic) !important;
  stroke: rgba(255, 200, 140, 0.4);
  stroke-width: 0.5;
}

.trophy-order-legend {
  list-style: none;
  margin: 0;
  padding: 0.35rem 1.2rem 0.45rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trophy-preview-sample-disclaimer {
  margin: 0 1.05rem 1.05rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(245, 245, 250, 0.92);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.32);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.trophy-preview-sample-disclaimer strong {
  color: var(--gold-light);
  font-weight: 800;
}
.trophy-order-legend li {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.35s ease,
    background 0.35s ease;
}
.trophy-order-legend li:hover {
  border-color: rgba(201, 162, 39, 0.2);
  background: rgba(201, 162, 39, 0.06);
}
.trophy-order-legend-key {
  color: var(--text-muted);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .trophy-order-preview-aurora,
  .trophy-order-orb,
  .trophy-order-preview-glare,
  .trophy-order-preview-floor,
  .trophy-order-estimate-shine,
  .trophy-order-submit-glow,
  .trophy-order-preview-live,
  .trophy-order-floor-glow,
  .trophy-order-tier-anim,
  .trophy-order-cup-shine,
  .trophy-order-preview-sparkles span,
  .trophy-order-svg-3d,
  .trophy-order-breakdown,
  .trophy-order-preview--tick {
    animation: none !important;
  }
  .trophy-order-svg-3d {
    transform: none;
  }
  .trophy-order-panel:hover {
    transform: none;
  }
  .trophy-order-select:focus,
  .trophy-order-input:focus,
  .trophy-order-textarea:focus {
    transform: none;
  }
  .trophy-order-step1-qty-card:hover,
  .trophy-order-file-input:hover {
    transform: none;
  }
  .trophy-order-estimate:hover .trophy-order-estimate-value {
    transform: none;
  }
  .trophy-order-date-picker__open:active {
    transform: none;
  }
}

.trophy-shop-grid {
  margin-top: 0.5rem;
}
.trophy-catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1.35rem 1.2rem;
}
.trophy-shop-catalog-meta {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.trophy-shop-catalog-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.06);
}
.trophy-shop-catalog-banner-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}
.trophy-catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-card) 48%);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-fast),
    box-shadow var(--duration-normal);
}
.trophy-catalog-card:hover {
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(201, 162, 39, 0.1), 0 0 32px rgba(201, 162, 39, 0.08);
  transform: translateY(-3px);
}
.trophy-catalog-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1c1c1c, #0a0a0a);
  overflow: hidden;
}
.trophy-catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.trophy-catalog-card:hover .trophy-catalog-card-media img {
  transform: scale(1.05);
}
.trophy-catalog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    -12deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 10px,
    transparent 10px,
    transparent 20px
  );
}
.trophy-catalog-card-badge-new {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: #1a1508;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.trophy-catalog-card-tag {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.22rem 0.42rem;
  border-radius: 6px;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.trophy-catalog-card-price-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.7rem;
  font-size: 1rem;
  font-weight: 800;
  color: #f5e6b8;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  font-variant-numeric: tabular-nums;
}
.trophy-catalog-card-gallery-hint {
  position: absolute;
  bottom: 2.35rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.trophy-catalog-card-body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.trophy-catalog-card-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.trophy-catalog-card-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.trophy-catalog-card-desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trophy-catalog-card-dim {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.trophy-calculator {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 42%, var(--bg-card) 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: calc(var(--radius-lg) + 4px);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-fast);
}
@supports (backdrop-filter: blur(12px)) {
  .trophy-calculator {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
.trophy-calculator:hover {
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 0 40px rgba(201, 162, 39, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}
.trophy-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  opacity: 0.95;
}
.trophy-calculator-shine {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 80%;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), transparent 55%);
  pointer-events: none;
  border-radius: 50%;
}
.trophy-calculator-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.trophy-calculator-card-head-text {
  min-width: 0;
  flex: 1;
}
.trophy-calculator-pill {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 0.28rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1508;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.35);
}
.trophy-calculator-card-icon {
  flex-shrink: 0;
  color: rgba(201, 162, 39, 0.55);
  filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.25));
  opacity: 0.95;
}
.trophy-calculator-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.trophy-calculator-lead {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.trophy-calculator-lead strong {
  color: var(--gold-light);
  font-weight: 600;
}
.trophy-calculator-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.trophy-calculator-flow-step {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  transition: color var(--duration-fast);
}
.trophy-calculator-flow-step.is-active {
  color: var(--gold);
}
.trophy-calculator-flow-line {
  width: 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.35), transparent);
}
.trophy-calculator-fields {
  display: grid;
  gap: 0.85rem 1rem;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 1.15rem 1.35rem 1.25rem;
}
.trophy-calculator-fields--material {
  align-items: start;
}
.trophy-calculator-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.trophy-calculator-field--span {
  grid-column: 1 / -1;
}
.trophy-calculator-field-hint {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 22rem;
}
.trophy-calculator-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.45);
}
.trophy-calculator-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  font-size: 0.55rem;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: 6px;
  line-height: 1;
}
.trophy-calculator-input,
.trophy-calculator-select {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-fast);
}
.trophy-calculator-select {
  cursor: pointer;
  appearance: none;
  background-color: rgba(0, 0, 0, 0.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.35rem;
}
.trophy-calculator-input:hover,
.trophy-calculator-select:hover {
  border-color: rgba(201, 162, 39, 0.25);
  background: rgba(0, 0, 0, 0.42);
}
.trophy-calculator-input:focus,
.trophy-calculator-select:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.trophy-calculator-input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}
@media (max-width: 520px) {
  .trophy-calculator-fields {
    grid-template-columns: 1fr;
  }
  .trophy-calculator-field--span {
    grid-column: 1;
  }
  .trophy-calculator-card-head {
    flex-direction: column;
  }
  .trophy-calculator-card-icon {
    align-self: flex-end;
    margin-top: -2rem;
  }
}
.trophy-calc-breakdown {
  margin: 0 1.35rem 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(201, 162, 39, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.trophy-calc-breakdown-line {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.trophy-calc-breakdown-line + .trophy-calc-breakdown-line {
  margin-top: 0.4rem;
}
.trophy-calc-breakdown-combined {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trophy-calc-breakdown-footnote {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem !important;
  line-height: 1.5 !important;
  color: var(--text-muted) !important;
}
.trophy-order-breakdown .trophy-calc-breakdown-combined,
.trophy-order-breakdown .trophy-calc-breakdown-footnote {
  border-top-color: rgba(255, 255, 255, 0.07);
}
.trophy-calculator-result {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.35rem 1.15rem;
  border-radius: 0 0 calc(var(--radius-lg) + 3px) calc(var(--radius-lg) + 3px);
  background: linear-gradient(180deg, rgba(201, 162, 39, 0.14) 0%, rgba(201, 162, 39, 0.06) 50%, rgba(0, 0, 0, 0.35) 100%);
  border-top: 1px solid rgba(201, 162, 39, 0.28);
  overflow: hidden;
}
.trophy-calculator-result-glow {
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: radial-gradient(ellipse closest-side, rgba(201, 162, 39, 0.22), transparent 70%);
  pointer-events: none;
}
.trophy-calculator-result-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.trophy-calculator-result-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.trophy-calculator-result-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.trophy-calculator-result-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
}
.trophy-calculator-result-amount {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.trophy-calculator-result-currency {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.trophy-calculator-result-value {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f5e6b8;
  text-shadow: 0 0 40px rgba(201, 162, 39, 0.35);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.trophy-calculator-result-footnote {
  position: relative;
  z-index: 1;
  margin: 0.85rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.38);
  max-width: 28rem;
}
.calc-settings-panel {
  max-width: min(100%, 52rem);
}
.calc-glass-rates-editor {
  margin-bottom: 0.5rem;
}
.calc-glass-rate-block {
  margin-top: 1.1rem;
}
.calc-glass-rate-title {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calc-settings-form {
  gap: 1.35rem;
}
.calc-material-editor {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(255, 255, 255, 0.02);
}
.calc-material-editor-head {
  margin-bottom: 0.65rem;
}
.calc-material-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.calc-material-example {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.calc-name-input {
  margin-bottom: 0.75rem;
}
.calc-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 0.75rem;
}
@media (max-width: 640px) {
  .calc-rate-grid {
    grid-template-columns: 1fr;
  }
}
.calc-rate-cell .shop-owner-label {
  margin-bottom: 0.25rem;
}
.calc-settings-extras {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ——— Product pricing (owner materials + tax; was calculator settings) ——— */
.calc-settings-panel--v2 {
  max-width: min(100%, 56rem);
  border: 1px solid rgba(201, 162, 39, 0.28);
  background:
    linear-gradient(165deg, rgba(201, 162, 39, 0.06) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, var(--bg-card) 55%);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.calc-settings-panel--dashboard {
  max-width: min(100%, 92rem);
}
.calc-settings-panel-head--dashboard {
  margin-bottom: 0.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.calc-settings-panel-head-text {
  flex: 1 1 14rem;
  min-width: 0;
}
.calc-settings-header-tax {
  flex: 0 1 auto;
  text-align: right;
  min-width: min(100%, 12rem);
  padding: 0.5rem 0.75rem 0.55rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.calc-settings-header-tax-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
}
.calc-settings-header-tax-label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.calc-settings-header-tax-hint {
  margin: 0.4rem 0 0;
  font-size: 0.62rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: right;
  max-width: 16rem;
}
.calc-settings-tax-input-row--header {
  justify-content: flex-end;
}
.calc-settings-tax-input--header {
  width: 5.75rem !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  font-weight: 700;
  font-size: 1rem !important;
  text-align: right;
}
@media (max-width: 520px) {
  .calc-settings-header-tax {
    text-align: left;
    width: 100%;
  }
  .calc-settings-header-tax-inner {
    align-items: stretch;
  }
  .calc-settings-header-tax-hint {
    text-align: left;
    max-width: none;
  }
  .calc-settings-tax-input-row--header {
    justify-content: flex-start;
  }
}
.calc-settings-form--dashboard {
  gap: 1.1rem;
}
.calc-settings-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.35rem;
  align-items: start;
}
.calc-settings-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}
.calc-settings-main-col--full {
  grid-column: 1 / -1;
}
.calc-settings-tax-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.calc-settings-tax-input {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 1rem !important;
}
.calc-settings-tax-unit {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.9;
}
.calc-settings-section-label--inline {
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  gap: 0.35rem 0.75rem;
}
.calc-settings-section-meta {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-muted);
  width: 100%;
  flex-basis: 100%;
  margin-left: 2.15rem;
}
@media (min-width: 640px) {
  .calc-settings-section-meta {
    width: auto;
    flex: 1 1 auto;
    margin-left: 0;
    text-align: right;
  }
  .calc-settings-section-label--inline {
    flex-wrap: nowrap;
  }
}
.calc-settings-section-label--side {
  margin-bottom: 0.35rem;
}
.calc-glass-rates-editor--compact {
  padding: 0.75rem 0.9rem 0.95rem !important;
}
.calc-glass-bodies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 900px) {
  .calc-glass-bodies-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem 0.65rem;
  }
}
.calc-settings-section--glass .calc-glass-bodies-grid .calc-glass-rate-block {
  margin-top: 0;
  padding: 0.5rem 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.calc-settings-section--glass .calc-glass-bodies-grid .calc-glass-rate-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
}
.shop-owner-label--compact {
  font-size: 0.62rem !important;
  margin-bottom: 0.15rem !important;
}
.shop-owner-input--calc-compact {
  padding: 0.48rem 0.65rem !important;
  font-size: 0.86rem !important;
}
.calc-rate-grid--tight {
  gap: 0.4rem 0.45rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.calc-tier-column-card .calc-rate-cell--compact {
  min-width: 0;
}
.calc-tier-column-card .calc-rate-cell--compact .shop-owner-input--calc-compact {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding-left: 0.42rem !important;
  padding-right: 0.42rem !important;
  font-size: 0.82rem !important;
}
@media (max-width: 480px) {
  .calc-tier-column-card .calc-rate-grid--tight {
    grid-template-columns: 1fr !important;
  }
}
.calc-rate-suffix {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  text-transform: lowercase;
}
.calc-settings-panel-head--v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
  margin-bottom: 0.25rem;
}
.calc-settings-panel-hint--v2 {
  margin-top: 0.35rem !important;
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
}
.calc-settings-panel-accent {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 14px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.45), rgba(201, 162, 39, 0.08));
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}
.calc-settings-form--v2 {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.calc-settings-materials-step {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.calc-settings-section {
  margin: 0;
}
.calc-settings-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
}
.calc-settings-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.3);
  font-size: 0.85rem;
  color: var(--gold-light);
}
.calc-settings-section--glass .calc-glass-rates-editor--v2 {
  padding: 1.15rem 1.2rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(160deg, rgba(201, 162, 39, 0.08) 0%, rgba(0, 0, 0, 0.25) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.calc-settings-section--glass .calc-glass-rates-editor--compact {
  border-radius: 12px;
}
.calc-materials-settings-mount {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.calc-mat-intro {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(100, 140, 255, 0.06);
  border: 1px dashed rgba(100, 140, 255, 0.28);
  margin-bottom: 0.15rem;
}
.calc-mat-intro--fold {
  padding: 0;
  border: none;
  background: transparent;
}
.calc-mat-intro-summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(100, 160, 255, 0.85);
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  list-style: none;
}
.calc-mat-intro-summary::-webkit-details-marker {
  display: none;
}
.calc-mat-intro-summary::after {
  content: ' ▾';
  font-size: 0.65em;
  opacity: 0.7;
}
.calc-mat-intro--fold[open] .calc-mat-intro-summary::after {
  content: ' ▴';
}
.calc-mat-intro--fold .calc-mat-intro-text {
  padding: 0.5rem 0.5rem 0.35rem;
  border-left: 2px solid rgba(100, 140, 255, 0.35);
  margin: 0.25rem 0 0.5rem 0.35rem;
}
.calc-mat-intro-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.calc-mat-card {
  padding: 1rem 1.15rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.045) 0%, rgba(0, 0, 0, 0.28) 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.calc-mat-card--compact {
  padding: 0.65rem 0.95rem 0.8rem;
  border-radius: 12px;
}
.calc-mat-card:hover {
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.calc-mat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.calc-mat-card--compact .calc-mat-card-head {
  margin-bottom: 0.5rem;
  padding-bottom: 0.45rem;
}
.calc-mat-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.calc-mat-remove-btn {
  flex-shrink: 0;
}
.calc-mat-card-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}
.calc-mat-card-grid--compact {
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.45rem;
}
@media (max-width: 900px) {
  .calc-mat-card-grid {
    grid-template-columns: 1fr;
  }
  .calc-mat-card-grid--compact {
    grid-template-columns: 1fr;
  }
}
.calc-mat-field .shop-owner-file-hint {
  margin-top: 0.25rem;
  font-size: 0.68rem;
}
.calc-mat-formula-note {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.calc-mat-tiers-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.calc-mat-tier-remove-icon {
  flex-shrink: 0;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}
.calc-mat-tier-remove-icon:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.55);
}
.calc-add-tier-btn {
  margin-top: 0.35rem;
  align-self: flex-start;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.78rem !important;
}
.calc-mat-actions {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 2px dashed rgba(201, 162, 39, 0.28);
  background: rgba(201, 162, 39, 0.04);
  text-align: center;
}
.calc-add-material-btn {
  max-width: none !important;
  width: 100%;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
}
.calc-add-material-icon {
  margin-right: 0.35rem;
  font-weight: 800;
  font-size: 1.1rem;
  vertical-align: -0.08em;
}
.calc-mat-actions-hint {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.calc-settings-section--extras {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  border-top: none;
  padding-top: 1rem;
}
.calc-settings-extras-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
@media (max-width: 560px) {
  .calc-settings-extras-grid {
    grid-template-columns: 1fr;
  }
}
.calc-settings-save-row {
  margin-top: 0.25rem;
}
.calc-settings-save-btn {
  min-width: 12rem;
  padding: 0.65rem 1.4rem !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.25);
}

/* Owner calculator — stepped UX + dynamic materials + body/base */
.calc-owner-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.15);
}
.calc-owner-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.calc-owner-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold);
}
.calc-materials-mount {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.calc-formula-hero {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(201, 162, 39, 0.22);
  margin-bottom: 0.25rem;
}
.calc-formula-hero-kicker {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.calc-formula-hero-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.calc-mat-dynamic-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.calc-mat-dynamic-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}
.calc-mat-pill {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.calc-mat-pill--core {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.calc-mat-pill--custom {
  background: rgba(100, 140, 255, 0.12);
  color: #a8c4ff;
  border: 1px solid rgba(100, 140, 255, 0.25);
}
.calc-mat-pill--glass {
  background: rgba(120, 200, 255, 0.12);
  color: #9fd8ff;
  border: 1px solid rgba(120, 200, 255, 0.3);
}
.calc-mat-pricing-formula {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.calc-mat-pricing-formula--tight {
  margin-top: 0.1rem;
  margin-bottom: 0.45rem;
}
.calc-mat-tiers-wrap--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.55rem 0.85rem;
}
@media (min-width: 720px) {
  .calc-mat-tiers-wrap--columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem 1rem;
  }
}
@media (min-width: 1100px) {
  .calc-mat-tiers-wrap--columns {
    gap: 0.65rem 1.15rem;
  }
}
.calc-tier-column-card {
  padding: 0.55rem 0.65rem 0.6rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-width: 0;
  overflow: visible;
}
.calc-tier-column-card-top {
  position: relative;
  display: block;
  margin-bottom: 0.35rem;
  padding-right: 2.15rem;
}
.calc-tier-column-card-top .calc-tier-title-input {
  width: 100%;
  box-sizing: border-box;
}
.calc-tier-column-card-top .calc-mat-tier-remove-icon {
  position: absolute;
  top: 0;
  right: 0;
}
.calc-tier-title-input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0.38rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-family: inherit;
}
.calc-tier-title-input::placeholder {
  color: rgba(201, 162, 39, 0.35);
  font-weight: 700;
}
.calc-tier-code-input {
  width: 100%;
  margin: 0 0 0.4rem;
  font-size: 0.72rem !important;
}
.calc-settings-materials-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}
.calc-settings-materials-toolbar-hint {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1 1 12rem;
}
.calc-settings-editable-zone {
  min-height: 2rem;
}
.calc-settings-form--materials-locked .calc-settings-editable-zone input,
.calc-settings-form--materials-locked .calc-settings-editable-zone select,
.calc-settings-form--materials-locked .calc-settings-editable-zone textarea,
.calc-settings-form--materials-locked .calc-settings-editable-zone button {
  pointer-events: none;
  opacity: 0.68;
}
.calc-settings-form--materials-locked .calc-settings-editable-zone .calc-mat-tier-remove-icon,
.calc-settings-form--materials-locked .calc-settings-editable-zone .calc-add-tier-btn,
.calc-settings-form--materials-locked .calc-settings-editable-zone .calc-mat-remove-btn,
.calc-settings-form--materials-locked .calc-settings-editable-zone #calc-add-material-btn {
  visibility: hidden;
}
.shop-owner-input--no-spin::-webkit-outer-spin-button,
.shop-owner-input--no-spin::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.shop-owner-input--no-spin[type='number'] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc-mat-dynamic-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.65rem 1rem;
  margin-bottom: 0.5rem;
}
.calc-mat-field {
  min-width: 0;
}
@media (max-width: 720px) {
  .calc-mat-dynamic-grid {
    grid-template-columns: 1fr;
  }
}
.calc-mat-field--span {
  grid-column: 1 / -1;
}
.calc-mat-hint {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}
.calc-mat-formula-note {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.calc-mat-actions {
  margin-top: 0.25rem;
}
.calc-add-material-btn {
  width: 100%;
  max-width: 16rem;
  border-style: dashed !important;
}
.calc-material-editor--appearance .calc-appearance-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.calc-appearance-subtitle--spaced {
  margin-top: 1.25rem !important;
}
.calc-appearance-mount {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.calc-add-appear-btn {
  margin-bottom: 0.25rem;
}
.calc-appear-row {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}
.calc-appear-row-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto auto;
  gap: 0.65rem 0.75rem;
  align-items: end;
}
@media (max-width: 900px) {
  .calc-appear-row-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-appear-remove {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.calc-appear-field .shop-owner-file-hint {
  margin-top: 0.25rem;
  margin-bottom: 0;
}
.calc-appear-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.calc-appear-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--gold);
}
.calc-mat-id-input[readonly] {
  opacity: 0.85;
  cursor: default;
  background: rgba(0, 0, 0, 0.35);
}
.trophy-calculator-tax-note {
  margin: 0 1.35rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}
.shop-owner-form-panel--narrow {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.shop-owner-form-actions--compact {
  border-top: none;
  padding-top: 0.45rem;
  margin-top: 0.15rem;
}
.icon-item-trophy-shop.icon-item.active .icon-wrap {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.35));
}

/* ========== Trophy Shop — New Arrivals (catalog-driven) ========== */
.new-arrivals-section.active {
  background:
    radial-gradient(ellipse 70% 40% at 20% 0%, rgba(201, 162, 39, 0.08), transparent 50%),
    var(--bg-main);
}
.new-arrivals-mag-sheet {
  max-width: 100%;
  margin: 0;
  padding: 1rem 1.05rem 1.2rem;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(201, 162, 39, 0.16);
  background:
    linear-gradient(165deg, rgba(201, 162, 39, 0.055) 0%, transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 22%),
    var(--bg-card);
  box-shadow:
    0 20px 56px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) {
  .new-arrivals-mag-sheet {
    padding: 1.15rem 1.35rem 1.35rem;
    border-left: 3px solid rgba(201, 162, 39, 0.38);
    border-radius: 0 calc(var(--radius-lg) + 6px) calc(var(--radius-lg) + 6px) 0;
    padding-left: 1.25rem;
  }
}
.new-arrivals-header .new-arrivals-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.new-arrivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.35rem 1.25rem;
  margin-top: 0.5rem;
  align-items: stretch;
}
.new-arrivals-mag-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.15rem;
}
.new-arrivals-mast-main .new-arrivals-eyebrow {
  margin-bottom: 0.15rem;
}
.new-arrivals-header--mag .section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.12;
  margin-bottom: 0;
  color: var(--text-primary);
}
.new-arrivals-header--mag.trophy-shop-section-header .section-title::after {
  width: 3.25rem;
  height: 2px;
  margin-top: 0.45rem;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), transparent);
}
.new-arrivals-mag-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}
.new-arrivals-mast-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.36);
}
.new-arrivals-mast-rule {
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.55;
}
.new-arrivals-mag-lead {
  margin: 0.4rem 0 0;
  max-width: 34rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.new-arrivals-mag-dek {
  margin: 0.4rem 0 0;
  max-width: 32rem;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.new-arrivals-dek-label {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: 0.08em;
  color: #1a1508;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 4px;
}
.new-arrivals-demo-note {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.6rem 0.4rem 0.65rem;
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--text-muted);
  border-left: 2px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.06);
  border-radius: 0 6px 6px 0;
  max-width: 36rem;
}
.new-arrivals-grid--mag {
  grid-template-columns: 1fr;
  gap: 1rem 0.85rem;
  margin-top: 0.55rem;
}
@media (min-width: 720px) {
  .new-arrivals-grid--mag {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
  .new-arrivals-grid--mag .new-arrival-card--mag-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: stretch;
    min-height: 0;
    max-height: none;
  }
  .new-arrivals-grid--mag .new-arrival-card--mag-featured .new-arrival-card-media {
    aspect-ratio: unset;
    min-height: 200px;
    height: 100%;
    align-self: stretch;
    border-radius: calc(var(--radius-lg) + 1px) 0 0 calc(var(--radius-lg) + 1px);
  }
  .new-arrivals-grid--mag .new-arrival-card--mag-featured .new-arrival-card-body {
    justify-content: center;
    padding: 1rem 1.15rem 1.05rem;
    min-height: 200px;
  }
}
@media (min-width: 1100px) {
  .new-arrivals-grid--mag {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .new-arrivals-grid--mag .new-arrival-card--mag-featured {
    grid-column: 1 / -1;
  }
  .new-arrivals-grid--mag .new-arrival-card:not(.new-arrival-card--mag-featured):nth-child(3n + 2) {
    transform: translateY(0.35rem);
  }
  .new-arrivals-grid--mag .new-arrival-card:not(.new-arrival-card--mag-featured):nth-child(3n + 3) {
    transform: translateY(-0.25rem);
  }
}
/* Portrait frames for catalog tiles — image fills frame (object-fit: cover) */
.new-arrivals-grid--mag .new-arrival-card:not(.new-arrival-card--mag-featured) .new-arrival-card-media {
  aspect-ratio: 4 / 5;
}
.new-arrivals-grid--mag .new-arrival-card-title {
  font-size: 1.05rem;
}
.new-arrivals-grid--mag .new-arrival-card--mag-featured .new-arrival-card-title {
  font-size: clamp(1.12rem, 2vw, 1.28rem);
}
.new-arrivals-grid--mag .new-arrival-card-price-main {
  font-size: 1rem;
}
.new-arrivals-grid--mag .new-arrival-card--mag-featured .new-arrival-card-price-main {
  font-size: 1.06rem;
}
.new-arrivals-grid--mag .new-arrival-card-body {
  padding: 0.85rem 0.95rem 0.95rem;
  gap: 0.35rem;
}
.new-arrivals-grid--mag .new-arrival-card-desc {
  font-size: 0.78rem;
  line-height: 1.45;
}
.new-arrivals-grid--mag .new-arrival-card-price-chip {
  font-size: 0.92rem;
  padding: 0.45rem 0.65rem;
}
.new-arrivals-grid--mag .new-arrival-card-actions {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  gap: 0.5rem 0.65rem;
  border-top: 1px solid rgba(201, 162, 39, 0.18);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}
.new-arrivals-grid--mag .new-arrival-add-btn {
  min-width: 7.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.7rem;
}
.new-arrivals-grid--mag [data-na-demo='1'] .new-arrival-card-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(201, 162, 39, 0.55));
  color: #1a1508;
}
.new-arrival-card {
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-card) 45%);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-fast),
    box-shadow var(--duration-normal);
}
.new-arrival-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.12), 0 0 36px rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
}
.new-arrival-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.28), 0 16px 48px rgba(0, 0, 0, 0.45);
}
.new-arrival-card--mag-featured {
  border-color: rgba(201, 162, 39, 0.38);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.1), 0 20px 56px rgba(0, 0, 0, 0.48);
}
@media (max-width: 719px) {
  .new-arrivals-grid--mag .new-arrival-card--mag-featured .new-arrival-card-media {
    aspect-ratio: 16 / 10;
    min-height: 160px;
    border-radius: calc(var(--radius-lg) + 1px) calc(var(--radius-lg) + 1px) 0 0;
  }
}
.new-arrival-card-kicker {
  margin: 0 0 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.new-arrival-card-kicker--muted {
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.new-arrival-card-kicker-line {
  display: inline-block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 1px;
}
.new-arrival-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
  overflow: hidden;
  isolation: isolate;
}
.new-arrival-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.new-arrival-card:hover .new-arrival-card-media img {
  transform: scale(1.04);
}
.new-arrival-card-media-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.06) 48%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
}
.new-arrival-card:hover .new-arrival-card-media-shine {
  opacity: 1;
}
.new-arrival-card-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: repeating-linear-gradient(
    -12deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 12px,
    transparent 12px,
    transparent 24px
  );
}
.new-arrival-card-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  z-index: 2;
  padding: 0.3rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1508;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.new-arrival-card-price-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.55rem 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f5e6b8;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 55%, transparent 100%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  font-variant-numeric: tabular-nums;
}
.new-arrival-card-gallery-hint {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.new-arrival-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.new-arrival-card-title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.new-arrival-card-price-main {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.new-arrival-card-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1;
}
.new-arrival-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.new-arrival-card-dim {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 65%;
}
.new-arrival-card-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.new-arrival-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
}
.new-arrival-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
}
.new-arrival-qty-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.new-arrival-qty {
  width: 2.75rem;
  padding: 0.2rem 0.35rem;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.new-arrival-qty:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
}
.new-arrival-add-btn {
  position: relative;
  flex: 1;
  min-width: 9rem;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.45);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.35), rgba(201, 162, 39, 0.12));
  color: #1a1508;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    box-shadow var(--duration-normal) ease,
    border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.2);
}
.new-arrival-add-btn:hover {
  border-color: rgba(230, 200, 120, 0.65);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.28);
  transform: translateY(-1px);
}
.new-arrival-add-btn:active {
  transform: translateY(0);
}
.new-arrival-add-btn__text {
  transition: opacity 0.2s ease;
}
.new-arrival-add-btn__done {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.new-arrival-add-btn--flash {
  background: linear-gradient(165deg, rgba(34, 197, 94, 0.45), rgba(34, 197, 94, 0.2));
  border-color: rgba(74, 222, 128, 0.55);
  color: #052e16;
}
.new-arrival-add-btn--flash .new-arrival-add-btn__text {
  opacity: 0;
}
.new-arrival-add-btn--flash .new-arrival-add-btn__done {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .new-arrival-card,
  .new-arrival-card-media img,
  .new-arrival-add-btn {
    transition: none;
  }
  .new-arrivals-grid--mag .new-arrival-card:not(.new-arrival-card--mag-featured):nth-child(3n + 2),
  .new-arrivals-grid--mag .new-arrival-card:not(.new-arrival-card--mag-featured):nth-child(3n + 3) {
    transform: none;
  }
}
.new-arrivals-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(201, 162, 39, 0.25);
  background: rgba(255, 255, 255, 0.02);
}
.new-arrivals-empty-icon {
  font-size: 1.75rem;
  color: rgba(201, 162, 39, 0.35);
  margin-bottom: 0.5rem;
}
.new-arrivals-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.new-arrivals-empty-lead {
  margin: 0 auto;
  max-width: 26rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.shop-owner-new-arrival-block {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(201, 162, 39, 0.06);
}
.shop-owner-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  margin: 0;
}
.shop-owner-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}
.shop-owner-checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.shop-owner-checkbox-text strong {
  color: var(--gold-light);
  font-weight: 600;
}
.shop-owner-checkbox-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}
.shop-owner-product-na-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 3;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  color: #1a1508;
  background: linear-gradient(135deg, #c8e6c9, #81c784);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Trophy Shop — Owner settings (catalog / products)
   ========================================================================== */
.shop-owner-settings-section.active {
  background:
    radial-gradient(ellipse 80% 45% at 100% 0%, rgba(201, 162, 39, 0.1), transparent 50%),
    var(--bg-main);
}
.shop-owner-page {
  max-width: 1100px;
  margin: 0 auto;
}
.shop-owner-payment-invoice-card {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(201, 162, 39, 0.18);
}
.shop-owner-payment-invoice-card .shop-owner-form-panel-head {
  margin-bottom: 1rem;
}
.shop-owner-field--grow {
  flex: 1 1 14rem;
  min-width: 0;
}
.shop-owner-field-row--wrap {
  flex-wrap: wrap;
}
.shop-owner-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.shop-owner-page-title {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.03em;
}
.shop-owner-page-lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 36rem;
}
.shop-owner-page-stat {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.2), var(--bg-elevated));
  border: 1px solid rgba(201, 162, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.shop-owner-page-stat-icon {
  width: 36px;
  height: 36px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a227' stroke-width='1.5'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6M18 9h1.5a2.5 2.5 0 0 0 0-5H18M4 22h16M10 14.66V17c0 .55.47.98.97 1.21l1.03.41c.56.22 1.23.22 1.79 0l1.03-.41c.5-.23.97-.66.97-1.21v-2.34'/%3E%3Cpath d='M12 14 8 9l4-6 4 6-4 5z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.95;
}
.shop-owner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 960px) {
  .shop-owner-layout {
    grid-template-columns: 1fr;
  }
  .shop-owner-page-header {
    flex-direction: column;
  }
}
.shop-owner-form-panel {
  padding: 1.35rem 1.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.shop-owner-form-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dim), var(--gold));
  opacity: 0.85;
}
.shop-owner-form-panel-head {
  margin-bottom: 1.15rem;
}
.shop-owner-form-panel-title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.shop-owner-form-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shop-owner-form-panel-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.shop-owner-step {
  color: rgba(255, 255, 255, 0.38);
}
.shop-owner-step-sep {
  color: rgba(201, 162, 39, 0.35);
  user-select: none;
}
.shop-owner-form-message {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.shop-owner-form-message--ok {
  background: rgba(67, 181, 129, 0.12);
  border: 1px solid rgba(67, 181, 129, 0.35);
  color: #86d9a8;
}
.shop-owner-form-message--error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.35);
  color: #e57373;
}
.shop-owner-form {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}
.shop-owner-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.shop-owner-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}
.shop-owner-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.85;
}
.shop-owner-file-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shop-owner-file-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.shop-owner-file-input {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.shop-owner-file-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.shop-owner-dropzone {
  --dz-border: rgba(201, 162, 39, 0.28);
  --dz-bg: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--dz-border);
  background: var(--dz-bg);
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    box-shadow var(--duration-fast),
    transform var(--duration-fast);
}
.shop-owner-dropzone:hover {
  --dz-border: rgba(201, 162, 39, 0.5);
  --dz-bg: rgba(201, 162, 39, 0.06);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.12), 0 8px 28px rgba(0, 0, 0, 0.35);
}
.shop-owner-dropzone:focus-visible {
  outline: none;
  --dz-border: rgba(201, 162, 39, 0.65);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.2);
}
.shop-owner-dropzone.is-dragover {
  --dz-border: rgba(201, 162, 39, 0.85);
  --dz-bg: rgba(201, 162, 39, 0.12);
  border-style: solid;
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.25), 0 12px 40px rgba(0, 0, 0, 0.45);
  transform: scale(1.01);
}
.shop-owner-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.35rem 1.25rem;
  min-height: 7.5rem;
}
.shop-owner-dropzone-icon {
  display: flex;
  color: rgba(201, 162, 39, 0.55);
  margin-bottom: 0.15rem;
  transition: color var(--duration-fast), transform var(--duration-fast);
}
.shop-owner-dropzone:hover .shop-owner-dropzone-icon,
.shop-owner-dropzone:focus-visible .shop-owner-dropzone-icon {
  color: var(--gold);
  transform: translateY(-1px);
}
.shop-owner-dropzone-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.shop-owner-dropzone-title strong {
  color: var(--gold);
  font-weight: 700;
}
.shop-owner-dropzone-meta {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 22rem;
}
.shop-owner-input-wrap {
  position: relative;
  display: block;
}
.shop-owner-input-prefix {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(201, 162, 39, 0.65);
  pointer-events: none;
  z-index: 1;
}
.shop-owner-input,
.shop-owner-textarea,
.shop-owner-select {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  transition:
    border-color var(--duration-fast),
    box-shadow var(--duration-fast),
    background var(--duration-fast);
}
.shop-owner-select,
.calc-mat-preview-select {
  color-scheme: dark;
}
.shop-owner-select option,
.calc-mat-preview-select option {
  background-color: #16161f;
  color: #f0f0f5;
}
.shop-owner-select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, rgba(201, 162, 39, 0.7) 50%),
    linear-gradient(135deg, rgba(201, 162, 39, 0.7) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) calc(50% - 0.2rem), calc(100% - 0.75rem) calc(50% - 0.2rem);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}
.shop-owner-input:hover,
.shop-owner-textarea:hover,
.shop-owner-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.02);
}
.shop-owner-input:focus,
.shop-owner-textarea:focus,
.shop-owner-select:focus {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.shop-owner-input:focus-visible,
.shop-owner-textarea:focus-visible,
.shop-owner-select:focus-visible {
  outline: none;
  border-color: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}
.shop-owner-input.shop-owner-input--with-prefix {
  padding-left: 2.35rem;
}
.shop-owner-textarea {
  resize: vertical;
  min-height: 108px;
}
.shop-owner-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem 1rem;
}
@media (max-width: 640px) {
  .shop-owner-field-row {
    grid-template-columns: 1fr;
  }
}
.shop-owner-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.shop-owner-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shop-owner-submit-btn.btn-primary {
  min-height: 2.65rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(201, 162, 39, 0.25);
  transition:
    transform var(--duration-fast),
    box-shadow var(--duration-fast),
    filter var(--duration-fast),
    background var(--duration-fast);
}
.shop-owner-submit-btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.4);
  filter: brightness(1.06);
}
.shop-owner-submit-btn.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.3);
}
.shop-owner-submit-btn.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.35), 0 6px 24px rgba(201, 162, 39, 0.35);
}
.shop-owner-cancel-btn.btn-ghost {
  min-height: 2.65rem;
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast);
}
.shop-owner-cancel-btn.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.shop-owner-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 0;
}
.shop-owner-preview-tile {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: var(--bg-deep);
}
.shop-owner-preview-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-owner-preview-tile--new {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}
.shop-owner-preview-name {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
}
.shop-owner-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--duration-fast);
}
.shop-owner-preview-remove:hover {
  background: rgba(237, 66, 69, 0.9);
}
.shop-owner-catalog-panel {
  padding: 0;
}
.shop-owner-catalog-head {
  margin-bottom: 1rem;
}
.shop-owner-catalog-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.shop-owner-catalog-count {
  font-weight: 600;
  color: var(--gold);
}
.shop-owner-catalog-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.shop-owner-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(201, 162, 39, 0.25);
  background: rgba(201, 162, 39, 0.04);
  color: var(--text-secondary);
  font-size: 0.92rem;
}
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.shop-owner-product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 39, 0.18);
  background: var(--bg-card);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out-expo), border-color var(--duration-fast), box-shadow var(--duration-normal);
}
.shop-owner-product-card:hover {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.1);
}
.shop-owner-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
}
.shop-owner-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shop-owner-product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.shop-owner-product-photo-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.shop-owner-product-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.shop-owner-product-name {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}
.shop-owner-product-price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-light);
}
.shop-owner-product-dimensions {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
}
.shop-owner-product-dimensions dt {
  margin: 0;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.shop-owner-product-dimensions dd {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
}
.shop-owner-product-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-secondary);
  flex: 1;
}
.shop-owner-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}
.shop-owner-delete-btn:hover {
  color: #e57373 !important;
  border-color: rgba(244, 67, 54, 0.4) !important;
}

/* ==========================================================================
   Main content area
   ========================================================================== */
.main-content {
  background: var(--bg-main);
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}
.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  padding-bottom: 4rem;
}

/* Content sections — show/hide with animation; only active section visible */
.content-section {
  display: none;
  animation: sectionIn 0.5s var(--ease-out-expo) forwards;
}
.content-section.active {
  display: block;
}
.content-section:not(.active) {
  display: none !important;
}
@keyframes sectionIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero section — only when this section is active (Featured tab only) */
.content-section.active.hero-section {
  display: flex;
}
.hero-section {
  position: relative;
  min-height: 70vh;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}
.hero-section--magazine {
  min-height: min(92vh, 1100px);
  padding: 1.75rem 0 3.5rem;
  justify-content: flex-start;
  /* Bleed to content-inner edges — use full main column width */
  width: calc(100% + 4rem);
  max-width: none;
  margin-inline: -2rem;
  padding-inline: 2rem;
  box-sizing: border-box;
}
.hero-bg {
  position: absolute;
  inset: -2rem;
  z-index: 0;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.2s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.35s forwards;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.5s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.65s forwards;
}
/* —— Magazine landing (Featured) —— */
.hero-mag {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(1480px, 100%);
  margin: 0 auto;
}
.hero-section--magazine .hero-mag {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.hero-mag-fold {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  flex: 1;
  min-height: 0;
}
.hero-mag-headline-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
  align-items: end;
  position: relative;
}
@media (min-width: 900px) {
  .hero-mag-headline-band {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr);
    gap: 2rem 3rem;
    padding-bottom: 0.35rem;
  }
}
.hero-mag-headline-col {
  position: relative;
  min-width: 0;
}
.hero-mag-lede-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
@media (min-width: 900px) {
  .hero-mag-lede-col {
    align-items: flex-end;
    text-align: end;
    padding-bottom: 0.2rem;
  }
}
.hero-mag-stamp {
  position: absolute;
  top: -0.35rem;
  inset-inline-end: clamp(0.25rem, 3vw, 2rem);
  z-index: 2;
  pointer-events: none;
  opacity: 0.92;
}
.hero-mag-stamp-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border: 2px solid rgba(201, 162, 39, 0.55);
  border-radius: 50%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  transform: rotate(-14deg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.45s var(--ease-out-expo), border-color var(--duration-normal);
}
.hero-mag-headline-col:hover .hero-mag-stamp-inner {
  transform: rotate(-10deg) scale(1.04);
  border-color: rgba(201, 162, 39, 0.88);
}
@media (max-width: 899px) {
  .hero-mag-stamp {
    inset-inline-end: 0;
    top: -1.25rem;
  }
}
.hero-mag-anchor {
  margin: 0;
  padding: 0.35rem 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}
.hero-mag-anchor:hover,
.hero-mag-anchor:focus-visible {
  color: var(--gold-light);
  border-bottom-color: rgba(201, 162, 39, 0.5);
}
.hero-mag-anchor-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out-expo);
}
.hero-mag-anchor:hover .hero-mag-anchor-arrow,
.hero-mag-anchor:focus-visible .hero-mag-anchor-arrow {
  transform: translateY(4px);
}
.hero-mag-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-bottom: 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  transition: border-color 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}
.hero-section--magazine .hero-mag-masthead:hover {
  border-bottom-color: rgba(201, 162, 39, 0.65);
}
.hero-mag-masthead-main {
  flex: 1;
  min-width: min(100%, 280px);
}
.hero-mag-dek {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.hero-mag-issue {
  margin: 0;
  text-align: end;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.3;
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-out-expo);
  cursor: default;
}
.hero-mag-masthead:hover .hero-mag-issue {
  background: rgba(201, 162, 39, 0.06);
  color: var(--text-primary);
}
.hero-mag-issue-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-mag-issue-vol {
  font-style: italic;
}
.hero-title--mag {
  font-size: clamp(2.85rem, 6.5vw + 0.5rem, 5.15rem);
  line-height: 1.04;
  max-width: 16ch;
  margin-bottom: 0;
  letter-spacing: -0.02em;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.28s forwards;
}
@media (min-width: 1100px) {
  .hero-title--mag {
    max-width: 14ch;
  }
}
.hero-title--mag-accent {
  display: inline;
  font-style: italic;
}
@keyframes heroMagGoldShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.hero-title--mag-shine {
  background: linear-gradient(
    105deg,
    var(--gold) 0%,
    var(--gold-light) 38%,
    #fff6d4 50%,
    var(--gold-light) 62%,
    var(--gold) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: heroMagGoldShimmer 4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .hero-title--mag-shine {
    animation: none;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--gold);
    filter: none;
  }
}
.hero-mag-spread {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.25rem);
  align-items: stretch;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.48s forwards;
  flex: 1;
  min-height: 0;
}
@media (min-width: 960px) {
  .hero-mag-spread {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.75rem, 3vw, 3.25rem);
    align-items: stretch;
  }
}
.hero-mag-cover {
  margin: 0;
  position: relative;
  align-self: start;
}
.hero-mag-cover-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: min(78vh, 720px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(201, 162, 39, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, #2c261c 0%, #12100c 100%);
  --mag-px: 0;
  --mag-py: 0;
  transition: box-shadow 0.45s var(--ease-out-expo), border-color 0.35s ease;
}
.hero-mag-cover-frame--tilt {
  perspective: none;
}
@media (min-width: 960px) {
  .hero-mag-cover-frame {
    transform: translateY(0.35rem);
  }
  .hero-mag-cover:hover .hero-mag-cover-frame {
    box-shadow:
      0 36px 88px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(201, 162, 39, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-color: rgba(201, 162, 39, 0.22);
  }
}
.hero-mag-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.75s var(--ease-out-expo);
  transform: translate(
      calc(var(--mag-px) * 18px),
      calc(var(--mag-py) * 14px)
    )
    scale(1.06);
  will-change: transform;
}
.hero-mag-cover:hover .hero-mag-cover-img {
  transform: translate(
      calc(var(--mag-px) * 20px),
      calc(var(--mag-py) * 16px)
    )
    scale(1.09);
}
.hero-mag-cover-gloss {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.03) 52%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: soft-light;
}
.hero-mag-cover:hover .hero-mag-cover-gloss {
  opacity: 1;
}
.hero-mag-cover-scrim {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.45) 42%,
    transparent 100%
  );
  z-index: 1;
}
.hero-mag-cover-cap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  text-align: start;
}
.hero-mag-cover-cap--overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.1rem, 3vw, 1.65rem) clamp(1.35rem, 4.5vw, 2.1rem);
  pointer-events: none;
}
.hero-mag-cover:hover .hero-mag-cover-cap--overlay .hero-mag-cover-line {
  color: #fff;
}
.hero-mag-cover-kicker {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.95);
  margin: 0;
}
.hero-mag-cover-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.98);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  transition: color 0.35s ease;
}
.hero-mag-rail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.hero-desc--mag {
  max-width: 38ch;
  margin-bottom: 0;
  font-size: clamp(0.98rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out-expo) 0.38s forwards;
}
@media (min-width: 900px) {
  .hero-desc--mag {
    margin-inline-start: auto;
  }
}
.hero-mag-quote {
  margin: 0;
  padding: 0.85rem 0 0.85rem 1.1rem;
  border-inline-start: 3px solid var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
}
.hero-mag-quote p {
  margin: 0;
}
.hero-actions--mag {
  margin-top: 0.25rem;
}
.hero-mag-stories {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.35rem;
  scroll-margin-top: 1.25rem;
}
.hero-mag-stories-rail {
  margin: 0 0 0.15rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.28);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (min-width: 1100px) {
  .hero-mag-stories {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 1rem 1.25rem;
    align-items: stretch;
  }
  .hero-mag-stories-rail {
    grid-column: 1 / -1;
    margin-bottom: 0.1rem;
  }
  /* Each card is ~half the rail — use photo-on-top so images stay large, not a sliver */
  .hero-mag-stories .hero-story {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-mag-stories .hero-story-media {
    aspect-ratio: 16 / 10;
    min-height: 152px;
    max-height: min(220px, 28vw);
    border-radius: clamp(13px, 1.8vw, 20px) clamp(13px, 1.8vw, 20px) 0 0;
  }
  .hero-mag-stories .hero-story-media img {
    min-height: 0;
  }
  .hero-mag-stories .hero-story-shade {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.2) 45%,
      transparent 72%
    );
  }
}
/* Story tiles — magazine photo + copy (stacked by default for strong imagery) */
.hero-story {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  text-decoration: none;
  color: inherit;
  border-radius: clamp(14px, 2vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(28, 26, 22, 0.98) 0%, var(--bg-card) 55%);
  overflow: hidden;
  text-align: start;
  min-height: 0;
  transition:
    transform var(--duration-normal) var(--ease-out-expo),
    border-color var(--duration-fast),
    box-shadow var(--duration-normal);
}
.hero-story:hover,
.hero-story:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 39, 0.42);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 162, 39, 0.1);
}
.hero-story-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #12100e;
  aspect-ratio: 16 / 10;
  min-height: 156px;
  max-height: 240px;
  border-radius: clamp(13px, 1.8vw, 20px) clamp(13px, 1.8vw, 20px) 0 0;
}
.hero-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.65s var(--ease-out-expo);
}
.hero-story:hover .hero-story-media img,
.hero-story:focus-visible .hero-story-media img {
  transform: scale(1.05);
}
.hero-story-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.12) 50%,
    transparent 100%
  );
}
/* Wide single-column rail: horizontal split (image | type) */
@media (min-width: 640px) and (max-width: 1099px) {
  .hero-story {
    grid-template-columns: minmax(150px, 40%) minmax(12rem, 1fr);
    align-items: stretch;
    min-height: 176px;
  }
  .hero-story-media {
    aspect-ratio: auto;
    min-height: 100%;
    max-height: none;
    height: 100%;
    align-self: stretch;
    border-radius: clamp(13px, 1.8vw, 20px) 0 0 clamp(13px, 1.8vw, 20px);
  }
  .hero-story-media img {
    min-height: 176px;
  }
  .hero-story-shade {
    background: linear-gradient(100deg, rgba(0, 0, 0, 0.4) 0%, transparent 55%);
  }
  .hero-story-copy {
    padding: 1.15rem 1.35rem 1.25rem 1.45rem;
    justify-content: center;
    border-top: none;
    background: transparent;
  }
}
.hero-story-copy {
  padding: 1.1rem 1.2rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.2rem;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.97) 0%, var(--bg-card) 100%);
}
@media (max-width: 639px) {
  .hero-story-media {
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }
  .hero-story-copy {
    padding: 1rem 1.15rem 1.15rem;
  }
}
/* Must follow base .hero-story-copy so stacked two-up cards keep photo + panel styling */
@media (min-width: 1100px) {
  .hero-mag-stories .hero-story-copy {
    padding: 1.05rem 1.2rem 1.2rem;
    flex: 1;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, rgba(14, 12, 10, 0.98) 0%, var(--bg-card) 100%);
  }
}
.hero-story-label {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212, 175, 95, 0.95);
}
.hero-story-title {
  margin: 0.15rem 0 0.1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 1.85vw + 0.4rem, 1.52rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
}
.hero-story-dek {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}
.hero-story-cta {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-story-cta-text {
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast), color var(--duration-fast);
}
.hero-story:hover .hero-story-cta-text,
.hero-story:focus-visible .hero-story-cta-text {
  border-bottom-color: rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
}
.hero-story-arrow {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}
.hero-story:hover .hero-story-arrow,
.hero-story:focus-visible .hero-story-arrow {
  transform: translateX(5px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-mag-cover:hover .hero-mag-cover-img,
  .hero-mag-cover .hero-mag-cover-img {
    transform: scale(1.02);
  }
  .hero-story:hover .hero-story-media img,
  .hero-story:focus-visible .hero-story-media img {
    transform: none;
  }
  .hero-story:hover,
  .hero-story:focus-visible {
    transform: none;
  }
  .hero-story:hover .hero-story-arrow,
  .hero-story:focus-visible .hero-story-arrow {
    transform: none;
  }
  .hero-mag-headline-col:hover .hero-mag-stamp-inner {
    transform: rotate(-14deg);
  }
  .hero-mag-cover:hover .hero-mag-cover-gloss {
    opacity: 0;
  }
}
.btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  background-size: 200% 200%;
  color: var(--bg-deep);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--gold-glow-strong);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  background-size: 200% 200%;
  animation: btnShimmer 2.5s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}
.btn-ghost:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
  border-color: var(--gold);
}

/* Generic card lift (reusable) */
.card-lift {
  transition: transform var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal);
}
.card-lift:hover {
  transform: translateY(-4px);
}

/* Section headers */
.section-header {
  margin-bottom: 2rem;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Edit Profile — two-column form + live preview */
.edit-profile-layout {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
  transition: gap var(--duration-fast);
}
.edit-profile-layout--editing {
  gap: 2.25rem;
}
.edit-profile-form {
  flex: 1 1 320px;
  max-width: 420px;
}
@media (max-width: 768px) {
  .edit-profile-layout {
    flex-direction: column;
    gap: 1.5rem;
  }
  .edit-profile-form,
  .edit-profile-preview-wrap {
    max-width: none;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }
  .edit-profile-preview-wrap {
    order: -1;
  }
}
.edit-profile-message {
  margin-bottom: 1rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
}
.edit-profile-message.auth-message-error {
  background: rgba(180, 60, 60, 0.2);
  color: #e88;
  border: 1px solid rgba(180, 60, 60, 0.4);
}
.edit-profile-actions-top {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.edit-profile-action-btn {
  transition: transform 0.12s ease, box-shadow var(--duration-fast), filter var(--duration-fast);
}
.edit-profile-action-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}
.edit-profile-action-btn:active:not(:disabled) {
  transform: scale(0.98);
}
.edit-profile-actions-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.edit-profile-tabs {
  margin-bottom: 1.5rem;
}
.edit-profile-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.35rem 0 0.5rem;
  margin-right: 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 4px 4px 0 0;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}
.edit-profile-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.edit-profile-tab:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.edit-profile-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.edit-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.edit-profile-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
.edit-profile-input,
.edit-profile-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast);
}
.edit-profile-input:focus,
.edit-profile-textarea:focus {
  outline: none;
  border-color: var(--border-gold);
}
.edit-profile-input.edit-profile-input-readonly {
  cursor: not-allowed;
  background: var(--bg-main);
  color: var(--text-secondary);
}
.edit-profile-input--valid {
  border-color: rgba(34, 197, 94, 0.45);
}
.edit-profile-input--invalid {
  border-color: rgba(239, 68, 68, 0.55);
}
.edit-profile-input--invalid:focus {
  border-color: rgba(239, 68, 68, 0.75);
}
.edit-profile-textarea {
  resize: vertical;
  min-height: 80px;
}
.edit-profile-char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: -0.65rem 0 0;
  line-height: 1.4;
}
.edit-profile-email-status {
  font-size: 0.78rem;
  margin: 0.2rem 0 0;
  min-height: 1.2em;
}
.edit-profile-email-status--ok {
  color: #86efac;
}
.edit-profile-email-status--err {
  color: #fca5a5;
}
.edit-profile-media-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
@media (min-width: 420px) {
  .edit-profile-media-block {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
  }
  .edit-profile-dropzone {
    flex: 0 0 140px;
  }
}
.edit-profile-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.65rem;
  text-align: center;
  border: 1px dashed rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, opacity 0.15s ease;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
  user-select: none;
}
.edit-profile-dropzone:hover:not(.edit-profile-dropzone--disabled) {
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(201, 162, 39, 0.06);
  color: var(--text-secondary);
}
.edit-profile-dropzone:focus-visible:not(.edit-profile-dropzone--disabled) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.edit-profile-dropzone--drag {
  border-style: solid;
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
}
.edit-profile-dropzone--disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.edit-profile-dropzone-icon {
  font-size: 1.15rem;
  opacity: 0.85;
  line-height: 1;
}
.edit-profile-dropzone-text strong {
  color: var(--gold-light);
  font-weight: 700;
}
.edit-profile-avatar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.edit-profile-btn-avatar {
  font-size: 0.9rem;
}
.edit-profile-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color var(--duration-fast);
}
.edit-profile-link:hover {
  color: var(--gold);
}
.edit-profile-password-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edit-profile-editable:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.edit-profile-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}
.edit-profile-preview-wrap {
  flex: 0 0 320px;
  min-width: 280px;
}
.edit-profile-preview-header {
  margin-bottom: 0.75rem;
}
.edit-profile-preview-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.4rem;
}
.edit-profile-preview-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}
.edit-profile-preview-sub strong {
  color: var(--gold-light);
  font-weight: 600;
}
.edit-profile-preview-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.edit-profile-preview-card--live {
  border-color: rgba(201, 162, 39, 0.65);
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 39, 0.12);
}
.edit-profile-preview-banner {
  height: 72px;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, rgba(201, 162, 39, 0.15) 50%, var(--bg-main) 100%);
  transition: background 0.2s ease;
}
.edit-profile-preview-body {
  position: relative;
  padding: 1.25rem 1rem 1.5rem;
  padding-top: 44px;
}
.edit-profile-preview-avatar-wrap {
  position: absolute;
  top: -28px;
  left: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg-panel);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-profile-preview-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-profile-preview-name {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
}
.edit-profile-preview-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.25rem;
}
.edit-profile-preview-shop {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 0.75rem;
  line-height: 1.35;
  word-break: break-word;
}
.edit-profile-shop-block {
  margin-bottom: 0.5rem;
}
.edit-profile-preview-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 0 0.75rem;
}
.edit-profile-preview-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
}
.edit-profile-preview-about {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Announcement cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.cards-grid--announcements {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.35rem;
}
.announcements-section .section-header--announcements {
  margin-bottom: 1.75rem;
}
.announcements-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-title--mag {
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.announcements-mag-lede {
  max-width: 42rem;
}
.announcements-mag-code {
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-light);
}
.announcements-section .section-header--announcements .section-header-text {
  position: relative;
  padding-bottom: 0.25rem;
}
.announcements-section .section-header--announcements .section-header-text::after {
  content: '';
  display: block;
  margin-top: 1.25rem;
  max-width: 12rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 39, 0.2) 55%, transparent 100%);
  border-radius: 2px;
}

/* Cinematic-only announcements (no static magazine grid) */
.announcements-cinematic-shell {
  position: relative;
}
.announcements-cinematic-empty {
  margin: 0;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(201, 162, 39, 0.28);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 40rem;
}
.announcements-cinematic-empty strong {
  color: var(--gold-light);
  font-weight: 600;
}
.agp-announce-dynamic-mount {
  min-width: 0;
}
.agp-announce-dynamic-inner {
  padding-bottom: 0.25rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.22);
}
.agp-announce-dynamic-label {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Cinematic single-slide carousel (sample announcements) */
.agp-announce-dynamic-inner--cinematic {
  padding-bottom: 0.5rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(201, 162, 39, 0.22);
}
.agp-announce-cinematic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.25rem;
}
.agp-announce-cinematic__nav {
  flex-shrink: 0;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    color var(--duration-fast),
    transform var(--duration-fast);
}
.agp-announce-cinematic__nav:hover {
  border-color: rgba(201, 162, 39, 0.65);
  background: rgba(201, 162, 39, 0.16);
  color: var(--gold);
}
.agp-announce-cinematic__nav:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.agp-announce-cinematic__nav-icon {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 300;
  margin-top: -0.12rem;
}
.agp-announce-cinematic__stage {
  position: relative;
  min-width: 0;
}
.agp-announce-cinematic__serial {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  z-index: 5;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: rgba(6, 6, 8, 0.78);
  border: 1px solid rgba(201, 162, 39, 0.32);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.agp-announce-cinematic__viewport {
  position: relative;
  min-height: min(22rem, 56vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.15);
  background: linear-gradient(165deg, rgba(201, 162, 39, 0.06) 0%, var(--bg-card) 42%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.agp-announce-cinematic__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.55s var(--ease-out-expo),
    visibility 0.55s;
  pointer-events: none;
  z-index: 0;
}
.agp-announce-cinematic__slide.agp-is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.agp-announce-cinematic__slide .announce-card--cinematic {
  min-height: 100%;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.agp-announce-cinematic__slide .announce-card--mag .announce-card__inner {
  padding-top: 1.35rem;
  padding-inline-end: 4.75rem;
}
.agp-announce-cinematic__slide .announce-card--cinematic:hover {
  transform: none;
}
.agp-announce-cinematic__slide .announce-card--cinematic.announce-card--mag {
  flex-direction: column;
}
.agp-announce-cinematic__slide .announce-card__visual--photo {
  position: relative;
  min-height: min(11rem, 34vh);
  overflow: hidden;
  flex-shrink: 0;
}
.agp-announce-cinematic__slide .announce-card__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.agp-announce-cinematic__slide .announce-card__photo-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 25%, rgba(6, 6, 8, 0.55) 100%),
    linear-gradient(90deg, rgba(6, 6, 8, 0.35) 0%, transparent 55%);
  pointer-events: none;
}
@media (min-width: 720px) {
  .agp-announce-cinematic__slide .announce-card--cinematic.announce-card--mag {
    flex-direction: row;
    align-items: stretch;
  }
  .agp-announce-cinematic__slide .announce-card--cinematic .announce-card__visual--photo {
    flex: 1 1 42%;
    min-width: 0;
    max-width: 50%;
    min-height: min(22rem, 52vh);
    align-self: stretch;
  }
  .agp-announce-cinematic__slide .announce-card--cinematic .announce-card__inner {
    flex: 1 1 58%;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .agp-announce-cinematic__slide {
    transition: none;
  }
}
@media (max-width: 640px) {
  .agp-announce-cinematic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .agp-announce-cinematic__stage {
    grid-column: 1 / -1;
    order: -1;
  }
  .agp-announce-cinematic__nav--prev {
    justify-self: end;
  }
  .agp-announce-cinematic__nav--next {
    justify-self: start;
  }
}

.announce-card {
  position: relative;
  padding: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: start;
  transition:
    border-color var(--duration-fast),
    background var(--duration-fast),
    transform var(--duration-normal) var(--ease-out-expo),
    box-shadow var(--duration-normal);
  outline: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.announce-card__inner {
  position: relative;
  z-index: 1;
  padding: 1.35rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-inline-size: 0;
}
.announce-card--mag .announce-card__inner {
  padding: 1.2rem 1.35rem 1.15rem;
}
.announce-card--featured.announce-card--mag .announce-card__inner {
  padding: 1.35rem 1.45rem 1.25rem;
}
@media (min-width: 960px) {
  .announce-card--featured.announce-card--mag .announce-card__inner {
    padding: 1.5rem 1.65rem 1.35rem;
    justify-content: center;
  }
}
.announce-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--gold-glow) 0%, transparent 40%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
}
.announce-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.12);
}
.announce-card--mag:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(201, 162, 39, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.announce-card:focus-visible {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(201, 162, 39, 0.12),
    0 0 0 2px var(--bg-deep),
    0 0 0 4px var(--gold);
}
.announce-card--mag:focus-visible {
  transform: translateY(-4px);
}
.announce-card:active {
  transform: translateY(0);
}
.announce-card--mag:active {
  transform: translateY(-1px);
}
.announce-card:hover .announce-card-glow,
.announce-card:focus-visible .announce-card-glow {
  opacity: 1;
}
.announce-badge {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  z-index: 2;
}
.announce-card__title {
  font-size: 1.12rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.announce-card--has-badge .announce-card__title {
  padding-inline-end: 4.25rem;
}
.announce-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
  line-height: 1.55;
  flex: 1;
}
.announce-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.announce-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.announce-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
}
.announce-card__cta-icon {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}
.announce-card:hover .announce-card__cta-icon,
.announce-card:focus-visible .announce-card__cta-icon {
  transform: translateX(3px);
}
[dir='rtl'] .announce-card:hover .announce-card__cta-icon,
[dir='rtl'] .announce-card:focus-visible .announce-card__cta-icon {
  transform: translateX(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .announce-card:hover,
  .announce-card:focus-visible {
    transform: none;
  }
  .announce-card:hover .announce-card__cta-icon,
  .announce-card:focus-visible .announce-card__cta-icon {
    transform: none;
  }
}
/* Legacy article-based cards (Community, Activity, etc.) */
.announce-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.announce-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.announce-card time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Trending list */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.trending-item {
  display: grid;
  grid-template-columns: 48px 1fr 80px;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.trending-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}
.trending-rank {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-dim);
}
.trending-info h3 { font-size: 1rem; margin-bottom: 0.2rem; }
.trending-info p { font-size: 0.85rem; color: var(--text-secondary); margin: 0; }
.trending-thumb {
  width: 80px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-panel) 100%);
  border: 1px solid var(--border-subtle);
}

/* Collections grid */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.collection-card {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo);
}
.collection-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(201,162,39,0.08) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal);
}
.collection-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.collection-card:hover .collection-card-bg { opacity: 1; }
.collection-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}
.collection-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 0;
  position: relative;
  z-index: 1;
}

/* Live section */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.live-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--duration-fast), transform var(--duration-normal) var(--ease-out-expo);
}
.live-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}
.live-card-preview {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-panel) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.live-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  background: #ef4444;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  animation: liveBadgePulse 1.5s ease-in-out infinite;
}
@keyframes liveBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
.live-card h3 {
  padding: 1rem 1rem 0.25rem;
  font-size: 1rem;
}
.live-card p {
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Right panel (activity + profile)
   ========================================================================== */
.right-panel {
  background: var(--bg-panel);
  border-left: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  width: var(--right-panel-w);
}
.right-panel-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.right-panel-title {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin: 0;
}
.right-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}
.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast);
}
.activity-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.activity-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--gold-dim) 100%);
  flex-shrink: 0;
}
.activity-body p {
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
  color: var(--text-primary);
}
.activity-body strong { color: var(--gold); font-weight: 500; }
.activity-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.right-panel-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background var(--duration-fast);
}
.user-pill:hover {
  background: rgba(255, 255, 255, 0.06);
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 100%);
}
.user-name {
  font-size: 0.9rem;
  flex: 1;
}
.user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ==========================================================================
   Responsive adjustments (legacy-safe)
   ========================================================================== */
@media (max-width: 600px) {
  .content-inner { padding: 1.25rem; }
  .hero-section { min-height: auto; padding: 2rem 0 3rem; }
  .hero-section--magazine {
    width: calc(100% + 2.5rem);
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    min-height: auto;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }
  .hero-mag-issue { text-align: start; width: 100%; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Owner credentials panel (Users / Admin detail)
   ========================================================================== */
.owner-credentials-callout {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.08) 0%, var(--bg-elevated) 50%, var(--bg-card) 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.owner-credentials-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.owner-credentials-shield {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.owner-credentials-title { display: block; font-size: 0.95rem; color: var(--text-primary); }
.owner-credentials-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.owner-credentials-note { font-size: 0.75rem; color: var(--text-secondary); margin: 0.5rem 0 0; }
.owner-credentials-fields .auth-input { font-size: 0.9rem; }
.monospace-cred { font-family: ui-monospace, 'Cascadia Code', monospace; letter-spacing: 0.02em; }
.owner-credentials-edit-bar { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.owner-user-cred-change-btn,
.owner-admin-cred-change-btn { margin-top: 0.5rem; }

/* ==========================================================================
   Notifications — magazine dashboard (Home → Notifications)
   ========================================================================== */
.agp-notifications-section .section-header--notifications-mag {
  position: relative;
  padding-bottom: 0.1rem;
}
.agp-notifications-section .section-header--notifications-mag::after {
  content: '';
  display: block;
  margin-top: 1.1rem;
  max-width: 9rem;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 162, 39, 0.15) 72%, transparent 100%);
  border-radius: 2px;
}
.section-title--mag-notif {
  font-size: clamp(1.75rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.agp-notifications-lede {
  max-width: 42rem;
  line-height: 1.55;
}

.agp-notifications-root.agp-notifications-dashboard {
  max-width: none;
  padding: 1.2rem 1.35rem;
  border: 1px solid rgba(201, 162, 39, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.035) 0%, var(--bg-card) 48%);
}
.agp-notifications-sandbox-tools {
  margin-bottom: 1.15rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(100, 180, 255, 0.22);
  background: rgba(80, 140, 220, 0.06);
}
.agp-notifications-sandbox-tools[hidden] {
  display: none !important;
}
.agp-notifications-sandbox-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.agp-notifications-sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}
.agp-notifications-sandbox-status {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: var(--gold-light);
}
.agp-notifications-sandbox-status[hidden] {
  display: none !important;
}
.agp-notifications-toolbar {
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
}
.agp-notifications-toolbar[hidden] {
  display: none !important;
}
.agp-notifications-stats {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.agp-notifications-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin-bottom: 0.85rem;
}
@media (max-width: 640px) {
  .agp-notifications-toolbar-grid {
    grid-template-columns: 1fr;
  }
  .agp-notifications-field--actions {
    justify-self: start;
  }
}
.agp-notifications-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.agp-notifications-label--spacer {
  visibility: hidden;
}
.agp-notifications-search,
.agp-notifications-sort {
  width: 100%;
  min-height: 2.35rem;
  font-size: 0.85rem;
}
.agp-notifications-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.35rem;
}
.agp-notifications-chip {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.agp-notifications-chip:hover {
  color: var(--text-secondary);
  border-color: rgba(201, 162, 39, 0.35);
}
.agp-notifications-chip--active {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}

.agp-notifications-list-mount {
  margin-top: 0.35rem;
  padding-top: 0.25rem;
}

.agp-notifications-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}
.agp-notifications-empty-card {
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}
.agp-notifications-empty-card--mag .agp-notifications-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: var(--text-primary);
}
.agp-notifications-empty-filter {
  text-align: center;
  padding: 1.5rem 1rem;
}
.agp-notifications-empty-filter .agp-notifications-empty {
  margin-bottom: 0.75rem;
}

.agp-notif-mag-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 880px) {
  .agp-notif-mag-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .agp-notif-card--featured {
    grid-column: 1 / -1;
  }
}

.agp-notif-card--mag {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  text-align: start;
  transition:
    transform 0.22s var(--ease-out-expo),
    box-shadow 0.22s ease,
    border-color 0.2s ease;
}
.agp-notif-card--mag:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(201, 162, 39, 0.1);
}
.agp-notif-card--unread {
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: inset 3px 0 0 var(--gold);
}
@media (min-width: 880px) {
  .agp-notif-card--featured {
    flex-direction: row;
    align-items: stretch;
    min-height: 240px;
  }
  .agp-notif-card--featured .agp-notif-card__visual {
    flex: 0 0 38%;
    max-width: 320px;
    min-height: auto;
  }
  .agp-notif-card--featured .agp-notif-card__sheet {
    flex: 1;
    justify-content: space-between;
  }
}

.agp-notif-card__visual {
  position: relative;
  min-height: 100px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.agp-notif-card--theme-ember .agp-notif-card__visual {
  background: linear-gradient(152deg, #160f0e 0%, rgba(190, 75, 65, 0.3) 48%, #080505 92%);
}
.agp-notif-card--theme-mist .agp-notif-card__visual {
  background: linear-gradient(140deg, #0e1216 0%, rgba(100, 140, 170, 0.25) 52%, #060809 90%);
}
.agp-notif-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image: repeating-linear-gradient(
    -15deg,
    transparent,
    transparent 4px,
    rgba(255, 255, 255, 0.02) 4px,
    rgba(255, 255, 255, 0.02) 5px
  );
  pointer-events: none;
}
.agp-notif-card__visual-orb {
  position: absolute;
  width: 140%;
  height: 140%;
  top: -40%;
  right: -30%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 220, 160, 0.14) 0%, transparent 55%);
  transition: transform 0.5s var(--ease-out-expo);
  pointer-events: none;
}
.agp-notif-card--mag:hover .agp-notif-card__visual-orb {
  transform: scale(1.1) translate(-2%, 2%);
}
.agp-notif-card__glyph {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.agp-notif-card__sheet {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.3rem 1.2rem;
  min-width: 0;
  flex: 1;
}
.agp-notif-card--featured .agp-notif-card__sheet {
  padding: 1.35rem 1.5rem 1.35rem;
}
.agp-notif-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.agp-notif-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.agp-notif-card__kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.agp-notif-card__when {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.agp-notif-unread-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.65);
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.agp-notif-read-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.agp-notif-card__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.08rem, 2.2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.agp-notif-card--featured .agp-notif-card__title {
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
}
.agp-notif-card__body {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.agp-notif-credentials {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-md);
}
.agp-notif-credentials-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.agp-notif-cred-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.agp-notif-cred-row:last-child {
  margin-bottom: 0;
}
.agp-notif-cred-row span:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  min-width: 4.25rem;
}
.agp-notif-cred-row code {
  min-width: 0;
  padding: 0.35rem 0.55rem;
  background: var(--bg-deep);
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  color: var(--gold-light);
  font-size: 0.8rem;
  word-break: break-all;
}
.agp-notif-cred-row .agp-notif-copy {
  flex-shrink: 0;
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
}

.agp-notif-card__actions {
  margin-top: auto;
  padding-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.agp-notif-card__actions:empty {
  display: none;
  padding-top: 0;
}

@media (max-width: 520px) {
  .agp-notif-cred-row {
    grid-template-columns: 1fr;
  }
  .agp-notif-cred-row .agp-notif-copy {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agp-notif-card--mag:hover {
    transform: none;
  }
  .agp-notif-card--mag:hover .agp-notif-card__visual-orb {
    transform: none;
  }
}

/* ========== Client orders (admin) + PayMongo modal + Job order ========== */
.clients-orders-section .section-subtitle code {
  font-size: 0.85em;
}
.clients-orders-dashboard {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, var(--bg-card) 50%);
  border-radius: var(--radius-md);
}
.clients-orders-toolbar[hidden] {
  display: none !important;
}
.clients-orders-stats {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.clients-orders-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.05fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: end;
  margin-bottom: 0.9rem;
}
@media (max-width: 960px) {
  .clients-orders-toolbar-grid {
    grid-template-columns: 1fr 1fr;
  }
  .clients-orders-field--search {
    grid-column: 1 / -1;
  }
  .clients-orders-field--actions {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
.clients-orders-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.clients-orders-label--spacer {
  visibility: hidden;
}
.clients-orders-search,
.clients-orders-date,
.clients-orders-sort {
  width: 100%;
  min-height: 2.35rem;
  font-size: 0.85rem;
}
.clients-orders-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.15rem;
}
.clients-orders-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.clients-orders-chip:hover {
  color: var(--text-secondary);
  border-color: rgba(201, 162, 39, 0.35);
}
.clients-orders-chip--active {
  color: var(--gold-light);
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.12);
}
.clients-orders-chips-label {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.clients-orders-chips--sub {
  padding-top: 0;
}
.clients-orders-subchip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(59, 130, 246, 0.08);
  color: #93c5fd;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.clients-orders-subchip:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.14);
}
.clients-orders-subchip--active {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.5);
  background: rgba(14, 165, 233, 0.18);
}
.clients-orders-submission-row {
  margin: 0 0 0.5rem;
}
.clients-orders-submission-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.clients-orders-submission-badge--multi {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.clients-orders-submission-badge--single {
  background: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.32);
}
.clients-orders-admin-root {
  padding: 0;
  border: none;
  background: transparent;
}
.clients-orders-empty--filter {
  text-align: center;
  margin-bottom: 0.25rem;
}
.clients-orders-empty-actions {
  text-align: center;
  margin: 0 0 0.5rem;
}
.clients-orders-queue-banner-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.45;
}
.clients-orders-decline-reason {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fca5a5;
  font-style: italic;
}
.clients-orders-spec--collapsible {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.clients-orders-spec-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  list-style: none;
  user-select: none;
}
.clients-orders-spec-summary::-webkit-details-marker {
  display: none;
}
.clients-orders-spec--collapsible .clients-orders-spec-inner {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.clients-orders-empty,
.clients-orders-denied {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}
.clients-orders-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.clients-orders-queue-banner {
  margin: 0 0 1.15rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12) 0%, rgba(0, 0, 0, 0.25) 100%);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.clients-orders-queue-banner strong {
  color: var(--gold-light);
}
.clients-orders-queue-banner-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.clients-orders-queue-next {
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.25);
  color: var(--gold-light);
  font-size: 0.8rem;
}
.clients-orders-queue-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.25);
  font-variant-numeric: tabular-nums;
}
.clients-orders-card--waiting {
  opacity: 0.72;
  border-style: dashed;
}
.clients-orders-queue-up-next {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #86efac;
}
.clients-orders-queue-wait {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}
.clients-orders-card .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.clients-orders-card {
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.clients-orders-card:hover {
  border-color: rgba(201, 162, 39, 0.28);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}
.clients-orders-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}
.clients-orders-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.clients-orders-badge--new {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.clients-orders-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.clients-orders-badge--no {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.clients-orders-badge--pay {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.app-shell:not(.is-owner) .clients-orders-chip--owner-only {
  display: none;
}
.clients-orders-empty--hint {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  opacity: 0.92;
}
.clients-orders-id {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-left: auto;
}
.clients-orders-id-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  vertical-align: middle;
}
.clients-orders-meta {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.clients-orders-client {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.clients-orders-shop {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--gold-light);
}
.clients-orders-total {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.clients-orders-spec {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.clients-orders-spec--bundle {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.clients-orders-bundle-line {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
}
.clients-orders-bundle-line-notes {
  margin: 0.2rem 0 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
  font-style: italic;
}
.clients-orders-design-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.5rem 0.35rem;
}
.clients-orders-design-thumb {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(201, 162, 39, 0.25);
  cursor: zoom-in;
}
.clients-orders-spec--single .clients-orders-spec-line {
  margin: 0;
}
.clients-orders-order-notes {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: var(--gold-light);
  opacity: 0.95;
}
.clients-orders-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agp-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.agp-modal[hidden] {
  display: none !important;
}
.agp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}
.agp-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: var(--bg-card);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
}
.agp-modal-dialog--job-order {
  max-width: 960px;
  max-height: min(94vh, 920px);
  padding: 1rem 1.15rem 1.1rem;
}
.agp-modal-dialog--pay {
  max-width: 440px;
}
.agp-modal--reseller-receipt .agp-modal-dialog--pay {
  width: min(94vw, 760px);
  max-width: 760px;
  max-height: min(92vh, 760px);
}
@media (max-width: 900px) {
  .agp-modal--reseller-receipt .agp-modal-dialog--pay {
    width: min(96vw, 560px);
    padding: 1.15rem 1rem;
  }
}
.agp-pay-intro {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.agp-pay-intro code {
  font-size: 0.78rem;
  color: var(--gold-light);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.agp-pay-lines {
  max-height: min(38vh, 260px);
  overflow-y: auto;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.15rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.agp-pay-line-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.agp-pay-line-row:last-of-type {
  border-bottom: none;
}
.agp-pay-line-row-main {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}
.agp-pay-line-idx {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
}
.agp-pay-line-sub {
  flex-shrink: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
  font-size: 0.8rem;
}
.agp-pay-line-notes {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}
.agp-pay-design-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
}
.agp-pay-design-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.agp-pay-order-notes {
  margin: 0.5rem 0.6rem 0;
  font-size: 0.75rem;
  color: var(--gold-light);
  line-height: 1.45;
}
.agp-pay-total-strip {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.22);
  font-size: 0.82rem;
}
.agp-pay-strip-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: var(--text-secondary);
}
.agp-pay-strip-row--tax {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.agp-pay-strip-row--total {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px dashed rgba(201, 162, 39, 0.3);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.agp-pay-strip-row--total span:last-child {
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}
.agp-pay-strip-row--deposit {
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(251, 191, 36, 0.35);
  font-weight: 700;
  color: #fcd34d;
}
.agp-pay-strip-row--deposit span:last-child {
  font-variant-numeric: tabular-nums;
}
.agp-deposit-panel {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.06);
  border: 1px solid rgba(251, 191, 36, 0.25);
}
.agp-deposit-panel-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fcd34d;
}
.agp-deposit-panel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.agp-deposit-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}
.agp-deposit-amount-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.agp-deposit-amount-value {
  font-size: 1.1rem;
  color: #fcd34d;
  font-variant-numeric: tabular-nums;
}
.agp-deposit-link-block {
  margin-bottom: 0.55rem;
}
.agp-deposit-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
  margin-top: 0.25rem;
}
.agp-deposit-url-input {
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.75rem;
}
.agp-deposit-open-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted, #9ca3af);
}
.agp-deposit-open-hint__text {
  flex: 1 1 10rem;
  min-width: 0;
}
.agp-deposit-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.agp-modal-lead--compact {
  margin-bottom: 0.65rem;
  text-align: center;
}
.agp-pay-amount-pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}
.agp-pay-amount-caption {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  vertical-align: middle;
}
.agp-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}
.agp-modal-close:hover {
  color: var(--gold);
}
.agp-modal-title {
  margin: 0 0 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.agp-modal-lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.agp-pay-hint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 1rem;
}
.agp-pay-hint code {
  font-size: 0.72rem;
  color: var(--gold-light);
}
.agp-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.agp-modal-status {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #fca5a5;
}

.agp-pay-actions--receipt {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-top: 0.5rem;
}
.agp-pay-actions--receipt .btn {
  flex: 1 1 auto;
  min-width: 8rem;
}

/* Off-screen receipt sheet (html2canvas capture) */
.trophy-order-receipt-export-host {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 420px;
  pointer-events: none;
  opacity: 0.01;
  z-index: -1;
}
#job-order-export-host.trophy-order-receipt-export-host {
  width: 540px;
}
.trophy-order-receipt-sheet {
  box-sizing: border-box;
  width: 420px;
  padding: 28px 24px;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.45;
}
.trophy-order-receipt-sheet .tor-inner {
  max-width: 100%;
}
.trophy-order-receipt-sheet .tor-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
}
.trophy-order-receipt-sheet .tor-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  flex: 0 0 auto;
}
.trophy-order-receipt-sheet .tor-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.trophy-order-receipt-sheet .tor-brand {
  min-width: 0;
}
.trophy-order-receipt-sheet .tor-shop {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111;
}
.trophy-order-receipt-sheet .tor-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.trophy-order-receipt-sheet .tor-sub {
  margin: 0 0 14px;
  font-size: 10px;
  color: #444;
}
.trophy-order-receipt-sheet .tor-billto {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f6f6f6;
  border-radius: 6px;
  font-size: 10px;
  color: #222;
}
.trophy-order-receipt-sheet .tor-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}
.trophy-order-receipt-sheet .tor-table th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}
.trophy-order-receipt-sheet .tor-th-amt {
  text-align: right;
  width: 28%;
}
.trophy-order-receipt-sheet .tor-line td {
  vertical-align: top;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 10px;
}
.trophy-order-receipt-sheet .tor-line-amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.trophy-order-receipt-sheet .tor-line-idx {
  color: #888;
  font-weight: 600;
  margin-right: 4px;
}
.trophy-order-receipt-sheet .tor-line-notes {
  margin: 4px 0 0;
  font-size: 9px;
  color: #555;
}
.trophy-order-receipt-sheet .tor-line-title {
  font-weight: 600;
  color: #222;
  overflow-wrap: anywhere;
}
.trophy-order-receipt-sheet .tor-line-desc {
  margin-top: 3px;
  font-size: 9px;
  color: #666;
  overflow-wrap: anywhere;
}
.trophy-order-receipt-sheet .tor-amt {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
.trophy-order-receipt-sheet .tor-totals {
  margin-top: 4px;
}
.trophy-order-receipt-sheet .tor-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 10px;
  color: #333;
}
.trophy-order-receipt-sheet .tor-total-row--grand {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid #111;
  font-weight: 700;
  font-size: 12px;
}
.trophy-order-receipt-sheet .tor-foot {
  margin: 16px 0 0;
  font-size: 8px;
  line-height: 1.4;
  color: #777;
}

/* Job order PNG/PDF — same document system as order summary, wider for production text */
.job-order-export-sheet.trophy-order-receipt-sheet {
  width: 520px;
  max-width: 520px;
  padding: 32px 28px;
  font-size: 11px;
}
.job-order-export-sheet .tor-shop {
  font-size: 14px;
  letter-spacing: 0.01em;
}
.job-order-export-sheet .tor-title {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.job-order-export-sheet .tor-sub {
  font-size: 10px;
  color: #555;
  line-height: 1.5;
}
.job-order-export-sheet .tor-sub strong {
  color: #111;
  font-weight: 700;
}
.job-order-export-sheet .tor-billto {
  padding: 12px 14px;
  font-size: 10px;
  line-height: 1.55;
  border: 1px solid #eaeaea;
}
.job-order-export-sheet .tor-billto strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #333;
}
.job-order-export-sheet .tor-billto--notes {
  background: #fffdf8;
  border-color: #f0e6d4;
}
.job-order-export-sheet .tor-table th {
  font-size: 9px;
  color: #555;
  padding-bottom: 8px;
}
.job-order-export-sheet .tor-line td {
  padding: 10px 0;
  font-size: 10px;
}
.job-order-export-sheet .tor-line-title {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 4px;
}
.job-order-export-sheet .tor-line-desc {
  display: block;
  margin: 0;
  font-size: 9px;
  color: #444;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.job-order-export-sheet .tor-line-amt {
  font-weight: 600;
  color: #111;
  vertical-align: top;
}
.job-order-export-sheet .tor-joj-desc {
  vertical-align: top;
}
.job-order-export-sheet .tor-total-row--grand {
  margin-top: 8px;
  padding-top: 10px;
}
.job-order-export-sheet .tor-joj-section {
  margin: 14px 0 0;
  padding: 10px 12px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
  font-size: 9px;
  line-height: 1.5;
  color: #333;
}
.job-order-export-sheet .tor-joj-section strong {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #444;
}

.clients-orders-submitted-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  vertical-align: middle;
}

.job-order-modal-sub {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  opacity: 0.92;
}
.job-order-form {
  margin: 0;
}
.job-order-capture-target {
  padding: 0.5rem 0.55rem 0.55rem;
  border-radius: 12px;
  background: rgba(8, 7, 6, 0.55);
  border: 1px solid rgba(201, 162, 39, 0.14);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.job-order-sheet-one.job-order-capture-target {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.job-order-capture-target:hover {
  border-color: rgba(201, 162, 39, 0.22);
}
.job-order-capture-pulse {
  animation: jobOrderCapturePulse 0.55s ease-out;
}
@keyframes jobOrderCapturePulse {
  0% {
    box-shadow: inset 0 0 0 0 rgba(201, 162, 39, 0);
  }
  40% {
    box-shadow: inset 0 0 0 2px rgba(201, 162, 39, 0.35);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(201, 162, 39, 0);
  }
}
.job-order-sheet-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.job-order-sheet-head-main {
  flex: 1 1 min(280px, 100%);
  min-width: 0;
}
.job-order-sheet-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.9;
}
.job-order-sheet-title.agp-modal-title {
  margin: 0 0 0.2rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.12;
}
.job-order-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.2);
  flex: 0 0 auto;
  align-self: flex-start;
}
.job-order-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.job-order-toolbar-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 100%;
  margin-bottom: 0.05rem;
}
@media (min-width: 560px) {
  .job-order-toolbar {
    flex-direction: column;
    align-items: stretch;
    min-width: 7.5rem;
  }
  .job-order-toolbar-label {
    width: auto;
    margin-bottom: 0;
    margin-inline-end: 0;
  }
  .job-order-toolbar-actions {
    flex-direction: row;
  }
}
@media (min-width: 720px) {
  .job-order-toolbar {
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }
  .job-order-toolbar-label {
    width: auto;
    margin-inline-end: 0.35rem;
  }
}
.job-order-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    transform 0.25s var(--ease-out-expo),
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}
.job-order-export-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}
.job-order-export-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}
.job-order-export-icon {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1;
}
.job-order-form .job-order-section-title {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.job-order-section-title--lines {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.job-order-section-title--tight {
  margin-top: 0;
  margin-bottom: 0.3rem;
}
.job-order-production-block {
  margin-top: 0.4rem;
  padding: 0.45rem 0.5rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.18);
}
.job-order-grid {
  display: grid;
  gap: 0.4rem 0.75rem;
}
.job-order-field {
  transition: transform 0.2s ease;
}
.job-order-field:focus-within {
  transform: translateY(-1px);
}
.job-order-form .job-order-field label,
.job-order-form .job-order-label-block {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.job-order-form .job-order-label-block {
  margin-bottom: 0.32rem;
}
.job-order-form .auth-input,
.job-order-form .job-order-textarea {
  padding: 0.32rem 0.45rem;
  font-size: 0.8rem;
}
.job-order-field .auth-input:focus,
.job-order-field .auth-input:focus-visible,
.job-order-table .auth-input:focus,
.job-order-table textarea.auth-input:focus {
  border-color: rgba(201, 162, 39, 0.45);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.15);
}
.job-order-grid--header {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.job-order-grid--header .job-order-field--deadline-span {
  grid-column: span 2;
}
.job-order-grid--prod {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.job-order-field--span2 {
  grid-column: 1 / -1;
}
.job-order-reminders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem 0.65rem;
  margin-bottom: 0.45rem;
}
@media (min-width: 720px) {
  .job-order-reminders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.job-order-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
  border-radius: 6px;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}
.job-order-check:hover {
  color: var(--text-primary);
  background: rgba(201, 162, 39, 0.06);
}
.job-order-check:has(input:focus-visible) {
  outline: 2px solid rgba(201, 162, 39, 0.5);
  outline-offset: 2px;
}
.job-order-table-wrap {
  overflow-x: auto;
  margin-bottom: 0.35rem;
  margin-top: 0;
}
.job-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}
.job-order-table th,
.job-order-table td {
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.3rem 0.35rem;
  vertical-align: top;
}
.job-order-table th {
  background: rgba(201, 162, 39, 0.09);
  color: var(--gold-light);
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.6rem;
  padding: 0.35rem 0.35rem;
}
.job-order-table tbody tr {
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease;
}
.job-order-table tbody tr:hover {
  background: rgba(201, 162, 39, 0.04);
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.08);
}
.job-order-table .job-line-remove {
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.job-order-table .job-line-remove:hover {
  transform: scale(1.08);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}
.job-order-table .auth-input,
.job-order-table textarea.auth-input {
  width: 100%;
  font-size: 0.74rem;
  padding: 0.28rem 0.38rem;
}
.job-order-table textarea.auth-input {
  min-height: 2.1rem;
  resize: vertical;
}
.job-order-textarea {
  width: 100%;
  min-height: 2.5rem;
  resize: vertical;
}
.job-order-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#job-order-add-line {
  margin-top: 0.3rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
#job-order-add-line:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
}
@media (prefers-reduced-motion: reduce) {
  .job-order-capture-pulse {
    animation: none;
  }
  .job-order-field:focus-within,
  .job-order-export-btn:hover:not(:disabled),
  #job-order-add-line:hover,
  .job-order-table .job-line-remove:hover {
    transform: none;
  }
}
.trophy-order-profile-hint {
  margin: 0 0 1rem;
  max-width: 40rem;
}

@media (max-width: 640px) {
  .job-order-grid--header,
  .job-order-grid--prod {
    grid-template-columns: 1fr;
  }
  .job-order-grid--header .job-order-field--deadline-span {
    grid-column: auto;
  }
  .job-order-field--span2 {
    grid-column: auto;
  }
  .job-order-reminders {
    grid-template-columns: 1fr;
  }
  .job-order-sheet-head {
    flex-direction: column;
  }
  .job-order-toolbar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .job-order-toolbar-label {
    width: auto;
    margin-inline-end: 0.35rem;
  }
}

/* ========== Settings — Profit Share (user / owner) ========== */
.profit-share-settings-root {
  max-width: 52rem;
}
.profit-share-lead {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.profit-share-denied {
  padding: 1rem;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}
.profit-share-form {
  padding: 1.25rem 1.5rem;
}
.profit-share-details {
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.profit-share-details[open] .profit-share-summary {
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.profit-share-summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--gold);
  list-style: none;
}
.profit-share-summary::-webkit-details-marker {
  display: none;
}
.profit-share-hint {
  margin: 0 1rem 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.profit-share-table-wrap {
  overflow-x: auto;
  padding: 0 0.5rem 1rem;
}
.profit-share-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.profit-share-table th {
  text-align: left;
  padding: 0.5rem 0.5rem 0.65rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.profit-share-table td {
  padding: 0.45rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.profit-share-row-label {
  min-width: 14rem;
}
.profit-share-row-title {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
}
.profit-share-row-detail {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.profit-share-row-original {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.profit-share-row-mode .auth-input,
.profit-share-row-amt .auth-input {
  width: 100%;
  max-width: 9rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}
.profit-share-row-amt .auth-input {
  max-width: 6.5rem;
}
.profit-share-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

/* Focus styles (accessibility + premium feel) */
.btn:focus-visible,
.icon-item:focus-visible,
.icon-sidebar-collapse-desktop:focus-visible,
.nav-panel-collapse-desktop:focus-visible,
.nav-panel-recall:focus-visible,
.icon-sidebar-recall:focus-visible,
.nav-item:focus-visible,
.feature-card:focus-visible,
.hero-story:focus-visible,
.hero-mag-anchor:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-deep), 0 0 0 4px var(--gold);
}
.hero-mag-anchor:focus-visible {
  border-radius: 2px;
}
.announce-card:focus-visible {
  outline: none;
}
.nav-item:focus-visible { border-left-color: var(--gold); }

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

/* ==========================================================================
   FINAL mobile nav override (must stay last)
   ========================================================================== */
@media (max-width: 900px) {
  .icon-sidebar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 200 !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.45rem 0.35rem calc(0.45rem + env(safe-area-inset-bottom)) !important;
    border-right: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.35rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .sidebar-brand { display: none !important; }
  .icon-sidebar > * { flex: 0 0 auto !important; }

  .icon-nav,
  .sidebar-footer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    width: auto !important;
  }
  .sidebar-footer {
    margin-left: auto !important;
    margin-top: 0 !important;
  }

  .sidebar-footer-user {
    display: flex !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-direction: row !important;
    align-items: center !important;
  }
  .profile-hover-wrap { min-width: 0 !important; }
  .profile-trigger {
    width: 46px !important;
    height: 46px !important;
  }
  .profile-popout { display: none !important; }

  .nav-panel {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: calc(58px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: min(60vh, 520px) !important;
    z-index: 201 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--border-subtle) !important;
    border-radius: 16px 16px 0 0 !important;
    transform: translateY(110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.55) !important;
  }
  .nav-panel.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .main-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  .icon-sidebar-collapse-desktop,
  .icon-sidebar-recall {
    display: none !important;
  }
}

/* Sandbox — floating control deck (shop owner account only) */
.agp-tester-deck {
  position: fixed;
  z-index: 9600;
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
}
.agp-tester-deck > * {
  pointer-events: auto;
}
.agp-tester-deck__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(100, 180, 255, 0.45);
  background: linear-gradient(145deg, rgba(30, 45, 70, 0.95), rgba(12, 18, 28, 0.98));
  color: #c8e6ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(100, 180, 255, 0.12);
  transition:
    transform var(--duration-fast) var(--ease-out-expo),
    border-color 0.2s ease,
    box-shadow 0.25s ease;
}
.agp-tester-deck__fab:hover {
  border-color: rgba(140, 210, 255, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(100, 180, 255, 0.15);
}
.agp-tester-deck__fab-glyph {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}
.agp-tester-deck__panel {
  width: min(22rem, calc(100vw - 1.5rem));
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 1rem 1rem 1.05rem;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(100, 180, 255, 0.28);
  background: linear-gradient(165deg, rgba(24, 36, 54, 0.97), rgba(8, 10, 16, 0.99));
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.agp-tester-deck__title {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.agp-tester-deck__lead {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
}
.agp-tester-deck__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.45rem;
}
.agp-tester-deck__btn {
  justify-content: center;
  text-align: center;
  border-color: rgba(100, 180, 255, 0.22) !important;
  font-size: 0.68rem !important;
  padding: 0.4rem 0.35rem !important;
  line-height: 1.25;
}
.agp-tester-deck__btn:hover {
  border-color: rgba(140, 210, 255, 0.4) !important;
  background: rgba(100, 180, 255, 0.08) !important;
}
@media (max-width: 380px) {
  .agp-tester-deck__grid {
    grid-template-columns: 1fr;
  }
}

/* Owner / sandbox: gold random-fill toolbars (visibility toggled in JS via hidden) */
.agp-sandbox-random-fill {
  margin: 0.65rem 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.agp-sandbox-random-fill--inline {
  margin-top: 0.85rem;
}
.edit-profile-actions-top .agp-sandbox-random-fill--profile-wrap {
  margin-left: auto;
}
@media (max-width: 640px) {
  .edit-profile-actions-top .agp-sandbox-random-fill--profile-wrap {
    margin-left: 0;
    width: 100%;
  }
  .edit-profile-actions-top .agp-sandbox-random-fill--profile-wrap .btn {
    width: 100%;
  }
}
.profit-share-random-fill {
  margin: 0.75rem 0 1rem;
}
.job-order-form .agp-sandbox-random-fill {
  margin: 1rem 0 0.5rem;
}
.agp-modal--reseller-receipt .agp-sandbox-random-fill {
  margin: 0.75rem 0;
}
