/* ============================================================
   منصـة أمجد ميديا — Static styles
   Light mode: white + gold
   Dark mode:  black + glowing gold
   ============================================================ */

:root {
  --gold: #d4af37;
  --gold-soft: #e6c75a;
  --gold-deep: #b08c1f;

  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f3f3f4;
  --text: #111114;
  --text-soft: #4a4a52;
  --muted: #6b6b75;
  --border: #e7e5df;
  --border-strong: #d8d3c4;
  --danger: #c0392b;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.05);
  --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.08);
  --gold-glow: 0 0 20px rgba(212, 175, 55, 0.35);
  --gold-glow-strong: 0 0 30px rgba(212, 175, 55, 0.55);
  --header-h: 64px;
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #131317;
  --surface-2: #1b1b21;
  --text: #f4f1e6;
  --text-soft: #c9c4b4;
  --muted: #8d8a80;
  --border: rgba(212, 175, 55, 0.18);
  --border-strong: rgba(212, 175, 55, 0.32);
  --danger: #ff6b5a;

  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.6);
  --gold-glow: 0 0 24px rgba(212, 175, 55, 0.45);
  --gold-glow-strong: 0 0 40px rgba(212, 175, 55, 0.65);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ───────────────────── Layout ───────────────────── */

#app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

#app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 175, 55, 0.08), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(212, 175, 55, 0.06), transparent 50%);
}

[data-theme="dark"] #app::before {
  background:
    radial-gradient(circle at 90% 0%, rgba(212, 175, 55, 0.14), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(212, 175, 55, 0.10), transparent 50%);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

footer {
  position: relative;
  z-index: 1;
  padding: 20px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ───────────────────── Header ───────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  font-weight: 900;
  font-size: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.icon-btn:hover {
  background: var(--surface-2);
  box-shadow: var(--gold-glow);
}

.icon-btn:active {
  transform: scale(0.95);
}

.theme-toggle {
  border-radius: 999px;
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s;
}

.theme-toggle:hover {
  box-shadow: var(--gold-glow);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* ───────────────────── Side menu ───────────────────── */

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

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

.sheet {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(320px, 86vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
}

.sheet.open {
  transform: translateX(0);
}

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

.sheet-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.sheet-nav a:hover {
  background: var(--surface);
  border-color: var(--border);
}

.sheet-nav a.active {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border-color: var(--border-strong);
  color: var(--gold);
}

.sheet-nav svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* ───────────────────── Buttons ───────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:hover {
  background: var(--surface-2);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1407;
  border: none;
  box-shadow: var(--gold-glow);
}

[data-theme="dark"] .btn-primary {
  color: #110e05;
  box-shadow: var(--gold-glow-strong);
}

.btn-primary:hover {
  box-shadow: var(--gold-glow-strong);
}

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

.btn-ghost {
  background: transparent;
  border: none;
}

.btn-lg {
  height: 54px;
  padding: 0 28px;
  font-size: 17px;
  border-radius: 16px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border: none;
}

.btn-wa:hover {
  background: #20bd5a;
}

.btn-ig {
  background: linear-gradient(90deg, #833ab4, #fd1d1d, #f56040);
  color: #fff;
  border: none;
}

/* ───────────────────── Cards & shared ───────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .card {
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 18px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.crumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s, background 0.15s;
}

.back-btn:hover {
  background: var(--surface-2);
}

.back-btn:active {
  transform: scale(0.93);
}

.fade-in {
  animation: fadeIn 0.25s ease both;
}

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

/* ───────────────────── Home page ───────────────────── */

.hero {
  text-align: center;
  padding: 40px 12px 28px;
}

.hero-crown {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  border: 2px solid var(--border-strong);
  color: var(--gold);
  box-shadow: var(--gold-glow);
}

.hero-crown svg {
  width: 48px;
  height: 48px;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 14px auto 26px;
  max-width: 540px;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.feature-card svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.feature-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ───────────────────── Platforms grid ───────────────────── */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 720px) {
  .platforms-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gold-glow);
  border-color: var(--border-strong);
}

.platform-card:active {
  transform: scale(0.98);
}

.platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.platform-icon svg {
  width: 32px;
  height: 32px;
}

.platform-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

/* Platform brand colors */
.bg-instagram { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.bg-facebook  { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.bg-tiktok    { background: linear-gradient(135deg, #2a2a2a, #000); }
.bg-whatsapp  { background: linear-gradient(135deg, #4ade80, #16a34a); }
.bg-telegram  { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.bg-snapchat  { background: linear-gradient(135deg, #facc15, #eab308); color: #111; }

/* ───────────────────── Categories grid ───────────────────── */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 2px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  padding: 12px;
  text-align: center;
}

.category-card:hover {
  transform: scale(1.04);
  border-color: color-mix(in srgb, var(--gold) 60%, transparent);
  box-shadow: var(--gold-glow);
}

.category-card:active {
  transform: scale(0.98);
}

.category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-icon svg {
  width: 28px;
  height: 28px;
}

.category-card h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.category-card.disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: color-mix(in srgb, var(--muted) 8%, transparent);
  border: 2px dashed var(--border);
  box-shadow: none;
}

.category-card.disabled:hover {
  transform: none;
  box-shadow: none;
}

.category-card.disabled .category-icon {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  color: var(--muted);
  position: relative;
}

.category-card.disabled .category-icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8a80' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='11' width='18' height='11' rx='2' ry='2'/><path d='M7 11V7a5 5 0 0 1 10 0v4'/></svg>");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.category-card.disabled h2 {
  color: var(--muted);
  font-size: 14px;
}

.category-card .unavailable-tag {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.category-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

/* Maintenance card */
.maintenance-card {
  margin: 24px auto 0;
  max-width: 460px;
  text-align: center;
  padding: 32px 22px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 2px solid var(--border-strong);
  box-shadow: var(--gold-glow);
}

.maintenance-card .icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  margin: 0 auto 14px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.maintenance-card .icon-wrap svg {
  width: 40px;
  height: 40px;
}

.maintenance-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 800;
}

.maintenance-card p {
  color: var(--text-soft);
  margin: 0 0 18px;
  line-height: 1.7;
}

/* ───────────────────── Service detail ───────────────────── */

.variant-tabs {
  display: flex;
  gap: 6px;
  background: color-mix(in srgb, var(--surface-2) 80%, transparent);
  padding: 5px;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.variant-tab {
  flex: 1;
  height: 46px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.variant-tab.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1407;
  box-shadow: var(--gold-glow);
}

.variant-tab svg {
  width: 16px;
  height: 16px;
}

.detail-grid {
  display: grid;
  gap: 16px;
}

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

.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 22%, transparent), color-mix(in srgb, var(--gold) 6%, transparent));
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
}

.vip-badge svg {
  width: 14px;
  height: 14px;
}

.detail-block {
  margin-bottom: 18px;
}

.detail-block:last-child { margin-bottom: 0; }

.detail-block h3 {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-block h3 svg {
  width: 18px;
  height: 18px;
}

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

.detail-block li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
}

.detail-block li svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-block p {
  margin: 0;
  color: var(--text-soft);
}

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

.pill {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

/* Order card */
.order-card .order-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.order-card .order-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 14px;
}

.qty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.qty-btn {
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  direction: ltr;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.qty-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1407;
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

.qty-btn:hover {
  background: var(--surface-2);
}

.qty-btn.active:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
}

.qty-btn.full {
  grid-column: 1 / -1;
}

.qty-input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  text-align: center;
  font-weight: 800;
  font-size: 17px;
  direction: ltr;
  margin-top: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.qty-input:focus {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}

.price-box {
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.price-box .price-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.price-box .price-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  direction: ltr;
}

.price-box .price-value .currency {
  font-size: 14px;
  margin-inline-start: 6px;
  font-weight: 700;
}

.warn {
  color: var(--danger);
  text-align: center;
  font-size: 13px;
  margin: 8px 0 0;
}

/* ───────────────────── Dialog ───────────────────── */

.dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 0;
}

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

.dialog-content {
  width: 100%;
  max-width: 480px;
  max-height: 92dvh;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 24px 24px 0 0;
  padding: 22px 18px 22px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.25s ease;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

@media (min-width: 600px) {
  .dialog {
    align-items: center;
  }
  .dialog-content {
    border-radius: 24px;
    margin: 16px;
    max-height: 88dvh;
  }
}

.dialog.open .dialog-content {
  transform: translateY(0);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dialog-header h2 {
  margin: 0;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: var(--gold-glow);
}

.summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  margin-bottom: 14px;
}

.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.summary .row .v {
  font-weight: 800;
  text-align: left;
}

.summary .row .v.gold {
  color: var(--gold);
}

.summary .row.divider {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-btn {
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  padding: 0 8px;
}

.payment-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1407;
  border-color: transparent;
  box-shadow: var(--gold-glow);
}

.payment-info {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.payment-info strong {
  color: var(--gold);
  font-size: 16px;
}

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

.btn-row .btn:first-child {
  flex: 1;
}

.btn-row .btn:last-child {
  flex: 2;
}

.steps-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.steps-list .step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #1a1407;
  font-weight: 800;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  font-family: "Cairo", monospace;
  white-space: pre-line;
  font-size: 13.5px;
  max-height: 180px;
  overflow-y: auto;
  line-height: 1.7;
  margin-bottom: 12px;
}

.success-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.4);
  border-radius: 14px;
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  animation: fadeIn 0.2s;
}

[data-theme="dark"] .success-toast {
  color: #4ade80;
}

/* ───────────────────── Onboarding tour ───────────────────── */

.onboard {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.onboard-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--gold-glow-strong);
}

.onboard-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.onboard-card .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onboard-card .icon-circle svg {
  width: 20px;
  height: 20px;
}

.onboard-card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.onboard-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.onboard-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
}

.onboard-progress span.done {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
}

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

.onboard-actions .btn {
  height: 42px;
  font-size: 14px;
}

.onboard-actions .skip {
  color: var(--muted);
  background: none;
  border: none;
  font-weight: 700;
  font-size: 13px;
  padding: 0 8px;
}

.onboard-spotlight {
  position: fixed;
  border-radius: 16px;
  pointer-events: none;
  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.7),
    0 0 0 3px var(--gold),
    0 0 30px var(--gold);
  z-index: 1;
  transition: all 0.3s ease;
}

.onboard-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onboard-close svg {
  width: 14px;
  height: 14px;
}

/* ───────────────────── Misc utility ───────────────────── */

.spacer-md { height: 16px; }
.spacer-lg { height: 32px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

ol, ul { padding-inline-start: 18px; }

/* For RTL: ensure inputs with dir=ltr stay left-aligned */
[dir="ltr"] {
  direction: ltr;
}

/* Lists in payment info etc. */
.payment-info p {
  margin: 0 0 4px;
}
.payment-info p:last-child { margin-bottom: 0; }
