:root {
  /* NS logo-inspired theme: deep black base with electric blue + violet gradients */
  --bg: #02030a;
  --bg-soft: rgba(147, 155, 255, 0.085);
  --bg-softer: rgba(147, 155, 255, 0.045);
  --panel: rgba(13, 17, 45, 0.74);
  --panel-strong: rgba(6, 9, 28, 0.92);
  --text: #f4f6ff;
  --muted: #aeb8ff;
  --muted-strong: #d9ddff;
  --line: rgba(171, 178, 255, 0.16);
  --primary: #4d63f2;
  --secondary: #aeb2ff;
  --accent: #6f7cff;
  --success: #7f8cff;
  --danger: #ff5d7d;
  --shadow: 0 25px 80px rgba(0, 0, 20, 0.58);
  --shadow-soft: 0 18px 48px rgba(0, 0, 20, 0.38);
  --radius: 24px;
}
body.light {
  --bg: #f5f6ff;
  --bg-soft: rgba(255, 255, 255, 0.78);
  --bg-softer: rgba(255, 255, 255, 0.93);
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --text: #11142f;
  --muted: #626aa8;
  --muted-strong: #2d346f;
  --line: rgba(77, 99, 242, 0.14);
  --shadow: 0 25px 80px rgba(77, 99, 242, 0.16);
  --shadow-soft: 0 18px 48px rgba(77, 99, 242, 0.1);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(174, 178, 255, 0.22), transparent 30%),
    radial-gradient(
      circle at 78% 18%,
      rgba(77, 99, 242, 0.28),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 34%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.boost {
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(111, 124, 255, 0.24),
      transparent 25%
    ),
    radial-gradient(
      circle at 80% 15%,
      rgba(174, 178, 255, 0.22),
      transparent 28%
    ),
    radial-gradient(circle at 50% 0%, rgba(77, 99, 242, 0.32), transparent 30%),
    var(--bg);
}

a {
  color: inherit;
}

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

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

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  opacity: 0.18;
  pointer-events: none;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 20;
  width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.5rem 1rem;
  backdrop-filter: blur(16px);
  background: rgba(5, 7, 24, 0.74);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
}

body.light .nav {
  background: rgba(255, 255, 255, 0.78);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-badge {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  box-shadow: 0 0 18px rgba(174, 178, 255, 0.68);
}

.nav nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
}

.chip-btn,
.icon-btn,
.qty-btn,
.status-pill,
select,
input,
textarea {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.chip-btn,
.icon-btn,
.qty-btn,
.status-pill {
  border-radius: 999px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus,
.chip-btn:hover,
.icon-btn:hover,
.qty-btn:hover {
  outline: none;
  border-color: rgba(77, 99, 242, 0.56);
  box-shadow: 0 0 0 4px rgba(77, 99, 242, 0.14);
}

.btn {
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 40px rgba(77, 99, 242, 0.35);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.btn-danger {
  color: white;
  background: linear-gradient(135deg, #ff5d7d, #8d96ff);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

main,
.page-shell,
.auth-shell,
.dashboard-shell,
.admin-shell {
  width: min(1200px, calc(92vw - 260px));
  margin: 0 auto;
  margin-left: calc(260px + max(4vw, 2rem));
  position: relative;
  z-index: 1;
}

main {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.page-shell,
.auth-shell,
.dashboard-shell,
.admin-shell {
  padding: 2rem 0 5rem;
}

.section {
  padding-top: 1rem;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 3rem;
}

.page-hero {
  padding: 2rem 0 1rem;
}

.page-hero.compact {
  padding-top: 1rem;
}

.hero.compact {
  min-height: auto;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem 0 2rem;
  align-items: start;
}

.hero.compact h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.hero.compact p {
  max-width: 760px;
}

.eyebrow {
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  margin-top: -160px;
}

.eyebrow-row {
  margin-top: -220px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: -160px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 0.65rem 0 1rem;
  letter-spacing: -0.05em;
}

.page-hero h1,
.auth-card h1,
.dashboard-topbar h1,
.admin-topbar h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0.15rem 0;
  font-size: 1.08rem;
}

p {
  margin: 0;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #ffffff,
    #aeb2ff 38%,
    #7f8cff 70%,
    #6f7cff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text,
.auth-subtitle,
.helper,
.summary-row,
.cart-item p,
.section-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  display: grid;
  gap: 1.25rem;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.mini-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mini-stats div {
  min-width: 150px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.mini-stats strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.orb-1 {
  width: 190px;
  height: 190px;
  background: rgba(174, 178, 255, 0.24);
  top: 8%;
  right: 14%;
}

.orb-2 {
  width: 230px;
  height: 230px;
  background: rgba(111, 124, 255, 0.22);
  bottom: 10%;
  left: 6%;
}

.glass-card,
.panel,
.metric-card,
.activity-card,
.auth-card,
.dashboard-hero,
.product-card,
.contact-card,
.form-card,
.feature-strip,
.feature-card,
.shop-spotlight,
.empty-state,
.notice-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.glass-card {
  position: absolute;
}

.main-card {
  width: min(560px, 92%);
  padding: 1.1rem;
  transform: rotate(-4deg);
}

.side-card {
  right: 0;
  bottom: 3%;
  width: 280px;
  padding: 1.2rem;
}

.card-top {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
}

.pink {
  background: #ff5f56;
}

.yellow {
  background: #ffbd2e;
}

.green {
  background: #27c93f;
}

.code {
  display: grid;
  gap: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #e8f6ec;
  padding: 1rem;
  background: rgba(4, 6, 22, 0.74);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.kw {
  color: #aeb2ff;
}

.str {
  color: #c3c7ff;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.1rem;
  margin: 1rem 0 2rem;
  margin-top: -80px;
}

.feature-item {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.feature-item strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 0 0 1rem;
  margin-top: -70px;
}

.section-head p {
  max-width: 620px;
  margin-top: -130px;
}

.product-grid,
.metrics-grid,
.dashboard-grid,
.admin-grid,
.auth-grid,
.toolbar,
.form-grid,
.cart-layout,
.feature-grid {
  display: grid;
  gap: 1.2rem;
}

.product-grid {
  margin-top: -50px;
  grid-template-columns: repeat(3, 1fr);
}

.metrics-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dashboard-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.admin-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.auth-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.auth-grid-centered {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.toolbar {
  grid-template-columns: 1.15fr 220px auto;
  align-items: center;
}

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

.form-grid .full {
  grid-column: 1/-1;
}

.cart-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

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

.product-card,
.metric-card,
.activity-card,
.auth-card,
.contact-card,
.form-card,
.cart-items,
.cart-summary,
.feature-card,
.shop-spotlight,
.empty-state,
.notice-card {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  margin-top: 40px;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(77, 99, 242, 0.18), transparent 65%);
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card p {
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.badge,
.inventory-pill,
.stat-pill,
.result-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.inventory-low {
  background: rgba(255, 93, 93, 0.15);
}

.inventory-ok {
  background: rgba(125, 216, 125, 0.15);
}

.price {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.sale-price {
  color: var(--secondary);
  font-weight: 900;
}

.original-price {
  color: var(--muted);
  font-size: 1rem;
  margin-left: 0.5rem;
  text-decoration: line-through;
}

.category {
  color: var(--secondary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Shop toolbar */
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(8, 12, 36, 0.94), rgba(5, 7, 24, 0.92)),
    radial-gradient(
      circle at top right,
      rgba(174, 178, 255, 0.14),
      transparent 35%
    );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.toolbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(77, 99, 242, 0.1), transparent 28%),
    radial-gradient(
      circle at 80% 20%,
      rgba(174, 178, 255, 0.11),
      transparent 26%
    );
}

/* Keep contents above glow layer */
.toolbar > * {
  position: relative;
  z-index: 1;
}

/* Search input */
#searchInput {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  outline: none;
  color: #f4f6ff;
  font-size: 0.98rem;

  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.025)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

#searchInput:focus {
  border-color: rgba(77, 99, 242, 0.38);
  box-shadow:
    0 0 0 3px rgba(77, 99, 242, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.24);
  background: linear-gradient(
    180deg,
    rgba(77, 99, 242, 0.08),
    rgba(255, 255, 255, 0.03)
  );
}

/* Category dropdown */
.category-select-wrap {
  width: 100%;
  min-height: 56px;
  display: block;
  position: relative;
  padding: 7px 44px 7px 14px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(13, 17, 45, 0.93),
    rgba(6, 9, 28, 0.96)
  );
  border: 1px solid rgba(174, 178, 255, 0.24);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.category-select-wrap span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.category-select-wrap::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #f4f6ff;
  font-size: 1rem;
  font-weight: 900;
  pointer-events: none;
}

#categorySelect {
  width: 100%;
  height: 30px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  color: #f4f6ff;
  background: transparent;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
}

#categorySelect option {
  color: #11142f;
  background: #f4f6ff;
}

.category-select-wrap:focus-within {
  border-color: rgba(77, 99, 242, 0.38);
  box-shadow:
    0 0 0 3px rgba(77, 99, 242, 0.14),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

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

/* Button in toolbar */
.toolbar .btn,
.toolbar .btn-secondary {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 900px) {
  .toolbar {
    grid-template-columns: 1fr;
  }
}

.activity-list {
  display: grid;
  gap: 0.8rem;
}

.activity-item,
.signal-feed div,
.table-wrap,
.cart-item,
.order-card {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.signal-feed {
  display: grid;
  gap: 0.8rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1rem;
  align-items: center;
}

.cart-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 16px;
}

.cart-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  padding: 0;
}

.admin-topbar,
.dashboard-topbar,
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.75rem 1rem;
  border-radius: 999px;
}

.metric-card h3 {
  font-size: 2rem;
  margin: 0.2rem 0;
}

.metric-label {
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
}

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-ring-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(174, 178, 255, 0.55);
  animation: pulse 2s infinite ease-out;
}

.pulse-core {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: white;
  box-shadow: 0 0 60px rgba(174, 178, 255, 0.34);
}

.command-palette {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding-top: 9rem;
  background: rgba(4, 7, 24, 0.44);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.command-palette.hidden {
  display: none;
}

.command-card {
  width: min(560px, 92vw);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  border-radius: 26px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.command-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 800;
}

.command-actions {
  display: grid;
  gap: 0.75rem;
}

.command-actions button {
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem;
  border-radius: 16px;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(120px);
  transition: transform 0.3s ease;
  z-index: 40;
}

.toast.show {
  transform: translateY(0);
}

.auth-card form,
.toolbar input,
.toolbar select {
  width: 100%;
}

.auth-card form {
  display: grid;
  gap: 0.9rem;
}

.auth-card.hero-panel {
  min-height: 100%;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(77, 99, 242, 0.16), rgba(174, 178, 255, 0.1)),
    var(--panel);
}

.auth-error {
  color: #cfd3ff;
  min-height: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
}

.cart-summary {
  position: sticky;
  top: 5.5rem;
}

.contact-card {
  max-width: 760px;
  margin: 4rem auto 0;
  text-align: center;
}

.project-info-box {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.project-info-box label {
  font-weight: 800;
}

.project-info-box textarea {
  width: 100%;
  min-height: 160px;
  resize: vertical;
}

.feature-card .icon-wrap,
.shop-spotlight .icon-wrap,
.notice-card .icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    rgba(77, 99, 242, 0.22),
    rgba(174, 178, 255, 0.18)
  );
  border: 1px solid var(--line);
  font-size: 1.1rem;
}

.shop-spotlight {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.empty-state {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  margin-top: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-14px) rotate(-4deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.7);
    opacity: 1;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@media (max-width: 960px) {
  .hero,
  .auth-grid,
  .dashboard-grid,
  .cart-layout,
  .toolbar,
  .admin-grid,
  .form-grid,
  .feature-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    width: 220px;
    padding: 1.25rem 0.85rem;
  }

  main,
  .page-shell,
  .auth-shell,
  .dashboard-shell,
  .admin-shell {
    width: min(1200px, calc(92vw - 220px));
    margin-left: calc(220px + 2rem);
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-controls {
    justify-content: flex-start;
  }

  .dashboard-hero,
  .dashboard-topbar,
  .admin-topbar,
  .section-head,
  .shop-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-visual {
    min-height: 420px;
  }

  .side-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .glass-card.main-card {
    position: relative;
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav {
    position: sticky;
    width: auto;
    height: auto;
    bottom: auto;
    padding: 1rem 4vw;
    flex-direction: column;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav nav {
    width: 100%;
    overflow: auto;
    flex-direction: row;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .nav-actions {
    width: 100%;
    margin-top: 0;
    justify-content: flex-start;
  }

  main,
  .page-shell,
  .auth-shell,
  .dashboard-shell,
  .admin-shell {
    width: min(1200px, 92vw);
    margin-left: auto;
    margin-right: auto;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4rem);
  }

  .mini-stats div {
    min-width: 100%;
  }

  .product-card img {
    height: 220px;
  }
}

.inventory-infinite {
  background: rgba(174, 178, 255, 0.16);
  color: #aeb2ff;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.receipt-btn {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .order-item {
    align-items: flex-start;
  }

  .receipt-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

.promo-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.promo-fields input {
  width: 100%;
}

.promo-row strong {
  color: #9ef5a6;
}

.total-row {
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
  padding-top: 0.8rem;
  color: var(--text);
}

@media (max-width: 640px) {
  .promo-fields {
    grid-template-columns: 1fr;
  }
}

.promotions-section-gap {
  margin-top: 2rem;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  outline: none;
  font: inherit;
}

select option {
  background: #05071a;
  color: #f4f6ff;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.admin-tab {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--primary);
  color: #02030a;
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(174, 178, 255, 0.26);
}

.admin-panel {
  display: none;
}

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

.success-text {
  color: var(--success) !important;
}

/* Northstar themed order confirmation */
.checkout-confirmation-page {
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(77, 99, 242, 0.32),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 4%,
      rgba(174, 178, 255, 0.24),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(111, 124, 255, 0.16),
      transparent 34%
    ),
    #02030a;
  overflow-x: hidden;
}

.checkout-confirmation-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    transparent 42%
  );
  z-index: -1;
}

.checkout-confirmation-page a {
  color: inherit;
  text-decoration: none;
}

.confirmation-nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.confirmation-brand,
.confirmation-nav nav {
  display: inline-flex;
  align-items: center;
}

.confirmation-brand {
  gap: 0.8rem;
  color: #f4f6ff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.confirmation-nav nav {
  gap: 0.55rem;
  padding: 0.45rem;
  border: 1px solid rgba(171, 178, 255, 0.16);
  border-radius: 999px;
  background: rgba(13, 17, 45, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0, 0, 20, 0.28);
}

.confirmation-nav nav a {
  color: #d9ddff;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: 0.2s ease;
}

.confirmation-nav nav a:hover,
.confirmation-nav-pill {
  color: #f4f6ff !important;
  background: rgba(255, 255, 255, 0.08);
}

.confirmation-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  grid-template-areas:
    "hero summary"
    "confirmed summary"
    "details summary";
  gap: 1.25rem;
  align-items: start;
}

.confirmation-summary,
.confirmation-card,
.confirmation-status-row {
  border: 1px solid rgba(171, 178, 255, 0.16);
  background:
    radial-gradient(
      circle at top left,
      rgba(77, 99, 242, 0.18),
      transparent 34%
    ),
    linear-gradient(145deg, rgba(13, 17, 45, 0.78), rgba(6, 9, 28, 0.88));
  box-shadow: 0 25px 80px rgba(0, 0, 20, 0.38);
  backdrop-filter: blur(18px);
}

.confirmation-summary {
  grid-area: summary;
  position: sticky;
  top: 24px;
  border-radius: 28px;
  padding: 1.25rem;
}

.confirmation-products {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.confirmation-product-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.95rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid rgba(171, 178, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.confirmation-product-thumb-wrap {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(77, 99, 242, 0.28),
    rgba(174, 178, 255, 0.16)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(0, 0, 20, 0.28);
  display: grid;
  place-items: center;
  overflow: visible;
}

.confirmation-product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.confirmation-product-thumb-wrap span {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #aeb2ff, #4d63f2);
  color: #02030a;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 2px solid #080b20;
}

.confirmation-product-copy strong,
.confirmation-product-row > b,
.confirmation-total-row strong,
.confirmation-total-row b {
  color: #f4f6ff;
}

.confirmation-product-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 900;
}

.confirmation-product-copy small {
  display: block;
  margin-top: 0.22rem;
  color: #aeb8ff;
  font-size: 0.9rem;
  font-weight: 700;
}

.confirmation-product-row > b {
  font-size: 0.96rem;
  font-weight: 900;
  white-space: nowrap;
}

.confirmation-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.15rem 0.2rem;
  border-top: 1px solid rgba(171, 178, 255, 0.16);
}

.confirmation-total-row strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.confirmation-total-row span {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  color: #aeb8ff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.confirmation-total-row b {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.confirmation-status-row {
  grid-area: hero;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  border-radius: 32px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  min-height: 210px;
}

.confirmation-check {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid rgba(174, 178, 255, 0.5);
  color: #02030a;
  background: linear-gradient(135deg, #f4f6ff, #aeb2ff 46%, #4d63f2);
  box-shadow: 0 0 38px rgba(77, 99, 242, 0.36);
  display: grid;
  place-items: center;
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
  flex: 0 0 auto;
}

.confirmation-number,
.confirmation-eyebrow {
  margin: 0 0 0.55rem;
  color: #aeb2ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.confirmation-status-row h1 {
  margin: 0;
  color: #f4f6ff;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.07em;
}

.confirmation-card {
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 0;
}

.confirmation-card:not(.confirmation-details-card) {
  grid-area: confirmed;
}

.confirmation-details-card {
  grid-area: details;
}

.confirmation-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
  color: #f4f6ff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.confirmation-card p {
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  color: #d9ddff;
}

.confirmation-card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.confirmation-card-title-row h2 {
  margin: 0;
}

.confirmation-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: #02030a !important;
  background: linear-gradient(135deg, #f4f6ff, #aeb2ff);
  font-weight: 900;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(77, 99, 242, 0.22);
}

.confirmation-detail-block {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(171, 178, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.confirmation-detail-block h3 {
  font-size: 0.8rem;
  margin: 0 0 0.42rem;
  color: #aeb2ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.apple-pay-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(174, 178, 255, 0.34);
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.78rem;
  padding: 0.45rem 0.7rem;
  margin-right: 0.55rem;
  line-height: 1;
  color: #f4f6ff;
  background: rgba(255, 255, 255, 0.06);
}

.confirmation-details-card hr {
  border: 0;
  border-top: 1px solid rgba(171, 178, 255, 0.16);
  margin: 1.25rem 0;
}

.confirmation-shop-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.confirmation-shop-row strong {
  color: #aeb2ff;
  font-weight: 900;
}

.confirmation-product-skeleton {
  height: 86px;
  max-width: 100%;
  border-radius: 20px;
  background: linear-gradient(
    90deg,
    rgba(77, 99, 242, 0.18),
    rgba(255, 255, 255, 0.08),
    rgba(77, 99, 242, 0.18)
  );
  margin-bottom: 1.25rem;
  border: 1px solid rgba(171, 178, 255, 0.12);
}

@media (max-width: 900px) {
  .confirmation-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "summary"
      "confirmed"
      "details";
  }

  .confirmation-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .confirmation-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirmation-nav nav {
    width: 100%;
    justify-content: space-between;
  }

  .confirmation-status-row {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .confirmation-check {
    width: 72px;
    height: 72px;
    font-size: 40px;
  }

  .confirmation-card-title-row,
  .confirmation-shop-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .confirmation-product-row {
    grid-template-columns: auto 1fr;
  }

  .confirmation-product-row > b {
    grid-column: 2;
  }

  .confirmation-total-row,
  .confirmation-total-row span {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* Fresh colour-system overrides: forest, cream, amber and coral */
body {
  background:
    radial-gradient(
      circle at top left,
      rgba(77, 99, 242, 0.2),
      transparent 32%
    ),
    radial-gradient(
      circle at 82% 18%,
      rgba(174, 178, 255, 0.16),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 0%,
      rgba(111, 124, 255, 0.1),
      transparent 30%
    ),
    var(--bg);
}

body.light {
  background:
    radial-gradient(
      circle at top left,
      rgba(77, 99, 242, 0.16),
      transparent 30%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(174, 178, 255, 0.22),
      transparent 26%
    ),
    var(--bg);
}

.btn-primary {
  color: #f4f6ff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 16px 42px rgba(77, 99, 242, 0.28);
}

.brand-badge {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #f4f6ff,
    #aeb2ff 38%,
    #7f8cff 70%,
    #6f7cff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.light .gradient-text {
  background: linear-gradient(
    135deg,
    #090d2a,
    #4d63f2 42%,
    #5a65d8 72%,
    #6f7cff
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Real storefront preview used in the home hero */
.store-preview-card {
  padding: 1.25rem;
  transform: rotate(-2deg);
  overflow: hidden;
}

.store-preview-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 0%, rgba(77, 99, 242, 0.22), transparent 34%),
    radial-gradient(
      circle at 88% 12%,
      rgba(174, 178, 255, 0.2),
      transparent 30%
    );
  pointer-events: none;
}

.preview-toolbar,
.preview-product,
.preview-grid {
  position: relative;
  z-index: 1;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-label,
.preview-category,
.live-pill,
.price-row span,
.order-head span,
.order-lines span,
.preview-mini span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.preview-toolbar h3,
.preview-product h4 {
  margin: 0.2rem 0 0;
}

.live-pill {
  color: var(--bg);
  background: linear-gradient(135deg, var(--primary), #aeb2ff);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  box-shadow: 0 10px 30px rgba(77, 99, 242, 0.25);
}

.preview-product {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-image {
  min-height: 160px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(77, 99, 242, 0.35), rgba(174, 178, 255, 0.28)),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.02)
    );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.preview-image span {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 900;
  background: rgba(8, 17, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.preview-product p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0.45rem 0;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.price-row strong {
  font-size: 1.45rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.preview-mini {
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.mini-image {
  height: 58px;
  border-radius: 15px;
  margin-bottom: 0.7rem;
  background: linear-gradient(
    135deg,
    rgba(77, 99, 242, 0.44),
    rgba(158, 245, 215, 0.18)
  );
}

.mini-image.amber {
  background: linear-gradient(
    135deg,
    rgba(174, 178, 255, 0.5),
    rgba(255, 255, 255, 0.1)
  );
}
.mini-image.green {
  background: linear-gradient(
    135deg,
    rgba(77, 99, 242, 0.48),
    rgba(255, 255, 255, 0.1)
  );
}
.mini-image.coral {
  background: linear-gradient(
    135deg,
    rgba(111, 124, 255, 0.48),
    rgba(255, 255, 255, 0.1)
  );
}

.preview-mini strong,
.preview-mini span {
  display: block;
}

.preview-mini strong {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.order-preview-card {
  display: grid;
  gap: 0.85rem;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.order-total {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.order-lines {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.mini-link {
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 720px) {
  .preview-product {
    grid-template-columns: 1fr;
  }

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

.nav .chip-btn {
  width: fit-content;
}
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Users admin table fixes */
.spaced-actions {
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.spaced-actions h3 {
  margin: 0;
  line-height: 1;
}

.spaced-actions #userSearch {
  min-width: 250px;
  max-width: 100%;
}

.admin-table .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  max-width: none;
  white-space: nowrap;
  line-height: 1;
  padding: 0.75rem 1rem;
}

.admin-table th:nth-child(2),
.admin-table td:nth-child(2) {
  min-width: 120px;
}

@media (max-width: 640px) {
  .spaced-actions {
    align-items: stretch;
  }

  .spaced-actions #userSearch {
    width: 100%;
    min-width: 0;
  }
}

.settings-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-top: 14px;
}

/* Product reviews and ratings */
.rating-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.rating-summary strong {
  color: var(--text);
}

.stars {
  display: inline-flex;
  gap: 0.08rem;
  color: rgba(255, 255, 255, 0.24);
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.stars .filled {
  color: #aeb2ff;
  text-shadow: 0 0 18px rgba(174, 178, 255, 0.28);
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(14px);
}

.review-modal.hidden {
  display: none;
}

.review-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(86vh, 880px);
  overflow: auto;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.review-modal-header {
  padding-right: 3rem;
  margin-bottom: 1rem;
}

.review-modal-header h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.review-list,
.review-form {
  display: grid;
  gap: 0.85rem;
}

.review-list {
  margin: 1rem 0;
}

.review-item,
.empty-reviews,
.review-form {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.review-item-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.review-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.empty-reviews {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
}

.empty-reviews strong {
  color: var(--text);
}

.review-form h3 {
  margin: 0;
}

.review-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.review-form select,
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.85rem 1rem;
  font: inherit;
}

.review-form textarea {
  resize: vertical;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 2rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-form-grid,
.address-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.profile-form-grid button,
.address-form-grid button,
.address-form-grid textarea {
  grid-column: 1 / -1;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checkbox-row input {
  width: auto;
}

.mini-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
}

.mini-product {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.mini-product img {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.mini-product small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .profile-form-grid,
  .address-form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
  }
}

.legal-page {
  max-width: 980px;
  margin: 0 auto;
  padding-top: 9rem;
}

.legal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.25rem, 4vw, 2.5rem);
  backdrop-filter: blur(18px);
}

.legal-card > p,
.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.75;
}

.legal-section {
  margin-top: 1.75rem;
}

.legal-section h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.1rem;
}

.legal-section ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.legal-updated {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.vouches-hero {
  min-height: 58vh;
}

.vouch-stats {
  max-width: 560px;
}

.vouch-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: -70px 0 1rem;
}

.vouch-toolbar label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.service-filter {
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 800;
  outline: none;
  box-shadow: var(--shadow-soft);
}

.service-filter:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.service-filter:focus {
  border-color: rgba(77, 99, 242, 0.65);
}

.vouch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0;
}

.vouch-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.vouch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.vouch-card h3 {
  margin: 0.25rem 0 0;
}

.vouch-review {
  color: var(--muted-strong);
  line-height: 1.7;
  white-space: pre-wrap;
}

.vouch-service {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 1rem;
}
.vouch-proof {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0.85rem 0;
}

.avatar-showcase-section {
  position: relative;
  margin-top: 120px;
}

.avatar-showcase-card {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(91, 122, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.09),
      rgba(255, 255, 255, 0.035)
    );
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  padding: 1.35rem;
}

.avatar-showcase-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-showcase-top h3 {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.avatar-showcase-top p {
  color: var(--muted);
  margin: 0;
}

.avatar-showcase-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.avatar-showcase-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.avatar-showcase-item:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.avatar-showcase-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: var(--bg-softer);
}

.avatar-showcase-description {
  display: grid;
  gap: 0.3rem;
  padding: 0.78rem;
}

.avatar-showcase-description strong,
.avatar-showcase-description span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-showcase-description strong {
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.avatar-showcase-description span {
  color: var(--muted);
  display: -webkit-box;
  font-size: 0.78rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.avatar-showcase-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.avatar-showcase-info-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.avatar-showcase-info strong {
  color: var(--text);
  font-size: 1rem;
}

.avatar-showcase-info p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.avatar-showcase-info b {
  color: var(--text);
}

.avatar-showcase-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  font-weight: 700;
  padding: 1.2rem;
  text-align: center;
}

@media (max-width: 980px) {
  .avatar-showcase-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .avatar-showcase-card {
    padding: 1rem;
  }

  .avatar-showcase-top {
    align-items: stretch;
    flex-direction: column;
  }

  .avatar-showcase-link {
    justify-content: center;
    width: 100%;
  }

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

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
}

.avatar-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.avatar-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-softer);
}

.avatar-card-body {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.avatar-card-body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-filename-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.avatar-filename-row strong {
  min-width: 0;
  flex: 1;
}

.copy-filename-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.35rem 0.6rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.copy-filename-btn:hover,
.copy-filename-btn:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.avatar-card-body span,
.avatar-card-body small,
.muted-copy {
  color: var(--muted);
}

.admin-avatar-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.8rem;
}

.admin-avatar-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.admin-avatar-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-softer);
}

.admin-avatar-item span {
  display: block;
  overflow: hidden;
  padding: 0.65rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.avatar-page-summary {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.avatar-page-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.avatar-page-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-width: 2.45rem;
  padding: 0.55rem 0.85rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.avatar-page-btn:hover:not(:disabled),
.avatar-page-btn:focus-visible:not(:disabled),
.avatar-page-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.avatar-page-btn.active {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.avatar-page-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.avatar-page-select {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-width: 8.5rem;
  padding: 0.55rem 0.85rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.avatar-page-select:hover,
.avatar-page-select:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.avatar-page-select option {
  color: #111827;
}

/* Exact vouches landing layout */
body.vouches-page {
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(77, 99, 242, 0.18),
      transparent 26%
    ),
    radial-gradient(
      circle at 86% 16%,
      rgba(174, 178, 255, 0.14),
      transparent 24%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%),
    var(--bg);
}

body.vouches-page .nav {
  display: none;
}

.vouches-top-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 88px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 24, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
}

.vouches-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  width: max-content;
}

.vouches-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(77, 99, 242, 0.34));
}

.vouches-brand span {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.vouches-brand strong {
  font-size: 1.25rem;
  letter-spacing: 0.24em;
}

.vouches-brand small {
  color: #aeb2ff;
  font-weight: 900;
  font-size: 0.78rem;
  margin-top: 0.35rem;
}

.vouches-top-nav nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.4rem, 3vw, 3rem);
  height: 100%;
}

.vouches-top-nav nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 100%;
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.vouches-top-nav nav a:hover,
.vouches-top-nav nav a.active {
  color: #3b5bff;
}

.vouches-top-nav nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #3b5bff, transparent);
  box-shadow: 0 0 18px rgba(116, 242, 208, 0.7);
}

.vouches-discord-btn {
  justify-content: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vouches-discord-btn svg {
  color: #5865f2;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.vouches-main {
  width: min(1540px, 93vw);
  margin: 0 auto;
  padding: 138px 0 3rem;
}

.vouches-intro {
  padding: 1.35rem 0 1.5rem;
}

.vouches-intro .eyebrow {
  font-size: 0.96rem;
  letter-spacing: 0.23em;
  margin: 0 0 1.55rem;
}

.vouches-intro h1 {
  margin: 0;
  font-size: clamp(4.3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.vouches-content {
  padding-top: 0;
}

body.vouches-page .vouch-toolbar {
  justify-content: flex-end;
  margin: 0 0 1rem;
}

body.vouches-page .service-filter {
  min-width: 190px;
  border-radius: 14px;
}

body.vouches-page .vouch-grid {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 1.25rem;
}

body.vouches-page .vouch-card {
  min-height: 230px;
  border-radius: 16px;
  padding: 1.35rem;
  border: 1px solid rgba(247, 244, 232, 0.11);
  background:
    radial-gradient(circle at 12% 8%, rgba(77, 99, 242, 0.11), transparent 30%),
    linear-gradient(145deg, rgba(13, 17, 45, 0.72), rgba(10, 18, 16, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 16px 42px rgba(0, 0, 0, 0.24);
}

body.vouches-page .vouch-card-top {
  align-items: center;
  margin-bottom: 1.35rem;
}

.vouch-user {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.vouch-user img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 20px rgba(77, 99, 242, 0.2);
}

.vouch-user h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text);
}

.vouch-user p {
  color: var(--muted);
  margin-top: 0.25rem;
}

body.vouches-page .rating-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  white-space: nowrap;
}

body.vouches-page .stars {
  display: inline-flex;
  gap: 0.13rem;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.04em;
}

body.vouches-page .stars .filled {
  color: #aeb2ff;
  text-shadow: 0 0 12px rgba(174, 178, 255, 0.4);
}

body.vouches-page .rating-summary strong {
  color: var(--text);
  font-size: 1rem;
}

.vouch-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.vouch-details span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.vouch-details strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.vouch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 1.1rem;
  align-items: end;
}

body.vouches-page .vouch-review {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.55;
}

body.vouches-page .vouch-proof {
  width: 138px;
  height: 102px;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.vouches-bottom-stats {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 1.55rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 232, 0.09);
  border-radius: 14px;
  background: rgba(13, 17, 45, 0.52);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.vouches-bottom-stats div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
}

.vouches-bottom-stats div + div {
  border-left: 1px solid rgba(247, 244, 232, 0.12);
}

.vouches-bottom-stats span {
  color: #aeb2ff;
  font-size: 1.25rem;
}

.vouches-bottom-stats strong {
  color: #74f2d0;
  font-size: 1.05rem;
}

.vouches-bottom-stats p {
  color: var(--muted-strong);
}

.vouch-empty {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .vouches-top-nav {
    position: sticky;
    grid-template-columns: 1fr;
    height: auto;
    padding: 1rem 4vw;
    gap: 0.9rem;
  }

  .vouches-top-nav nav {
    justify-content: flex-start;
    overflow-x: auto;
    height: auto;
    padding-bottom: 0.15rem;
  }

  .vouches-discord-btn {
    justify-self: start;
  }

  .vouches-main {
    width: min(1200px, 92vw);
    padding-top: 2rem;
  }

  body.vouches-page .vouch-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 640px) {
  .vouches-intro h1 {
    font-size: clamp(3.2rem, 17vw, 4.3rem);
  }

  body.vouches-page .vouch-grid {
    grid-template-columns: 1fr;
  }

  .vouch-body {
    grid-template-columns: 1fr;
  }

  body.vouches-page .vouch-proof {
    width: 100%;
    height: 170px;
  }

  .vouches-bottom-stats {
    width: 100%;
    flex-direction: column;
  }

  .vouches-bottom-stats div {
    width: 100%;
    justify-content: center;
  }

  .vouches-bottom-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(247, 244, 232, 0.12);
  }
}

/* Apply vouches navigation theme site-wide */
body:not(.vouches-page) .nav {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 88px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 3.5vw, 3.5rem);
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 24, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

body.light:not(.vouches-page) .nav {
  background: rgba(255, 255, 255, 0.78);
}

body:not(.vouches-page) .brand {
  width: max-content;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

body:not(.vouches-page) .brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  box-shadow: 0 0 22px rgba(77, 99, 242, 0.34);
}

body:not(.vouches-page) .nav nav {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(1.2rem, 2.6vw, 2.6rem);
  height: 100%;
}

body:not(.vouches-page) .nav a {
  position: relative;
  height: 88px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  color: var(--muted-strong);
  background: transparent;
  font-size: 1rem;
}

body:not(.vouches-page) .nav a:hover,
body:not(.vouches-page) .nav a.active {
  color: #3b5bff;
  background: transparent;
}

body:not(.vouches-page) .nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #3b5bff, transparent);
  box-shadow: 0 0 18px rgba(77, 99, 242, 0.7);
}

body:not(.vouches-page) .nav-actions {
  margin-top: 0;
  justify-content: flex-end;
}

body:not(.vouches-page) main,
body:not(.vouches-page) .page-shell,
body:not(.vouches-page) .auth-shell,
body:not(.vouches-page) .dashboard-shell,
body:not(.vouches-page) .admin-shell {
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
  padding-top: 138px;
}

/* Mobile top-nav behaviour */
@media (max-width: 980px) {
  body:not(.vouches-page) .nav {
    position: sticky;
    height: auto;
    grid-template-columns: 1fr;
    padding: 1rem 4vw;
    gap: 0.9rem;
  }

  body:not(.vouches-page) .nav nav {
    justify-content: flex-start;
    overflow-x: auto;
    height: auto;
    scrollbar-width: none;
  }

  body:not(.vouches-page) .nav a {
    height: auto;
    padding: 0.35rem 0;
    white-space: nowrap;
  }

  body:not(.vouches-page) .nav-actions {
    justify-content: flex-start;
  }

  body:not(.vouches-page) main,
  body:not(.vouches-page) .page-shell,
  body:not(.vouches-page) .auth-shell,
  body:not(.vouches-page) .dashboard-shell,
  body:not(.vouches-page) .admin-shell {
    padding-top: 2rem;
  }
}
/* Homepage: Why choose Northstar */
.standard-section-head {
  margin-top: 0;
}

.why-northstar-section {
  padding: 4rem 0 2.5rem;
}

.why-grid,
.partnership-grid {
  margin-top: 1.5rem;
}

.why-card,
.partnership-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  background:
    radial-gradient(
      circle at top right,
      rgba(174, 178, 255, 0.12),
      transparent 35%
    ),
    var(--panel);
}

.why-card::after,
.partnership-card::after,
.partnership-panel::after {
  content: "";
  position: absolute;
  inset: auto -18% -42% auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(77, 99, 242, 0.18), transparent 68%);
  pointer-events: none;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 34px rgba(77, 99, 242, 0.24);
}

.why-card p,
.partnership-card p {
  color: var(--muted);
  line-height: 1.7;
}

/* Partnerships page */
.partnerships-hero {
  padding-bottom: 3rem;
}

.partnerships-hero h1 {
  max-width: 980px;
}

.partnerships-hero .hero-text {
  max-width: 780px;
  margin-bottom: 1rem;
}

.partnership-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(77, 99, 242, 0.16), rgba(174, 178, 255, 0.06)),
    var(--panel);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.partner-checklist {
  display: grid;
  gap: 0.9rem;
}

.partner-checklist div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.partner-checklist strong {
  color: var(--secondary);
  letter-spacing: 0.12em;
}

.partner-checklist span {
  color: var(--muted-strong);
  font-weight: 800;
}

@media (max-width: 900px) {
  .why-grid,
  .partnership-grid,
  .partnership-panel {
    grid-template-columns: 1fr;
  }
}

/* Homepage: selected partnerships grid */
.selected-partners-section {
  padding: 2.5rem 0 3rem;
}

.selected-partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.selected-partner-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top, rgba(174, 178, 255, 0.12), transparent 38%),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.selected-partner-card:hover {
  transform: translateY(-5px);
  border-color: rgba(174, 178, 255, 0.38);
  background:
    radial-gradient(circle at top, rgba(77, 99, 242, 0.18), transparent 42%),
    rgba(255, 255, 255, 0.065);
}

.partner-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.partner-logo-placeholder img {
  width: 110px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.partner-logo-placeholder span {
  color: var(--muted-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.partner-logo-placeholder img {
  max-width: 82%;
  max-height: 64px;
  object-fit: contain;
}

.selected-partner-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.selected-partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 1180px) {
  .selected-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .selected-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 460px) {
  .selected-partners-grid {
    grid-template-columns: 1fr;
  }
}

/* Partnerships application form */
.partnership-application-form {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at top right,
      rgba(77, 99, 242, 0.18),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.partnership-application-form label {
  display: grid;
  gap: 0.5rem;
  color: var(--muted-strong);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.form-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.partnership-application-form input,
.partnership-application-form select,
.partnership-application-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  outline: none;
  font: inherit;
}

.partnership-application-form textarea {
  resize: vertical;
}

.partnership-application-form input:focus,
.partnership-application-form select:focus,
.partnership-application-form textarea:focus {
  border-color: rgba(174, 178, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(77, 99, 242, 0.16);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .form-grid.two-col {
    grid-template-columns: 1fr;
  }
}

/* === Visual polish pass: desktop + mobile === */
:root {
  --nav-width: 268px;
  --content-max: 1180px;
  --mobile-gutter: clamp(16px, 5vw, 28px);
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -2;
}

body::before {
  inset: 0;
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(174, 178, 255, 0.16),
      transparent 26%
    ),
    radial-gradient(circle at 86% 78%, rgba(77, 99, 242, 0.14), transparent 30%);
}

body::after {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 12%;
  border-radius: 999px;
  background: rgba(111, 124, 255, 0.13);
  filter: blur(70px);
}

.nav {
  width: var(--nav-width);
  padding: 1.35rem 1rem;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 24, 0.88),
    rgba(5, 7, 24, 0.62)
  );
}

.brand {
  padding: 0.3rem 0.55rem 0.9rem;
  font-size: 1.05rem;
}

.brand span {
  white-space: nowrap;
}

.nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  position: relative;
}

.nav a.active {
  background: linear-gradient(
    135deg,
    rgba(77, 99, 242, 0.26),
    rgba(174, 178, 255, 0.08)
  );
  box-shadow: inset 0 0 0 1px rgba(174, 178, 255, 0.08);
}

.nav a.active::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
  position: absolute;
  left: 7px;
}

main,
.page-shell,
.auth-shell,
.dashboard-shell,
.admin-shell {
  width: min(
    var(--content-max),
    calc(100vw - var(--nav-width) - clamp(48px, 8vw, 112px))
  );
  margin-left: calc(var(--nav-width) + clamp(28px, 5vw, 72px));
  margin-right: clamp(20px, 4vw, 56px);
}

main {
  padding-top: clamp(2.5rem, 5vw, 5rem);
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(3rem, 8vw, 7rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow-row {
  margin-top: 0;
}

.hero h2 {
  font-size: clamp(2.75rem, 6.4vw, 5.8rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  margin-top: -70px;
}

.hero-text {
  max-width: 680px;
  font-size: 1.05rem;
  margin-top: -20px;
}

.hero-actions .btn {
  min-width: 150px;
}

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

.mini-stats div {
  min-width: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.025)
  );
}


/* Live timezone card on the home hero */
.timezone-card {
  position: relative;
  isolation: isolate;
  align-self: center;
  justify-self: end;
  width: min(100%, 460px);
  min-height: 280px;
  padding: 1px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(174, 178, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.035)),
    rgba(13, 17, 45, 0.72);
  box-shadow: 0 28px 90px rgba(4, 7, 24, 0.48);
  backdrop-filter: blur(18px);
}

.timezone-card__glow {
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    radial-gradient(circle at 65% 25%, rgba(127, 140, 255, 0.42), transparent 34%),
    radial-gradient(circle at 20% 80%, rgba(174, 178, 255, 0.24), transparent 35%);
  filter: blur(4px);
}

.timezone-card__content {
  height: 100%;
  min-height: 278px;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 33px;
  background: linear-gradient(180deg, rgba(5, 8, 24, 0.55), rgba(9, 12, 34, 0.82));
}

.timezone-card__eyebrow {
  color: var(--secondary);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.timezone-card__time {
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 32px rgba(127, 140, 255, 0.26);
}

.timezone-card__meta {
  display: grid;
  gap: 0.45rem;
  color: var(--muted-strong);
  font-weight: 700;
}

.timezone-card__meta span:first-child {
  color: #dfe2ff;
}

.timezone-card__note {
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
}

.hero-showcase {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.showcase-card {
  width: min(100%, 420px);
  padding: 1rem;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(13, 17, 45, 0.84),
    rgba(6, 9, 28, 0.72)
  );
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  transform: rotate(2deg);
}

.showcase-screen {
  min-height: 310px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(77, 99, 242, 0.22), transparent 42%),
    radial-gradient(
      circle at 74% 22%,
      rgba(174, 178, 255, 0.24),
      transparent 28%
    ),
    rgba(255, 255, 255, 0.045);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-logo {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: -0.08em;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  box-shadow: 0 22px 50px rgba(77, 99, 242, 0.34);
}

.showcase-lines {
  display: grid;
  gap: 0.7rem;
}
.showcase-lines span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}
.showcase-lines span:nth-child(2) {
  width: 72%;
}
.showcase-lines span:nth-child(3) {
  width: 46%;
}

.showcase-floating {
  position: absolute;
  right: 0;
  bottom: 44px;
  width: 190px;
  padding: 1rem;
  border-radius: 24px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.showcase-floating strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 0.2rem;
}
.showcase-floating span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding-top: clamp(2.6rem, 6vw, 5.5rem);
}
.section-head {
  margin-top: 0;
  align-items: flex-end;
}
.standard-section-head {
  padding-bottom: 0.8rem;
}

.feature-grid,
.product-grid,
.selected-partners-grid {
  align-items: stretch;
}

.feature-card,
.product-card,
.selected-partner-card,
.shop-spotlight,
.toolbar,
.auth-card,
.cart-summary,
.cart-items,
.form-card,
.metric-card,
.activity-card {
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.feature-card:hover,
.product-card:hover,
.selected-partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(174, 178, 255, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 20, 0.48);
}

.product-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
}
.product-card {
  margin-top: 0;
  padding: 1rem;
}
.product-card img {
  height: clamp(190px, 22vw, 260px);
}

.selected-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.selected-partner-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.partner-logo-placeholder {
  height: 120px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  overflow: hidden;
}

.partner-logo-placeholder img {
  max-height: 100%;
  object-fit: contain;
}

.page-hero {
  padding: clamp(1.5rem, 4vw, 3rem) 0 1.2rem;
}

.shop-spotlight {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
}

.toolbar {
  margin: 1.1rem 0 1.6rem;
}

.btn,
.chip-btn,
.icon-btn,
.qty-btn {
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 961px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .product-grid,
  .selected-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    min-height: 380px;
    place-items: start;
  }
  .showcase-card {
    max-width: 520px;
  }
}

@media (max-width: 960px) {
  :root {
    --nav-width: 0px;
  }
  body {
    padding-top: 0;
  }
  .nav {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 0.85rem var(--mobile-gutter);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    z-index: 50;
  }
  .brand {
    padding: 0;
  }
  .nav nav {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    width: 100%;
    overflow-x: auto;
    padding: 0.75rem 0 0.1rem;
    scrollbar-width: none;
  }
  .nav nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.72rem 0.95rem;
    font-size: 0.92rem;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.035);
  }
  .nav a.active::before {
    display: none;
  }
  main,
  .page-shell,
  .auth-shell,
  .dashboard-shell,
  .admin-shell {
    width: min(100% - (var(--mobile-gutter) * 2), var(--content-max));
    margin-inline: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: clamp(2rem, 7vw, 4rem);
  }
  .hero-showcase {
    min-height: 360px;
  }
  .showcase-card {
    width: min(100%, 460px);
    transform: none;
  }
  .showcase-screen {
    min-height: 230px;
  }
  .showcase-floating {
    right: 10px;
    bottom: 6px;
  }
  .section-head,
  .shop-spotlight {
    display: grid;
    grid-template-columns: 1fr;
  }
  .selected-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding-bottom: 3rem;
  }
  .nav {
    padding-top: 0.8rem;
  }
  .brand {
    font-size: 1rem;
  }
  .hero h2,
  h1 {
    letter-spacing: -0.055em;
  }
  .hero-actions,
  .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-actions .btn,
  .inline-actions .btn {
    width: 100%;
  }
  .mini-stats {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    min-height: 300px;
  }
  .showcase-card {
    padding: 0.75rem;
    border-radius: 26px;
  }
  .showcase-screen {
    min-height: 210px;
    border-radius: 20px;
  }
  .showcase-logo {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
  .showcase-floating {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 0.9rem;
  }
  .selected-partners-grid,
  .product-grid,
  .feature-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .product-card,
  .feature-card,
  .selected-partner-card,
  .shop-spotlight,
  .toolbar {
    border-radius: 22px;
  }
  .product-card img {
    height: 205px;
  }
  .toolbar {
    padding: 12px;
  }
  #searchInput,
  .category-select-wrap,
  .toolbar .btn {
    height: 52px;
  }
  .toast {
    left: var(--mobile-gutter);
    right: var(--mobile-gutter);
    text-align: center;
  }
}

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

/* Auth-controlled navbar links must stay hidden even when nav CSS sets display:flex. */
header nav [data-auth][hidden] {
  display: none !important;
}

/* Fix selected navbar option: keep active state as text + underline only (no box). */
body:not(.vouches-page) .nav a.active,
body:not(.vouches-page) .nav a.active:hover {
  color: #3b5bff;
  background: transparent;
  box-shadow: none;
}

body:not(.vouches-page) .nav a.active::before {
  display: none;
  content: none;
}

body:not(.vouches-page) .nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(100%, 64px);
  height: 3px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    #3b5bff 18%,
    #5f79ff 50%,
    #3b5bff 82%,
    transparent
  );
  box-shadow: 0 0 18px rgba(77, 99, 242, 0.7);
}

.about-northstar {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-card {
  max-width: 520px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.about-label {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d1d5db;
}

.about-card h2 {
  margin-bottom: 16px;
  font-size: 2rem;
  line-height: 1.1;
  color: #fff;
}

.about-card p {
  margin-bottom: 28px;
  color: #b8c0cc;
  line-height: 1.7;
}

.about-features {
  display: grid;
  gap: 18px;
}

.feature {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 1rem;
}

.feature span {
  color: #aeb7c3;
  line-height: 1.5;
  font-size: 0.95rem;
}
.clock-status-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-weight: 700;
}

.staff-clock-list {
  display: grid;
  gap: 12px;
}

.staff-clock-item {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.staff-clock-item strong {
  color: #ffffff;
}

/* === Alignment repair pass ===
   Removes the negative-margin offsets added during recent bot edits so page
   sections, auth cards, product grids, and hero copy align consistently. */
.eyebrow,
.eyebrow-row,
.kicker,
.feature-strip,
.section-head,
.section-head p,
.product-grid,
.hero h2,
.hero-text {
  margin-top: 0 !important;
}

.section-head {
  align-items: flex-end;
  margin-bottom: 1.25rem !important;
}

.hero {
  align-items: center;
}

.hero-copy,
.hero-text {
  min-width: 0;
}

.auth-grid {
  display: grid !important;
  grid-template-columns: minmax(320px, 620px);
  justify-content: center;
  align-items: start;
  margin-top: clamp(2rem, 7vw, 5rem);
}

.auth-card {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.auth-card form {
  width: 100%;
}

.auth-card input,
.auth-card button,
.auth-card .btn {
  width: 100%;
  box-sizing: border-box;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.top-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;

  width: min(1100px, 92vw);
  height: auto;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  padding: 1rem 1.5rem;
  border-radius: 24px;

  background: rgba(5, 7, 24, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.top-nav nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 14px;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.top-nav .vouches-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0;
}

.top-nav .vouches-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.top-nav .vouches-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-size: 14px;
}

.top-nav .vouches-brand strong {
  font-size: 14px;
  font-weight: 700;
}

.top-nav .vouches-brand small {
  font-size: 10px;
  letter-spacing: 0.08em;
}

.vouch-details > div:last-child {
  margin-left: auto;
  text-align: right;
}

main,
.page-shell,
.auth-shell,
.dashboard-shell,
.admin-shell {
  width: min(1200px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 700px) {
  .auth-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }
}

.featured-section {
  padding: 4rem 0;
}

.featured-head {
  margin: 0 0 1.5rem;
}

.featured-label {
  margin: 0;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 0;
}

.featured-card {
  margin: 0;
  padding: 1.2rem;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

/* Force-remove Featured Picks gap */
.featured-section,
.featured-section * {
  margin-top: 0 !important;
}

.featured-section {
  padding-top: 0 !important;
}

.featured-head {
  margin-bottom: 1rem !important;
}

#featuredProducts {
  margin-top: 0 !important;
}

#featuredProducts .product-card,
#featuredProducts .featured-card {
  margin-top: 0 !important;
}

/* CLEAN AVATAR SECTION */

.avatars-clean-section {
  margin: 0 !important;
  padding: 0 !important;
}

.avatars-clean-section * {
  margin-top: 0 !important;
}

.avatars-clean-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 2rem !important;
}

.avatars-clean-label {
  margin: 0 0 1rem 0 !important;
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.avatars-clean-title {
  margin: 0 !important;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.avatars-clean-copy {
  margin: 0 !important;
  color: var(--muted);
  line-height: 1.8;
}

.avatars-clean-card {
  margin: 0 !important;
  padding: 1.5rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.avatars-clean-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem !important;
}

.avatars-clean-gallery {
  margin: 0 !important;
}

.avatars-clean-info {
  margin-top: 1rem !important;
}

@media (max-width: 900px) {
  .avatars-clean-head {
    grid-template-columns: 1fr;
  }

  .avatars-clean-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Remove top hero empty gap */
.hero,
.hero.compact,
.page-hero,
.avatar-showcase-section {
  min-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 2rem !important;
  margin-top: 0 !important;
}

main {
  padding-top: 9rem !important;
}

/* Fix avatar image sizing */

.avatars-clean-gallery img,
#recentAvatarGallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

/* Gallery layout */
.avatars-clean-gallery,
#recentAvatarGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* Individual avatar cards */
.avatars-clean-gallery > *,
#recentAvatarGallery > * {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
/* === Mobile navbar + layout repair === */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(12px);
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-toggle span {
  position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-toggle span::before { top: -7px; }
.mobile-menu-toggle span::after { top: 7px; }

header.nav-open .mobile-menu-toggle span {
  background: transparent;
}

header.nav-open .mobile-menu-toggle span::before {
  transform: translateY(7px) rotate(45deg);
}

header.nav-open .mobile-menu-toggle span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .top-nav,
  .confirmation-nav {
    top: 12px;
    left: 12px;
    right: 12px;
    transform: none;
    width: auto;
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 20px;
  }

  .top-nav .vouches-brand,
  .confirmation-nav .vouches-brand,
  .brand {
    min-width: 0;
  }

  .top-nav nav,
  .confirmation-nav nav {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
    overflow: visible;
  }

  .top-nav.nav-open nav,
  .confirmation-nav.nav-open nav {
    display: flex;
  }

  .top-nav nav a,
  .confirmation-nav nav a,
  .top-nav .vouches-discord-btn {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
  }

  .top-nav > .vouches-discord-btn {
    grid-column: 1 / -1;
    display: none;
    margin: 0;
    padding: 0.75rem 1rem;
  }

  .top-nav.nav-open > .vouches-discord-btn {
    display: inline-flex;
  }

  header.nav {
    position: sticky;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 4vw;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  header.nav nav,
  header.nav .nav-actions {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
  }

  header.nav.nav-open nav,
  header.nav.nav-open .nav-actions {
    display: flex;
  }

  header.nav a {
    width: 100%;
    text-align: left;
  }

  main,
  .page-shell,
  .auth-shell,
  .dashboard-shell,
  .admin-shell,
  .confirmation-shell {
    width: min(100% - 24px, 1200px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .hero,
  .page-hero,
  .hero.compact {
    grid-template-columns: 1fr !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left;
  }

  .hero-copy,
  .hero-text,
  .section-head,
  .dashboard-topbar,
  .admin-topbar,
  .shop-spotlight,
  .feature-strip,
  .mini-stats,
  .hero-actions {
    width: 100%;
    min-width: 0;
  }

  .section-head,
  .dashboard-topbar,
  .admin-topbar,
  .shop-spotlight,
  .hero-actions,
  .mini-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .auth-actions .btn,
  .auth-actions button {
    width: 100%;
  }

  .product-grid,
  .featured-grid,
  .cards-grid,
  .stats-grid,
  .dashboard-grid,
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .top-nav,
  .confirmation-nav {
    left: 8px;
    right: 8px;
    top: 8px;
    padding: 0.65rem;
    border-radius: 18px;
  }

  .top-nav .vouches-brand span,
  .confirmation-nav .vouches-brand span {
    display: none;
  }

  h1,
  .hero h2,
  .page-hero h1 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 980px) {
  .timezone-card {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .timezone-card__content {
    min-height: 230px;
  }

  .timezone-card__time {
    font-size: clamp(2.55rem, 16vw, 4rem);
  }
}
