/* Raduzi — auth.css — التسجيل (3 شاشات) · الزائر · الملفّ */

body.auth .topbar, body.auth .tabs, body.auth .footer, body.auth .guest-bar { display: none; }
body.auth .app { padding: 0; max-width: none; display: flex; flex-direction: column; }
body.auth { background: var(--navy); }
body.auth.auth-light { background: var(--bg); }

/* ---------- شريط الزائر ---------- */
.guest-bar {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px var(--pad);
  background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--text-2);
}
.guest-bar[hidden] { display: none; }
.guest-bar .gtime { font-family: var(--font-brand); font-weight: 700; font-size: 16px; color: var(--text); min-width: 40px; text-align: center; direction: ltr; }
.guest-bar .gtime.low { color: var(--red); }
.guest-bar a { color: var(--navy); background: var(--lime); border-radius: 999px; padding: 2px 14px; text-decoration: none; font-weight: 800; }
:root[data-theme="dark"] .guest-bar a { color: var(--navy); }

/* ---------- حاوية الشاشات ---------- */
.auth-screen {
  flex: 1;
  background: var(--navy); color: var(--white);
  padding: calc(36px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  width: 100%; max-width: 520px; margin: 0 auto;
}
.auth-screen[hidden] { display: none; }
.auth-screen.light { background: var(--bg); color: var(--text); padding-top: 0; }
.auth-logo {
  font-family: var(--font-brand); font-style: italic; font-weight: 800;
  font-size: clamp(44px, 12vw, 56px); line-height: 1; letter-spacing: 1px; text-align: center;
  direction: ltr; unicode-bidi: isolate;
}
.auth-logo .dot { color: var(--lime); }
.auth-tag { margin-top: 10px; text-align: center; font-size: 14px; color: #B9C4DA; font-weight: 600; }
.auth-title { margin-top: clamp(28px, 8vw, 56px); font-size: clamp(24px, 6.5vw, 28px); font-weight: 900; line-height: 1.35; text-align: center; }
.auth-title em { font-style: normal; color: var(--lime); }

.perks { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.perk { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.07); border-radius: 14px; padding: 14px; }
.perk .pi { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--lime); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--font-brand); font-weight: 700; font-size: 20px; }
.perk b { display: block; font-size: 15px; font-weight: 800; }
.perk span { font-size: 12px; color: #B9C4DA; font-weight: 600; }

.auth-foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.gbtn-note { text-align: center; font-size: 13px; color: #B9C4DA; font-weight: 600; background: rgba(255,255,255,0.07); border-radius: 12px; padding: 12px; }
.gbtn-note.err { color: #FFB4BD; }
.terms { text-align: center; font-size: 11px; color: #8A9AB8; font-weight: 600; }
.terms a { color: var(--lime); }

/* الشاشة 2 — الهويّة */
.id-top { background: var(--navy); color: var(--white); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; margin: 0 -24px; }
.id-top .auth-logo { font-size: 28px; text-align: start; }
.steps { display: flex; gap: 6px; }
.steps i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.25); }
.steps i.on { background: var(--lime); }
.id-body { padding: 32px 0; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.id-body h2 { font-size: 26px; font-weight: 900; line-height: 1.3; }
.photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.photo { width: 96px; height: 96px; border-radius: 50%; background: var(--lime); color: var(--navy); display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 900; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--text); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hint { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span:first-child { font-size: 14px; font-weight: 800; }
.field input {
  height: 54px; border-radius: 12px; border: 2px solid var(--text); background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 18px; font-weight: 700; padding: 0 16px; outline: none; width: 100%;
}
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.country-row { height: 54px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; gap: 10px; padding: 0 16px; }
.country-row .cname { flex: 1; font-size: 17px; font-weight: 700; }
.country-row select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.country-row.open select { position: static; width: auto; height: 34px; opacity: 1; pointer-events: auto; font-family: inherit; font-size: 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); max-width: 55%; }
.chg { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; }
.flag { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.15); display: inline-block; flex-shrink: 0; object-fit: cover; vertical-align: middle; }
.btn-big { margin-top: auto; height: 58px; border-radius: 14px; border: none; background: var(--lime); color: var(--navy); font-family: inherit; font-size: 22px; font-weight: 900; width: 100%; }
.btn-big:disabled { opacity: 0.6; }

/* الشاشة 3 — لحظة الرقم */
.num-screen { align-items: center; text-align: center; }
.num-hello { font-size: 15px; font-weight: 700; color: #B9C4DA; }
.num-big { margin-top: 14px; font-family: var(--font-brand); font-weight: 700; font-size: clamp(96px, 30vw, 132px); line-height: 0.9; color: var(--lime); direction: ltr; }
.num-sub { margin-top: 6px; font-size: 13px; color: #B9C4DA; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.badge-wrap { margin-top: 36px; position: relative; width: 132px; height: 148px; display: flex; align-items: center; justify-content: center; }
.badge-wrap svg { position: absolute; inset: 0; }
.badge-text { position: relative; display: flex; flex-direction: column; align-items: center; }
.badge-text b { font-size: 22px; font-weight: 900; }
.badge-text span { font-family: var(--font-brand); font-weight: 700; font-size: 20px; color: #F2B705; direction: ltr; }
.badge-line { margin-top: 10px; font-size: 14px; font-weight: 800; }
.badge-box { margin-top: 20px; width: 100%; background: rgba(255,255,255,0.07); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.badge-box p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; }
.badge-box b { color: var(--lime); }
.bar-row { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,0.15); overflow: hidden; }
.bar i { display: block; height: 8px; width: 2%; min-width: 4px; background: var(--lime); border-radius: 99px; }
.bar-row span { font-family: var(--font-brand); font-weight: 700; font-size: 17px; direction: ltr; }
.num-foot { margin-top: auto; padding-top: 28px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.btn-line { height: 48px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.4); background: transparent; color: var(--white); font-family: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- الملفّ الشخصيّ ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 16px; }
.profile-head .pinfo { flex: 1; min-width: 0; }
.profile-head .photo { width: 72px; height: 72px; font-size: 30px; }
.profile-name { font-size: 20px; font-weight: 900; }
.profile-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--text-2); font-weight: 700; }
.profile-num { flex-shrink: 0; font-family: var(--font-brand); font-weight: 700; font-size: 30px; color: var(--navy); background: var(--lime); border-radius: 10px; padding: 2px 12px; direction: ltr; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line-2); }
.stats div { padding: 12px 6px; text-align: center; border-inline-start: 1px solid var(--line-2); }
.stats div:first-child { border-inline-start: none; }
.stats b { display: block; font-family: var(--font-brand); font-weight: 700; font-size: 24px; direction: ltr; }
.stats span { font-size: 12px; color: var(--text-2); font-weight: 700; }
.profile-actions { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.btn-small.danger { border-color: var(--red); color: var(--red); }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.has-img { background: transparent; padding: 0; }

@media (min-width: 760px) {
  body.auth, body.auth.auth-light { background: var(--bg); }
  .auth-screen { flex: 0 0 auto; margin: 32px auto; border-radius: 24px; padding-top: 36px; }
  .auth-screen.light { border: 1px solid var(--line); overflow: hidden; padding-top: 0; }
  .auth-screen.light .id-top { margin: 0 -24px; }
}
