:root {
  /* OBSIDIANT Royal Violet-Purple Theme */
  --bg: #08060c;
  --surface: #0e0a15;
  --surface-2: #161121;
  --surface-hover: #241936;
  --surface-active: #311f4a;
  --popup: #0c0912;

  --border: rgba(168, 85, 247, 0.36);
  --border-subtle: rgba(139, 92, 246, 0.22);
  --border-strong: rgba(192, 132, 252, 0.78);

  --text: #f3effa;
  --text-section: #e2d8f2;
  --muted: #8b7fa3;

  /* Violet Primary CTA */
  --violet: #7e22ce;
  --violet-hover: #9333ea;
  --violet-active: #6b21a8;
  --violet-glow: #a855f7;
  --violet-accent: #c084fc;
  --violet-text: #faf5ff;

  /* Status Tints */
  --emerald-bg: #142b24;
  --emerald-border: rgba(110, 231, 183, 0.55);
  --emerald-text: #d6fae6;
  --danger-bg: #2e111a;
  --danger-hover: #52182a;
  --danger-border: rgba(244, 63, 94, 0.65);
  --danger-text: #fecdd3;
  --warn-text: #f5d08a;

  /* Geometry */
  --radius: 9px;
  --radius-sm: 6px;
  --radius-popup: 8px;
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Inter, sans-serif;
  background:
    radial-gradient(960px 440px at 84% -8%, rgba(168, 85, 247, 0.16), transparent 64%),
    radial-gradient(700px 360px at 10% 4%, rgba(126, 34, 206, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Violet Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 6, 12, 0.88);
}
::-webkit-scrollbar-thumb {
  background: rgba(126, 34, 206, 0.65);
  border-radius: 8px;
  border: 2px solid rgba(8, 6, 12, 0.88);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 85, 247, 0.88);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

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

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

/* Top Chrome Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(8, 6, 12, 0.94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(168, 85, 247, 0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.08rem;
}

.brand-crystal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.72));
}

.metallic-wordmark {
  display: inline-block;
  font-family: "Michroma", "Orbitron", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e2e4ec 28%,
    #585c6e 52%,
    #cfd3e0 76%,
    #6d7185 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter:
    drop-shadow(0 1px 0 rgba(168, 85, 247, 0.85))
    drop-shadow(0 0 6px rgba(168, 85, 247, 0.32));
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.28) 0%, rgba(255, 255, 255, 0) 50%), var(--violet);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.94rem;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.52);
}

.nav-search {
  flex: 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  color: var(--muted);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.nav-search:focus-within {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.nav-search input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  outline: none;
  font-size: 0.9rem;
}

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

/* Specular Violet-Chrome Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(168, 132, 214, 0.38);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
  color: #eee8f7;
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.09) 0%, rgba(255, 255, 255, 0) 46%), #191326;
}

.btn:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.14) 0%, rgba(255, 255, 255, 0) 46%), #2c1f42;
  border-color: rgba(192, 132, 252, 0.72);
  color: #ffffff;
}

.btn:active:not(:disabled) {
  background: #120e1c;
}

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

/* Primary Royal Purple CTA */
.btn-primary {
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.24) 0%, rgba(255, 255, 255, 0) 48%), var(--violet);
  border-color: rgba(192, 132, 252, 0.92);
  color: var(--violet-text);
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.38), 0 0 18px rgba(168, 85, 247, 0.34);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.3) 0%, rgba(255, 255, 255, 0) 48%), var(--violet-hover);
  border-color: #d8b4fe;
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.58), 0 0 24px rgba(168, 85, 247, 0.55);
}

.btn-primary:active:not(:disabled) {
  background: var(--violet-active);
}

.btn-outline {
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.12) 0%, rgba(255, 255, 255, 0) 48%), #211733;
  border-color: rgba(168, 85, 247, 0.68);
  color: #f5f0ff;
}

.btn-outline:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(243, 232, 255, 0.16) 0%, rgba(255, 255, 255, 0) 48%), #342152;
  border-color: #c084fc;
}

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

.btn-ghost:hover:not(:disabled) {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.34);
  color: #fff;
}

.btn-danger {
  background: linear-gradient(180deg, rgba(255, 240, 245, 0.08) 0%, rgba(255, 255, 255, 0) 46%), var(--danger-bg);
  color: var(--danger-text);
  border-color: var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(255, 240, 245, 0.12) 0%, rgba(255, 255, 255, 0) 46%), var(--danger-hover);
  border-color: #fb7185;
  color: #fff;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.79rem;
}

.btn-lg {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.cart-badge {
  background: rgba(8, 6, 12, 0.45);
  border: 1px solid rgba(233, 213, 255, 0.48);
  color: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 800;
}

/* Store Header with Purple Hairline Divider */
.hero {
  padding: 28px 0 14px;
}

.hero h1 {
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #f8f5ff;
  text-shadow: 0 2px 14px rgba(168, 85, 247, 0.55), 1px 1px 0 rgba(8, 5, 14, 0.9);
}

.hero::after {
  content: "";
  display: block;
  max-width: 1160px;
  height: 1.5px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.78) 0%, rgba(126, 34, 206, 0.08) 100%);
}

/* Catalog */
.catalog-section {
  padding: 20px 20px 64px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  position: relative;
  background: rgba(14, 10, 21, 0.92);
  color: #a89bc2;
  border: 1px solid rgba(139, 92, 246, 0.24);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.pill:hover {
  background: #211733;
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.48);
}

.pill.active {
  background: #2b1947;
  border-color: rgba(192, 132, 252, 0.78);
  color: #faf5ff;
  padding-left: 18px;
}

.pill.active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.9);
}

.sort-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-section);
  font-size: 0.85rem;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="url"],
input[type="file"],
textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.14s ease, background 0.14s ease;
}

select:hover,
input:hover,
textarea:hover {
  background: var(--surface-hover);
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--border-strong);
  background: var(--surface-active);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 18px;
}

@keyframes obsidianPurpleFlame {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(168, 85, 247, 0.42),
      0 0 30px rgba(126, 34, 206, 0.26),
      inset 0 0 14px rgba(168, 85, 247, 0.12);
    border-color: rgba(192, 132, 252, 0.74);
  }
  50% {
    box-shadow:
      0 0 22px rgba(217, 70, 239, 0.56),
      0 0 42px rgba(147, 51, 234, 0.42),
      inset 0 0 20px rgba(192, 132, 252, 0.18);
    border-color: rgba(232, 121, 249, 0.92);
  }
}

.product-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid rgba(192, 132, 252, 0.72);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: obsidianPurpleFlame 3.2s ease-in-out infinite;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #9333ea, #e879f9, #581c87, #a855f7);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.92;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #e879f9;
  box-shadow:
    0 0 26px rgba(192, 132, 252, 0.68),
    0 0 50px rgba(147, 51, 234, 0.42),
    inset 0 0 22px rgba(192, 132, 252, 0.22);
}

.product-thumb {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border-bottom: 1px solid rgba(168, 85, 247, 0.24);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(12, 9, 18, 0.9);
  border: 1px solid var(--border-strong);
  color: #faf5ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 6px;
}

.product-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.product-desc {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.price-block strong {
  font-size: 1.12rem;
}

.price-block s {
  color: var(--muted);
  font-size: 0.84rem;
  margin-left: 6px;
}

.stock-pill {
  font-size: 0.73rem;
  color: var(--emerald-text);
}

.stock-pill.low {
  color: var(--warn-text);
}

.stock-pill.out {
  color: var(--danger-text);
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: var(--popup);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.drawer-header h2 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-section);
}

.icon-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(168, 85, 247, 0.18);
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
}

.cart-item-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-controls button {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}

.qty-controls button:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.drawer-footer {
  padding: 16px 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row input {
  flex: 1;
}

.promo-msg {
  font-size: 0.8rem;
  margin: 6px 0 12px;
  min-height: 18px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.summary-lines > div {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  font-size: 1.04rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--popup);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-popup);
  padding: 22px;
  box-shadow: var(--shadow), 0 0 32px rgba(168, 85, 247, 0.22);
}

.modal-lg {
  width: min(720px, 100%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  align-items: start;
}

.quickview-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quickview-art {
  height: 250px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quickview-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quickview-video-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quickview-video-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.quickview-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #07050c;
  overflow: hidden;
}

.quickview-video video,
.quickview-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.variant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 16px;
}

.variant-chip {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.82rem;
}

.variant-chip.active {
  border-color: var(--border-strong);
  background: #2b1947;
  color: #fff;
}

/* Forms */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 14px;
}

.checkout-form label,
.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-section);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.checkout-summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
}

.form-error {
  color: var(--danger-text);
  font-size: 0.84rem;
  min-height: 18px;
}

.track-result {
  margin-top: 16px;
}

.status-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #25153d;
  border: 1px solid var(--border);
  color: var(--text);
}

.status-badge.Delivered {
  background: var(--emerald-bg);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}
.status-badge.Shipped {
  background: #231838;
  border-color: rgba(192, 132, 252, 0.55);
  color: #e9d5ff;
}
.status-badge.Processing {
  background: #2b2114;
  border-color: rgba(245, 208, 138, 0.45);
  color: var(--warn-text);
}
.status-badge.Cancelled {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(8, 6, 12, 0.9);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

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

.footer-links a:hover {
  color: #c084fc;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--popup);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 100;
  box-shadow: var(--shadow), 0 0 20px rgba(168, 85, 247, 0.35);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Admin & Panels */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.kpi-card span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-card strong {
  display: block;
  font-size: 1.55rem;
  margin-top: 4px;
  color: var(--text);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid transparent;
  background-image: linear-gradient(90deg, rgba(192, 132, 252, 0.75) 0%, rgba(126, 34, 206, 0.08) 100%);
  background-size: 100% 1.5px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.panel-header h2 {
  font-size: 0.96rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-section);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.14);
}

th {
  color: #c084fc;
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* OBSIDIANT Shop Tab Bar */
.shop-tabs-bar {
  border-top: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(12, 9, 18, 0.96);
}

.shop-tabs {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
  overflow-x: auto;
}

.shop-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 10, 21, 0.92);
  color: #a89bc2;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.14s ease;
  white-space: nowrap;
}

.shop-tab:hover {
  background: #211733;
  color: var(--text);
  border-color: rgba(168, 85, 247, 0.48);
}

.shop-tab.active {
  background: #2b1947;
  border-color: rgba(192, 132, 252, 0.78);
  color: #faf5ff;
  padding-left: 22px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.24);
}

.shop-tab.active::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 2px;
  background: #c084fc;
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.9);
}

.tab-count {
  background: rgba(168, 85, 247, 0.24);
  border: 1px solid rgba(192, 132, 252, 0.5);
  color: #faf5ff;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
}

/* Launcher Tab Layout */
.launcher-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.launcher-hero-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
}

.launcher-preview-img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(192, 132, 252, 0.78);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.42), 0 0 38px rgba(126, 34, 206, 0.24);
  display: block;
}

.launcher-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.launcher-meta-grid span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c084fc;
}

.launcher-meta-grid strong {
  font-size: 0.88rem;
  color: var(--text);
}

.launcher-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.obsidian-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-section);
}

.obsidian-list code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: #e9d5ff;
}

/* My Keys Tab */
.keys-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.key-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.key-code-box {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.28);
}

@media (max-width: 820px) {
  .hero-grid,
  .quickview-grid,
  .form-grid,
  .form-grid.three-col,
  .launcher-hero-row,
  .launcher-features-grid {
    grid-template-columns: 1fr;
  }

  .nav-search {
    display: none;
  }
}


/* Left & Right Frameless Large Animated Anime Mascots */
.left-mascot,
.right-mascot {
  position: fixed;
  bottom: 0;
  width: clamp(290px, 24vw, 440px);
  z-index: 20;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  user-select: none;
}

.left-mascot {
  left: 0;
}

.right-mascot {
  right: 0;
}

.left-mascot img,
.right-mascot img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: lighten;
}

.left-mascot img {
  -webkit-mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

.right-mascot img {
  -webkit-mask-image: linear-gradient(to left, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 72%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 14%, #000 88%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 1220px) {
  .left-mascot,
  .right-mascot {
    display: none;
  }
}
