:root {
  --bg: #061812;
  --surface: #0d1a30;
  --surface-2: #103327;
  --border: rgba(214, 174, 96, 0.28);
  --gold: #eab34c;
  --gold-soft: rgba(234, 179, 76, 0.14);
  --text: #f3f7f4;
  --muted: #b8ccc3;
  --wa: #1fba58;
  --wa-hover: #179f49;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top center, #0e3326 0%, var(--bg) 62%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.dg-header {
  border-bottom: 1px solid var(--border);
  background: rgba(6, 24, 18, 0.92);
}

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

.dg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dg-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eab34c, #b5882a);
  color: #061812;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dg-brand-text {
  display: flex;
  flex-direction: column;
}

.dg-brand-text strong {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 14px;
  color: var(--text);
}

.dg-brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.dg-ksa-pill {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
}

.dg-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 36px;
}

.dg-notice-bar {
  display: inline-block;
  background: rgba(234, 179, 76, 0.16);
  border: 1px solid rgba(234, 179, 76, 0.55);
  color: #f6d57c;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.dg-hero h1 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: clamp(22px, 4.8vw, 32px);
  line-height: 1.38;
  margin: 0 0 10px;
  color: #ffffff;
}

.dg-subtitle {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
}

.dg-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

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

.dg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.dg-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.dg-lock {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
  color: #e8efe9;
}

.dg-stock-card h2 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 15px;
  margin: 0 0 6px;
  color: #fff;
}

.dg-stock-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dg-gate-card {
  background: linear-gradient(180deg, #0d2e23 0%, #092119 100%);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.dg-gate-head {
  margin-bottom: 16px;
}

.dg-step-badge {
  display: inline-block;
  background: var(--gold);
  color: #061812;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.dg-gate-head h2 {
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 20px;
  margin: 0 0 6px;
  color: #fff;
}

.dg-gate-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.dg-question-block {
  margin-bottom: 16px;
}

.dg-q-label {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 9px;
  color: #f6d57c;
}

.dg-options-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.dg-options-4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .dg-options-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dg-opt-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
  text-align: center;
}

.dg-opt-btn:hover {
  border-color: var(--gold);
  background: rgba(234, 179, 76, 0.14);
}

.dg-opt-btn.is-selected {
  border-color: #35d073;
  background: rgba(31, 186, 88, 0.22);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(53, 208, 115, 0.35);
}

.dg-cta-zone {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.dg-gate-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #f6d57c;
  font-weight: 700;
}

.dg-gate-hint.is-ready {
  color: #6bf09b;
}

.dg-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 15px 20px;
  border-radius: 14px;
  font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: var(--wa);
  color: #ffffff;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.dg-wa-btn:hover {
  background: var(--wa-hover);
}

.dg-wa-btn.is-locked {
  background: #2b443b;
  color: #9db3a9;
  cursor: not-allowed;
}

.dg-trust-line {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.dg-footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #91aaa0;
  font-size: 12px;
  text-align: center;
}

.dg-footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.dg-footer-links a {
  color: var(--gold);
  text-decoration: none;
}
