/* Saqar Alkhaleej pearls store — game look (dark + gold, El Messiri). No inline styles: the CSP allows styles from this site only. */
@font-face { font-family: "El Messiri"; src: url("fonts/ElMessiri-SemiBold.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #100A06; --bg2: #171009; --card: #1E150E; --card2: #261A11; --line: rgba(201, 162, 39, .35); --gold: #C9A227; --gold2: #F3D774;
  --text: #EFE6D2; --muted: #B3A386; --dim: #7E715C; --green: #6FBF5A; --red: #E0705D; --radius: 16px;
  --font: "El Messiri", "Noto Kufi Arabic", system-ui, "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 17px/1.7 var(--font);
  background: radial-gradient(ellipse at top, #2A1B0E 0%, var(--bg) 60%) fixed, var(--bg);
}
html[lang=en] body { font-size: 16px; line-height: 1.6; }
a { color: var(--gold2); }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 56px; }
header.top { display: flex; align-items: center; gap: 12px; padding: 8px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
header.top img { width: 52px; height: 52px; border-radius: 12px; }
header.top .brand { flex: 1; line-height: 1.25; }
header.top .brand b { display: block; color: var(--gold2); font-size: 1.2rem; }
header.top .brand span { color: var(--muted); font-size: .9rem; }
button, .btn { font: inherit; font-weight: 700; border-radius: 12px; border: 1px solid var(--gold); cursor: pointer; padding: 10px 16px; }
button.lang { background: transparent; color: var(--gold2); padding: 6px 12px; font-size: .95rem; }
button.primary { width: 100%; background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241707; margin-top: 14px; }
button.ghost { background: transparent; color: var(--gold2); }
button:disabled { opacity: .55; cursor: default; }
h1, h2 { color: var(--gold2); line-height: 1.3; margin: 0 0 .4em; }
h1 { font-size: clamp(24px, 6vw, 34px); }
h2 { font-size: 1.2rem; margin-top: 1.2em; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.note { border-inline-start: 4px solid var(--gold); padding: 10px 14px; background: rgba(201, 162, 39, .08); border-radius: 10px; color: var(--text); }
.muted { color: var(--muted); font-size: .93rem; }
label { display: block; font-weight: 700; margin: 12px 0 4px; color: var(--muted); }
input { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font: inherit; }
input:focus { outline: 2px solid var(--gold); }
input[type=email], input[type=password] { direction: ltr; text-align: start; }
.msg { margin-top: 10px; font-weight: 700; }
.msg:empty { display: none; }
.msg.error { color: var(--red); }
.msg.ok { color: var(--green); }
.who { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.who .name { font-size: 1.25rem; color: var(--gold2); font-weight: 700; }
.who button { margin-inline-start: auto; padding: 6px 12px; }
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 620px) { .packs { grid-template-columns: repeat(3, 1fr); } }
.pack { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 10px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-weight: 400; }
.pack:hover:not(:disabled), .pack:focus-visible { border-color: var(--gold2); box-shadow: 0 0 0 2px rgba(243, 215, 116, .25); }
.pack img { width: 96px; height: 96px; object-fit: contain; }
.pack .amount { font-size: 1.25rem; font-weight: 700; color: var(--gold2); display: flex; align-items: center; gap: 6px; }
.pack .amount img { width: 22px; height: 22px; }
.pack .price { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #241707; border-radius: 10px; padding: 4px 14px; font-weight: 700; margin-top: 4px; }
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.sheet .card { width: 100%; max-width: 520px; margin: 0; border-end-start-radius: 0; border-end-end-radius: 0; }
@media (min-width: 620px) { .sheet { align-items: center; } .sheet .card { border-radius: var(--radius); } }
.sheet .row { display: flex; gap: 10px; }
.sheet .row button { flex: 1; margin-top: 14px; }
.orders { list-style: none; padding: 0; margin: 0; }
.orders li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.badge { font-size: .8rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.badge.paid { color: var(--green); border-color: var(--green); }
footer { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: .88rem; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 8px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-inline-start: 22px; }
.test-banner { background: #5A2D0C; color: #FFD9A8; text-align: center; font-size: .9rem; padding: 6px; border-radius: 10px; margin-bottom: 12px; }
[hidden] { display: none !important; }
bdi { unicode-bidi: isolate; }
