:root {
  color-scheme: dark;
  --bg: #071b16;
  --panel: rgba(13, 46, 37, 0.78);
  --panel-strong: #103b30;
  --line: rgba(195, 165, 92, 0.22);
  --gold: #d8bd72;
  --gold-soft: #f0dea8;
  --green: #49c89a;
  --text: #f8f3e7;
  --muted: #9eb9af;
  --danger: #e47d73;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% -5%, #155544 0, transparent 35%),
    linear-gradient(160deg, #061712 0%, #09231c 48%, #051511 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d8bd72' stroke-opacity='.18'%3E%3Cpath d='M36 2l9 17 19 9-19 9-9 17-9-17-19-9 19-9z'/%3E%3C/g%3E%3C/svg%3E");
}

button { font: inherit; }
.shell { position: relative; width: min(100%, 560px); margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 18px calc(106px + env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 13px; margin: 2px 2px 22px; }
.mark { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--line); border-radius: 17px; color: var(--gold-soft); font-family: Georgia, serif; font-size: 25px; background: rgba(216,189,114,.08); box-shadow: inset 0 0 28px rgba(216,189,114,.04); }
.eyebrow, .label { color: var(--gold); letter-spacing: .16em; font-size: 10px; font-weight: 800; }
h1 { margin: 2px 0 0; font-size: 23px; letter-spacing: .06em; }
h1 span { color: var(--gold); font-weight: 500; }
.hero { position: relative; min-height: 168px; padding: 25px 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 27px; background: linear-gradient(135deg, rgba(20,73,58,.92), rgba(8,36,29,.88)); box-shadow: 0 24px 60px rgba(0,0,0,.24); }
.hero-copy { position: relative; z-index: 2; }
.hero p { margin: 0 0 9px; color: var(--gold-soft); font-size: 13px; }
.hero h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(27px, 8vw, 39px); line-height: 1.06; letter-spacing: -.025em; }
.mosque { position: absolute; right: -3px; bottom: -4px; width: 155px; height: 150px; opacity: .34; }
.moon { position: absolute; right: 32px; top: 2px; color: var(--gold); font-size: 45px; transform: rotate(-18deg); }
.dome { position: absolute; right: 10px; bottom: 0; width: 114px; height: 74px; border-radius: 60px 60px 7px 7px; background: var(--gold); }
.dome::before { content: ""; position: absolute; left: 51px; top: -39px; width: 12px; height: 43px; border-radius: 8px; background: var(--gold); }
.dome::after { content: "◆"; position: absolute; left: 48px; top: -55px; color: var(--gold); font-size: 17px; }
.tower { position: absolute; right: 126px; bottom: 0; width: 17px; height: 108px; background: var(--gold); border-radius: 9px 9px 0 0; }
.tower::before { content: ""; position: absolute; left: -8px; top: 20px; width: 33px; height: 12px; border-radius: 50%; background: var(--gold); }
.card { margin-top: 15px; padding: 21px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); backdrop-filter: blur(16px); box-shadow: 0 18px 45px rgba(0,0,0,.17); }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h3 { margin: 7px 0 0; font-size: 23px; }
.pill { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; color: var(--green); background: rgba(73,200,154,.12); border: 1px solid rgba(73,200,154,.25); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.pill.loading { color: var(--gold); background: rgba(216,189,114,.1); border-color: var(--line); }
.pill.inactive { color: var(--danger); background: rgba(228,125,115,.1); border-color: rgba(228,125,115,.22); }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 23px 0 13px; }
.metrics > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.metric-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.metrics strong { font-size: 16px; }
.progress { height: 5px; margin-bottom: 22px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .5s ease; }
.primary, .secondary { width: 100%; min-height: 52px; border-radius: 16px; font-weight: 800; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.primary { border: 0; color: #09261e; background: linear-gradient(135deg, var(--gold-soft), var(--gold)); box-shadow: 0 12px 28px rgba(216,189,114,.14); }
.primary span { margin-right: 5px; font-size: 20px; }
.primary:disabled { cursor: default; opacity: .48; box-shadow: none; }
.secondary { margin-top: 9px; border: 1px solid var(--line); color: var(--gold-soft); background: transparent; }
.primary:active:not(:disabled), .secondary:active { transform: scale(.985); }
.notice { margin: 13px 3px 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.45; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.feature { display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 15px; border: 1px solid rgba(255,255,255,.07); border-radius: 20px; background: rgba(7,31,25,.66); }
.feature > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 12px; color: var(--gold); background: rgba(216,189,114,.09); }
.feature strong, .feature small { display: block; }
.feature strong { font-size: 13px; }
.feature small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.3; }
.mission { display: flex; gap: 15px; align-items: center; margin-top: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: rgba(216,189,114,.07); }
.mission-icon { display: grid; place-items: center; width: 47px; height: 47px; flex: 0 0 auto; border-radius: 16px; background: rgba(216,189,114,.12); font-size: 23px; }
.mission p { margin: 6px 0 0; color: #e4ddca; font-size: 12px; line-height: 1.5; }
footer { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 24px 0 3px; color: #6e9485; }
.link-button { padding: 0; border: 0; color: var(--muted); background: none; font-size: 11px; cursor: pointer; }
.glow { position: fixed; width: 280px; height: 280px; border-radius: 50%; filter: blur(95px); opacity: .16; pointer-events: none; }
.glow-one { top: -100px; right: -100px; background: var(--gold); }
.glow-two { bottom: 5%; left: -180px; background: var(--green); }
.tab-panel[hidden] { display: none !important; }
.section-heading { display: flex; align-items: center; gap: 13px; margin: 4px 2px 20px; }
.section-heading h2 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }
.section-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--line); border-radius: 17px; background: rgba(216,189,114,.08); font-size: 22px; }
.payment-panel, .support-panel { padding-top: 4px; }
.payment-card, .support-card { position: relative; margin-top: 0; }
.payment-options { position: relative; }
.payment-card h3, .support-card h3 { margin-top: 2px; }
.payment-card p, .support-card p { margin: 12px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.soon-badge { position: absolute; top: 18px; right: 18px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold); background: rgba(216,189,114,.08); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.payment-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.payment-methods span { display: grid; min-height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; color: #d9e7e1; background: rgba(255,255,255,.035); font-size: 10px; font-weight: 800; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 17px 0; }
.plans-loading { grid-column: 1 / -1; padding: 28px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.plans-loading.error { color: var(--danger); }
.plan-option { position: relative; display: flex; min-height: 126px; padding: 15px; overflow: hidden; align-items: flex-start; flex-direction: column; border: 1px solid rgba(255,255,255,.08); border-radius: 18px; color: var(--text); background: rgba(255,255,255,.025); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .15s ease; }
.plan-option:active { transform: scale(.98); }
.plan-option.selected { border-color: rgba(216,189,114,.75); background: linear-gradient(145deg, rgba(216,189,114,.14), rgba(73,200,154,.05)); box-shadow: inset 0 0 0 1px rgba(216,189,114,.12); }
.plan-term { margin-bottom: 7px; color: var(--muted); font-size: 11px; }
.plan-option strong { font-size: 21px; }
.plan-monthly { margin-top: 5px; color: var(--gold-soft); font-size: 10px; }
.plan-saving { margin-top: auto; padding-top: 9px; color: var(--green); font-size: 10px; font-weight: 800; }
.plan-recommended { position: absolute; top: 10px; right: -21px; width: 82px; padding: 4px 0; transform: rotate(40deg); color: #08241c; background: var(--gold); text-align: center; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.pay-plan { margin-top: 2px; }
.support-card small { display: block; margin-top: 13px; color: var(--muted); text-align: center; }
.bottom-nav { position: fixed; z-index: 20; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); left: 10px; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 540px; min-height: 70px; margin: 0 auto; padding: 7px; border: 1px solid rgba(216,189,114,.2); border-radius: 23px; background: rgba(5,24,19,.94); box-shadow: 0 18px 55px rgba(0,0,0,.46); backdrop-filter: blur(22px); }
.nav-item { display: flex; min-width: 0; align-items: center; justify-content: center; flex-direction: column; gap: 3px; border: 0; border-radius: 17px; color: #78988c; background: transparent; font-size: 9px; cursor: pointer; transition: color .18s ease, background .18s ease, transform .15s ease; }
.nav-item:active { transform: scale(.96); }
.nav-item.active { color: var(--gold-soft); background: rgba(216,189,114,.1); }
.nav-icon { font-size: 24px; line-height: 1; }

@media (max-width: 360px) {
  .shell { padding-left: 13px; padding-right: 13px; }
  .hero, .card { padding-left: 18px; padding-right: 18px; }
  .features { grid-template-columns: 1fr; }
}
