:root { --red:#e60023; --ink:#15151f; --muted:#596174; --line:#e5e7eb; --soft:#fff1f3; }
* { box-sizing: border-box; }
body { margin:0; font-family: Tahoma, Arial, sans-serif; color:var(--ink); background:#fff; }
html[lang="ar"] body { font-family:"Cairo", Tahoma, Arial, sans-serif; }
.auth-nav { position:sticky; top:0; z-index:10; min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px clamp(18px,5vw,64px); border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); backdrop-filter:blur(12px); }
html[dir="rtl"] .auth-nav { flex-direction:row-reverse; }
.brand { display:flex; align-items:center; gap:10px; padding:8px; text-decoration:none; color:inherit; direction:ltr; }
.mark { width:54px; height:54px; display:grid; place-items:center; border:0; border-radius:10px; color:var(--red); font-weight:900; font-size:22px; background:transparent; overflow:hidden; }
.mark img { width:100%; height:100%; display:block; object-fit:cover; border-radius:inherit; }
.brand strong { display:block; font-size:18px; }
.brand span { display:block; color:var(--muted); font-size:12px; margin-top:2px; }
.nav { display:flex; align-items:center; gap:16px; font-size:14px; font-weight:700; }
.nav a, .nav span { color:inherit; text-decoration:none; padding:8px 0; }
.nav .active { color:var(--red); font-weight:900; }
.auth-actions { display:flex; align-items:center; gap:8px; direction:ltr; flex-shrink:0; }
.button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; border:0; border-radius:8px; color:#fff; background:var(--red); font-weight:800; text-decoration:none; cursor:pointer; }
.button.secondary { color:var(--red); background:var(--soft); }
.auth-actions .button, .auth-actions .language-toggle { min-height:38px; padding:8px 12px; border-radius:8px; font-size:14px; font-weight:700; }
.language-switcher { position:relative; }
.language-toggle { min-height:38px; display:inline-flex; align-items:center; gap:8px; border:0; background:transparent; color:inherit; font-weight:700; cursor:pointer; }
.language-menu { position:absolute; top:calc(100% + 12px); inset-inline-end:0; z-index:30; display:none; width:218px; padding:8px; border:1px solid #111827; border-radius:8px; background:#fff; box-shadow:0 18px 40px rgba(17,24,39,.12); }
.language-switcher.open .language-menu { display:grid; }
.language-menu button { width:100%; min-height:38px; display:flex; align-items:center; gap:10px; padding:8px 10px; border:0; border-radius:7px; background:transparent; color:#374151; text-align:start; font-size:14px; cursor:pointer; }
.language-menu button:hover, .language-menu button.active { background:var(--soft); color:var(--red); }
.language-menu small { min-width:24px; color:#64748b; font-size:11px; text-transform:uppercase; }
.hero { max-width:1120px; margin:0 auto; padding:76px 22px 28px; text-align:center; }
h1 { margin:0; font-size:clamp(38px,5vw,58px); line-height:1.18; }
.hero p { max-width:720px; margin:16px auto 0; color:var(--muted); font-size:18px; line-height:1.75; }
.cards { max-width:990px; margin:38px auto 90px; padding:0 22px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; align-items:center; direction:ltr; }
.card { position:relative; min-height:600px; padding:28px 22px; border:1px solid #dedede; border-radius:12px; background:#fff; text-align:center; direction:ltr; }
.card.featured { min-height:660px; border-color:var(--red); background:#fff4f5; }
.badge { position:absolute; top:-17px; left:50%; transform:translateX(-50%); padding:8px 20px; border-radius:999px; color:#fff; background:var(--red); font-weight:900; font-size:13px; white-space:nowrap; }
.card h2 { margin:0; font-size:22px; }
.desc { min-height:40px; margin:12px 0 24px; color:#4b5563; }
.price { font-size:52px; font-weight:900; }
.price small { font-size:16px; font-weight:500; }
.billed { color:#666; }
.save { margin-top:8px; color:var(--red); font-weight:800; }
.credits { margin:24px 0; padding:18px; border-radius:10px; background:rgba(255,255,255,.75); font-size:16px; }
ul { display:grid; gap:13px; margin:0 0 22px; padding:0; list-style:none; text-align:left; }
li { display:flex; align-items:center; gap:10px; color:#4b5563; }
li::before { content:"✓"; display:grid; place-items:center; width:19px; height:19px; border-radius:50%; color:var(--red); background:#ffe4e8; font-size:12px; font-weight:900; }
.featured li::before { color:#fff; background:var(--red); }
.btn { width:100%; min-height:46px; border:0; border-radius:6px; color:#fff; background:#222; font-weight:900; font-size:15px; }
.featured .btn { background:var(--red); }
.status { display:none; margin:18px auto; max-width:620px; padding:13px 15px; border-radius:8px; color:#0b7a69; background:#eefaf6; text-align:center; font-weight:800; }
.status.error { color:#b42318; background:#fff1f1; }
.payment-modal { position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center; padding:18px; background:rgba(0,0,0,.58); }
.payment-modal.open { display:flex; }
.payment-dialog { direction:rtl; width:min(100%,520px); max-height:calc(100vh - 36px); display:flex; flex-direction:column; gap:12px; position:relative; padding:22px; border-radius:10px; background:#fff; box-shadow:0 18px 45px rgba(20,20,24,.18); overflow-y:auto; }
.modal-close { position:absolute; top:14px; right:16px; width:34px; height:34px; border:0; border-radius:50%; background:#f3f4f6; font-size:22px; cursor:pointer; }
.payment-dialog h2 { margin:0; font-size:24px; }
.payment-dialog .muted { margin:0; color:var(--muted); }
.payment-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border:1px solid var(--line); border-radius:8px; background:#fafafa; font-weight:800; }
.payment-form { display:grid; gap:12px; }
#paymentElement { padding:10px; border:1px solid var(--line); border-radius:8px; background:#fff; }
#paymentSubmit { width:100%; min-height:48px; }
.login-form { display:grid; gap:10px; }
.login-form label { display:grid; gap:6px; color:var(--muted); font-weight:800; font-size:13px; }
.login-form input { min-height:46px; border:1px solid var(--line); border-radius:8px; padding:10px 12px; font:inherit; }
.google-login { min-height:46px; display:flex; align-items:center; justify-content:center; gap:10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:#111827; font-weight:900; cursor:pointer; }
.auth-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.auth-tabs button { min-height:42px; border:1px solid var(--line); border-radius:8px; background:#fff; font-weight:900; cursor:pointer; }
.auth-tabs button.active { color:var(--red); border-color:var(--red); background:var(--soft); }
.site-footer { direction:inherit; position:relative; overflow:hidden; margin-top:54px; color:#f9fafb; background:linear-gradient(90deg, rgba(230,0,35,.92), rgba(230,0,35,.5), rgba(230,0,35,.92)) top / 100% 18px no-repeat, radial-gradient(circle at 18% 0%, rgba(230,0,35,.34), transparent 32%), radial-gradient(circle at 84% 8%, rgba(230,0,35,.28), transparent 28%), #202020; }
.footer-inner { max-width:1240px; margin:0 auto; padding:70px clamp(18px,5vw,52px) 28px; display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:48px; align-items:start; }
.footer-brand { display:grid; gap:16px; }
.footer-logo { display:flex; align-items:center; gap:14px; font-size:19px; font-weight:900; }
.footer-logo .mark { width:auto; height:auto; flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:0; border-radius:0; color:#ff2646; overflow:visible; }
.footer-logo .mark img { width:auto; height:92px; max-width:180px; object-fit:contain; border-radius:0; transform:none; }
.footer-brand p { max-width:310px; margin:0; color:#d7d7d7; line-height:1.75; }
.footer-links { display:grid; gap:13px; }
.footer-links h3, .footer-store h3 { margin:0 0 8px; font-size:18px; color:#fff; }
.footer-links a { color:#e5e7eb; text-decoration:none; }
.footer-links a:hover { color:#fff; text-decoration:underline; }
.footer-store { direction:ltr; justify-self:start; display:grid; gap:14px; }
.play-badge img { display:block; width:190px; height:auto; }
.footer-bottom { max-width:1240px; margin:0 auto; padding:22px clamp(18px,5vw,52px) 28px; border-top:1px solid rgba(255,255,255,.16); color:#c7c7c7; text-align:center; }
@media (max-width: 820px) { .auth-nav { flex-wrap:wrap; } .nav { display:none; } .cards { grid-template-columns:1fr; } .card, .card.featured { min-height:auto; } .footer-inner { grid-template-columns:1fr; gap:28px; } }
