/* ==========================================================================
   TITAN DOMAIN NETWORK SHOWCASE X
   Obsidian · Imperial Gold · Crimson · Platinum · Copper · Light & Dark Parity
   Zero Hardcoded Domains · Reduced-Motion Safe · 320px -> 1920px · RTL & LTR
   ========================================================================== */

.dsx-section {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 88px) 0;
  background:
    radial-gradient(640px 360px at 14% 14%, rgba(212, 175, 55, 0.14), transparent 62%),
    radial-gradient(580px 340px at 88% 18%, rgba(190, 18, 60, 0.14), transparent 62%),
    linear-gradient(180deg, #07080d 0%, #0b0c12 100%);
  color: #f8fafc;
}

html[data-theme="light"] .dsx-section {
  background:
    radial-gradient(640px 360px at 14% 14%, rgba(212, 175, 55, 0.16), transparent 62%),
    radial-gradient(580px 340px at 88% 18%, rgba(190, 18, 60, 0.08), transparent 62%),
    linear-gradient(180deg, #faf8f3 0%, #f3efe6 100%);
  color: #121116;
}

.dsx-aurora {
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background: conic-gradient(from 140deg at 50% 45%, rgba(212, 175, 55, 0.09), rgba(225, 29, 72, 0.09), rgba(148, 163, 184, 0.09), rgba(212, 175, 55, 0.09));
  filter: blur(64px);
  opacity: 0.7;
}

.dsx-wrap {
  position: relative;
  z-index: 2;
}

.dsx-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}

.dsx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(243, 217, 149, 0.4);
  color: #f3d995;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

html[data-theme="light"] .dsx-eyebrow {
  background: #fef6de;
  border-color: rgba(154, 107, 47, 0.42);
  color: #78350f;
}

.dsx-eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d995, #d4af37);
  box-shadow: 0 0 10px rgba(243, 217, 149, 0.8);
}

.dsx-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.6vw, 2.85rem);
  font-weight: 900;
  line-height: 1.18;
  color: #ffffff;
}

html[data-theme="light"] .dsx-title {
  color: #111015;
}

.dsx-sub {
  margin: 0 auto;
  max-width: 680px;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.65;
  color: rgba(241, 245, 249, 0.84);
}

html[data-theme="light"] .dsx-sub {
  color: #3f3a47;
}

/* Policy Clarity Strip */
.dsx-policy-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto 24px;
}

@media (max-width: 820px) {
  .dsx-policy-strip {
    grid-template-columns: 1fr;
  }
}

.dsx-policy-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .dsx-policy-pill {
  background: #ffffff;
  border-color: rgba(20, 18, 24, 0.12);
  box-shadow: 0 6px 20px rgba(20, 18, 24, 0.05);
}

.dsx-policy-pill--free {
  border-color: rgba(243, 217, 149, 0.36);
}

.dsx-policy-pill--com {
  border-color: rgba(148, 163, 184, 0.28);
}

.dsx-policy-pill__ico {
  flex-shrink: 0;
  min-width: 44px;
  height: 36px;
  padding: 0 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37, #f5df9c);
  color: #140f05;
}

.dsx-policy-pill--com .dsx-policy-pill__ico {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: #f3d995;
  border: 1px solid rgba(243, 217, 149, 0.45);
}

.dsx-policy-pill strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.dsx-policy-pill span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.84;
}

/* Interactive Studio Bar */
.dsx-studio {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(16, 17, 24, 0.86);
  border: 1px solid rgba(243, 217, 149, 0.28);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

html[data-theme="light"] .dsx-studio {
  background: #ffffff;
  border-color: rgba(154, 107, 47, 0.28);
  box-shadow: 0 12px 32px rgba(20, 18, 24, 0.08);
}

.dsx-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dsx-tab {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

html[data-theme="light"] .dsx-tab {
  border-color: rgba(20, 18, 24, 0.14);
  background: #f8fafc;
  color: #1e293b;
}

.dsx-tab.is-active {
  background: linear-gradient(135deg, #d4af37, #f3d995);
  border-color: #f3d995;
  color: #140e04;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.32);
}

.dsx-preview-bar {
  display: grid;
  gap: 8px;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.dsx-preview-label {
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
}

.dsx-preview-input-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dsx-input {
  flex: 1 1 240px;
  min-width: 0;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 13px;
  border: 1.5px solid rgba(243, 217, 149, 0.36);
  background: rgba(8, 9, 14, 0.85);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
}

html[data-theme="light"] .dsx-input {
  background: #faf9f5;
  border-color: rgba(154, 107, 47, 0.38);
  color: #111015;
}

.dsx-check-all-btn {
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 13px;
  border: 0;
  background: linear-gradient(135deg, #be123c, #e11d48);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.dsx-check-all-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.dsx-preview-note {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.78;
  text-align: center;
}

/* Dynamic Domain Cards Grid */
.dsx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 18px;
}

.dsx-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.dsx-card[hidden] {
  display: none !important;
}

.dsx-card:hover {
  transform: translateY(-4px);
}

.dsx-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
}

.dsx-card__top,
.dsx-card__zone,
.dsx-card__tagline,
.dsx-card__products,
.dsx-url-box,
.dsx-card__status,
.dsx-card__actions {
  position: relative;
  z-index: 2;
}

.dsx-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dsx-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dsx-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1.3;
}

.dsx-card__zone {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.dsx-card__tagline {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  opacity: 0.88;
}

.dsx-card__products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dsx-prod-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-theme="light"] .dsx-prod-chip {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.14);
}

.dsx-url-box {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  word-break: break-all;
}

html[data-theme="light"] .dsx-url-box {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.14);
}

.dsx-url-box__proto { opacity: 0.6; }
.dsx-url-box__slug { color: #f3d995; font-weight: 900; }
html[data-theme="light"] .dsx-url-box__slug { color: #9a3412; }

.dsx-card__status {
  min-height: 24px;
  font-size: 0.8rem;
  font-weight: 700;
}

.dsx-status-idle { opacity: 0.76; }
.dsx-status-checking { color: #f3d995; }
.dsx-status-ok { color: #34d399; }
.dsx-status-err { color: #fb7185; }
html[data-theme="light"] .dsx-status-ok { color: #047857; }
html[data-theme="light"] .dsx-status-err { color: #be123c; }
html[data-theme="light"] .dsx-status-checking { color: #92400e; }

.dsx-card__actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 400px) {
  .dsx-card__actions {
    grid-template-columns: 1fr;
  }
}

.dsx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 11px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.dsx-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.dsx-btn--check {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: inherit;
}

html[data-theme="light"] .dsx-btn--check {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  color: #111015;
}

.dsx-btn--start {
  background: linear-gradient(135deg, #d4af37, #f3d995);
  color: #140e04;
}

/* ---------- VISUAL THEMES PER DOMAIN ACCENT ---------- */
/* 1. CRIMSON / COPPER (menue.food — Exclusive Tech Food Restaurant Theme) */
.dsx-card--crimson {
  background: linear-gradient(160deg, #1b080d 0%, #2a0d14 52%, #180c08 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 18px 46px rgba(60, 10, 20, 0.45);
}
.dsx-card--crimson .dsx-card__glow {
  background: radial-gradient(circle at 86% 12%, rgba(245, 158, 11, 0.24), transparent 48%), radial-gradient(circle at 12% 88%, rgba(225, 29, 72, 0.22), transparent 50%);
}
.dsx-card--crimson .dsx-card__icon { background: linear-gradient(135deg, #e11d48, #d97706); color: #fff; }
.dsx-card--crimson .dsx-card__badge { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1a0c04; }
.dsx-card--crimson .dsx-card__zone { color: #fde68a; }

html[data-theme="light"] .dsx-card--crimson {
  background: linear-gradient(160deg, #fffbf7 0%, #fff1f2 55%, #fef3c7 100%);
  border-color: rgba(217, 119, 6, 0.5);
  box-shadow: 0 14px 36px rgba(190, 18, 60, 0.12);
}
html[data-theme="light"] .dsx-card--crimson .dsx-card__zone { color: #9f1239; }

/* 2. PLATINUM / CHAMPAGNE GOLD (bookeg.store — Universal Flagship Domain) */
.dsx-card--platinum {
  background: linear-gradient(160deg, #12151d 0%, #1c2130 50%, #161116 100%);
  border: 1.5px solid rgba(226, 232, 240, 0.44);
  box-shadow: 0 18px 46px rgba(10, 14, 24, 0.48);
}
.dsx-card--platinum .dsx-card__glow {
  background: radial-gradient(circle at 85% 15%, rgba(226, 232, 240, 0.22), transparent 48%), radial-gradient(circle at 15% 88%, rgba(212, 175, 55, 0.2), transparent 48%);
}
.dsx-card--platinum .dsx-card__icon { background: linear-gradient(135deg, #e2e8f0, #f3d995); color: #11131a; }
.dsx-card--platinum .dsx-card__badge { background: rgba(226, 232, 240, 0.18); border: 1px solid rgba(243, 217, 149, 0.45); color: #f8fafc; }
.dsx-card--platinum .dsx-card__zone { color: #f8fafc; }

html[data-theme="light"] .dsx-card--platinum {
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 58%, #fef9e7 100%);
  border-color: rgba(100, 116, 139, 0.42);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}
html[data-theme="light"] .dsx-card--platinum .dsx-card__zone { color: #0f172a; }
html[data-theme="light"] .dsx-card--platinum .dsx-card__badge { background: #e2e8f0; color: #0f172a; }

/* 3. GOLD / CRIMSON (ordereg.shop — Dynamic Commercial Domain) */
.dsx-card--gold {
  background: linear-gradient(160deg, #161108 0%, #1d150a 52%, #1a0910 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.52);
  box-shadow: 0 18px 46px rgba(24, 16, 4, 0.5);
}
.dsx-card--gold .dsx-card__glow {
  background: radial-gradient(circle at 84% 14%, rgba(212, 175, 55, 0.24), transparent 48%), radial-gradient(circle at 12% 86%, rgba(190, 18, 60, 0.2), transparent 50%);
}
.dsx-card--gold .dsx-card__icon { background: linear-gradient(135deg, #d4af37, #be123c); color: #fff; }
.dsx-card--gold .dsx-card__badge { background: rgba(212, 175, 55, 0.2); border: 1px solid rgba(243, 217, 149, 0.5); color: #fde68a; }
.dsx-card--gold .dsx-card__zone { color: #f3d995; }

html[data-theme="light"] .dsx-card--gold {
  background: linear-gradient(160deg, #fffdf5 0%, #fef6de 55%, #fff1f2 100%);
  border-color: rgba(180, 120, 20, 0.52);
  box-shadow: 0 14px 36px rgba(154, 107, 47, 0.14);
}
html[data-theme="light"] .dsx-card--gold .dsx-card__zone { color: #78350f; }
html[data-theme="light"] .dsx-card--gold .dsx-card__badge { background: #fef3c7; color: #78350f; }

/* 4. SAPPHIRE / DEFAULT (techtitan.com.eg & future domains) */
.dsx-card--sapphire {
  background: linear-gradient(160deg, #0b1530 0%, #101f44 52%, #0a1020 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.36);
  box-shadow: 0 18px 46px rgba(8, 20, 56, 0.44);
}
.dsx-card--sapphire .dsx-card__glow {
  background: radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.22), transparent 48%);
}
.dsx-card--sapphire .dsx-card__icon { background: linear-gradient(135deg, #2563eb, #38bdf8); color: #fff; }
.dsx-card--sapphire .dsx-card__badge { background: rgba(56, 189, 248, 0.18); border: 1px solid rgba(125, 211, 252, 0.42); color: #bae6fd; }
.dsx-card--sapphire .dsx-card__zone { color: #e0f2fe; }

html[data-theme="light"] .dsx-card--sapphire {
  background: linear-gradient(160deg, #ffffff 0%, #eff6ff 60%, #e0f2fe 100%);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: 0 14px 36px rgba(30, 58, 138, 0.1);
}
html[data-theme="light"] .dsx-card--sapphire .dsx-card__zone { color: #1e3a8a; }
html[data-theme="light"] .dsx-card--sapphire .dsx-card__badge { background: #dbeafe; color: #1e40af; }

/* 5. EMERALD (future service domains) */
.dsx-card--emerald {
  background: linear-gradient(160deg, #071b16 0%, #0b2921 52%, #071412 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.4);
}
.dsx-card--emerald .dsx-card__icon { background: linear-gradient(135deg, #059669, #14b8a6); color: #fff; }
.dsx-card--emerald .dsx-card__badge { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.dsx-card--emerald .dsx-card__zone { color: #d1fae5; }

html[data-theme="light"] .dsx-card--emerald {
  background: linear-gradient(160deg, #ffffff 0%, #ecfdf5 60%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.36);
}
html[data-theme="light"] .dsx-card--emerald .dsx-card__zone { color: #065f46; }
html[data-theme="light"] .dsx-card--emerald .dsx-card__badge { background: #d1fae5; color: #065f46; }

@media (prefers-reduced-motion: reduce) {
  .dsx-card, .dsx-tab, .dsx-btn, .dsx-check-all-btn {
    transition: none !important;
    transform: none !important;
  }
}
