:root{
  --bg:#fffdf7; --panel:#ffffff; --panel-2:#fff6e4; --line:#f0e4c8;
  --gold:#ffa502; --gold-bright:#e1701a; --muted:#93816a; --text:#241a10;
  --danger:#e4574a; --success:#00a884;
  --ease: cubic-bezier(.22,1,.36,1);

  /* Claymorphism shadow tokens tuned for a light, warm-cream surface:
     a soft warm shadow toward the bottom-right + a bright highlight
     toward the top-left, so panels read as soft raised clay. */
  --clay-out: 10px 10px 22px rgba(154,133,92,.28), -8px -8px 18px rgba(255,255,255,.9);
  --clay-out-sm: 6px 6px 14px rgba(154,133,92,.26), -5px -5px 11px rgba(255,255,255,.85);
  --clay-in: inset 4px 4px 9px rgba(154,133,92,.22), inset -3px -3px 8px rgba(255,255,255,.85);
}
*{ box-sizing:border-box; }
body{
  margin:0; background:radial-gradient(circle at 20% 0%, #fff6e2, var(--bg) 55%);
  color:var(--text); font-family:'Vazirmatn', sans-serif;
  direction:rtl; min-height:100vh;
}
a{ color:inherit; }
::selection{ background:var(--gold-bright); color:#fff6e2; }

.wrap{ max-width:920px; margin:0 auto; padding:56px 20px 90px; }

.hero{ text-align:center; margin-bottom:50px; animation:clay-rise .5s var(--ease) both; }
.hero h1{ font-size:27px; margin:0 0 12px; line-height:1.5; }
.hero p{ color:var(--muted); font-size:14px; max-width:520px; margin:0 auto; line-height:1.9; }

@keyframes clay-rise{
  from{ opacity:0; transform:translateY(16px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes clay-pop{
  from{ opacity:0; transform:translateY(10px) scale(.96); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}

.plans-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(180px,1fr)); gap:16px; margin-bottom:50px; }
.plan-card{
  background:var(--panel); border:none; border-radius:22px; padding:24px 18px; text-align:center; cursor:pointer;
  box-shadow:var(--clay-out); transition:transform .22s var(--ease), box-shadow .22s var(--ease);
  animation:clay-pop .4s var(--ease) both;
}
.plan-card:hover{ transform:translateY(-4px); box-shadow:12px 12px 26px rgba(154,133,92,.32), -8px -8px 18px rgba(255,255,255,.95); }
.plan-card.selected{
  box-shadow: var(--clay-in), 0 0 0 2px var(--gold-bright);
  background:linear-gradient(160deg, #fff8ea, #fff1d6);
}
.plan-card .title{ font-size:14px; color:var(--muted); margin-bottom:12px; }
.plan-card .price{ font-size:20px; font-weight:700; color:var(--gold-bright); margin-bottom:4px; }
.plan-card .vat-note{ font-size:11px; color:var(--muted); }

.form-panel{
  background:var(--panel); border:none; border-radius:28px; padding:34px 28px; max-width:520px; margin:0 auto;
  box-shadow:var(--clay-out); animation:clay-rise .45s var(--ease) both;
}
.form-panel h2{ font-size:16.5px; margin:0 0 22px; text-align:center; }

.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; color:var(--muted); margin-bottom:7px; font-weight:600; }
.field input{
  width:100%; padding:12px 14px; border-radius:14px; border:none; background:var(--panel-2); color:var(--text);
  font-family:inherit; font-size:13.5px; box-shadow:var(--clay-in);
  transition:box-shadow .2s var(--ease);
}
.field input:focus{
  outline:none;
  box-shadow: inset 3px 3px 8px rgba(154,133,92,.22), inset -3px -3px 7px rgba(255,255,255,.85), 0 0 0 3px rgba(225,112,26,.28);
}
.field .sub-hint{ font-size:11.5px; margin-top:7px; color:var(--muted); }
.field .sub-hint.ok{ color:var(--success); }
.field .sub-hint.bad{ color:var(--danger); }

/* ---------------- Password Visibility Toggle (دکمه‌ی چشم روی فیلد رمز عبور) ---------------- */
.pw-toggle-wrap{ position:relative; display:block; }
.pw-toggle-wrap input[type=password],
.pw-toggle-wrap input[type=text]{ width:100%; padding-inline-end:42px; }
.pw-toggle-btn{
  position:absolute; inset-inline-end:6px; top:50%; transform:translateY(-50%);
  width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  border:none; background:transparent; padding:0; margin:0; cursor:pointer;
  color:var(--muted); border-radius:9px;
  transition:color .18s var(--ease), background .18s var(--ease);
}
.pw-toggle-btn:hover{ color:var(--gold-bright); background:rgba(225,112,26,.12); }
.pw-toggle-btn:focus-visible{ outline:none; box-shadow:0 0 0 3px rgba(225,112,26,.3); }
.pw-toggle-btn svg{ display:block; }

/* Subdomain compound field: forced to render left-to-right as a single
   unit (input on the left, the base-domain suffix - e.g. ".ord24.ir",
   set dynamically via RegistrationApi.getPublicConfig() - on the right of it)
   so it stays correctly attached to the right edge of the input box
   instead of drifting to the far left of the page inside the RTL layout. */
.field .domain-preview{
  display:flex; align-items:stretch; gap:0; direction:ltr;
  border-radius:14px; box-shadow:var(--clay-in); overflow:hidden;
}
.field .domain-preview input{
  border-radius:0; text-align:left; direction:ltr; box-shadow:none; background:var(--panel-2);
}
.field .domain-preview input:focus{ box-shadow:none; }
.field .domain-preview:focus-within{
  box-shadow: inset 3px 3px 8px rgba(154,133,92,.22), inset -3px -3px 7px rgba(255,255,255,.85), 0 0 0 3px rgba(225,112,26,.28);
}
.field .domain-preview span{
  padding:12px 14px; background:#ffefd1;
  color:var(--muted); font-size:12.5px; white-space:nowrap; direction:ltr;
  display:flex; align-items:center;
}

.summary-box{ background:var(--panel-2); border:none; border-radius:16px; padding:16px 18px; margin-bottom:20px; font-size:13px; box-shadow:var(--clay-in); }
.summary-row{ display:flex; justify-content:space-between; padding:5px 0; color:var(--muted); }
.summary-row.total{ border-top:1px dashed var(--line); margin-top:7px; padding-top:11px; color:var(--gold-bright); font-weight:700; font-size:14.5px; }

.btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:14px; border-radius:16px;
  border:none; background:linear-gradient(150deg,var(--gold),var(--gold-bright)); color:#241a10; font-weight:700; font-size:14px;
  font-family:inherit; cursor:pointer;
  box-shadow: 6px 6px 16px rgba(225,112,26,.3), -3px -3px 10px rgba(255,255,255,.7);
  transition:transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease);
}
.btn:hover{ transform:translateY(-2px); filter:brightness(1.04); }
.btn:active{ transform:translateY(0) scale(.98); box-shadow:inset 3px 3px 8px rgba(150,90,10,.35), inset -2px -2px 6px rgba(255,255,255,.5); }
.btn[disabled]{ opacity:.55; cursor:not-allowed; transform:none !important; }
.form-error{ background:rgba(228,87,74,.1); border:none; box-shadow:var(--clay-in); color:#a8352a; border-radius:14px; padding:11px 13px; font-size:12.5px; margin-bottom:16px; display:none; }
.form-error.show{ display:block; animation:clay-pop .25s var(--ease); }

.loading-row{ display:flex; align-items:center; justify-content:center; gap:10px; padding:64px 20px; color:var(--muted); font-size:13px; }
.spin-ring{ width:22px; height:22px; border-radius:50%; border:2px solid rgba(255,165,2,.25); border-top-color:var(--gold-bright); animation:spin 1s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
