/* PriceHub web — صفحات الخطط والحساب/الدفع. بلا خطوط/موارد خارجية (CSP: style-src 'self').
   الثيم: تلقائي حسب الجهاز، ويقدر المستخدم يثبّته فاتح/داكن من الزر (data-theme على <html>).
   مصمم للموبايل أولًا (iPhone): safe-area، حقول 16px (بلا زوم تلقائي)، أهداف لمس ≥ 44px، شريط تنقل سفلي. */
:root {
  --bg: #f6f5fb; --bg-2: #efedf8; --card: #ffffff; --ink: #15122b; --muted: #625f7a; --line: #e6e3f2;
  --brand: #6d3df0; --brand-d: #4c1d95; --brand-l: #8b5cf6; --brand-soft: #efe9ff;
  --pink: #ec4899; --pink-soft: #fde7f3; --cyan: #06b6d4; --amber: #f59e0b;
  --on-brand: #ffffff;
  --ok: #12805c; --ok-soft: #e4f6ee; --warn: #a45a00; --warn-soft: #fff1da; --bad: #c0261f; --bad-soft: #fde8e6;
  --shadow: 0 1px 2px rgba(31,18,80,.05), 0 8px 24px rgba(31,18,80,.06);
  --shadow-lg: 0 2px 4px rgba(31,18,80,.06), 0 18px 44px rgba(76,29,149,.16);
  --glow: 0 10px 30px rgba(109,61,240,.28);
  --r: 20px; --r-s: 14px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d1e; --bg-2: #171430; --card: #1a1733; --ink: #f0eefc; --muted: #a29fbd; --line: #2b2749;
    --brand: #8b5cf6; --brand-d: #c4b5fd; --brand-l: #a78bfa; --brand-soft: #2a2152;
    --pink: #f472b6; --pink-soft: #3a1830; --on-brand: #1a1033;
    --ok: #4ade9c; --ok-soft: #12322a; --warn: #fbbf5c; --warn-soft: #3a2b10; --bad: #ff8a80; --bad-soft: #3a1815;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.45);
    --glow: 0 10px 30px rgba(139,92,246,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0d1e; --bg-2: #171430; --card: #1a1733; --ink: #f0eefc; --muted: #a29fbd; --line: #2b2749;
  --brand: #8b5cf6; --brand-d: #c4b5fd; --brand-l: #a78bfa; --brand-soft: #2a2152;
  --pink: #f472b6; --pink-soft: #3a1830; --on-brand: #1a1033;
  --ok: #4ade9c; --ok-soft: #12322a; --warn: #fbbf5c; --warn-soft: #3a2b10; --bad: #ff8a80; --bad-soft: #3a1815;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.28);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 18px 44px rgba(0,0,0,.45);
  --glow: 0 10px 30px rgba(139,92,246,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: "Segoe UI", "SF Pro Text", -apple-system, "Noto Sans Arabic", Tajawal, Tahoma, system-ui, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; touch-action: manipulation; overflow-x: hidden; }
main { flex: 1; width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; }
.hidden { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; padding-inline: max(20px, var(--safe-l)) max(20px, var(--safe-r)); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.sr-copy { position: fixed; top: 0; inset-inline-start: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ── Header ── */
.topbar { background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; padding-top: var(--safe-t); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.2px; color: var(--ink); text-decoration: none; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: var(--on-brand); font-weight: 800; font-size: 18px; background: linear-gradient(135deg, var(--brand-l), var(--pink)); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 40%, transparent); }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.nav a:hover, .nav a.on { background: var(--brand-soft); color: var(--brand-d); }
.nav a.cta { background: linear-gradient(135deg, var(--brand-l), var(--brand)); color: var(--on-brand); margin-inline-start: 6px; box-shadow: var(--glow); }
.nav a.cta:hover { filter: brightness(1.07); }
.theme-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; margin-inline-start: 6px; transition: transform .2s, background .15s; }
.theme-btn:hover { background: var(--brand-soft); transform: rotate(18deg); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 76px 0 92px; background: linear-gradient(135deg, #5b2bd6, #2a1066 80%); isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .75; animation: floaty 14s ease-in-out infinite; }
.hero::before { width: 460px; height: 460px; inset-inline-end: -120px; top: -160px; background: radial-gradient(circle, #ec4899, transparent 68%); }
.hero::after { width: 520px; height: 520px; inset-inline-start: -160px; bottom: -240px; background: radial-gradient(circle, #06b6d4, transparent 68%); animation-delay: -6s; }
@keyframes floaty { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(24px, 18px) scale(1.08); } }
.hero .wrap { position: relative; z-index: 1; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); padding: 6px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(30px, 5.4vw, 54px); line-height: 1.2; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #fbcfe8, #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: clamp(15px, 2vw, 18px); opacity: .92; max-width: 660px; margin: 0 auto; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.chips span::before { content: "✓"; margin-inline-end: 7px; font-weight: 800; }
.chips span { font-size: 13.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); }
/* شريط وسائل الدفع تحت الهيرو */
.paystrip { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.paystrip > span { font-size: 13px; font-weight: 700; opacity: .85; letter-spacing: .3px; }
.paystrip .logos { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.paylogo { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; padding-inline: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: #1b1340; font-weight: 700; font-size: 13.5px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.paylogo .mi { width: 28px; height: 28px; border-radius: 9px; }

/* أيقونة وسيلة الدفع (صورة أو حرف أول كبديل) */
.mi { display: inline-grid; place-items: center; flex: none; object-fit: contain; background: #fff; border-radius: 12px; overflow: hidden; font-weight: 800; color: var(--brand-d); }
.mi.ph { background: linear-gradient(135deg, var(--brand-soft), var(--pink-soft)); }

/* ── Sections ── */
section { padding: 34px 0; }
main > .wrap > section:first-child, .hero + main section:first-child { padding-top: 44px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .3px; margin-bottom: 4px; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.2px; line-height: 1.3; margin-bottom: 18px; }
h3 { font-size: 18px; font-weight: 700; }
h2.gap-top, p.gap-top { margin-top: 38px; }
#app { padding-bottom: 20px; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card > p + p { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }

/* ── Tabs (segmented) ── */
.tabs { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 22px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 10px 22px; min-height: 44px; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); transition: all .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { background: var(--card); color: var(--brand-d); box-shadow: 0 2px 8px rgba(31,18,80,.14); }

/* ── Plans ── */
.plan { display: flex; flex-direction: column; gap: 12px; position: relative; padding: 28px 24px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.plan:has(.badge) { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); background: linear-gradient(180deg, var(--brand-soft), var(--card) 42%); }
.plan .badge { position: absolute; top: -13px; inset-inline-start: 22px; background: linear-gradient(135deg, var(--brand-l), var(--pink)); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 14px; border-radius: 999px; box-shadow: 0 6px 14px color-mix(in srgb, var(--pink) 35%, transparent); }
.plan h3 { font-size: 19px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--ink); }
.price small { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 10px; padding-top: 14px; margin-top: 4px; border-top: 1px dashed var(--line); color: var(--ink); font-size: 14.5px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: "✓"; flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 800; }
.plan .btn { margin-top: 8px; width: 100%; }
/* "يمكنك الدفع من خلال" داخل كارت الباقة */
.plan-pay { padding-top: 14px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.plan-pay > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.plan-pay .logos { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-pay .mini { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 5px; padding-inline: 5px 11px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.plan-pay .mini .mi { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }

/* ── وسائل الدفع (قسم الخطط) ── */
.methods-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.mcard { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; }
.mcard::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-l), var(--pink), var(--cyan)); opacity: .9; }
.mcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.mcard .head { display: flex; align-items: center; gap: 14px; }
.mcard .mi { width: 56px; height: 56px; border-radius: 16px; font-size: 24px; border: 1px solid var(--line); }
.mcard h3 { font-size: 17px; line-height: 1.3; }
.mcard .holder { color: var(--muted); font-size: 13.5px; }
.mcard .acc { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--bg-2); border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: var(--r-s); padding: 8px 12px; }
.mcard .acc b { direction: ltr; unicode-bidi: plaintext; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15.5px; letter-spacing: .4px; word-break: break-all; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: linear-gradient(135deg, var(--brand-l), var(--brand)); color: var(--on-brand); padding: 12px 22px; min-height: 46px; border-radius: 14px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; box-shadow: var(--glow); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; filter: none; }
.btn.ghost { background: transparent; color: var(--brand-d); border: 1.5px solid color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: none; }
.btn.ghost:hover { background: var(--brand-soft); filter: none; }
.btn.danger { background: transparent; color: var(--bad); border: 1.5px solid color-mix(in srgb, var(--bad) 50%, var(--line)); box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); filter: none; }
.btn.light { background: #fff; color: #3b1a8a; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn.outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); box-shadow: none; }
.btn.outline-light:hover { background: rgba(255,255,255,.12); }
.btn.sm { padding: 6px 14px; min-height: 36px; font-size: 13.5px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Table ── */
.table-scroll { overflow-x: auto; padding: 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 460px; }
th, td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: start; }
thead th { background: var(--bg-2); font-size: 13.5px; color: var(--muted); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
td.c, th.c { text-align: center; width: 110px; }
td .muted { font-size: 13.5px; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 13px; }
.yes { background: var(--ok-soft); color: var(--ok); } .no { background: var(--bg-2); color: var(--muted); }

/* ── Steps (timeline) ── */
.steps { counter-reset: s; display: grid; gap: 0; list-style: none; position: relative; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px 18px; padding-inline-start: 68px; margin-bottom: 14px; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--brand-l), var(--pink)); color: #fff; font-weight: 800; }

.pre { white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); }
.note { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); padding: 12px 16px; border-radius: var(--r-s); font-size: 14.5px; margin-bottom: 14px; font-weight: 500; }
.msg { padding: 12px 16px; border-radius: var(--r-s); margin: 12px 0; font-size: 14.5px; font-weight: 500; }
.msg.err { background: var(--bad-soft); color: var(--bad); } .msg.ok { background: var(--ok-soft); color: var(--ok); }

/* ── Forms (16px على الموبايل = iOS ما بيعملش زوم عند الضغط على الحقل) ── */
label { display: block; font-weight: 700; margin: 16px 0 6px; font-size: 14px; }
input, select, textarea { width: 100%; padding: 12px 14px; min-height: 48px; border: 1.5px solid var(--line); border-radius: var(--r-s); font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none; }
textarea { min-height: 84px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .7; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
form p:has(> .btn) { margin-top: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 36px 0 4px; }
.account-head h2 { margin: 0; font-size: clamp(20px, 3vw, 26px); word-break: break-all; }
.auth-shell { max-width: 460px; margin: 0 auto; padding-top: 56px; }
.auth-card { padding: 30px 28px; text-align: start; }
.auth-card .brand { margin-bottom: 14px; }
.auth-card h2 { margin-bottom: 4px; }
.auth-card .tabs { display: flex; margin: 18px 0 4px; }
.auth-card .tabs button { flex: 1; }
.auth-card .btn { width: 100%; }
.secure { text-align: center; color: var(--muted); font-size: 13px; margin-top: 16px; }

/* ── صفحة الدفع: خطوات + اختيار الباقة والوسيلة + رفع الإيصال ── */
.pay-card { padding: 8px 22px 22px; }
.pay-step { padding: 22px 0; border-bottom: 1px dashed var(--line); }
.pay-step:last-of-type { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.step-title .num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-l), var(--pink)); color: #fff; font-size: 15px; font-weight: 800; flex: none; }
.step-title small { font-weight: 500; color: var(--muted); font-size: 13px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.choice { position: relative; display: block; margin: 0; cursor: pointer; font-weight: inherit; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; pointer-events: none; }
.choice .box { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 84px; border-radius: var(--r-s); border: 2px solid var(--line); background: var(--bg); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; position: relative; }
.choice:hover .box { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.choice.on .box { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.choice input:focus-visible + .box { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.choice.on .box::after { content: "✓"; position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 12px; font-weight: 800; }
.choice .nm { font-weight: 800; font-size: 16px; }
.choice .pr { font-weight: 800; font-size: 20px; color: var(--brand-d); letter-spacing: -.3px; }
.choice .pr small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.choice .bd { position: absolute; top: -10px; inset-inline-start: 12px; background: linear-gradient(135deg, var(--brand-l), var(--pink)); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.method-grid .choice .box { align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 16px 10px 14px; min-height: 124px; }
.method-grid .mi { width: 52px; height: 52px; border-radius: 15px; font-size: 22px; border: 1px solid var(--line); }
.method-grid .choice .nm { font-size: 14.5px; line-height: 1.3; }
.pay-box { margin-top: 16px; padding: 18px; border-radius: var(--r-s); background: linear-gradient(135deg, var(--brand-soft), var(--pink-soft)); border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--line)); display: grid; gap: 14px; }
.pay-box .top { display: flex; align-items: center; gap: 12px; }
.pay-box .top .mi { width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); }
.pay-box .top b { font-size: 16px; }
.pay-box .lbl { font-size: 12.5px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.pay-box .copyrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; }
.pay-box .copyrow b { flex: 1; min-width: 0; direction: ltr; unicode-bidi: plaintext; text-align: start; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 19px; letter-spacing: .5px; word-break: break-all; }
.pay-box .amount { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 700; }
.pay-box .amount b { font-size: 26px; letter-spacing: -.5px; color: var(--brand-d); }
.pay-box .ins { font-size: 14.5px; color: var(--ink); }
.drop { display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 16px; margin: 0; cursor: pointer; border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--line)); border-radius: var(--r); background: var(--bg); transition: border-color .15s, background .15s; font-weight: inherit; }
.drop:hover, .drop.over { background: var(--brand-soft); border-color: var(--brand); }
.drop:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.drop .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: linear-gradient(135deg, var(--brand-soft), var(--pink-soft)); }
.drop strong { font-size: 15.5px; }
.drop small { color: var(--muted); font-weight: 500; font-size: 13px; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; pointer-events: none; }
.receipt { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); }
.receipt img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: #fff; flex: none; }
.receipt .meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.receipt .meta b { font-size: 14.5px; }
.receipt .meta span { color: var(--muted); font-size: 13px; }
.pay-actions { display: grid; gap: 10px; margin-top: 8px; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; padding: 12px 16px; border-radius: var(--r-s); background: var(--bg-2); }
.total-line b { font-size: 22px; color: var(--brand-d); letter-spacing: -.3px; }

/* ── Status & requests ── */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-free, .st-cancelled { background: var(--bg-2); color: var(--muted); }
.st-active, .st-approved { background: var(--ok-soft); color: var(--ok); }
.st-expired, .st-rejected { background: var(--bad-soft); color: var(--bad); }
.st-pending { background: var(--warn-soft); color: var(--warn); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; }
#statuses .card { display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
#statuses .card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--brand-l), var(--pink), var(--cyan)); }
.req { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 8px; }
.req:first-child { border-top: 0; padding-top: 0; } .req:last-child { padding-bottom: 0; }

/* ── Footer ── */
footer { margin-top: 40px; padding: 28px 0 34px; background: var(--card); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--brand); }

/* ── Toast + شريط التنقل السفلي (موبايل) ── */
.toast { position: fixed; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); bottom: calc(var(--safe-b) + 24px); z-index: 60; background: #1b1340; color: #fff; padding: 12px 20px; border-radius: 14px; font-size: 14.5px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: var(--bad); color: #fff; }
.tabbar { display: none; }

@media (max-width: 640px) {
  .wrap { padding-inline: max(16px, var(--safe-l)) max(16px, var(--safe-r)); }
  .topbar .wrap { min-height: 58px; }
  .nav a:not(.cta) { display: none; }
  .nav a.cta { display: none; }
  .hero { padding: 52px 0 64px; }
  .price { font-size: 34px; }
  .steps li { padding-inline-start: 62px; }
  .auth-card { padding: 24px 20px; }
  .pay-card { padding: 4px 16px 18px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .method-grid .choice .box { min-height: 112px; padding: 14px 6px 12px; }
  .method-grid .mi { width: 46px; height: 46px; }
  .pay-box .copyrow b { font-size: 17px; }
  .receipt img { width: 68px; height: 68px; }
  footer { padding-bottom: calc(34px + var(--tabbar-h) + var(--safe-b)); }
  footer .wrap { justify-content: center; text-align: center; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
  .toast { bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); }
  .tabbar { display: grid; grid-template-columns: repeat(2, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); padding-inline: var(--safe-l) var(--safe-r); background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: saturate(170%) blur(18px); -webkit-backdrop-filter: saturate(170%) blur(18px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 700; }
  .tabbar a span { font-size: 21px; line-height: 1; }
  .tabbar a.on { color: var(--brand); }
}
@media (max-width: 380px) { .choice-grid { grid-template-columns: 1fr; } .method-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ── إنشاء الحساب (نفس بيانات التطبيق) + الدخول بجوجل ── */
.small { font-size: 13px; margin: 6px 0 0; }
.seg { display: flex; gap: 6px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 10px 12px; min-height: 44px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); transition: all .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--brand-d); box-shadow: 0 2px 8px rgba(31,18,80,.14); }
.pw { position: relative; }
.pw input { padding-inline-end: 52px; }
.pw .eye { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; font-size: 18px; cursor: pointer; opacity: .65; }
.pw .eye:hover, .pw .eye.on { opacity: 1; background: var(--brand-soft); }
.ferr { color: var(--bad); font-size: 13px; font-weight: 600; margin-top: 4px; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: 13px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.btn-google:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); background: var(--bg-2); }
.btn-google:active { transform: scale(.98); }
.btn-google.busy { opacity: .6; pointer-events: none; }
