/* HostiGuard — التطوير 261: صفحات الدخول وإنشاء الحساب (نفس نظام drive.hostiguard.com و email.hostiguard.com) */
.hga {
  --brand: #3a6bc9; --brand-2: #2f5bb0; --brand-3: #1f4e9e; --brand-soft: #dbe7fd; --brand-xsoft: #eef4ff;
  --ink: #0f172a; --ink-2: #1e293b; --ink-3: #334155; --muted: #475569; --muted-2: #5a6a80; --faint: #94a3b8;
  --page: #f3f6fb; --line: #e1e7f0; --line-2: #e3e8f0; --fborder: #d3dbe7;
  --ok: #15803d; --ok-bg: #dcfce7; --warn-bg: #fef3c7; --bad: #b42318; --bad-bg: #fee4e2;
  --font: Inter, Almarai, system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased;
}
html[lang="ar"] .hga { --font: Almarai, Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.hga *, .hga *::before, .hga *::after { box-sizing: border-box; }
:where(.hga) :where(h1, h2, p) { margin: 0; }
.hga a { color: var(--brand-2); text-decoration: none; }
.hga a:hover { color: var(--brand-3); text-decoration: underline; }
.hga button { font: inherit; cursor: pointer; }
.hga input { font: inherit; }
.hga [hidden] { display: none !important; }
.hga :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
/* الحقول لها حلقة تركيز خاصة بها — لا نضيف إطاراً ثانياً */
.hga .hga-fx input:focus-visible, .hga .hga-otp input:focus-visible, .hga .hg-tel-input:focus-visible { outline: none; }
.hga .hg-tel-search input { outline: none; }
.hga-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hga-ltr { direction: ltr; unicode-bidi: isolate; }
.hga-wrap { display: flex; min-height: 100vh; }

/* ───────── story panel ───────── */
.hga-art { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); padding: clamp(28px, 4.4vh, 50px) clamp(32px, 3.4vw, 68px); background: var(--ink); color: #e2e8f0; position: relative; overflow: hidden; isolation: isolate; container: hga-art / inline-size; }
.hga-art::before, .hga-art::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hga-art::before { background: radial-gradient(52% 42% at 60% 58%, rgba(58, 107, 201, .32), transparent 72%), radial-gradient(38% 30% at 8% 0%, rgba(76, 127, 230, .13), transparent 70%); }
.hga-art::after { background-image: radial-gradient(rgba(148, 163, 184, .17) 1px, transparent 1.3px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(62% 52% at 60% 58%, #000 20%, transparent 78%); mask-image: radial-gradient(62% 52% at 60% 58%, #000 20%, transparent 78%); }
html[dir="rtl"] .hga-art::before { background: radial-gradient(52% 42% at 40% 58%, rgba(58, 107, 201, .32), transparent 72%), radial-gradient(38% 30% at 92% 0%, rgba(76, 127, 230, .13), transparent 70%); }
html[dir="rtl"] .hga-art::after { -webkit-mask-image: radial-gradient(62% 52% at 40% 58%, #000 20%, transparent 78%); mask-image: radial-gradient(62% 52% at 40% 58%, #000 20%, transparent 78%); }
.hga-brand { display: inline-flex; align-items: center; align-self: flex-start; }
.hga-brand img { height: 34px; width: auto; display: block; }
.hga-copy h2 { font-size: clamp(34px, 4.6cqi, 56px); font-weight: 700; letter-spacing: -.028em; line-height: 1.1; color: #fff; max-width: 14em; text-wrap: balance; }
html[lang="ar"] .hga-copy h2 { letter-spacing: 0; line-height: 1.32; font-weight: 800; }
.hga-copy h2 em { font-style: normal; color: #9ec0ff; }
.hga-copy p { font-size: clamp(15px, 1.2cqi, 17.5px); line-height: 1.65; color: #b8c4d8; margin-top: clamp(10px, 1.6vh, 18px); max-width: 36em; text-wrap: pretty; }
.hga-stage { flex: 1 1 0; min-height: 250px; position: relative; display: grid; place-items: center; }
.hga-canvas { position: relative; flex: none; width: 640px; height: 440px; transform-origin: 50% 50%; }
.hga-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px clamp(14px, 2cqi, 30px); }
@container hga-art (max-width: 640px) { .hga-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hga-feat { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.hga-feat .hga-fi { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(255, 255, 255, .08); color: #9ec0ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hga-feat .hga-fi .hga-ic { width: 19px; height: 19px; }
.hga-feat b { display: block; font-weight: 600; color: #fff; font-size: 14px; }
.hga-feat small { display: block; font-size: 12.5px; line-height: 1.45; color: #a9b7cc; margin-top: 2px; }
.hga-art-foot { font-size: 12.5px; color: #8fa0b8; }
@media (max-height: 820px) { .hga-feat small { display: none; } .hga-feat { align-items: center; } }
@media (max-width: 1100px) { .hga-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the scene: an example HostiGuard client area */
.hga-win { position: absolute; inset-block: 22px 26px; inset-inline: 0 44px; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(2, 6, 23, .55), 0 2px 8px rgba(2, 6, 23, .25); }
.hga-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: #f1f4f9; border-bottom: 1px solid #e3e8f0; }
.hga-dots { display: flex; gap: 6px; } .hga-dots i { width: 10px; height: 10px; border-radius: 50%; background: #cbd4e2; }
.hga-url { flex: 0 1 270px; margin-inline: 6px auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 24px; border-radius: 8px; background: #fff; border: 1px solid #e3e8f0; font-size: 11.5px; color: #5a6a80; font-family: Inter, sans-serif; direction: ltr; }
.hga-url .hga-ic { width: 12px; height: 12px; color: var(--ok); stroke-width: 2.2; }
.hga-wb { flex: 1 1 auto; min-height: 0; display: flex; }
.hga-side { flex: 0 0 150px; display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; background: #f8fafc; border-inline-end: 1px solid #edf1f6; }
.hga-nav { display: flex; align-items: center; gap: 9px; height: 30px; padding-inline: 10px; border-radius: 9px; font-size: 12.5px; color: #334155; }
.hga-nav .hga-ic { width: 15px; height: 15px; color: #5a6a80; }
.hga-nav.on { background: var(--brand-soft); color: var(--brand-3); font-weight: 600; }
.hga-nav.on .hga-ic { color: var(--brand-3); }
.hga-bal { margin-top: auto; padding: 10px 8px 2px; font-size: 11px; color: #5a6a80; line-height: 1.4; }
.hga-bal b { display: block; font-size: 15px; color: var(--ink); font-weight: 700; margin-top: 2px; }
.hga-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 14px 16px 0; }
.hga-mh { display: flex; align-items: center; justify-content: space-between; height: 30px; margin-bottom: 6px; }
.hga-mh b { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.hga-add { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 600; }
.hga-add .hga-ic { width: 13px; height: 13px; stroke-width: 2.4; }
.hga-svc { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 52px; padding: 0 4px; border-bottom: 1px solid #eef1f6; }
.hga-si { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.hga-si .hga-ic { width: 17px; height: 17px; }
.hga-st { min-width: 0; }
.hga-st b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hga-st small { display: block; font-size: 11px; color: #5a6a80; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hga-meter { display: inline-block; width: 64px; height: 4px; border-radius: 9px; background: #e3e8f0; vertical-align: middle; margin-inline-start: 6px; overflow: hidden; }
.hga-meter i { display: block; height: 100%; border-radius: 9px; background: var(--brand); }
.hga-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.hga-pill.ok { background: var(--ok-bg); color: #166534; }
.hga-pill.wait { background: var(--warn-bg); color: #92400e; }
.hga-pill .hga-ic { width: 11px; height: 11px; stroke-width: 2.6; }
.c-dom { background: #eef4ff; color: #2f5bb0; } .c-host { background: #ecfdf3; color: #15803d; } .c-mail { background: #fff4e5; color: #b45309; }
.c-cloud { background: #eef4ff; color: #3a6bc9; } .c-ssl { background: #f0fdf4; color: #15803d; }
.hga-card { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 15px; box-shadow: 0 24px 54px rgba(2, 6, 23, .5), 0 2px 6px rgba(2, 6, 23, .16); opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.hga-card .hga-si { width: 34px; height: 34px; }
.hga-card .hga-si .hga-ic { width: 18px; height: 18px; stroke-width: 2.2; }
.hga-card b { display: block; font-size: 12.5px; font-weight: 600; }
.hga-card small { display: block; font-size: 11px; color: #5a6a80; margin-top: 2px; }
.hga-card-ssl { top: 0; inset-inline-end: 0; width: 262px; }
.hga-card-mail { bottom: 0; inset-inline-end: 22px; width: 270px; }
.hga-stage[data-ph="ssl"] .hga-card-ssl, .hga-stage[data-ph="mail"] .hga-card-mail { opacity: 1; transform: none; }
.hga-st-done { display: none; }
.hga-stage:is([data-ph="ssl"], [data-ph="mail"]) .hga-st-wait { display: none; }
.hga-stage:is([data-ph="ssl"], [data-ph="mail"]) .hga-st-done { display: inline-flex; }
.hga-stage[data-ph="ssl"] .hga-row-ssl { background: #f6fbf7; transition: background .6s; }
.hga-spin { animation: hga-spin 1s linear infinite; transform-origin: 50% 50%; }
@keyframes hga-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hga-card, .hga-spin { transition: none; animation: none; } }

/* ───────── form panel ───────── */
.hga-form { flex: 1 1 50%; min-width: 0; display: flex; flex-direction: column; padding: 24px 40px 12px; position: relative; }
.hga-top { position: absolute; top: 24px; inset-inline-end: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; z-index: 5; }
.hga-mbrand { display: none; }
.hga-mbrand img { height: 30px; width: auto; display: block; }
.hga-lang { position: relative; margin-inline-start: auto; }
.hga-lang-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--fborder); background: #fff; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.hga-lang-btn:hover { background: var(--page); }
.hga-lang-btn .hga-ic { width: 16px; height: 16px; }
.hga-lang-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 160px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15, 23, 42, .14); }
.hga-lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.hga-lang-menu a:hover { background: var(--page); text-decoration: none; color: var(--ink); }
.hga-lang-menu a[aria-current="true"] { color: var(--brand-3); background: var(--brand-xsoft); }
.hga-mid { flex: 1 1 auto; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding-block: 40px 6px; }
.hga-card-w { width: 100%; max-width: 420px; min-width: 0; }
.hga-head { text-align: center; }
.hga-head h1 { font-size: 31px; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; color: var(--ink); }
html[lang="ar"] .hga-head h1 { letter-spacing: 0; line-height: 1.35; font-weight: 800; }
.hga-head p { font-size: 15px; line-height: 1.55; color: var(--muted); margin-top: 6px; text-wrap: pretty; }
.hga-bigic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 18px; background: linear-gradient(180deg, #edf4ff, #dfeafc); border: 1px solid #cddff6; color: var(--brand); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 6px rgba(58, 107, 201, .1); }
.hga-bigic .hga-ic { width: 30px; height: 30px; stroke-width: 1.9; }
.hga-bigic.bad { background: linear-gradient(180deg, #fff1f0, #fee4e2); border-color: #fecdca; color: var(--bad); }
.hga-bigic.ok { background: linear-gradient(180deg, #ecfdf3, #dcfce7); border-color: #bbf7d0; color: var(--ok); }

.hga-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px; border-radius: 14px; background: var(--page); border: 1px solid var(--line); }
.hga-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted-2); font-weight: 600; font-size: 14px; }
.hga-seg button .hga-ic { width: 17px; height: 17px; }
.hga-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .1), 0 0 0 1px var(--line); }
.hga-seg button[aria-selected="true"] .hga-ic { color: var(--brand); }

.hga-fg { margin-top: 14px; }
.hga-fg.first { margin-top: 18px; }
.hga-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.hga-lab label, .hga-lab .l { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.hga-lab .opt { font-weight: 500; color: var(--faint); margin-inline-start: 4px; }
.hga-lab a { font-size: 13px; font-weight: 600; }
.hga-fx { display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 14px 8px; border: 1px solid var(--fborder); border-radius: 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.hga-fx:hover { border-color: #b8c4d6; }
.hga-fx:focus-within { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 5px rgba(58, 107, 201, .13); }
.hga-fx.err { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 0 0 5px rgba(180, 35, 24, .1); }
.hga-fx .hga-fi { width: 18px; height: 18px; color: #8a99ae; transition: color .15s; }
.hga-fx:focus-within .hga-fi { color: var(--brand); }
.hga-fx input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); padding: 0; box-shadow: none; }
.hga-fx input:focus { box-shadow: none; }
.hga-fx input::placeholder { color: #98a6ba; opacity: 1; }
html[dir="rtl"] .hga-fx input[type="email"], html[dir="rtl"] .hga-fx input.ltrin { direction: ltr; text-align: right; }
html[dir="rtl"] .hga-fx input[type="email"]:placeholder-shown, html[dir="rtl"] .hga-fx input.ltrin:placeholder-shown { direction: rtl; }
.hga-ib { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 999px; background: transparent; color: #8a99ae; }
.hga-ib:hover { background: var(--page); color: var(--ink-3); }
.hga-ib.on { background: var(--brand-xsoft); color: var(--brand-3); }
.hga-ib .hga-ic { width: 18px; height: 18px; }
.hga-ferr { display: none; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #912018; }
.hga-ferr.on { display: flex; }
.hga-ferr .x { display: grid; place-items: center; width: 16px; height: 16px; flex: none; margin-top: 1px; border-radius: 50%; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.hga-hint { margin-top: 8px; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }

/* phone field (includes/phone-field) inside the new form */
.hga .hg-tel-btn { height: 52px; border-color: var(--fborder); border-radius: 14px 0 0 14px; background: #fff; font-size: 14.5px; }
.hga .hg-tel-input { height: 52px; border-color: var(--fborder); border-radius: 0 14px 14px 0; font-size: 15px; }
.hga .hg-tel-input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 5px rgba(58, 107, 201, .13); }
.hga .hg-tel.err .hg-tel-input, .hga .hg-tel.err .hg-tel-btn { border-color: var(--bad); }
html[dir="rtl"] .hga .hg-tel-btn, html[dir="rtl"] .hga .hg-tel-input { border-radius: 0; }
.hga .hg-tel[dir="ltr"] .hg-tel-btn { border-radius: 14px 0 0 14px; border-right: 0; border-left: 1px solid var(--fborder); }
.hga .hg-tel[dir="ltr"] .hg-tel-input { border-radius: 0 14px 14px 0; }
.hga .hg-tel-pop { border-radius: 14px; }
/* أيقونات حقل الهاتف بلا خط Material Symbols (غير محمّل في صفحات الدخول) */
.hga .hg-tel .material-symbols-outlined { display: inline-block; flex: none; width: 18px; height: 18px; font-size: 0 !important; line-height: 0; overflow: hidden; color: transparent; background: no-repeat center / 18px 18px; }
.hga .hg-tel-caret { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646f87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.hga .hg-tel-search .material-symbols-outlined { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646f87' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }

.hga-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.hga-strength i { height: 4px; border-radius: 9px; background: #e3e8f0; transition: background .2s; }
.hga-strength[data-s="1"] i:nth-child(-n+1) { background: #d92d20; }
.hga-strength[data-s="2"] i:nth-child(-n+2) { background: #f79009; }
.hga-strength[data-s="3"] i:nth-child(-n+3) { background: var(--brand); }
.hga-strength[data-s="4"] i { background: #16a34a; }
.hga-slab { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted-2); }
.hga-slab b { font-weight: 600; color: var(--ink-3); }

.hga-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.hga-chk { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.hga-chk input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid #b8c4d6; border-radius: 6px; background: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, border-color .15s; }
.hga-chk input:checked { background: var(--brand); border-color: var(--brand); }
.hga-chk input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.2px 2.2px; transform: translateY(-1px) rotate(-45deg); }
.hga-chk.err input { border-color: var(--bad); }

.hga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 52px; border-radius: 14px; border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.hga-btn .hga-ic { width: 18px; height: 18px; stroke-width: 2.1; }
.hga-btn-p { margin-top: 18px; background: var(--brand); color: #fff !important; box-shadow: 0 1px 2px rgba(31, 78, 158, .25), 0 8px 20px rgba(58, 107, 201, .24); }
.hga-btn-p:hover { background: var(--brand-2); }
.hga-btn-p[disabled] { background: #9db6e4; box-shadow: none; cursor: default; }
.hga-btn-o { background: #fff; border-color: var(--fborder); color: var(--ink-2) !important; }
.hga-btn-o:hover { border-color: #b8c4d6; background: #f7f9fc; }
.hga-btn .hga-sp { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: hga-spin .8s linear infinite; }
.hga-btn.busy .hga-sp { display: inline-block; } .hga-btn.busy .lbl, .hga-btn.busy .hga-ic { display: none; }
.hga-secure { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.hga-secure .hga-ic { width: 15px; height: 15px; color: var(--ok); margin-top: 1px; }
.hga-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--muted-2); font-size: 13px; }
.hga-or::before, .hga-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line-2); }
.hga-sep { height: 1px; background: var(--line-2); margin: 20px 0 14px; }
.hga-note { display: none; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.hga-note.on { display: flex; }
.hga-note.bad { background: var(--bad-bg); color: #912018; }
.hga-note.good { background: var(--ok-bg); color: #14532d; }
.hga-note .hga-ic { width: 18px; height: 18px; margin-top: 1px; }
.hga-note a { color: inherit; font-weight: 700; text-decoration: underline; }

/* code boxes */
.hga-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; direction: ltr; }
.hga-otp input { width: 100%; height: 60px; border: 1px solid var(--fborder); border-radius: 14px; text-align: center; font-family: Inter, sans-serif; font-size: 24px; font-weight: 700; color: var(--ink); background: #fff; outline: 0; padding: 0; transition: border-color .15s, box-shadow .15s; }
.hga-otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 0 0 5px rgba(58, 107, 201, .13); }
.hga-otp.err input { border-color: var(--bad); }
.hga-otp input.filled { background: var(--brand-xsoft); border-color: #b7cbf0; }
.hga-code1 { margin-top: 24px; }
.hga-code1 input { font-family: Inter, sans-serif; letter-spacing: .14em; font-weight: 600; }
.hga-resend { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 13.5px; color: var(--muted-2); flex-wrap: wrap; }
.hga-resend button, .hga-link { border: 0; background: none; color: var(--brand-2); font-weight: 600; padding: 4px 6px; border-radius: 8px; }
.hga-resend button:hover, .hga-link:hover { background: var(--brand-xsoft); }
.hga-resend button[disabled] { color: var(--faint); background: none; cursor: default; }
.hga-alt { display: flex; justify-content: center; margin-top: 14px; }
.hga-alt a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 10px; }
.hga-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 10px 6px 4px; border-radius: 10px; color: var(--ink-3) !important; font-weight: 600; font-size: 14px; }
.hga-back:hover { background: var(--brand-xsoft); text-decoration: none !important; }
.hga-back .hga-ic { width: 18px; height: 18px; }
html[dir="rtl"] .hga-back .hga-ic, html[dir="rtl"] .hga-flip { transform: scaleX(-1); }
.hga-method { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.hga-method span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.hga-method .hga-ic { width: 14px; height: 14px; color: var(--brand); }
.hga-help { margin-top: 18px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.hga-help p { font-size: 13px; color: var(--muted-2); line-height: 1.55; text-align: center; }
.hga-ways { display: grid; gap: 8px; margin-top: 12px; }
.hga-way { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); text-align: start; }
.hga-way:hover { border-color: #b7cbf0; background: var(--brand-xsoft); }
.hga-way .hga-ic { width: 18px; height: 18px; color: var(--brand); }
.hga-way small { display: block; color: var(--muted-2); font-size: 12px; }

/* captcha */
.hga-cap { display: grid; grid-template-columns: minmax(0, 1fr) 132px 44px; gap: 10px; align-items: center; }
.hga-cap .hga-fx { padding-inline: 14px; }
.hga-cap img { width: 132px; height: 52px; border-radius: 12px; border: 1px solid var(--line); background: #f6f8fc; display: block; object-fit: contain; cursor: pointer; }
.hga-cap .hga-ib { width: 44px; height: 44px; border: 1px solid var(--fborder); border-radius: 12px; }
.hga-ref-t { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; border: 0; background: none; padding: 4px 2px; color: var(--brand-2); font-weight: 600; font-size: 13.5px; }
.hga-ref-t .hga-ic { width: 16px; height: 16px; }

/* services card */
.hga-svcard { position: relative; overflow: hidden; isolation: isolate; margin-top: 16px; padding: 15px 18px 14px; border-radius: 18px; border: 1px solid #d3e2f7; background: linear-gradient(135deg, #f8fbff 0%, #eef4fe 55%, #e6eefc 100%); }
.hga-svcard::after { content: ""; position: absolute; inset: auto 0 0 auto; z-index: -1; width: 80%; height: 100%; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 220' fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Cpath d='M-10 150C90 95 210 215 430 118' stroke-opacity='.95'/%3E%3Cpath d='M-10 168C110 113 230 233 430 136' stroke-opacity='.75'/%3E%3Cpath d='M-10 186C130 131 250 251 430 154' stroke-opacity='.55'/%3E%3Cpath d='M-10 204C150 149 270 269 430 172' stroke-opacity='.38'/%3E%3C/svg%3E") right bottom / 100% auto no-repeat; }
html[dir="rtl"] .hga-svcard::after { inset: auto auto 0 0; transform: scaleX(-1); }
.hga-sv-eye { font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #64748b; }
.hga-sv-eye span:first-child { color: var(--brand); }
html[lang="ar"] .hga-sv-eye { font-size: 12.5px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .hga-sv-eye span:first-child { color: #64748b; }
html[lang="ar"] .hga-sv-eye span:last-child { color: var(--brand); }
.hga-sv-h { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-top: 5px; color: var(--ink); }
html[lang="ar"] .hga-sv-h { letter-spacing: 0; line-height: 1.45; }
.hga-sv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.hga-sv { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 3px 7px; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid #dce7f7; color: var(--ink-2) !important; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.25; }
.hga-sv:hover { text-decoration: none !important; background: #fff; border-color: #b7cbf0; color: var(--brand-3) !important; }
.hga-sv .hga-si { width: 30px; height: 30px; border-radius: 9px; }
.hga-sv-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.hga-sv-foot p { font-size: 13px; color: var(--muted); line-height: 1.45; min-width: 0; }
.hga-sv-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: 12px; background: var(--brand); color: #fff !important; font-weight: 600; font-size: 13.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(58, 107, 201, .25); }
.hga-sv-btn:hover { background: var(--brand-2); text-decoration: none !important; }
.hga-sv-btn .hga-ic { width: 16px; height: 16px; stroke-width: 2.2; }
html[dir="rtl"] .hga-sv-btn .hga-ic { transform: scaleX(-1); }

.hga-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 12.5px; color: var(--muted-2); padding-top: 10px; }
.hga-foot a { color: var(--muted-2); }
.hga-foot a:hover { color: var(--ink); }
.hga-center { text-align: center; }

@media (max-width: 900px) {
  .hga-art { display: none; }
  .hga-form { padding: 18px 20px 20px; }
  .hga-top { position: static; }
  .hga-mbrand { display: block; }
  .hga-mid { place-items: start center; padding-block: 18px 22px; }
  .hga-head h1 { font-size: 27px; }
  .hga-sv { font-size: 11.5px; }
  .hga-otp { gap: 8px; } .hga-otp input { height: 54px; font-size: 22px; }
  .hga-cap { grid-template-columns: minmax(0, 1fr) 112px 44px; } .hga-cap img { width: 112px; }
}
@media (max-width: 400px) { .hga-sv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
