:root {
  color-scheme: dark;
  --oled: #000000;
  --obsidian-950: #050507;
  --obsidian-900: #09090B;
  --obsidian-850: #0D0D10;
  --obsidian-800: #111114;
  --obsidian-700: #18181B;
  --gold-300: #F5D061;
  --gold-400: #F59E0B;
  --gold-500: #D4AF37;
  --gold-600: #B59024;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --text-main: #FFFFFF;
  --text-secondary: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --emerald: #34D399;
  --danger: #F87171;
  --font-sans: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--oled);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

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

.hidden {
  display: none !important;
}

/* Custom OLED Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #27272A;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-500);
}

/* Dot Grid Background Accent */
.oled-bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(60% 40% at 50% -8%, rgba(212, 175, 55, 0.08), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.45) 65%, rgba(0, 0, 0, 0.1) 100%);
}

.container {
  position: relative;
  z-index: 1;
  width: min(1240px, 100% - 32px);
  margin: 0 auto;
}

/* Glass Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-wordmark {
  height: 22px;
  width: auto;
  display: block;
}

.brand-suffix {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FFFFFF;
}

.nav-links a.active {
  color: var(--gold-500);
}

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

.btn-outline-sm,
.btn-gold-sm,
.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline-sm {
  background: var(--obsidian-900);
  color: var(--text-secondary);
}
.btn-outline-sm:hover {
  border-color: var(--border-gold);
  color: #FFFFFF;
}

.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}
.btn-ghost-sm:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.09);
}

.btn-gold-sm {
  background: var(--gold-500);
  color: #000000;
  border-color: transparent;
}
.btn-gold-sm:hover {
  background: var(--gold-400);
}

.gold-glow-btn {
  box-shadow: 0 0 24px -6px rgba(212, 175, 55, 0.45);
}
.gold-glow-btn:hover {
  box-shadow: 0 0 32px -4px rgba(245, 158, 11, 0.62);
}

/* Draft Preview Banner */
.draft-banner {
  background: rgba(212, 175, 55, 0.12);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  padding: 10px 0;
}

.draft-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gold-300);
}

/* Storefront Toolbar & Catalog Section */
.store-main {
  padding: 36px 0 88px;
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.catalog-title-wrap h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.catalog-title-wrap p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.catalog-count-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-500);
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
  pointer-events: none;
}

.oled-input,
.oled-select,
.oled-textarea {
  width: 100%;
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: #FFFFFF;
  font-size: 13.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.oled-input,
.oled-select {
  height: 44px;
  padding: 0 14px;
}

.search-box .oled-input {
  padding-left: 42px;
}

.oled-textarea {
  padding: 12px 14px;
  resize: vertical;
  min-height: 92px;
  line-height: 1.5;
}

.oled-input:focus,
.oled-select:focus,
.oled-textarea:focus {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.sort-box {
  flex: 0 0 220px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-pill {
  padding: 8px 15px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-pill.active {
  background: #FFFFFF;
  color: #000000;
  border-color: #FFFFFF;
  font-weight: 600;
}

.cat-pill.recent-pill.active {
  background: var(--gold-500);
  color: #000000;
  border-color: var(--gold-500);
}

/* Spotlight Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background-color: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.14),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

.spotlight-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    360px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(212, 175, 55, 0.5),
    transparent 45%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-3px);
  background-color: var(--obsidian-850);
}

.card-media-top {
  position: relative;
  height: 184px;
  background: var(--obsidian-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.card-media-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card:hover .card-media-inner {
  transform: scale(1.03);
}

.card-cover-img,
.card-cover-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Miniature Dynamic Island Card Cover */
.card-mini-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.18), transparent 62%),
    linear-gradient(180deg, #09090D 0%, #040406 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 22px;
}

.mini-island-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #000000;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7), 0 0 18px rgba(212, 175, 55, 0.14);
}

.mini-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 8px var(--gold-500);
}

.mini-pill-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #FFFFFF;
}

.mini-pill-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.mini-pill-eq i {
  width: 2px;
  background: var(--gold-500);
  border-radius: 2px;
  animation: eqBounce 1.1s ease-in-out infinite;
}
.mini-pill-eq i:nth-child(2) { animation-delay: 0.2s; }
.mini-pill-eq i:nth-child(3) { animation-delay: 0.4s; }
.mini-pill-eq i:nth-child(4) { animation-delay: 0.15s; }

.mini-island-expanded-ghost {
  margin-top: 14px;
  width: 190px;
  height: 54px;
  border-radius: 16px;
  background: rgba(14, 14, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--gold-500);
  font-size: 13px;
}

.mini-ghost-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-500) 55%, rgba(255, 255, 255, 0.12) 55%);
}

.mini-taskbar {
  position: absolute;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

.mini-taskbar span {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
}

.mini-taskbar span.active {
  background: var(--gold-500);
}

.card-badges-tl,
.card-badges-tr {
  position: absolute;
  top: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badges-tl { left: 12px; }
.card-badges-tr { right: 12px; }

.badge-chip {
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-chip.gold {
  font-family: var(--font-mono);
  color: var(--gold-400);
}

.card-body {
  position: relative;
  z-index: 3;
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-title-row h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  transition: color 0.2s ease;
}

.spotlight-card:hover .card-title-row h3 {
  color: var(--gold-400);
}

.card-meta-size {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  margin-top: 3px;
}

.card-desc {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-label {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.price-label.free { color: var(--emerald); }
.price-label.freemium { color: var(--gold-500); }
.price-label.paid { color: #FFFFFF; }

.card-sub-date {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.card-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Empty State */
.empty-state {
  padding: 64px 20px;
  text-align: center;
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 18px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Product Detail Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.2s ease-out forwards;
}

.modal-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--obsidian-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.85);
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 25;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  border-color: var(--gold-500);
}

.modal-preview-zone {
  background: var(--obsidian-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 26px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.modal-head-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.modal-title {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: #FFFFFF;
}

.modal-full-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.features-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--obsidian-950);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.feature-box.pro-box {
  border-color: rgba(212, 175, 55, 0.28);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, var(--obsidian-950) 100%);
}

.feature-box h4 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}

.feature-box.pro-box h4 {
  color: var(--gold-400);
}

.feature-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-box li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.feature-box li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-box.pro-box li::before {
  content: "★";
  color: var(--gold-500);
}

.changelog-box {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--obsidian-950);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.changelog-box h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.changelog-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.modal-cta-bar {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-pricing-meta .refund-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.modal-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary-lg,
.btn-gold-lg,
.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary-lg {
  background: #FFFFFF;
  color: #000000;
}
.btn-primary-lg:hover {
  background: #E4E4E7;
}

.btn-gold-lg {
  background: var(--gold-500);
  color: #000000;
}
.btn-gold-lg:hover {
  background: var(--gold-400);
}

.btn-outline-lg {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn-outline-lg:hover {
  color: #FFFFFF;
  border-color: var(--gold-500);
}

/* Preview Engine Shell & Interactive Dynamic Island Simulator */
.preview-shell {
  width: 100%;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 58px 10px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.4);
}

.preview-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 10px var(--gold-500);
}

.preview-badge-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-400);
}

.preview-view-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: #0B0B0F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}

.switch-pill {
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.switch-pill.active {
  background: var(--gold-500);
  color: #000000;
}

.preview-mount-target {
  padding: 16px 18px 18px;
}

/* Dynamic Island Desktop Simulator Stage */
.di-sim-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.di-desktop-canvas {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 22% 25%, rgba(212, 175, 55, 0.18), transparent 46%),
    radial-gradient(circle at 80% 72%, rgba(245, 158, 11, 0.12), transparent 52%),
    linear-gradient(155deg, #09090D 0%, #030304 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.di-desktop-hint {
  position: absolute;
  bottom: 54px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--text-muted);
  pointer-events: none;
}

.di-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

.di-island {
  position: relative;
  margin-top: 14px;
  width: 224px;
  min-height: 36px;
  background: rgba(4, 4, 6, 0.96);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.14);
  transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  z-index: 10;
}

.di-island[data-shape="notch"] {
  margin-top: 0;
  border-top: none;
  border-radius: 0 0 20px 20px;
}

.di-ear {
  display: none;
  position: absolute;
  top: 0;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.di-island[data-shape="notch"] .di-ear {
  display: block;
}

.di-ear-left { left: -16px; }
.di-ear-right { right: -16px; }

.di-island[data-expanded="true"] {
  width: min(440px, 94%);
  min-height: 166px;
  border-radius: 22px;
  cursor: default;
  border-color: rgba(212, 175, 55, 0.48);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 36px rgba(212, 175, 55, 0.2);
}

.di-island[data-shape="notch"][data-expanded="true"] {
  border-radius: 0 0 24px 24px;
}

.di-compact {
  height: 36px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.di-island[data-expanded="true"] .di-compact {
  display: none;
}

.di-compact-left,
.di-compact-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.di-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

.di-compact-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 118px;
}

.di-clock {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.di-eq-mini,
.di-eq-large {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.di-eq-mini i,
.di-eq-large i {
  width: 2.5px;
  border-radius: 2px;
  background: var(--gold-500);
  height: 5px;
}

.di-island[data-playing="true"] .di-eq-mini i,
.di-island[data-playing="true"] .di-eq-large i {
  animation: eqBounce 0.95s ease-in-out infinite;
}

.di-eq-mini i:nth-child(2), .di-eq-large i:nth-child(2) { animation-delay: 0.2s; }
.di-eq-mini i:nth-child(3), .di-eq-large i:nth-child(3) { animation-delay: 0.4s; }
.di-eq-large i:nth-child(4) { animation-delay: 0.15s; }
.di-eq-large i:nth-child(5) { animation-delay: 0.35s; }

/* Expanded Content inside Island */
.di-expanded {
  display: none;
  padding: 12px 16px 14px;
  flex-direction: column;
  gap: 11px;
}

.di-island[data-expanded="true"] .di-expanded {
  display: flex;
}

.di-exp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.di-tab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.di-tab-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.di-tab-btn.active {
  background: var(--gold-500);
  color: #000000;
  border-color: transparent;
}

.di-pin-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.di-pin-btn.active {
  color: var(--gold-400);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.12);
}

.di-panel {
  display: none;
}
.di-panel.active {
  display: block;
}

.di-media-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.di-album-art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #000000;
  font-weight: 700;
  flex-shrink: 0;
}

.di-track-meta {
  flex: 1;
  min-width: 0;
}

.di-track-meta strong {
  display: block;
  font-size: 13.5px;
  color: #FFFFFF;
}

.di-track-meta span {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.di-seek-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

.di-seek-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.di-seek-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  border-radius: 999px;
}

.di-media-controls {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.di-ctrl-icon,
.di-ctrl-play {
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.di-ctrl-icon {
  width: 30px;
  height: 30px;
}

.di-ctrl-play {
  width: 34px;
  height: 34px;
  background: var(--gold-500);
  color: #000000;
}

.di-ctrl-icon:hover,
.di-ctrl-play:hover {
  transform: scale(1.06);
}

.di-island[data-playing="true"] .ic-play { display: none; }
.di-island[data-playing="false"] .ic-pause { display: none; }

/* Telemetry panel inside island */
.di-sys-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.di-sys-card {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.di-sys-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.di-sys-head strong {
  color: var(--gold-400);
}

.di-sys-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.di-sys-bar span {
  display: block;
  height: 100%;
  background: var(--gold-500);
  transition: width 0.4s ease;
}

.di-sys-meta {
  font-size: 10.5px;
  color: var(--text-dim);
}

/* Timer, Call, Device panels inside island */
.di-timer-row,
.di-call-row,
.di-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

.di-timer-label {
  font-size: 11px;
  color: var(--text-muted);
}

.di-timer-digits {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-400);
}

.di-timer-actions,
.di-call-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.di-mini-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.di-mini-btn.primary {
  background: var(--gold-500);
  color: #000000;
  border-color: transparent;
}

.di-call-avatar,
.di-device-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.di-call-meta,
.di-device-meta {
  flex: 1;
  min-width: 0;
}

.di-call-meta strong,
.di-device-meta strong {
  display: block;
  font-size: 13px;
}

.di-call-meta span,
.di-device-meta span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.di-call-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-weight: 700;
  color: #FFFFFF;
}

.di-call-btn.accept { background: #10B981; color: #000000; }
.di-call-btn.reject { background: #EF4444; }
.di-call-btn.mute { background: rgba(255, 255, 255, 0.14); }
.di-call-btn.mute.active { background: var(--gold-500); color: #000000; }

/* Simulated Taskbar */
.di-desktop-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  padding: 0 14px;
  background: rgba(9, 9, 12, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.di-tb-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.di-tb-app {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.di-tb-app.active {
  background: rgba(212, 175, 55, 0.22);
  color: var(--gold-400);
}

.di-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.di-toolbar-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.di-toolbar-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 4px;
}

.di-tool-pill {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--obsidian-900);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
}

.di-tool-pill:hover {
  color: #FFFFFF;
}

.di-tool-pill.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-300);
}

/* Gallery & Media Stage */
.gallery-stage,
.media-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery-viewport {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #040406;
}

.gallery-img,
.media-stage-el {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #040406;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.72);
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
}

.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--obsidian-900);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}

.gallery-chip.active {
  background: var(--gold-500);
  color: #000000;
  border-color: transparent;
  font-weight: 600;
}

.sandbox-preview-frame {
  width: 100%;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #000000;
}

.empty-preview-msg {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

/* FAQ & Discord Styles */
.faq-main {
  padding: 42px 0 88px;
}

.page-intro {
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 8px;
}

.page-intro h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  padding: 18px 22px;
}

.faq-item[open] {
  border-color: rgba(212, 175, 55, 0.35);
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 15.5px;
  color: #FFFFFF;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold-500);
  font-size: 18px;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.discord-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, var(--obsidian-900) 60%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.discord-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 20px;
}

.discord-card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
}

.discord-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Admin Studio Layout */
.admin-main {
  padding: 28px 0 80px;
}

.admin-auth-bar {
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-status-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.admin-status-badge.connected {
  color: var(--emerald);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.1);
}

.admin-auth-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 10px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
}

.admin-sidebar {
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-proj-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-proj-item {
  padding: 11px 12px;
  border-radius: 11px;
  background: var(--obsidian-950);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  text-align: left;
  color: #FFFFFF;
  transition: border-color 0.18s ease;
}

.admin-proj-item.active {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.09);
}

.admin-proj-item strong {
  display: block;
  font-size: 13.5px;
}

.admin-proj-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.admin-editor {
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-section-title {
  margin: 4px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}

.admin-live-test-box {
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--obsidian-950);
  overflow: hidden;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.9);
  padding: 28px 0;
}

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

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--gold-400);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  background: rgba(9, 9, 11, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  color: #FFFFFF;
  animation: slideUp 0.25s ease-out forwards;
}

.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

.toast-dot.error {
  background: var(--danger);
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 880px) {
  .admin-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .modal-body {
    padding: 20px;
  }
}


/* =========================================================
   Native <dialog> Product Modal & Scroll Containment
   ========================================================= */
dialog.product-dialog {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-main);
  width: min(920px, calc(100vw - 24px));
  max-width: 920px;
  max-height: 92dvh;
  margin: auto;
  overflow: visible;
}

dialog.product-dialog:modal {
  overscroll-behavior: contain;
}

dialog.product-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

dialog.product-dialog .modal-panel {
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
}

.feature-box h2,
.changelog-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
}

.feature-box.pro-box h2 {
  color: var(--gold-400);
}

.changelog-box h2 {
  color: var(--text-muted);
}

.share-chip-btn {
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.share-chip-btn:hover {
  border-color: var(--gold-500);
  color: #FFFFFF;
}

.btn-soon-muted {
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.38);
}

.btn-soon-muted:hover {
  background: rgba(212, 175, 55, 0.22);
}

/* =========================================================
   30-Language Switcher Popover & RTL Adjustments
   ========================================================= */
.lang-switcher-wrap {
  position: relative;
}

.lang-trigger-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  min-width: 64px;
}

.lang-popover {
  margin: 0;
  padding: 10px;
  width: min(290px, calc(100vw - 24px));
  max-height: 360px;
  background: rgba(11, 11, 15, 0.98);
  color: var(--text-main);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85);
  inset: auto;
  top: 72px;
  right: 16px;
}

.lang-popover.no-native-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 80;
}

.lang-popover.no-native-popover.fallback-open {
  display: flex;
  flex-direction: column;
}

.lang-popover:popover-open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-popover-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-search-input {
  height: 36px;
  font-size: 12.5px;
  padding: 0 11px;
}

.lang-popover-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-y: auto;
  max-height: 278px;
  padding-right: 2px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lang-option-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
}

.lang-option-btn.active {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.45);
  color: var(--gold-300);
}

.lang-opt-native {
  font-size: 13px;
  font-weight: 600;
}

.lang-opt-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

[dir="rtl"] .search-box svg {
  left: auto;
  right: 14px;
}

[dir="rtl"] .search-box .oled-input {
  padding-left: 14px;
  padding-right: 42px;
}

[dir="rtl"] .modal-close-btn {
  right: auto;
  left: 14px;
}

[dir="rtl"] .preview-topbar {
  padding: 12px 18px 10px 58px;
}

[dir="rtl"] .lang-popover {
  right: auto;
  left: 16px;
}

[dir="rtl"] .lang-option-btn {
  text-align: right;
}

/* =========================================================
   Legal & 404 Pages
   ========================================================= */
.legal-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-card {
  padding: 24px;
  border-radius: 18px;
  background: var(--obsidian-900);
  border: 1px solid var(--border-subtle);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: 19px;
  color: var(--gold-400);
}

.legal-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.not-found-main {
  min-height: calc(100dvh - 160px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
}

.not-found-card {
  max-width: 520px;
  width: 100%;
  padding: 36px 28px;
  border-radius: 22px;
  background: var(--obsidian-900);
  border: 1px solid rgba(212, 175, 55, 0.25);
  text-align: center;
}

.not-found-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1;
}

.not-found-card h1 {
  margin: 12px 0 8px;
  font-family: var(--font-sans);
  font-size: 24px;
}

.not-found-card p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Compact Solo Admin Extras */
.admin-stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--obsidian-900);
  border: 1px solid rgba(212, 175, 55, 0.22);
  margin-bottom: 18px;
}

.admin-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-stat-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--obsidian-950);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.admin-stat-pill strong {
  color: var(--gold-400);
}
