@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap");

:root {
  --bg: #000000; /* pure black background */
  --surface: #1a0000; /* dark panel surface for cards and modals */
  --panel: #1a0000; /* dark red panel */
  --panel-strong: #330000; /* slightly darker red */
  --text: #ffffff; /* white text */
  --muted: #cccccc; /* muted light gray */
  --accent: #ff2e2e; /* bright red accent */
  --accent-2: #b30000; /* deep red accent */
  --border: rgba(255, 0, 0, 0.2); /* faint red border */
  --shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  /* RGB triplets for use in rgba() */
  --accent-rgb: 255, 46, 46;
  --accent-2-rgb: 179, 0, 0;
  --highlight-rgb: 109, 240, 194;
  --highlight-2-rgb: 140, 176, 255;
}

/* ── Theme: Ocean Blue ────────────────────────────────── */
[data-theme="ocean"] {
  --bg: #000a14;
  --surface: #001a2e;
  --panel: #001a2e;
  --panel-strong: #002244;
  --text: #ffffff;
  --muted: #b0c4de;
  --accent: #3ea8ff;
  --accent-2: #0066cc;
  --border: rgba(62, 168, 255, 0.2);
  --accent-rgb: 62, 168, 255;
  --accent-2-rgb: 0, 102, 204;
  --highlight-rgb: 62, 168, 255;
  --highlight-2-rgb: 102, 217, 239;
}

/* ── Theme: Forest Green ──────────────────────────────── */
[data-theme="forest"] {
  --bg: #000a00;
  --surface: #0a1a0a;
  --panel: #0a1a0a;
  --panel-strong: #1a331a;
  --text: #ffffff;
  --muted: #b0d4b0;
  --accent: #4ade80;
  --accent-2: #166534;
  --border: rgba(74, 222, 128, 0.2);
  --accent-rgb: 74, 222, 128;
  --accent-2-rgb: 22, 101, 52;
  --highlight-rgb: 74, 222, 128;
  --highlight-2-rgb: 134, 239, 172;
}

/* ── Theme: Royal Purple ──────────────────────────────── */
[data-theme="purple"] {
  --bg: #0a0014;
  --surface: #1a0033;
  --panel: #1a0033;
  --panel-strong: #2d004d;
  --text: #ffffff;
  --muted: #c4b0de;
  --accent: #a855f7;
  --accent-2: #6b21a8;
  --border: rgba(168, 85, 247, 0.2);
  --accent-rgb: 168, 85, 247;
  --accent-2-rgb: 107, 33, 168;
  --highlight-rgb: 168, 85, 247;
  --highlight-2-rgb: 192, 132, 252;
}

/* ── Theme: Midnight Gold ─────────────────────────────── */
[data-theme="gold"] {
  --bg: #0a0a00;
  --surface: #1a1a0a;
  --panel: #1a1a0a;
  --panel-strong: #33330a;
  --text: #ffffff;
  --muted: #d4c8a0;
  --accent: #fbbf24;
  --accent-2: #b45309;
  --border: rgba(251, 191, 36, 0.2);
  --accent-rgb: 251, 191, 36;
  --accent-2-rgb: 180, 83, 9;
  --highlight-rgb: 251, 191, 36;
  --highlight-2-rgb: 252, 211, 77;
}

/* ── Theme: Midnight ─────────────────────────────────── */
[data-theme="midnight"] {
  --bg: #030000;
  --surface: #0b0000;
  --panel: #0b0000;
  --panel-strong: #1a0000;
  --text: #ffffff;
  --muted: #cccccc;
  --accent: #b00020;
  --accent-2: #7f0015;
  --border: rgba(176, 0, 32, 0.25);
  --accent-rgb: 176, 0, 32;
  --accent-2-rgb: 127, 0, 21;
  --highlight-rgb: 176, 0, 32;
  --highlight-2-rgb: 160, 10, 30;
}

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

/* make all images scale with their containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 20%, rgba(var(--accent-rgb), 0.1), transparent 25%),
    radial-gradient(circle at 80% 0, rgba(var(--accent-2-rgb), 0.1), transparent 28%),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

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

main {
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(6, 8, 18, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand.small .brand-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #06111f;
  font-weight: 700;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-text {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.user-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021019;
  box-shadow: var(--shadow);
}

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

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover, .btn:focus {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 24px rgba(var(--highlight-rgb),0.18), 0 2px 8px rgba(0,0,0,0.10);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(var(--highlight-rgb),0.07), rgba(var(--highlight-2-rgb),0.07)) var(--panel);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  margin-bottom: 12px;
}

.lede {
  font-size: 17px;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 16px 0 10px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 14px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.8;
}

.orb-lg {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(var(--highlight-rgb),0.5), rgba(6, 8, 18, 0.1));
  top: 20px;
  right: 10%;
}

.orb-sm {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(var(--highlight-2-rgb),0.6), rgba(6, 8, 18, 0.1));
  bottom: 30px;
  left: 20%;
}

.hero-card {
  position: relative;
  padding: 24px;
  width: min(360px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 1;
}

.hero-photo {
  width: min(420px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #03060f;
  position: relative;
  z-index: 1;
}

.hero-card ul {
  padding-left: 18px;
  margin: 12px 0;
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 10px;
}

.badge {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(var(--highlight-rgb),0.12);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

.panel {
  margin-top: 80px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.panel.compact {
  padding-bottom: 20px;
}

.section-header {
  max-width: 760px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  object-fit: contain;
}

.icon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-bottom: 10px;
}

.card ul {
  padding-left: 18px;
  color: var(--muted);
}

.split {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.step-number {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.metrics strong {
  font-size: 22px;
}

.callout {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(var(--highlight-2-rgb),0.06);
}

.callout-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  display: grid;
  box-shadow: 0 4px 24px rgba(var(--highlight-2-rgb),0.10);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-card:hover, .gallery-card:focus {
  box-shadow: 0 8px 32px rgba(var(--highlight-rgb),0.18), 0 2px 16px rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.02);
  outline: none;
}

.gallery-thumb {
  background-color: rgba(var(--highlight-rgb),0.08);
  position: relative;
  overflow: hidden;
}
.gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.showcase-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(220, 53, 69, 0.85);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.gallery-card:hover .showcase-delete-btn {
  opacity: 1;
}

.gallery-info {
  padding: 14px 16px 18px;
}

.benefits {
  padding-left: 18px;
  color: var(--muted);
}

.auth-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.auth-forms {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.tab-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.tab {
  display: block;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03101b;
  border-color: transparent;
}

.tab-panel {
  display: none;
}

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

form {
  display: grid;
  gap: 12px;
}

.analytics-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.analytics-tile {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.analytics-tile strong,
.analytics-tile span {
  display: block;
}

.analytics-tile span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 6px;
}

.analytics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.analytics-table th,
.analytics-table td {
  padding: 10px;
  border: 1px solid var(--border);
  text-align: left;
  font-size: 13px;
}

.analytics-table th {
  background: rgba(255,255,255,0.08);
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
}

input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: var(--text);
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(var(--highlight-rgb),0.5);
  outline-offset: 1px;
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.helper {
  color: var(--muted);
  font-size: 14px;
}

.form-message {
  min-height: 22px;
  font-size: 14px;
  margin: 4px 0 0;
}

.form-message.success {
  color: var(--accent);
}

.form-message.error {
  color: #ff9f9f;
}

/* store styles */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.product-img-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--border, #2a2a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #888);
  font-size: 40px;
}
.product-img-placeholder::after {
  content: '🖨️';
}
.product-card h4 {
  margin: 8px 0;
}
.product-card p {
  flex: 1;
  margin: 0 0 8px 0;
}

.cart-overlay, /* used for cart and review modals */
.review-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Cart drawer — overrides centered alignment */
#cart-overlay {
  justify-content: flex-end;
  align-items: stretch;
}

/* Generic modal content (review, password, project modals) */
.cart-content {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  width: 90%;
  max-width: 500px;
}

/* ── Cart drawer ───────────────────────────────────────── */
.cart-drawer {
  background: var(--surface);
  width: 420px;
  max-width: 100vw;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px rgba(0,0,0,0.35);
  animation: cartSlideIn 0.25s ease;
}
@keyframes cartSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-header h3 { margin: 0; font-size: 18px; }
.cart-item-label { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.cart-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--muted);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color 0.15s;
}
.cart-close-btn:hover { color: var(--text); }
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.cart-empty-icon { font-size: 48px; margin-bottom: 12px; }
.cart-empty p { margin: 0; font-size: 15px; }
.cart-empty-sub { font-size: 13px; margin-top: 6px !important; }

.cart-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: rgba(var(--highlight-rgb),0.08);
}
.cart-item-img-placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: rgba(var(--highlight-rgb),0.08);
}
.cart-row-info { min-width: 0; }
.cart-row-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-row-price { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.product-custom-options-help,
.cart-option-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.3;
}
.cart-option-hint {
  margin-bottom: 10px;
}
.cart-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 4px;
}
.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  padding: 2px 7px;
  color: var(--text);
  line-height: 1;
  border-radius: 4px;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--border); }
.qty-value { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.cart-row-subtotal { font-weight: 700; font-size: 14px; }
.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 20px;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.cart-remove-btn:hover { color: #ef4444; }

.cart-drawer-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-summary { margin-bottom: 16px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 14px;
}
.cart-shipping-row { color: var(--muted); font-size: 13px; }
.cart-summary-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.cart-summary-total { font-weight: 700; font-size: 16px; }
.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.cart-checkout-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.cart-continue-btn { width: 100%; padding: 10px; font-size: 14px; }
.cart-trust { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }

.cart-info-toast {
  position: fixed;
  bottom: 90px;
  right: 26px;
  background: rgba(40, 40, 40, 0.95);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 11000;
  opacity: 0;
  transition: opacity .22s ease;
}
.cart-info-toast.visible {
  opacity: 1;
}

/* Cart FAB button */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.cart-fab-count {
  background: #ef4444;
  color: #fff;
  border-radius: 100px;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 5px;
}

/* Checkout success / cancel toast */
.checkout-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 44px 16px 20px;
  border-radius: var(--radius);
  z-index: 20000;
  max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.checkout-toast--success { background: #166534; color: #bbf7d0; }
.checkout-toast--cancel  { background: #7f1d1d; color: #fecaca; }
.checkout-toast strong { display: block; font-size: 15px; margin-bottom: 5px; }
.checkout-toast p { margin: 0; font-size: 13px; opacity: 0.9; }
.checkout-toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}
.checkout-toast-close:hover { opacity: 1; }


/* wishlist heart button */
.wishlist-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  margin-right: 8px;
}

.rating {
  font-size: 0.9em;
  color: #f5a623;
  margin-bottom: 4px;
}

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--panel);
}
.order-card p {
  margin: 4px 0;
}
.order-card select.order-status {
  margin-left: 4px;
}

#low-inventory-alerts {
  font-weight: 600;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quantity-controls .qty-value {
  min-width: 20px;
  text-align: center;
}

.footer {
  position: relative;
  margin: 70px auto 24px;
  padding: 48px 24px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  background: url("images/footer.png") center/cover no-repeat;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.footer > * {
  position: relative;
  z-index: 1;
}

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

/* ── Tablet / Mobile nav breakpoint ────────────────────── */
@media (max-width: 860px) {
  /* Hide the inline nav and social; show hamburger */
  .nav-social { display: none; }
  .menu-toggle { display: flex; }

  /* Nav drawer – hidden by default, slides in when .open is added by JS */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: rgba(6, 8, 18, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* Hamburger → X animation */
  .menu-toggle span {
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  main { padding-top: 90px; }
}

/* ── Small tablet / large phone ────────────────────────── */
@media (max-width: 640px) {
  .hero,
  .panel,
  .auth-forms {
    padding: 20px;
  }

  .top-nav {
    padding: 12px 16px;
  }

  /* Hero – stack content above the visual */
  .hero {
    grid-template-columns: 1fr;
  }

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

  .cta-row {
    flex-direction: column;
  }

  /* Trust bar – 2 columns */
  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services / contact card grids – single column */
  .card-grid {
    grid-template-columns: 1fr;
  }

  /* Process split – stack */
  .split {
    grid-template-columns: 1fr;
  }

  /* Contact grid – stack */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Store product grid – 2 columns (min-width 140px gives 2 on small screens) */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Auth panel side-by-side → single column */
  .auth-panel {
    grid-template-columns: 1fr;
  }

  /* Metrics row – 2 columns */
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery – 2 columns on small screens */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cart drawer – full width on phone */
  .cart-drawer { width: 100vw; }
  /* Generic modal content */
  .cart-content { width: 95%; padding: 18px; }
}

/* ── Extra-small phone ──────────────────────────────────── */
@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  p  { font-size: 1rem; }

  .nav-actions { gap: 6px; }

  /* Single column everything on very small screens */
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .trust-bar {
    grid-template-columns: 1fr;
  }

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

  /* Hide desktop "Get Started" button in nav on tiny screens — hamburger is enough */
  .nav-actions > .btn {
    display: none;
  }
}

/* Splash page overlay */
.splash-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #232526 0%, #414345 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
}
.splash-content {
  text-align: center;
  background: rgba(24,24,24,0.97);
  padding: 56px 40px 36px 40px;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(var(--highlight-rgb),0.10), 0 8px 32px rgba(0,0,0,0.22);
}
.splash-logo {
  width: 140px;
  margin-bottom: 18px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.splash-banner {
  width: 100%;
  max-width: 420px;
  margin-bottom: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.splash-content h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  color: #fff;
}
.splash-content p {
  font-size: 1.1rem;
  color: #bdbdbd;
  margin-bottom: 24px;
}
#enter-site.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021019;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  padding: 14px 38px;
  font-size: 1.18rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(var(--highlight-rgb),0.18);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
/* User dropdown and pill styling */
.user-pill-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 100;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 10px 10px;
}

/* Dashboard Styling */
.dashboard-panel {
  background: linear-gradient(120deg, rgba(var(--accent-rgb),0.05), rgba(var(--highlight-2-rgb),0.05));
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.dashboard-header div {
  flex: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.dashboard-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
}

.dashboard-card h3 {
  margin-bottom: 16px;
  font-size: 16px;
}

.profile-info {
  display: grid;
  gap: 16px;
}

.info-row {
  display: grid;
  gap: 6px;
}

.info-row label {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.info-row p {
  color: var(--text);
  margin: 0;
  font-size: 15px;
}

.edit-profile-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.edit-profile-form input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  color: var(--text);
  font-size: 14px;
}

.edit-profile-form button {
  margin-top: 8px;
}

.projects-list,
.settings-list {
  display: grid;
  gap: 12px;
}

.placeholder-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.placeholder-text button {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}

.placeholder-text button:hover {
  text-decoration: underline;
}

.settings-item {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.settings-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Password Strength Feedback */
.password-feedback {
  min-height: 28px;
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.strength-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.strength-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Email Validation Feedback */
.validation-feedback {
  font-size: 12px;
  margin: -6px 0 8px 0;
  min-height: 16px;
}

/* Form message improvements */
.form-message {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.form-message.success {
  background: rgba(107, 199, 127, 0.1);
  border-color: rgba(107, 199, 127, 0.3);
  color: #6bcf7f;
}

.form-message.error {
  background: rgba(255, 107, 107, 0.1);
  border-color: rgba(255, 107, 107, 0.3);
  color: #ff9f9f;
}

/* Ghost button variant */
.btn.ghost-small {
  padding: 6px 12px;
  font-size: 13px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.ghost-small:hover {
  background: rgba(var(--accent-rgb),0.1);
}

/* Header navigation social links */
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.nav-social-link:hover {
  background: rgba(var(--accent-rgb),0.1);
}

.nav-social-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

/* Contact Section Styles */
.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb),0.15);
}

.discord-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.08), rgba(var(--accent-2-rgb),0.04));
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.contact-email {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.8;
}

/* Mobile responsive for dashboard */
@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  /* Only the Sign Out button goes full-width; the collapse chevron stays compact */
  .dashboard-header [data-logout-btn] {
    width: 100%;
  }

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

  .user-dropdown {
    right: auto;
    left: 0;
  }
}

/* ── Collapsible sections ─────────────────────────────── */
.collapsible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.collapsible-header:hover {
  opacity: 0.8;
}

.collapsible-header h3 {
  margin: 0;
}

.collapse-chevron {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s ease;
  color: var(--muted);
  flex-shrink: 0;
}

/* Rotate chevron when section is collapsed */
[aria-expanded="false"] .collapse-chevron {
  transform: rotate(-90deg);
}

/* Hidden collapsed content */
.dashboard-grid.collapsed,
#adminToolsBody.collapsed {
  display: none;
}

/* ── Theme selector ──────────────────────────────────── */
.theme-selector-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.theme-selector-bar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.theme-selector-bar select {
  flex: 1;
  max-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

.theme-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Dashboard header actions row (chevron + Sign Out) */
.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Compact icon-only button for the collapse toggle */
.btn.btn-icon {
  padding: 8px 10px;
  font-size: 16px;
  line-height: 1;
}
