/* اضواء البراق - Design System */
:root {
  --bg-deep: #0a0807;
  --bg-panel: #14100c;
  --bg-elevated: #1c1813;
  --bg-overlay: rgba(20, 16, 12, 0.85);
  --line: rgba(212, 175, 55, 0.14);
  --line-strong: rgba(212, 175, 55, 0.28);

  --gold: #d4af37;
  --gold-bright: #f5d77a;
  --gold-deep: #8b6914;
  --gold-soft: rgba(212, 175, 55, 0.08);
  --gold-text: #e8c969;

  --ink: #f5ecd6;
  --ink-mute: #c9b88c;
  --ink-dim: #8a7d5e;
  --ink-faint: #574e3c;

  --up: #6fcf97;
  --down: #eb5757;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 0 1px rgba(212, 175, 55, 0.2), 0 12px 40px rgba(212, 175, 55, 0.08);

  --display: "Reem Kufi", "Tajawal", serif;
  --body: "Tajawal", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

[data-theme="light"] {
  --bg-deep: #faf6ec;
  --bg-panel: #ffffff;
  --bg-elevated: #fdf9ee;
  --bg-overlay: rgba(255, 255, 255, 0.92);
  --line: rgba(139, 105, 20, 0.16);
  --line-strong: rgba(139, 105, 20, 0.32);
  --gold-soft: rgba(139, 105, 20, 0.07);
  --ink: #2a200f;
  --ink-mute: #6b5a36;
  --ink-dim: #9a8856;
  --ink-faint: #c8b88a;
  --shadow-soft: 0 1px 2px rgba(120, 90, 20, 0.08), 0 8px 24px rgba(120, 90, 20, 0.08);
  --shadow-glow: 0 0 0 1px rgba(139, 105, 20, 0.18), 0 12px 40px rgba(212, 175, 55, 0.15);
}

[data-gold="rose"] {
  --gold: #d99584;
  --gold-bright: #f3c4b0;
  --gold-deep: #9c5a48;
  --gold-text: #e8b09c;
}
[data-gold="white"] {
  --gold: #c9c4b3;
  --gold-bright: #ece8d8;
  --gold-deep: #847e6c;
  --gold-text: #d8d3c0;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* Typography */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-text);
  text-transform: uppercase;
  font-weight: 500;
}

/* Layout */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; width: 100%; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* Top bar */
.topbar {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; gap: 16px; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-link { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 4px; }
.topbar-link:hover { color: var(--gold-text); }
.topbar-link svg { width: 13px; height: 13px; }

/* Header */
.header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-direction: column; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { text-align: center; }
.brand-name { font-family: var(--display); font-size: 20px; color: var(--gold-text); line-height: 1; font-weight: 500; }
.brand-sub { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-dim); margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }

.header-left { display: flex; gap: 8px; justify-content: flex-start; align-items: center; }
.header-right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  position: relative;
}
.icon-btn:hover { border-color: var(--line-strong); color: var(--gold-text); }
.icon-btn .badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--gold);
  color: #1c1407;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.18s;
}
.action-btn:hover { border-color: var(--line-strong); color: var(--gold-text); }
.action-btn svg { width: 14px; height: 14px; }

/* Nav */
.nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
}
.nav-inner { display: flex; gap: 4px; justify-content: center; padding: 4px 0; flex-wrap: wrap; }
.nav-item {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ink-mute);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.18s;
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.nav-item:hover { color: var(--gold-text); }
.nav-item.active { color: var(--gold-text); border-bottom-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; }
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1c1407;
  border-color: var(--gold);
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 20px rgba(212, 175, 55, 0.18);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-outline {
  background: transparent;
  color: var(--gold-text);
  border-color: var(--gold);
}
.btn-outline:hover { background: var(--gold-soft); }

/* Hero */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.12), transparent 50%),
    linear-gradient(135deg, #0a0807 0%, #1a1409 100%);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.22), transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(212, 175, 55, 0.15), transparent 50%),
    linear-gradient(135deg, #faf6ec 0%, #f3ead2 100%);
}
.hero-grain {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(212,175,55,0.025) 0 1px, transparent 1px 6px);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0;
  width: 100%;
}
.hero-text { max-width: 540px; }
.hero-eyebrow {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
.hero-eyebrow .line { width: 30px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--display);
  font-size: 72px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--gold-text); }
.hero p.lead {
  font-size: 18px;
  color: var(--ink-mute);
  margin: 0 0 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; height: 480px; }
/* Animated bullion card with shining gold border */
.bullion-glow {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
}
.bullion-glow::before {
  content: none;
}
.bullion-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-xl);
  box-shadow: 0 0 30px rgba(218,165,32,0.4), inset 0 0 20px rgba(218,165,32,0.15);
  pointer-events: none;
  z-index: 2;
  animation: bullionPulse 3s ease-in-out infinite;
}
@keyframes bullionRotate {
  to { transform: rotate(360deg); }
}
@keyframes bullionPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(218,165,32,0.4), inset 0 0 20px rgba(218,165,32,0.15); }
  50% { box-shadow: 0 0 60px rgba(218,165,32,0.7), inset 0 0 30px rgba(218,165,32,0.25); }
}
.bullion-art-animated {
  animation: bullionFloat 6s ease-in-out infinite;
  transition: transform 0.4s ease-out;
}
.bullion-art-animated::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,230,150,0.4) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: bullionShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bullionFloat {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-8px); }
}
@keyframes bullionShimmer {
  0%, 100% { background-position: 200% 0%; }
  50% { background-position: -50% 100%; }
}
.bullion-glow:hover .bullion-art-animated {
  transform: scale(1.06);
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  color: var(--gold-text);
  font-size: 12px;
  letter-spacing: 0.1em;
  /* Blend with hero background — radial vignette + multiply mode */
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 60% 50%, #000 35%, rgba(0,0,0,0.85) 55%, rgba(0,0,0,0.35) 75%, transparent 95%);
          mask-image: radial-gradient(ellipse 75% 80% at 60% 50%, #000 35%, rgba(0,0,0,0.85) 55%, rgba(0,0,0,0.35) 75%, transparent 95%);
  filter: contrast(1.05) saturate(1.08);
}
.hero-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 60% 50%, transparent 0%, transparent 40%, rgba(10, 8, 7, 0.4) 70%, rgba(10, 8, 7, 0.85) 100%);
  pointer-events: none;
}

/* Section */
section.block { padding: 80px 0; }
section.block.tight { padding: 56px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 20px; flex-wrap: wrap; }
.section-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--ink-mute); margin: 8px 0 0; font-size: 14px; }

/* Cards */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.2s;
}
.card:hover { border-color: var(--line-strong); }

/* Price table */
.price-panel {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.price-panel-head {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.price-panel-title { font-family: var(--display); font-size: 22px; color: var(--gold-text); margin: 0; }
.price-panel-meta { font-size: 12px; color: var(--ink-dim); display: flex; gap: 14px; align-items: center; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 4px rgba(111, 207, 151, 0.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(111, 207, 151, 0); } }

.currency-toggle { display: inline-flex; padding: 4px; background: rgba(0,0,0,0.25); border: 1px solid var(--line); border-radius: var(--r-md); }
[data-theme="light"] .currency-toggle { background: rgba(139, 105, 20, 0.05); }
.currency-toggle button {
  background: transparent;
  border: none;
  color: var(--ink-mute);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  transition: all 0.18s;
}
.currency-toggle button.active {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1c1407;
  font-weight: 600;
}

.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
  text-align: right;
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-dim);
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.05em;
}
[data-theme="light"] .price-table thead th { background: rgba(139, 105, 20, 0.04); }
.price-table tbody td {
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--gold-soft); }
.karat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--gold-text);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--mono);
  background: var(--gold-soft);
}
.price-cell { font-family: var(--mono); font-size: 16px; color: var(--ink); }
.delta { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); font-size: 13px; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }

/* Cards (categories) */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.25s;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.cat-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0 10px, transparent 10px 22px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(28, 20, 7, 0.7));
}
.cat-card .label-bar {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.cat-card .label-bar .name { font-family: var(--display); font-size: 18px; }
.cat-card .label-bar .arr { color: var(--gold-text); }
.cat-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--gold-text);
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
}

/* Feature row */
.feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
  overflow: hidden;
}
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr 1fr; } }
.feature-cell {
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 1px solid var(--line);
}
.feature-cell:last-child { border-left: none; }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-text);
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-weight: 600; }
.feature-text p { margin: 0; font-size: 12px; color: var(--ink-mute); line-height: 1.55; }

/* Footer */
.footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
  padding: 56px 0 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 40px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--display); font-size: 16px; color: var(--gold-text); margin: 0 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul li { font-size: 13px; color: var(--ink-mute); }
.footer ul li:hover { color: var(--gold-text); cursor: pointer; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 13px; color: var(--ink-mute); }
.footer-contact-row { display: flex; gap: 10px; align-items: center; }
.footer-contact-row svg { width: 16px; height: 16px; color: var(--ink-mute); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
  color: var(--ink-dim);
  text-align: center;
}
.socials { display: flex; gap: 8px; margin-top: 16px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute);
  transition: all 0.18s;
}
.social-link:hover { color: var(--gold-text); border-color: var(--gold); }
.social-link svg { width: 14px; height: 14px; }

/* Sidebar bullion card */
.bullion-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .bullion-grid { grid-template-columns: 1fr; } }
.bullion-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 320px;
}
.bullion-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.3), transparent 50%),
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.06) 0 8px, transparent 8px 18px),
    linear-gradient(160deg, #1a1409 0%, #0a0807 100%);
}
[data-theme="light"] .bullion-art {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.45), transparent 50%),
    repeating-linear-gradient(45deg, rgba(139, 105, 20, 0.06) 0 8px, transparent 8px 18px),
    linear-gradient(160deg, #f3ead2 0%, #faf6ec 100%);
}
.bullion-content {
  position: relative;
  padding: 24px;
  z-index: 1;
}
.bullion-content h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; color: var(--ink); }
.bullion-content p { margin: 0 0 16px; font-size: 13px; color: var(--ink-mute); }

/* Page surfaces */
.page-head {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-panel);
}
.page-head h1 { font-family: var(--display); font-size: 44px; margin: 0; letter-spacing: -0.01em; }
.page-head .crumbs { font-size: 12px; color: var(--ink-dim); margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.page-head .crumbs span:not(:last-child)::after { content: "›"; padding-right: 8px; color: var(--ink-faint); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.calc-card h3 { font-family: var(--display); font-size: 22px; margin: 0 0 6px; color: var(--gold-text); }
.calc-card .desc { color: var(--ink-mute); font-size: 13px; margin: 0 0 24px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; color: var(--ink-mute); margin-bottom: 8px; letter-spacing: 0.04em; }
.field-control {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elevated);
  align-items: stretch;
}
.field-control input, .field-control select {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 16px;
  font-family: var(--mono);
  outline: none;
  width: 100%;
}
.field-control .suffix {
  padding: 0 16px;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--line);
  background: rgba(0,0,0,0.2);
  color: var(--ink-mute);
  font-size: 13px;
}
[data-theme="light"] .field-control .suffix { background: rgba(139, 105, 20, 0.05); }

.karat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.karat-opt {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-mute);
  padding: 14px 6px;
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
  transition: all 0.18s;
}
.karat-opt.active { border-color: var(--gold); color: var(--gold-text); background: var(--gold-soft); }

.calc-result {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-elevated));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.calc-result .label { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.05em; }
.calc-result .value {
  font-family: var(--mono);
  font-size: 56px;
  font-weight: 500;
  color: var(--gold-text);
  line-height: 1;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.calc-result .currency-tag { font-family: var(--mono); font-size: 14px; color: var(--ink-mute); }
.calc-breakdown { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.calc-breakdown-row { display: flex; justify-content: space-between; font-size: 13px; }
.calc-breakdown-row .lbl { color: var(--ink-mute); }
.calc-breakdown-row .val { font-family: var(--mono); color: var(--ink); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.product-img {
  aspect-ratio: 1;
  position: relative;
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0 8px, transparent 8px 18px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.18), rgba(28, 20, 7, 0.6));
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img .placeholder-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-text);
  letter-spacing: 0.15em;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--line);
}
.product-info { padding: 16px 18px; }
.product-info .nm { font-family: var(--display); font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.product-info .meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 12px; }
.product-info .price { font-family: var(--mono); font-size: 18px; color: var(--gold-text); display: flex; justify-content: space-between; align-items: center; }
.product-info .price .qty { font-size: 11px; color: var(--ink-dim); }

/* Filters */
.filter-bar {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.filter-group { display: flex; gap: 6px; align-items: center; }
.chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-mute);
  background: transparent;
  transition: all 0.18s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.active { background: var(--gold-soft); color: var(--gold-text); border-color: var(--gold); }
.filter-divider { width: 1px; height: 22px; background: var(--line); }
.sort-select {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  padding: 6px 12px;
  border-radius: var(--r-md);
  font-size: 12px;
}

/* Product detail */
.pdp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
@media (max-width: 900px) { .pdp-grid { grid-template-columns: 1fr; } }
.pdp-main-img {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0 10px, transparent 10px 22px),
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.22), rgba(28, 20, 7, 0.5));
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.pdp-thumb {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.06) 0 6px, transparent 6px 14px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.14), rgba(28, 20, 7, 0.5));
  cursor: pointer;
  transition: border-color 0.18s;
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--gold); }
.pdp-info h1 { font-family: var(--display); font-size: 38px; margin: 0 0 8px; }
.pdp-info .pdp-meta { font-size: 13px; color: var(--ink-mute); margin-bottom: 18px; }
.pdp-price { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.pdp-price .big { font-family: var(--mono); font-size: 38px; color: var(--gold-text); font-weight: 500; }
.pdp-price .vat { font-size: 12px; color: var(--ink-dim); }
.pdp-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.pdp-spec-item { padding: 12px 16px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--r-md); }
.pdp-spec-item .lbl { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.05em; }
.pdp-spec-item .val { font-family: var(--mono); font-size: 15px; color: var(--ink); margin-top: 2px; }

.qty-bar {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elevated);
}
.qty-bar button {
  background: transparent; border: none; color: var(--ink-mute);
  width: 40px; height: 44px; font-size: 18px;
}
.qty-bar button:hover { color: var(--gold-text); }
.qty-bar .num { width: 50px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 16px; color: var(--ink); }

.pdp-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.pdp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pdp-feature { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); align-items: center; }
.pdp-feature svg { width: 18px; height: 18px; color: var(--gold-text); flex-shrink: 0; }
.pdp-feature span { font-size: 13px; color: var(--ink-mute); }

/* Cart */
.cart-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 18px;
  padding: 18px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  align-items: center;
}
.cart-item-img {
  width: 90px; height: 90px;
  border-radius: var(--r-sm);
  background:
    repeating-linear-gradient(45deg, rgba(212, 175, 55, 0.08) 0 6px, transparent 6px 14px),
    linear-gradient(160deg, rgba(212, 175, 55, 0.16), rgba(28, 20, 7, 0.5));
}
.cart-item .nm { font-family: var(--display); font-size: 16px; margin: 0 0 4px; }
.cart-item .meta { font-size: 12px; color: var(--ink-dim); margin-bottom: 8px; }
.cart-item .controls { display: flex; gap: 10px; align-items: center; }
.cart-item .price { font-family: var(--mono); font-size: 18px; color: var(--gold-text); white-space: nowrap; }
.cart-item .remove { background: transparent; border: none; color: var(--ink-dim); font-size: 12px; }
.cart-item .remove:hover { color: var(--down); }

.summary {
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.summary h3 { font-family: var(--display); font-size: 22px; margin: 0 0 18px; color: var(--gold-text); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 13px; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-family: var(--mono); }
.summary-row.total .v { font-size: 22px; color: var(--gold-text); }

/* Auth */
.auth-wrap { max-width: 460px; margin: 56px auto; padding: 36px; background: var(--bg-panel); border: 1px solid var(--line-strong); border-radius: var(--r-lg); }
.auth-wrap h2 { font-family: var(--display); font-size: 32px; margin: 0 0 6px; }
.auth-wrap .sub { color: var(--ink-mute); font-size: 13px; margin: 0 0 28px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 28px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.auth-tabs button {
  background: transparent; border: none; color: var(--ink-mute);
  padding: 12px; font-size: 14px;
}
.auth-tabs button.active { background: var(--gold-soft); color: var(--gold-text); }

/* About / Contact */
.about-hero { padding: 100px 0; text-align: center; background: var(--bg-panel); border-bottom: 1px solid var(--line); }
.about-hero h1 { font-family: var(--display); font-size: 56px; margin: 0 0 16px; }
.about-hero p { max-width: 640px; margin: 0 auto; color: var(--ink-mute); font-size: 17px; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-panel); margin: 56px 0; }
@media (max-width: 800px) { .about-stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 28px; text-align: center; border-left: 1px solid var(--line); }
.stat:last-child { border-left: none; }
.stat .num { font-family: var(--display); font-size: 44px; color: var(--gold-text); }
.stat .lbl { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value { padding: 28px; background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--r-lg); }
.value .v-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-text); margin-bottom: 16px;
}
.value h3 { font-family: var(--display); font-size: 20px; margin: 0 0 8px; }
.value p { color: var(--ink-mute); margin: 0; font-size: 14px; line-height: 1.7; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; background: var(--bg-panel);
  border: 1px solid var(--line); border-radius: var(--r-md);
}
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-soft); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-text); flex-shrink: 0;
}
.contact-row .lbl { font-size: 12px; color: var(--ink-dim); margin-bottom: 4px; }
.contact-row .val { font-family: var(--mono); font-size: 15px; color: var(--ink); }

/* Animation: number flip */
@keyframes priceFlash {
  0% { background: var(--gold-soft); }
  100% { background: transparent; }
}
.price-flash { animation: priceFlash 0.8s ease-out; }

/* Utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: 16px; }
.gap-2 { gap: 8px; }
.text-mute { color: var(--ink-mute); }
.text-gold { color: var(--gold-text); }
.fs-sm { font-size: 13px; }
.fs-xs { font-size: 12px; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.bordered { border: 1px solid var(--line); border-radius: var(--r-md); }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ============================================
   PREMIUM SECTIONS (Stats, Heritage, Services)
   ============================================ */

/* Stats Band */
.stats-band {
  padding: 36px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px;
  position: relative;
}
.stat-cell:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  color: var(--gold-text);
  margin-bottom: 12px;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
}

/* Heritage Section */
.heritage-section {
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-panel));
}
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.heritage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.heritage-item-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  color: var(--gold-text);
}
.heritage-item-icon svg { width: 16px; height: 16px; }
.heritage-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}
.heritage-item-sub {
  font-size: 12px;
  color: var(--ink-mute);
}
.heritage-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px rgba(212,175,55,0.2);
}
.heritage-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,8,7,0.6) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
}
.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(10,8,7,0.85);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--gold-text);
  font-size: 13px;
  font-family: var(--display);
  backdrop-filter: blur(8px);
}
.heritage-badge svg { width: 14px; height: 14px; }

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  padding: 28px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 32px rgba(212,175,55,0.08);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  color: var(--gold-text);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h4 {
  font-family: var(--display);
  font-size: 17px;
  color: var(--gold-text);
  margin: 0 0 8px;
}
.service-card p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.7;
  margin: 0;
}

/* Visit Section */
.visit-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 100%);
  border-top: 1px solid var(--line);
}
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: stretch;
}
.visit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all 0.2s;
}
.visit-item:hover {
  border-color: var(--line-strong);
  background: var(--bg-panel);
}
.visit-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--line-strong);
  color: var(--gold-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.visit-item-icon svg { width: 16px; height: 16px; }
.visit-item-title {
  font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.visit-item-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.visit-map {
  min-height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 60px rgba(212,175,55,0.12);
}
@media (max-width: 900px) {
  .visit-grid { grid-template-columns: 1fr; gap: 28px; }
  .visit-map { min-height: 320px; order: -1; }
}

/* Heritage / Services responsive */
@media (max-width: 900px) {
  .heritage-grid { grid-template-columns: 1fr; gap: 32px; }
  .heritage-image { max-width: 420px; margin: 0 auto; aspect-ratio: 1/1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-cell:nth-child(2)::after { display: none; }
}
@media (max-width: 500px) {
  .services-grid { grid-template-columns: 1fr; }
  .stat-cell:not(:last-child)::after { display: none; }
  .stat-num { font-size: 26px; }
  .stat-icon { width: 40px; height: 40px; }
}

/* ============================================
   MOBILE RESPONSIVE STYLES (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* الحاوية تستخدم padding أصغر */
  .container { padding-left: 16px; padding-right: 16px; }

  /* TopBar — إخفاء الروابط النصية وإبقاء الأيقونات فقط */
  .topbar-inner { padding: 8px 0; gap: 8px; }
  .topbar-links { gap: 8px; }
  .topbar-link span:not(.icon) { display: none; }
  .topbar-link { padding: 4px 6px; }

  /* Header — تصغير وتنسيق الشعار */
  .header-inner { padding: 12px 0; gap: 8px; flex-wrap: wrap; }
  .brand-name { font-size: 15px; line-height: 1.2; }
  .brand-sub { font-size: 10px; }
  .header-left, .header-right { gap: 4px; }
  /* إخفاء زر "تواصل معنا" النصي من الهيدر (موجود بدلاً منه نسخة الأيقونة) */
  .header-left .action-btn { display: none; }
  .icon-btn { width: 36px; height: 36px; }

  /* Navigation — قائمة قابلة للتمرير أفقيًا */
  .nav-inner, nav .nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar, nav .nav::-webkit-scrollbar { display: none; }
  .nav-item { padding: 12px 14px; font-size: 13px; white-space: nowrap; }

  /* Hero — تصغير العنوان وإعادة ترتيب */
  .hero { padding: 30px 0 50px; }
  .hero h1 { font-size: 36px !important; line-height: 1.15; }
  .hero-eyebrow .eyebrow { font-size: 11px; }
  .hero .lead { font-size: 15px !important; }
  .hero-cta { padding: 12px 22px; font-size: 14px; }
  /* فك التراصف على الجوال — يستهدف الـ container نفسه */
  .hero .container[style] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* ترتيب: الصورة فوق ثم النص */
  .hero .container[style] > div:first-child {
    order: 2;
    transform: none !important;
  }
  .hero .container[style] > div:nth-child(2) {
    order: 1;
    transform: none !important;
    animation: none !important;
  }
  /* صورة العقد — نسبة عرض-ارتفاع مربعة تقريبًا بدون فراغ */
  .hero .container[style] > div:nth-child(2) > div {
    max-width: 340px;
    margin: 0 auto;
  }
  .hero .container[style] > div:nth-child(2) > div > div {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center 35% !important;
    background-repeat: no-repeat !important;
  }

  /* Sections padding */
  .block { padding: 36px 0; }
  .block.tight { padding: 24px 0; }
  .section-title { font-size: 26px !important; }

  /* Price table — تصغير الفونت والمساحات */
  .price-table { font-size: 13px; }
  .price-table th, .price-table td { padding: 10px 6px; }
  .price-cell { font-size: 14px !important; }
  .karat-pill { padding: 2px 8px; font-size: 11px; }
  /* السماح بتمرير أفقي للجدول لو ضاق */
  .price-panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* لوحة التغيّر السعري — التبديلات تلتف للأسفل */
  .price-changes-panel { padding: 16px !important; }
  .price-changes-panel h3 { font-size: 16px !important; }
  .period-toggle button, .karat-toggle button { padding: 8px 12px !important; font-size: 12px !important; min-width: 60px !important; }

  /* Currency toggle */
  .currency-toggle { flex-wrap: wrap; }
  .currency-toggle button { padding: 8px 14px; font-size: 12px; }

  /* Calc grid */
  .calc-card, .calc-result { padding: 18px; }
  .calc-result .value { font-size: 28px !important; }
  .karat-grid { gap: 6px; }
  .karat-opt { padding: 10px 0; font-size: 14px; }

  /* PriceTable — currency toggle wraps */
  .price-panel-head { flex-direction: column; align-items: stretch; gap: 14px; }

  /* Page heads */
  .page-head { padding: 30px 0; }
  .page-head h1 { font-size: 28px !important; }

  /* Contact form */
  .contact-row { padding: 14px; }
  .contact-row .val { font-size: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer { padding: 36px 0 24px; }

  /* Tweaks panel — إخفاء على الجوال */
  .tweaks-panel-container { display: none !important; }
}

/* شاشات صغيرة جدًا (≤ 380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: 30px !important; }
  .section-title { font-size: 22px !important; }
  .brand-sub { display: none; }
  .price-table th, .price-table td { padding: 8px 4px; font-size: 12px; }
}
