:root {
  --ink: #08111f;
  --panel: #0d2140;
  --panel-2: #0f2a50;
  --line: rgba(168, 196, 224, .2);
  --text: #eef3ff;
  --muted: #a8c4e0;
  --gold: #f5a623;
  --cyan: #3dd6e8;
  --green: #32d296;
  --red: #ff8c98;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--ink); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(61, 214, 232, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 214, 232, .035) 1px, transparent 1px),
    #08111f;
  background-size: 56px 56px;
  font-family: "Vazirmatn", Tahoma, sans-serif;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.account-header {
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 3px solid var(--gold);
  background: #1a3c6e;
}
.account-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(245,166,35,.55); border-radius: 50%; background: #0d2140; }
.account-brand strong { display: block; font-size: 14px; }
.account-brand small { display: block; margin-top: 1px; color: var(--gold); font-size: 9px; letter-spacing: 1.5px; direction: ltr; text-align: right; }
.back-link { padding: 7px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; color: #fff; font-size: 12px; text-decoration: none; }

.account-layout {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 56px;
}
.benefits { padding: 8px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 800; }
.benefits h1 { max-width: 650px; margin: 8px 0 12px; font-size: clamp(26px, 4vw, 40px); line-height: 1.5; letter-spacing: 0; }
.benefits > p { max-width: 650px; margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.benefits ul { display: grid; gap: 13px; margin: 26px 0; padding: 0; list-style: none; }
.benefits li { display: flex; align-items: flex-start; gap: 10px; color: #dceafa; font-size: 13px; line-height: 1.9; }
.benefits li span { width: 23px; height: 23px; flex: 0 0 auto; display: grid; place-items: center; margin-top: 4px; border-radius: 50%; background: rgba(50,210,150,.13); color: var(--green); font-weight: 900; }
.trust-note { max-width: 650px; padding: 13px 15px; border-right: 3px solid var(--cyan); background: rgba(61,214,232,.07); color: var(--muted); font-size: 12px; line-height: 1.9; }

.auth-card { min-height: 460px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: rgba(13,33,64,.94); box-shadow: 0 22px 55px rgba(0,0,0,.32); }
.account-state { min-height: 410px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.auth-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: rgba(245,166,35,.12); font-size: 20px; }
.auth-heading h2, .profile-head h2 { margin: 0; font-size: 19px; }
.auth-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,17,31,.55); }
.auth-tab { min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.auth-tab.active { background: var(--gold); color: #0f2548; }
.field { display: grid; gap: 6px; margin-bottom: 13px; }
.field label { color: #dceafa; font-size: 12px; font-weight: 700; }
.field input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid rgba(168,196,224,.28); border-radius: 7px; outline: none; background: rgba(8,17,31,.7); color: #fff; font-size: 13px; }
.field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(61,214,232,.1); }
.field input::placeholder { color: rgba(168,196,224,.48); }
.name-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.primary-button, .secondary-button { width: 100%; min-height: 42px; padding: 8px 13px; border-radius: 7px; cursor: pointer; font-weight: 900; }
.primary-button { border: 1px solid var(--gold); background: var(--gold); color: #0f2548; }
.secondary-button { margin-top: 9px; border: 1px solid var(--line); background: rgba(8,17,31,.45); color: var(--muted); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.form-switch, .privacy-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }
.form-switch button, .text-button { padding: 0; border: 0; background: transparent; color: var(--cyan); cursor: pointer; font-weight: 800; }
.text-button { margin-bottom: 12px; font-size: 11px; }
.otp-heading { margin-bottom: 15px; }
.otp-heading h3 { margin: 0 0 4px; font-size: 17px; }
.otp-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.otp-input { direction: ltr; text-align: center; font-size: 21px !important; letter-spacing: 8px; }
.auth-message { margin-top: 13px; padding: 10px 12px; border-radius: 7px; font-size: 11px; line-height: 1.8; }
.auth-message.error { border: 1px solid rgba(255,140,152,.35); background: rgba(255,77,109,.1); color: #ffc2c9; }
.auth-message.success { border: 1px solid rgba(50,210,150,.35); background: rgba(50,210,150,.1); color: #9af0cf; }
.profile-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-head > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(50,210,150,.15); color: var(--green); font-size: 20px; }
.profile-head small { color: var(--green); font-size: 10px; }
.profile-details { display: grid; gap: 0; margin: 18px 0; }
.profile-details div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(168,196,224,.1); }
.profile-details dt { color: var(--muted); font-size: 11px; }
.profile-details dd { margin: 0; color: #fff; font-size: 12px; font-weight: 700; }
.link-button { display: grid; place-items: center; text-decoration: none; font-size: 13px; }

@media (max-width: 780px) {
  .account-header { min-height: 58px; padding: 8px 12px; }
  .account-brand strong { font-size: 12px; }
  .brand-mark { width: 34px; height: 34px; }
  .back-link { padding: 6px 9px; font-size: 10px; }
  .account-layout { width: min(100% - 24px, 500px); padding: 24px 0 40px; grid-template-columns: 1fr; gap: 22px; }
  .benefits { padding: 0 3px; }
  .benefits h1 { margin-top: 5px; font-size: 23px; }
  .benefits > p { font-size: 12px; }
  .benefits ul { margin: 18px 0; gap: 9px; }
  .benefits li { font-size: 11px; }
  .trust-note { font-size: 10px; }
  .auth-card { min-height: 430px; padding: 18px; }
}

@media (max-width: 390px) {
  .name-grid { grid-template-columns: 1fr; gap: 0; }
}
