
:root{
  --bg1:#0A0E27; --bg2:#1B1F3B;
  --gold1:#FFD700; --gold2:#FFA500;
  --text:#FFFFFF; --muted:#B8B8B8; --silver:#C0C0C0;
  --danger:#FF4444;
  --card:rgba(255,255,255,.08);
  --card2:rgba(255,255,255,.05);
  --border:rgba(255,255,255,.18);
  --border2:rgba(255,255,255,.10);
  --shadow:0 8px 32px rgba(0,0,0,.4);
  --radius-lg:24px; --radius-md:12px;
  --t:.3s ease;
}
*{box-sizing:border-box}
html,body{height:100%; width:100%}
body{
  margin:0;
  font-family:"Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  direction:rtl;
  color:var(--text);
  background: radial-gradient(1000px 700px at 20% 10%, rgba(255,215,0,.09), transparent 60%),
              radial-gradient(900px 700px at 80% 90%, rgba(79,70,229,.14), transparent 55%),
              linear-gradient(180deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}
a{color:var(--gold1); text-decoration:none}
a:hover{opacity:.9}
.container{
  width:min(390px,100%);
  min-height:844px;
  margin:0 auto;
  position:relative;
  padding-bottom:120px;
}
.top-area{height:120px; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:10px; padding-top:22px;}
.logo{
  width:64px; height:64px;
  border-radius:18px;
  display:grid; place-items:center;
  background:rgba(255,215,0,.06);
  border:1px solid rgba(255,215,0,.25);
  box-shadow:0 0 0 1px rgba(255,215,0,.08), 0 10px 30px rgba(0,0,0,.35);
}
.brand{
  font-weight:800;
  font-size:28px;
  line-height:1;
  background:linear-gradient(90deg,var(--gold1),var(--gold2));
  -webkit-background-clip:text; background-clip:text;
  color:transparent;
}
.glass{
  background:var(--card);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius:var(--radius-lg);
}
.card{
  width:350px;
  max-width: calc(100% - 32px);
  margin: 20px auto 0;
  padding:32px;
}
.h1{font-size:22px; font-weight:700; margin:0 0 6px}
.sub{font-size:14px; color:var(--muted); margin:0 0 24px}
.field{margin-bottom:16px}
.label{font-size:12px; color:rgba(255,255,255,.7); margin:0 0 8px}
.input-wrap{
  position:relative;
  height:56px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  display:flex; align-items:center;
  transition: border var(--t), box-shadow var(--t);
}
.input-wrap:focus-within{
  border-color:rgba(255,215,0,.8);
  box-shadow:0 0 0 3px rgba(255,215,0,.12);
}
.input{
  width:100%;
  height:100%;
  border:0;
  outline:0;
  background:transparent;
  color:#fff;
  padding:0 48px 0 48px; /* RTL: icon right, action left */
  font-size:14px;
}
.input::placeholder{color:#808080}
.icon-right{
  position:absolute;
  right:14px;
  width:22px; height:22px;
  display:grid; place-items:center;
  color:var(--silver);
  opacity:.95;
}
.icon-left{
  position:absolute;
  left:10px;
  width:36px; height:36px;
  border-radius:10px;
  display:grid; place-items:center;
  color:rgba(255,255,255,.75);
  cursor:pointer;
  transition: transform var(--t), background var(--t);
}
.icon-left:hover{transform:scale(1.05); background:rgba(255,255,255,.06)}
.row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0 28px}
.chk{display:flex; align-items:center; gap:10px; color:rgba(255,255,255,.85); font-size:13px}
.chk input{accent-color: var(--gold1)}
.small-link{font-size:13px}
.btn{
  width:100%;
  height:56px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:800;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  position:relative;
  overflow:hidden;
  user-select:none;
}
.btn:disabled{opacity:.55; cursor:not-allowed; transform:none !important; box-shadow:none !important}
.btn-primary{
  background: linear-gradient(90deg, var(--gold1), var(--gold2));
  color:#1A1A1A;
  box-shadow:0 10px 30px rgba(255,165,0,.12);
}
.btn-outline{
  background:transparent;
  border:2px solid rgba(255,215,0,.75);
  color:var(--gold1);
}
.btn:hover{transform: translateY(-2px) scale(1.02); box-shadow:0 14px 40px rgba(0,0,0,.45)}
.btn .spinner{
  width:18px; height:18px;
  border-radius:50%;
  border:2px solid rgba(26,26,26,.35);
  border-top-color: rgba(26,26,26,.9);
  animation: spin 1s linear infinite;
  display:none;
}
.btn.loading .spinner{display:inline-block}
.btn.loading .btn-text{opacity:.65}
@keyframes spin{to{transform:rotate(360deg)}}
.divider{
  display:flex; align-items:center; justify-content:center;
  gap:12px;
  margin:16px 0;
  color:rgba(255,255,255,.75);
  font-size:13px;
}
.divider:before,.divider:after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(255,255,255,.12);
}
.divider span{
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.15);
  backdrop-filter: blur(8px);
}
.err{margin-top:8px; font-size:12px; color:var(--danger); display:none; gap:6px; align-items:center}
.err.show{display:flex}
.strength{margin-top:8px; display:none}
.strength.show{display:block}
.strength .bar{height:6px; border-radius:999px; background:rgba(255,255,255,.10); overflow:hidden}
.strength .bar>i{display:block; height:100%; width:0%; background:#ef4444; transition:width var(--t), filter var(--t)}
.strength .txt{margin-top:6px; font-size:12px; color:rgba(255,255,255,.78)}
.footer{
  position:absolute;
  left:0; right:0;
  bottom:20px;
  text-align:center;
  font-size:11px;
  color:rgba(255,255,255,.65);
  padding:0 18px;
}
.footer .links{margin-top:8px; display:flex; justify-content:center; gap:10px; flex-wrap:wrap}
.particles{position:fixed; inset:0; z-index:-1; filter: blur(.2px)}
/* bottom nav */
.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:20px;
  width:min(370px, calc(100% - 36px));
  height:74px;
  border-radius:999px;
  background:rgba(0,0,0,.60);
  border:1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display:flex;
  align-items:center;
  justify-content:space-around;
  z-index:50;
}
.nav-item{
  width:64px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  color:rgba(255,255,255,.65);
  font-size:11px;
  user-select:none;
  cursor:pointer;
}
.nav-item svg{width:22px; height:22px}
.nav-item.active{color:var(--gold1)}
.nav-item.active .dot{
  width:28px; height:4px; border-radius:999px;
  background:rgba(255,215,0,.85);
  box-shadow:0 0 18px rgba(255,215,0,.35);
}
.nav-item .dot{width:28px; height:4px; border-radius:999px; background:transparent}
/* bottom sheet */
.sheet-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display:none;
  z-index:80;
}
.sheet{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:-520px;
  width:min(390px, 100%);
  border-radius:24px 24px 0 0;
  background:rgba(15,19,37,.85);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 -12px 40px rgba(0,0,0,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding:16px 18px 22px;
  z-index:90;
  transition: bottom .35s ease;
}
.sheet.open{bottom:0}
.sheet-backdrop.show{display:block}
.sheet .handle{
  width:56px; height:5px; border-radius:999px;
  margin:6px auto 14px;
  background:rgba(255,255,255,.20);
}
.sheet h3{margin:0 0 10px; font-size:16px}
.sheet p{margin:0 0 14px; color:rgba(255,255,255,.68); font-size:13px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
  transition: transform var(--t), background var(--t);
}
.pill:hover{transform: translateY(-1px); background:rgba(255,255,255,.08)}
.grid2{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.notice{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.85);
  font-size:12px;
}
