:root {
  --bg: #07080b;
  --panel: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.1);
  --text: #f7f7f9;
  --muted: #b3b7c2;
  --gold1: #f7cf67;
  --gold2: #b8871b;
  --silver1: #d7dce5;
  --silver2: #8e97a6;
}
* { box-sizing: border-box; }
html,body { margin:0; min-height:100%; background: radial-gradient(circle at top, #14161c 0%, var(--bg) 45%, #020304 100%); color: var(--text); font-family: 'Tajawal', sans-serif; }
body { display:flex; justify-content:center; }
.app-shell { width: 100%; max-width: 430px; min-height: 100vh; padding: env(safe-area-inset-top) 16px calc(90px + env(safe-area-inset-bottom)) 16px; position:relative; }
.glass { background: var(--panel); border:1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 10px 35px rgba(0,0,0,.35); }
.topbar { margin-top: 12px; border-radius: 26px; padding: 18px; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.eyebrow { color: var(--gold1); font-size: 11px; letter-spacing: 2px; }
.topbar h1 { margin: 6px 0 2px; font-size: 30px; }
.topbar p { margin: 0; color: var(--muted); font-size: 14px; }
.install-btn,.refresh-btn,.tab { border: 0; cursor: pointer; font-family: inherit; }
.install-btn,.refresh-btn { border-radius: 14px; padding: 11px 16px; font-weight: 800; background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #16130a; }
.screen { display:grid; gap:14px; margin-top:14px; }
.hero { position:relative; overflow:hidden; min-height: 150px; border-radius: 30px; padding: 20px; }
.hero-copy { position:relative; z-index:1; }
.badge { display:inline-flex; border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.08); color: #fff2c0; font-size: 12px; margin-bottom: 12px; }
.hero h2 { margin: 0 0 8px; font-size: 28px; }
.hero p { margin: 0; color: var(--muted); }
.hero-glow { position:absolute; inset:auto; width:180px; height:180px; border-radius:50%; filter: blur(18px); opacity:.25; animation: float 8s ease-in-out infinite; }
.hero-glow.gold { top:-30px; left:-20px; background: radial-gradient(circle, var(--gold1), transparent 65%); }
.hero-glow.silver { bottom:-50px; right:-30px; background: radial-gradient(circle, var(--silver1), transparent 65%); animation-delay: -3s; }
@keyframes float { 0%,100%{ transform: translateY(0) translateX(0);} 50% { transform: translateY(10px) translateX(8px);} }
.tabs { display:flex; padding: 6px; gap:8px; border-radius: 20px; }
.tab { flex:1; background: transparent; color: var(--muted); border-radius: 16px; padding: 14px 10px; font-weight: 800; }
.tab.active { background: rgba(255,255,255,.09); color: white; }
.panel { display:none; }
.panel.active { display:block; }
.price-card { border-radius: 30px; padding: 18px; position:relative; overflow:hidden; }
.price-card::before { content:''; position:absolute; inset:0; opacity:.18; pointer-events:none; }
.gold-card::before { background: linear-gradient(145deg, rgba(247,207,103,.32), transparent 35%, rgba(184,135,27,.18) 70%, transparent); }
.silver-card::before { background: linear-gradient(145deg, rgba(215,220,229,.28), transparent 35%, rgba(142,151,166,.18) 70%, transparent); }
.card-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom: 18px; }
.card-head h3 { margin:8px 0 0; font-size: 24px; }
.chip { display:inline-flex; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip.gold { background: rgba(247,207,103,.16); color: #ffe49b; }
.chip.silver { background: rgba(215,220,229,.14); color: #eef2f9; }
.pulse { width: 12px; height: 12px; border-radius:50%; background:#54f07b; box-shadow: 0 0 0 0 rgba(84,240,123,.7); animation: pulse 1.8s infinite; margin-top: 6px; }
@keyframes pulse { 0%{ box-shadow:0 0 0 0 rgba(84,240,123,.5)} 70%{ box-shadow:0 0 0 12px rgba(84,240,123,0)} 100%{ box-shadow:0 0 0 0 rgba(84,240,123,0)} }
.price-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); border-radius: 20px; padding: 16px; }
.metric.big { grid-column: 1 / -1; }
.metric span { display:block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.metric strong { font-size: 24px; line-height:1.1; }
.footer-card { display:flex; justify-content:space-between; align-items:center; border-radius: 24px; padding: 16px 18px; margin-bottom: 12px; }
.footer-card span { display:block; color: var(--muted); font-size: 12px; }
.footer-card strong { font-size: 22px; }
.ios-hint { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; width: min(92vw, 420px); border-radius: 18px; padding: 14px 16px; text-align:center; color:#fff; z-index:100; }
@media (max-width: 380px){ .app-shell{padding-left:12px;padding-right:12px} .metric strong{font-size:21px} .topbar h1{font-size:26px} }
