/* الدخول والتسجيل وحسابي — بهويّة الموقع (styles.css: الكحليّ والذهبيّ، Thmanyah، الأزرار نفسها) */

/* ── الدخول / التسجيل ─────────────────────────────────────────────────────── */
.au { padding:44px 0 96px; background:
  radial-gradient(600px 400px at 85% -10%, rgba(194, 174, 94,.22), transparent 70%),
  linear-gradient(180deg,#ffffff 0%, var(--brand-50) 100%); min-height:72vh; }
.au-wrap { max-width:1080px; }
.au-card { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); background:#ffffff; border:1px solid var(--line);
  border-radius:28px; box-shadow:0 30px 70px -30px rgba(0, 18, 55,.35); overflow:hidden; }

.au-form { padding:44px 48px 40px; display:flex; flex-direction:column; }
.au-pane { display:flex; flex-direction:column; }
.au-pane[hidden] { display:none; }
.au-in { animation:auIn .32s ease both; }
@keyframes auIn { from { opacity:0; transform:translateY(8px); } }

.au-eyebrow { display:inline-flex; align-items:center; gap:10px; margin:0 0 10px; font-size:13.5px; font-weight:700; color:var(--gold-500); }
.au-eyebrow::before { content:""; width:28px; height:3px; border-radius:2px; background:var(--gold-300); }
.au h1 { font-size:clamp(28px,3vw,38px); color:var(--brand-900); margin:0 0 10px; }
.au-lead { color:var(--muted); font-size:15.5px; line-height:1.85; margin:0 0 26px; }

.au-cartnote { display:flex; gap:10px; align-items:flex-start; margin:0 0 24px; padding:12px 14px; border-radius:14px;
  background:#fff7e1; border:1px solid var(--gold-100); color:var(--gold-700); font-size:13.5px; line-height:1.7; }
.au-cartnote svg { flex:none; margin-top:3px; }

/* شريطُ خطوات التسجيل */
.au-steps { list-style:none; margin:0 0 26px; padding:0; display:flex; gap:0; }
.au-steps li { flex:1; display:flex; align-items:center; gap:8px; font-size:13px; font-weight:700; color:var(--muted); position:relative; }
.au-steps li + li::before { content:""; flex:0 0 22px; height:2px; background:var(--line); margin-inline-end:6px; border-radius:2px; }
.au-steps i { font-style:normal; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; flex:none;
  border:2px solid var(--line); background:#ffffff; font-size:12.5px; transition:all .2s ease; }
.au-steps li.on { color:var(--brand-900); }
.au-steps li.on i { background:var(--brand-900); border-color:var(--brand-900); color:#ffffff; box-shadow:0 0 0 4px var(--brand-100); }
.au-steps li.done { color:var(--gold-500); }
.au-steps li.done i { background:var(--gold-500); border-color:var(--gold-500); color:#ffffff; }
.au-steps li.done + li::before { background:var(--gold-300); }

/* الحقول */
.au-fields { display:grid; gap:16px; }
.au-f { display:grid; gap:7px; }
.au-f > span:first-child { font-size:14px; font-weight:700; color:var(--brand-900); }
.au-f input, .au-phone { font:inherit; font-size:16px; width:100%; min-height:52px; border:1.5px solid var(--line); border-radius:14px; background:#ffffff;
  transition:border-color .16s, box-shadow .16s; }
.au-f > input { padding:0 16px; }
.au-f input:focus { outline:0; }
.au-f > input:focus, .au-phone:focus-within { border-color:var(--brand-500); box-shadow:0 0 0 4px var(--brand-100); }
.au-phone { display:flex; align-items:stretch; overflow:hidden; }
.au-phone input { border:0; min-height:0; border-radius:0; padding:0 14px; letter-spacing:.06em; font-weight:600; text-align:left; }
.au-cc { display:flex; align-items:center; gap:8px; padding:0 14px; background:var(--brand-50); border-inline-end:1.5px solid var(--line);
  font-weight:700; color:var(--brand-900); font-size:15px; white-space:nowrap; }
.au-flag { width:22px; height:15px; border-radius:3px; background:#006c35; position:relative; box-shadow:0 0 0 1px rgba(0, 0, 0,.08); }
.au-flag::after { content:""; position:absolute; left:5px; right:5px; top:9px; height:1.5px; background:#ffffff; border-radius:1px; }
.au-check { display:flex; align-items:flex-start; gap:10px; font-size:13.5px; color:var(--ink-soft); line-height:1.7; cursor:pointer; padding:2px; border-radius:10px; }
.au-check input { width:19px; height:19px; margin:3px 0 0; accent-color:var(--brand-900); flex:none; }
.au-check a { color:var(--brand-600); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.bad > input, .au-phone.bad, .au-f.bad .au-phone, .au-f.bad > input { border-color:var(--flame) !important; box-shadow:0 0 0 4px #fdecea !important; }
.au-check.bad { color:var(--flame); }
.shake { animation:auShake .38s ease; }
@keyframes auShake { 20%,60% { transform:translateX(-6px); } 40%,80% { transform:translateX(6px); } }

.au-err { min-height:1.5em; margin:12px 0 4px; color:var(--flame); font-size:13.5px; font-weight:700; line-height:1.7; }
.au-err-link { color:var(--brand-700); text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.au-submit { gap:10px; padding:16px; font-size:16px; margin-top:4px; }
.au-submit.is-busy { opacity:.8; cursor:progress; }
.au-submit.is-busy svg { animation:auPulse 1s ease-in-out infinite; }
@keyframes auPulse { 50% { opacity:.3; } }
.au-switch { margin:20px 0 0; text-align:center; font-size:14px; color:var(--muted); }
.au-switch a { color:var(--brand-700); font-weight:800; }
.au-switch a:hover { color:var(--gold-500); }
.au-link { font:inherit; background:none; border:0; padding:0; cursor:pointer; color:var(--brand-600); font-weight:700; display:inline-flex; align-items:center; gap:4px; }
.au-link:hover { color:var(--gold-500); }
.au-to { font-weight:800; color:var(--brand-900); white-space:nowrap; }

/* خانات الرمز */
.au-otp { display:flex; justify-content:center; gap:14px; margin:4px 0 6px; }
.au-otp input { width:64px; height:72px; text-align:center; font:inherit; font-size:30px; font-weight:800; color:var(--brand-900);
  border:1.5px solid var(--line); border-radius:16px; background:var(--paper-soft); caret-color:var(--gold-500);
  transition:border-color .15s, box-shadow .15s, background .15s, transform .15s; }
.au-otp input:focus { outline:0; border-color:var(--brand-500); background:#ffffff; box-shadow:0 0 0 4px var(--brand-100); transform:translateY(-2px); }
.au-otp input.filled { background:#ffffff; border-color:var(--brand-300); }
.au-otp.bad input { border-color:var(--flame); background:#ffffff; }
.au-dev { margin:14px 0 0; padding:10px 14px; border-radius:12px; border:1.5px dashed var(--gold-300); background:#fffaed; color:var(--gold-700); font-size:13px; line-height:1.7; }
.au-dev bdi { font-size:17px; font-weight:800; letter-spacing:.2em; color:var(--brand-900); margin-inline-start:4px; }
.au-resend { margin:18px 0 0; text-align:center; font-size:13.5px; color:var(--muted); }
.au-resend b { color:var(--brand-900); }

/* تمّ */
.au-done { text-align:center; align-items:center; padding-top:10px; }
.au-ok { width:78px; height:78px; border-radius:50%; display:grid; place-items:center; margin:6px auto 18px;
  background:#e8f4ee; color:#0f6b3a; box-shadow:0 0 0 12px #f3faf6; animation:auPop .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes auPop { from { transform:scale(.4); opacity:0; } }
.au-done .btn { max-width:340px; }

/* الجانبُ الكحليّ */
.au-side { position:relative; color:#ffffff; background:
  radial-gradient(420px 300px at 20% 110%, rgba(194, 174, 94,.28), transparent 70%),
  radial-gradient(380px 260px at 100% 0%, rgba(8, 105, 255,.35), transparent 70%),
  linear-gradient(160deg, var(--brand-800), var(--brand-900)); overflow:hidden; }
.au-side::before { content:""; position:absolute; inset:0; opacity:.07;
  background-image:linear-gradient(rgba(255, 255, 255,1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255,1) 1px, transparent 1px);
  background-size:34px 34px; mask-image:radial-gradient(circle at 60% 40%, #000000, transparent 75%); }
.au-side-in { position:relative; height:100%; padding:48px 44px; display:flex; flex-direction:column; justify-content:center; }
.au-logo { width:62px; height:62px; object-fit:contain; background:#ffffff; border-radius:18px; padding:8px; box-shadow:0 12px 26px -10px rgba(0, 0, 0,.5); margin-bottom:22px; }
.au-side-eyebrow { margin:0 0 8px; font-size:13px; color:var(--gold-200); font-weight:700; }
.au-side h2 { font-size:clamp(26px,2.6vw,34px); margin:0 0 30px; line-height:1.35; }
.au-perks { list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.au-perks li { display:flex; gap:14px; align-items:center; padding:14px 16px; border-radius:16px; background:rgba(255, 255, 255,.06); border:1px solid rgba(255, 255, 255,.09); }
.au-perks li > span { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; flex:none; background:rgba(194, 174, 94,.18); color:var(--gold-200); }
.au-perks b { display:block; font-size:14.5px; }
.au-perks small { display:block; font-size:12.5px; color:rgba(255, 255, 255,.65); margin-top:2px; }

/* ── حسابي ───────────────────────────────────────────────────────────────── */
.ac { padding:34px 0 90px; background:var(--paper-soft); min-height:70vh; }
.ac-wrap { max-width:1080px; }
.ac-hero { display:flex; align-items:center; gap:20px; padding:26px 28px; border-radius:24px; color:#ffffff; margin-bottom:22px;
  background:radial-gradient(380px 240px at 10% 120%, rgba(194, 174, 94,.3), transparent 70%), linear-gradient(150deg, var(--brand-800), var(--brand-900));
  box-shadow:0 24px 50px -26px rgba(0, 18, 55,.6); }
.ac-av { width:70px; height:70px; border-radius:22px; display:grid; place-items:center; font-size:30px; font-weight:800; flex:none;
  background:linear-gradient(140deg, var(--gold-200), var(--gold-500)); color:var(--brand-900); box-shadow:0 0 0 5px rgba(255, 255, 255,.1); }
.ac-hero .au-eyebrow { color:var(--gold-200); margin-bottom:4px; }
.ac-hero h1 { font-size:clamp(26px,3vw,34px); margin:0 0 4px; color:#ffffff; }
.ac-meta { margin:0; font-size:13.5px; color:rgba(255, 255, 255,.75); display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ac-meta bdi { font-weight:700; color:#ffffff; }
.ac-verified { display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px; background:rgba(22, 163, 74,.2); color:#86efac; font-size:12px; font-weight:700; }
.ac-out { margin-inline-start:auto; background:rgba(255, 255, 255,.08); color:#ffffff; border-color:rgba(255, 255, 255,.25); }
.ac-out:hover { background:rgba(255, 255, 255,.16); border-color:#ffffff; color:#ffffff; }

.ac-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:22px; align-items:start; }
.ac-card { background:#ffffff; border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.ac-card-h { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.ac-card-h h2 { margin:0; font-size:20px; color:var(--brand-900); }
.ac-count { min-width:26px; height:26px; padding:0 8px; border-radius:999px; display:grid; place-items:center; background:var(--brand-50); color:var(--brand-700); font-weight:800; font-size:13px; }
.ac-orders { display:grid; gap:14px; }
.ac-order { border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.ac-order header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 16px; background:var(--paper-soft); border-bottom:1px solid var(--line); }
.ac-order header b { font-size:15px; color:var(--brand-900); margin-inline-end:8px; }
.ac-order header small { color:var(--muted); font-size:12.5px; }
.ac-pill { font-size:12px; font-weight:800; padding:5px 11px; border-radius:999px; white-space:nowrap; }
.ac-pill.wait { background:#fff2d6; color:#714a00; }
.ac-pill.ok { background:#e8f4ee; color:#0f6b3a; }
.ac-pill.bad { background:#fdecea; color:#b4232a; }
.ac-pill.muted { background:#e4eefa; color:var(--muted); }
.ac-order ul { list-style:none; margin:0; padding:12px 16px; display:grid; gap:8px; }
.ac-order li { display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.ac-order li span { color:var(--ink-soft); }
.ac-order li b { white-space:nowrap; color:var(--brand-900); }
.ac-order footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-top:1px dashed var(--line); flex-wrap:wrap; }
.ac-total { font-size:14px; color:var(--muted); }
.ac-total b { color:var(--brand-900); font-size:16px; margin-inline-start:4px; }
.ac-total small { margin-inline-start:6px; }

.ac-side { display:grid; gap:12px; }
.ac-tile { position:relative; display:flex; align-items:center; gap:14px; padding:16px; background:#ffffff; border:1px solid var(--line); border-radius:18px;
  box-shadow:var(--shadow-sm); transition:transform .18s, box-shadow .18s, border-color .18s; }
.ac-tile:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); border-color:var(--brand-200); }
.ac-tile-ic { width:46px; height:46px; border-radius:14px; display:grid; place-items:center; flex:none; background:var(--brand-50); color:var(--brand-700); }
.ac-tile-ic.gold { background:var(--gold-100); color:var(--gold-600); }
.ac-tile-ic.green { background:#e8f8ee; color:#16a34a; }
.ac-tile b { display:block; color:var(--brand-900); font-size:15px; }
.ac-tile small { display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
.ac-dot { position:absolute; top:12px; inset-inline-start:12px; }

/* ── الجوّال ─────────────────────────────────────────────────────────────── */
@media (max-width:900px) {
  .au-card { grid-template-columns:minmax(0,1fr); }
  .au-side { order:-1; }
  .au-side-in { padding:26px 24px; }
  .au-side h2 { margin-bottom:0; font-size:24px; }
  .au-perks, .au-side-eyebrow { display:none; }
  .au-logo { width:48px; height:48px; border-radius:14px; margin-bottom:14px; }
  .ac-grid { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:620px) {
  .au { padding:16px 0 60px; }
  .au-card { border-radius:22px; }
  .au-form { padding:26px 20px 28px; }
  .au-otp { gap:10px; }
  .au-otp input { width:58px; height:64px; font-size:26px; }
  .au-steps span { font-size:12px; }
  .ac { padding:16px 0 60px; }
  .ac-hero { flex-wrap:wrap; padding:20px; gap:14px; }
  .ac-av { width:56px; height:56px; font-size:24px; border-radius:18px; }
  .ac-out { margin-inline-start:0; width:100%; }
  .ac-card { padding:18px; }
  .nav-acct-nm { display:none; }
  .nav-acct { padding:3px; }
}

/* polish */
.au-link[hidden], .au-resend [hidden] { display:none !important; }
.ac-order header > div { display:flex; align-items:baseline; gap:10px; }
.ac-order header > div b { margin:0; }
@media (max-width:620px) {
  /* compact brand strip instead of the tall navy panel */
  .au-side-in { flex-direction:row; align-items:center; justify-content:flex-start; gap:14px; padding:16px 20px; }
  .au-logo { width:44px; height:44px; margin:0; border-radius:13px; padding:6px; }
  .au-side h2 { font-size:19px; line-height:1.4; }
  .au-side h2 br { display:none; }
  /* the floating buttons would sit on top of the form fields and the submit button — hidden on these pages only */
  body:has(.au) .fab-wrap, body:has(.au) .sw, body:has(.au) .as { display:none !important; }
}

/* unified flow */
.au-fine { margin:16px 0 0; text-align:center; font-size:12.5px; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:6px; }
.au-fine svg { color:#16a34a; }
.au-ok-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 9px; border-radius:999px; background:#e8f4ee; color:#0f6b3a; font-size:12px; font-weight:800; vertical-align:middle; }
.au-steps span { white-space:nowrap; }
@media (max-width:620px) { .au-steps li + li::before { flex-basis:12px; margin-inline-end:4px; } .au-steps li { gap:6px; } .au-steps i { width:26px; height:26px; } }

.au-forgot { margin:-4px 0 0; font-size:14px; }
.au-forgot + .au-forgot, .au-submit + .au-forgot { margin-top:14px; text-align:center; }
