/* Auth pages + header account slot — MediaHouse99 theme */
.auth-slot{display:flex;align-items:center;margin-inline-end:.15rem}
.auth-links{display:flex;align-items:center;gap:.35rem;font-weight:800;font-size:.9rem;white-space:nowrap}
.auth-link{color:inherit;text-decoration:none;opacity:.92}
.auth-link:hover{opacity:1;color:var(--accent,#2563eb)}
.nav.scrolled .auth-link,.nav.solid .auth-link{color:var(--ink,#0f172a)}
.nav:not(.scrolled):not(.solid) .auth-link{color:#fff}
.nav:not(.scrolled):not(.solid) .auth-link:hover{color:#bfdbfe}
.auth-sep{opacity:.45;font-weight:600}
.auth-register{padding:.35rem .7rem;border-radius:999px;background:rgba(37,99,235,.12);color:var(--accent,#2563eb)!important}
.nav:not(.scrolled):not(.solid) .auth-register{background:rgba(255,255,255,.14);color:#fff!important}
.auth-avatar-btn{
  display:inline-flex;align-items:center;gap:.5rem;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  color:#fff;border-radius:999px;padding:.22rem .7rem .22rem .22rem;cursor:pointer;font-weight:800;
}
.nav.scrolled .auth-avatar-btn,.nav.solid .auth-avatar-btn{
  background:#eaf2fd;border-color:var(--line,#e5e7eb);color:var(--ink,#0f172a);
}
.auth-av{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:var(--accent,#2563eb);color:#fff;font-size:.72rem;font-weight:900;
}
.auth-name{max-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem}
.auth-menu{position:relative}
.auth-drop{
  position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:180px;
  background:#fff;color:var(--ink,#0f172a);border:1px solid var(--line,#e5e7eb);
  border-radius:14px;box-shadow:0 18px 40px -20px rgba(15,23,42,.45);padding:.4rem;z-index:80;
}
.auth-drop a,.auth-drop button{
  display:block;width:100%;text-align:right;background:none;border:0;padding:.55rem .7rem;
  border-radius:10px;font-weight:700;color:var(--ink,#0f172a);text-decoration:none;cursor:pointer;font-size:.92rem;
}
.auth-drop a:hover,.auth-drop button:hover{background:#eaf2fd}
.auth-drop button[data-auth-logout]{color:#b91c1c}
@media (max-width:920px){
  .auth-name{display:none}
  .auth-links{font-size:.8rem}
  .auth-register{padding:.3rem .55rem}
}
.auth-mobile{margin-top:.4rem}

/* pages */
.auth-page{background:var(--bg,#fafaf9);min-height:100vh}
.auth-wrap{max-width:480px;margin:-40px auto 60px;position:relative;z-index:3;padding:0 16px}
.auth-card{background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:28px;padding:2rem 1.7rem 1.7rem;box-shadow:0 24px 50px -32px rgba(15,23,42,.35)}
.auth-card h2{font-size:1.45rem;font-weight:900;margin:0 0 .35rem}
.auth-lead{color:var(--muted,#64748b);font-weight:600;margin:0 0 1.3rem;line-height:1.7}
.field-icon{position:relative}
.field-icon input{padding-inline-end:2.7rem}
.pass-toggle{
  position:absolute;inset-inline-end:.55rem;top:50%;transform:translateY(-50%);
  width:34px;height:34px;border:0;background:transparent;color:#64748b;cursor:pointer;border-radius:8px;
}
.pass-toggle:hover{background:#eaf2fd;color:var(--accent,#2563eb)}
.pass-toggle svg{width:20px;height:20px;display:block;margin:auto}
.pw-meter{display:flex;gap:4px;margin:.35rem 0 .15rem}
.pw-meter i{flex:1;height:5px;border-radius:99px;background:#e5e7eb}
.pw-meter[data-s="1"] i:nth-child(-n+1){background:#e5384f}
.pw-meter[data-s="2"] i:nth-child(-n+2){background:#f59e0b}
.pw-meter[data-s="3"] i:nth-child(-n+3){background:#2563eb}
.pw-meter[data-s="4"] i{background:#16a34a}
.pw-hint{font-size:.82rem;font-weight:700;color:var(--muted,#64748b)}
.check-row{display:flex;align-items:flex-start;gap:.6rem;margin:1rem 0 1.1rem;font-weight:700;font-size:.92rem;line-height:1.6}
.check-row input{margin-top:.3rem;accent-color:var(--accent,#2563eb);width:16px;height:16px;flex:0 0 auto}
.auth-alt{text-align:center;margin:1.1rem 0 0;font-weight:700;color:var(--muted,#64748b)}
.auth-alt a{color:var(--accent,#2563eb);font-weight:800;text-decoration:none}
.auth-alt a:hover{text-decoration:underline}
.auth-error,.form-error{
  display:none;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:12px;
  padding:.7rem .9rem;font-weight:700;margin:0 0 1rem;
}
.auth-error.show,.form-error.show{display:block}
.auth-ok{display:none;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;border-radius:12px;padding:.7rem .9rem;font-weight:700;margin:0 0 1rem}
.auth-ok.show{display:block}
.forgot-btn{background:none;border:0;color:var(--accent,#2563eb);font-weight:800;cursor:pointer;padding:0;font-size:.9rem}
.forgot-note{
  display:none;margin:.7rem 0 0;padding:.85rem 1rem;border-radius:14px;background:#eaf2fd;
  color:var(--ink,#0f172a);font-weight:600;line-height:1.75;font-size:.9rem;
}
.forgot-note.show{display:block}
.remember{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.2rem 0 1.1rem;flex-wrap:wrap}
.remember label{display:flex;align-items:center;gap:.45rem;font-weight:700;cursor:pointer}
.remember input{accent-color:var(--accent,#2563eb)}

/* account */
.acct-wrap{max-width:980px;margin:-40px auto 70px;position:relative;z-index:3;padding:0 16px}
.acct-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:1.2rem}
.acct-profile .who{display:flex;align-items:center;gap:.9rem;margin-bottom:1.1rem}
.acct-av{width:56px;height:56px;border-radius:50%;background:var(--accent,#2563eb);color:#fff;display:grid;place-items:center;font-weight:900;font-size:1.2rem}
.order-list{display:flex;flex-direction:column;gap:.8rem}
.order-card{border:1px solid var(--line,#e5e7eb);border-radius:16px;padding:1rem 1.1rem;background:#fafaf9}
.order-card header{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;margin-bottom:.55rem}
.order-card .oid{font-weight:900;font-family:ui-monospace,monospace;direction:ltr}
.order-card .ost{font-weight:800;font-size:.82rem;color:#2563eb;background:#eaf2fd;border-radius:999px;padding:.15rem .6rem}
.order-card ul{margin:0;padding:0;list-style:none}
.order-card li{display:flex;justify-content:space-between;gap:.6rem;font-weight:600;padding:.2rem 0}
.order-empty{text-align:center;color:var(--muted,#64748b);font-weight:700;padding:1.4rem .5rem}
@media (max-width:860px){.acct-grid{grid-template-columns:1fr}}

/* Auth links belong only in #authSlot. Hide any leftover clones in the nav bar
   (they used to duplicate تسجيل الدخول / إنشاء حساب on desktop). */
.nav-links .auth-mobile,
.nav-links [data-auth-injected]{display:none !important}

.crypto-box{display:flex;flex-direction:column;gap:1rem;align-items:stretch}
.crypto-amount,.crypto-addr{background:#f8fafc;border:1px solid var(--line,#e2e8f0);border-radius:16px;padding:1rem;text-align:center}
.crypto-amount span,.crypto-addr span{display:block;color:var(--muted,#64748b);font-weight:700;font-size:.85rem;margin-bottom:.35rem}
.crypto-amount strong{display:block;font-size:2rem;font-weight:900;color:#0f172a;letter-spacing:-.5px;direction:ltr}
.crypto-addr code{display:block;font-size:.92rem;font-weight:800;color:#0f172a;word-break:break-all;line-height:1.6}
.crypto-qr{display:flex;justify-content:center}
.crypto-qr svg{width:220px;height:220px;border:8px solid #fff;border-radius:16px;box-shadow:0 10px 30px -18px rgba(15,23,42,.4)}
.btn-copy{margin-top:.6rem;border:1.5px solid var(--line,#e2e8f0);background:#fff;border-radius:12px;padding:.4rem 1rem;font-weight:800;cursor:pointer;color:#0f172a}
.btn-copy:hover{background:#eff6ff}
.crypto-warn{margin:0;padding:.2rem 1.2rem 0;color:#9a3412;background:#fff7ed;border:1px solid #fdba74;border-radius:14px;padding:12px 14px 12px 2rem;font-weight:700;line-height:1.8;font-size:.9rem}
.crypto-warn b{color:#0f172a}
