/* ==========================================================================
   Fikrova customer brand system
   Umbrella tokens stay neutral; product classes provide the full customer skin.
   ========================================================================== */

.portal-shell-body {
  --fikrova-gradient: linear-gradient(135deg, #4ee0c8 0%, #46b6f2 38%, #6d4bff 78%, #a47bff 100%);
  --brand-accent-2: #46b6f2;
  --brand-warm: #b45309;
  --brand-panel: var(--bg-1);
  --brand-panel-soft: var(--bg-2);
  --brand-glow: rgba(20, 184, 166, 0.14);
  background:
    radial-gradient(circle at 16% 14%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 34rem),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--brand-warm) 11%, transparent), transparent 30rem),
    linear-gradient(135deg, var(--bg-0), color-mix(in srgb, var(--bg-0) 86%, var(--accent) 14%));
  color: var(--text-1);
}

.portal-shell-body.product-madrasati {
  --bg-0: #f8fafc;
  --bg-1: #ffffff;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --border-faint: rgba(15, 23, 42, 0.07);
  --text-1: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --accent: #0f766e;
  --accent-hover: #0e665f;
  --accent-fg: #ffffff;
  --accent-tint: rgba(15, 118, 110, 0.1);
  --accent-ring: rgba(15, 118, 110, 0.3);
  --brand-accent-2: #14b8a6;
  --brand-warm: #b45309;
  --brand-warm-soft: rgba(180, 83, 9, 0.12);
  --brand-panel: rgba(255, 255, 255, 0.92);
  --brand-panel-soft: rgba(241, 245, 249, 0.78);
  --brand-glow: rgba(20, 184, 166, 0.18);
  --shadow-1: 0 16px 44px rgba(15, 23, 42, 0.08);
  --shadow-2: 0 26px 80px rgba(15, 23, 42, 0.14);
}

:root[data-theme="dark"] .portal-shell-body.product-madrasati {
  --bg-0: #0b1220;
  --bg-1: #111827;
  --bg-2: #1f2937;
  --bg-3: #334155;
  --border: #2b3648;
  --border-strong: #334155;
  --border-faint: rgba(255, 255, 255, 0.06);
  --text-1: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #64748b;
  --accent: #14b8a6;
  --accent-hover: #2dd4bf;
  --accent-fg: #04201d;
  --accent-tint: rgba(20, 184, 166, 0.14);
  --accent-ring: rgba(20, 184, 166, 0.32);
  --brand-accent-2: #38bdf8;
  --brand-warm: #d97706;
  --brand-warm-soft: rgba(217, 119, 6, 0.16);
  --brand-panel: rgba(17, 24, 39, 0.9);
  --brand-panel-soft: rgba(31, 41, 55, 0.78);
  --brand-glow: rgba(20, 184, 166, 0.16);
  --shadow-1: 0 18px 48px rgba(0, 0, 0, 0.26);
  --shadow-2: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.portal-shell-body .marketing-page {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  isolation: isolate;
}

.portal-shell-body .marketing-page::before,
.portal-shell-body .marketing-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(14px);
}

.portal-shell-body .marketing-page::before {
  width: 34rem;
  height: 34rem;
  inset-block-start: -18rem;
  inset-inline-start: -12rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 18%, transparent), transparent 66%);
}

.portal-shell-body .marketing-page::after {
  width: 32rem;
  height: 32rem;
  inset-block-end: -18rem;
  inset-inline-end: -10rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand-warm) 14%, transparent), transparent 68%);
}

.portal-shell-body .portal-page,
.portal-shell-body .portal-auth-shell,
.portal-shell-body .portal-onboarding-shell {
  background: transparent;
}

.portal-shell-body .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--brand-accent-2));
  color: var(--accent-fg);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 24%, transparent);
}

.portal-shell-body .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
  transform: translateY(-1px);
}

.portal-shell-body .btn-outline,
.portal-shell-body .btn-auth-ghost {
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  border-color: var(--border);
  color: var(--text-1);
}

.portal-shell-body .btn-outline:hover,
.portal-shell-body .btn-auth-ghost:hover {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  background: var(--accent-tint);
  color: var(--accent);
}

.portal-shell-body .form-control,
.portal-shell-body .form-select,
.portal-shell-body .portal-country-trigger {
  min-height: 46px;
  border-radius: 14px;
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  color: var(--text-1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-shell-body .form-control:focus,
.portal-shell-body .form-select:focus,
.portal-shell-body .portal-country-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.portal-shell-body .form-control::placeholder {
  color: color-mix(in srgb, var(--text-3) 78%, transparent);
}

.portal-auth-tools,
.portal-top-actions.brand-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portal-auth-tools {
  position: absolute;
  z-index: 4;
  inset-block-start: 22px;
  inset-inline-end: 22px;
}

.portal-shell-body .theme-toggle.portal-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  color: var(--accent);
  box-shadow: var(--shadow-1);
}

.portal-shell-body .theme-toggle.portal-theme-toggle:hover {
  background: var(--accent-tint);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}

.portal-shell-body .theme-toggle.portal-theme-toggle svg {
  width: 17px;
  height: 17px;
}

.portal-shell-body .portal-auth-layout {
  position: relative;
  max-width: 1060px;
  min-height: 640px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 30px;
  background: var(--brand-panel);
  box-shadow: var(--shadow-2);
  backdrop-filter: blur(20px);
}

.portal-shell-body .portal-auth-layout::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset-inline: 26px;
  inset-block-start: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--brand-warm), var(--brand-accent-2));
  opacity: 0.86;
}

.portal-shell-body .portal-auth-card {
  padding: 72px 46px 42px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-1) 94%, transparent), color-mix(in srgb, var(--bg-2) 42%, transparent)),
    var(--bg-1);
}

.portal-shell-body .portal-form-pane {
  max-width: 390px;
  min-height: 100%;
  justify-content: center;
  margin-inline: auto;
}

.portal-shell-body .portal-auth-language,
.portal-shell-body .portal-language {
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 76%, transparent);
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.portal-shell-body .portal-language a {
  min-width: 34px;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0;
}

.portal-shell-body .portal-language a.active {
  background: var(--accent-tint);
  color: var(--accent);
  box-shadow: none;
}

.portal-shell-body .portal-auth-card-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.portal-shell-body .portal-auth-card-head p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

.portal-shell-body .portal-auth-form,
.portal-shell-body .portal-register-form {
  gap: 14px;
}

.portal-shell-body .portal-input-wrap .form-control {
  height: 48px;
  padding-inline-start: 44px;
}

.portal-shell-body .portal-auth-icon {
  inset-inline-start: 15px;
  color: color-mix(in srgb, var(--accent) 45%, var(--text-3));
}

[dir="rtl"] .portal-shell-body .portal-auth-icon {
  inset-inline-start: auto;
  inset-inline-end: 15px;
}

[dir="rtl"] .portal-shell-body .portal-input-wrap .form-control {
  padding-inline-start: 14px;
  padding-inline-end: 44px;
}

.portal-shell-body .portal-auth-icon svg {
  width: 17px;
  height: 17px;
}

.portal-shell-body .portal-forgot-link,
.portal-shell-body .portal-auth-switch button,
.portal-shell-body .portal-auth-switch a {
  color: var(--accent);
  font-weight: 700;
}

.portal-shell-body .portal-auth-switch {
  border-top-color: var(--border-faint);
  color: var(--text-2);
}

.portal-shell-body .portal-auth-copy {
  border-left: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), transparent 11rem),
    radial-gradient(circle at 80% 78%, color-mix(in srgb, var(--brand-warm) 28%, transparent), transparent 15rem),
    linear-gradient(145deg, #0b1220 0%, #115e59 58%, #0f766e 100%);
  color: #ffffff;
  padding: 54px 48px;
}

[dir="rtl"] .portal-shell-body .portal-auth-copy {
  border-left: 0;
  border-right: 0;
}

.portal-shell-body .portal-auth-copy::before {
  background:
    radial-gradient(circle at 24% 40%, rgba(255, 255, 255, 0.12) 0 1px, transparent 1.5px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 38%);
  background-size: 34px 34px, auto;
  opacity: 0.8;
  mask-image: none;
  -webkit-mask-image: none;
}

.portal-shell-body .portal-auth-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  inset-block-end: -80px;
  inset-inline-end: -70px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.portal-shell-body .portal-auth-copy .portal-auth-brand,
.portal-shell-body .portal-auth-copy .portal-auth-copy-center h1,
.portal-shell-body .portal-auth-copy .portal-auth-copy-center p {
  color: #ffffff;
}

.portal-shell-body .portal-auth-copy .portal-auth-copy-center p {
  color: rgba(255, 255, 255, 0.78);
}

.portal-shell-body .portal-auth-brand {
  align-items: flex-start;
}

.portal-shell-body .portal-auth-brand > span:not(.portal-auth-brand-mark) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.portal-shell-body .portal-auth-brand small,
.portal-shell-body .portal-brand small {
  display: block;
  color: inherit;
  opacity: 0.68;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
}

.portal-shell-body .portal-auth-brand-mark,
.portal-shell-body .portal-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.portal-shell-body .portal-auth-copy-center {
  margin-block: auto;
  gap: 18px;
}

.portal-shell-body .portal-auth-shell.is-login .portal-copy-login,
.portal-shell-body .portal-auth-shell.is-signup .portal-copy-signup {
  display: flex;
}

.portal-shell-body .portal-auth-shell.is-login .portal-copy-signup,
.portal-shell-body .portal-auth-shell.is-signup .portal-copy-login {
  display: none;
}

.portal-shell-body .portal-auth-copy-center h1 {
  max-width: 13ch;
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.04;
}

.portal-shell-body .portal-auth-copy-center p {
  font-size: 15px;
  line-height: 1.7;
}

.portal-shell-body .btn-auth-ghost {
  height: 44px;
  padding-inline: 22px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.portal-shell-body .btn-auth-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.portal-powered-by {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
}

.portal-powered-by img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.portal-powered-inline {
  justify-content: center;
  color: var(--text-3);
  margin: 0 auto;
}

.portal-shell-body .portal-country-trigger {
  height: 48px;
  padding-inline-start: 44px;
}

.portal-shell-body .portal-country-menu {
  border-radius: 18px;
  box-shadow: var(--shadow-2);
}

.portal-shell-body .portal-country-option {
  border-radius: 12px;
}

.portal-shell-body .portal-country-option.is-selected {
  background: var(--accent-tint);
  color: var(--accent);
}

.portal-shell-body .portal-onboarding-shell {
  max-width: 860px;
  padding-block: 42px;
  gap: 24px;
}

.portal-shell-body .portal-top {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(18px);
}

.portal-shell-body .portal-onboarding-card,
.portal-shell-body .portal-verify-card,
.portal-shell-body .portal-trial-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 36px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--bg-1) 94%, transparent), color-mix(in srgb, var(--bg-2) 76%, transparent)),
    var(--bg-1);
  box-shadow: var(--shadow-2);
  border-color: color-mix(in srgb, var(--border) 82%, transparent);
}

.portal-shell-body .portal-onboarding-card::before,
.portal-shell-body .portal-verify-card::before,
.portal-shell-body .portal-trial-card::before {
  content: "";
  position: absolute;
  inset-inline: 28px;
  inset-block-start: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--brand-warm), var(--brand-accent-2));
}

.portal-shell-body .portal-onboarding-copy h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-1);
}

.portal-shell-body .portal-onboarding-copy p {
  font-size: 15px;
  line-height: 1.7;
}

.portal-shell-body .portal-email-chip,
.portal-shell-body .portal-dev-code {
  border-radius: 16px;
  background: var(--brand-panel-soft);
}

.portal-shell-body .portal-code-input {
  min-height: 58px;
  border-radius: 18px;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.portal-shell-body .portal-alert {
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 16px;
  padding: 12px 14px;
}

@media (max-width: 920px) {
  .portal-shell-body .portal-auth-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .portal-shell-body .portal-auth-card {
    padding: 76px 28px 32px;
  }

  .portal-shell-body .portal-auth-copy {
    display: none !important;
  }

  .portal-auth-tools {
    inset-inline-end: 18px;
    inset-block-start: 18px;
  }
}

@media (max-width: 640px) {
  .portal-shell-body .portal-auth-shell,
  .portal-shell-body .portal-onboarding-shell {
    padding: 16px;
  }

  .portal-shell-body .portal-auth-layout,
  .portal-shell-body .portal-onboarding-card,
  .portal-shell-body .portal-verify-card,
  .portal-shell-body .portal-trial-card,
  .portal-shell-body .portal-top {
    border-radius: 22px;
  }

  .portal-shell-body .portal-auth-card {
    padding-inline: 22px;
  }

  .portal-shell-body .portal-auth-card-head h2,
  .portal-shell-body .portal-onboarding-copy h1 {
    font-size: 28px;
  }

  .portal-shell-body .portal-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal-shell-body .btn-primary:hover {
    transform: none;
  }
}

/* Higher-specificity guards for the shared app-v2 controls. */
.portal-shell-body button.btn.btn-primary,
.portal-shell-body a.btn.btn-primary,
.portal-shell-body input.btn.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--brand-accent-2));
  color: var(--accent-fg);
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 24%, transparent);
}

.portal-shell-body button.btn.btn-primary:hover,
.portal-shell-body a.btn.btn-primary:hover,
.portal-shell-body input.btn.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent));
}

.portal-shell-body button.btn.btn-auth-ghost,
.portal-shell-body a.btn.btn-auth-ghost {
  height: 44px;
  padding-inline: 22px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.portal-shell-body button.btn.btn-auth-ghost:hover,
.portal-shell-body a.btn.btn-auth-ghost:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.portal-shell-body .portal-input-wrap input.form-control,
.portal-shell-body .portal-input-wrap select.form-select,
.portal-shell-body .portal-country-picker button.portal-country-trigger {
  min-height: 48px;
  border-radius: 14px;
  border-color: var(--border);
  background: color-mix(in srgb, var(--bg-2) 66%, var(--bg-1));
  color: var(--text-1);
}

.portal-shell-body .portal-input-wrap input.form-control {
  padding-inline-start: 44px;
}

[dir="rtl"] .portal-shell-body .portal-input-wrap input.form-control {
  padding-inline-start: 14px;
  padding-inline-end: 44px;
}

.portal-shell-body .portal-input-wrap input.form-control::placeholder {
  color: color-mix(in srgb, var(--text-3) 78%, transparent);
}

.portal-shell-body .portal-country-trigger-flag[hidden],
.portal-shell-body .portal-country-trigger:not(.has-value) .portal-country-trigger-flag {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Preview-aligned auth theme
   This keeps the working portal forms but matches .brand-preview: compact,
   product-branded cards with Fikrova as the umbrella mark.
   -------------------------------------------------------------------------- */

.portal-shell-body .portal-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 56px 20px;
  background: var(--bg-0);
}

.portal-shell-body,
.portal-shell-body .marketing-page {
  background: var(--bg-0) !important;
}

.portal-shell-body .marketing-page::before,
.portal-shell-body .marketing-page::after {
  display: none !important;
}

.portal-shell-body .portal-auth-layout {
  display: block !important;
  width: min(100%, 382px);
  max-width: 382px !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.portal-shell-body .portal-auth-layout::before {
  display: none !important;
}

.portal-shell-body .portal-auth-copy {
  display: none !important;
}

.portal-shell-body .portal-auth-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 30px 26px !important;
  background: var(--bg-1);
  box-shadow:
    0 18px 40px -24px color-mix(in srgb, var(--accent) 36%, transparent),
    0 2px 6px rgba(15, 23, 42, 0.05);
}

.portal-shell-body .portal-auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--brand-accent-2));
}

.portal-shell-body .portal-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 6px 0 20px;
  color: var(--text-1);
  text-decoration: none;
}

.portal-shell-body .portal-card-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.portal-shell-body .portal-card-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-shell-body .portal-card-brand strong {
  display: block;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.portal-shell-body .portal-card-brand small {
  display: none;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.portal-shell-body .portal-form-pane {
  max-width: none;
  min-height: 0;
  justify-content: flex-start;
  margin: 0;
}

.portal-shell-body .portal-auth-language,
.portal-shell-body .portal-language {
  position: fixed;
  z-index: 3;
  top: 22px;
  left: 22px;
  width: max-content;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border));
}

[dir="rtl"] .portal-shell-body .portal-auth-language,
[dir="rtl"] .portal-shell-body .portal-language {
  right: auto;
  left: 22px;
  margin: 0;
}

.portal-shell-body .portal-language a {
  min-width: 33px;
  height: 30px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.portal-shell-body .portal-language a.active {
  background: var(--bg-1);
  color: var(--accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 13%, transparent);
}

.portal-shell-body .portal-auth-card-head {
  margin-bottom: 22px;
}

.portal-shell-body .portal-auth-card-head h2 {
  color: var(--text-1);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.portal-shell-body .portal-auth-card-head p {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
}

.portal-shell-body .portal-auth-form,
.portal-shell-body .portal-register-form {
  gap: 12px;
}

.portal-shell-body .portal-input-wrap input.form-control,
.portal-shell-body .portal-country-picker button.portal-country-trigger {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-1) 80%, var(--bg-2));
}

.portal-shell-body .portal-input-wrap input.form-control:focus,
.portal-shell-body .portal-country-picker button.portal-country-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.portal-shell-body .portal-input-wrap .form-control {
  height: 46px;
  padding-inline-start: 40px;
}

[dir="rtl"] .portal-shell-body .portal-input-wrap .form-control {
  padding-inline-start: 14px;
  padding-inline-end: 40px;
}

.portal-shell-body .portal-auth-icon {
  inset-inline-start: 13px;
  color: color-mix(in srgb, var(--accent) 40%, var(--text-3));
}

[dir="rtl"] .portal-shell-body .portal-auth-icon {
  inset-inline-start: auto;
  inset-inline-end: 13px;
}

.portal-shell-body .portal-auth-icon svg {
  width: 16px;
  height: 16px;
}

.portal-shell-body .portal-country-trigger {
  height: 46px;
  padding-inline-start: 40px;
}

.portal-shell-body .portal-country-menu {
  border-radius: 16px;
}

.portal-shell-body .portal-forgot-link {
  justify-self: end;
  color: var(--brand-warm);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}

[dir="rtl"] .portal-shell-body .portal-forgot-link {
  justify-self: start;
}

.portal-shell-body button.btn.btn-primary,
.portal-shell-body a.btn.btn-primary,
.portal-shell-body input.btn.btn-primary {
  min-height: 47px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.portal-shell-body button.btn.btn-primary:hover,
.portal-shell-body a.btn.btn-primary:hover,
.portal-shell-body input.btn.btn-primary:hover {
  background: var(--accent-hover);
  transform: none;
}

.portal-shell-body .portal-auth-switch {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
  color: var(--text-2);
  font-size: 13px;
}

.portal-shell-body .portal-auth-switch button,
.portal-shell-body .portal-auth-switch a {
  color: var(--accent);
  font-weight: 800;
}

.portal-shell-body .portal-powered-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.84;
}

.portal-shell-body .portal-powered-inline img {
  width: 15px;
  height: 15px;
}

.portal-auth-tools {
  position: fixed;
  inset-block-start: 22px;
  inset-inline-end: 22px;
}

.portal-shell-body .theme-toggle.portal-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--bg-1);
  box-shadow: 0 8px 20px -14px rgba(15, 23, 42, 0.25);
}

:root[data-theme="dark"] .portal-shell-body .portal-auth-card {
  border-color: #2b3648;
  background: var(--bg-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}

:root[data-theme="dark"] .portal-shell-body button.btn.btn-primary,
:root[data-theme="dark"] .portal-shell-body a.btn.btn-primary,
:root[data-theme="dark"] .portal-shell-body input.btn.btn-primary {
  background: linear-gradient(150deg, var(--accent), var(--brand-accent-2));
  color: #04201d;
}

:root[data-theme="dark"] .portal-shell-body .portal-card-brand small,
:root[data-theme="dark"] .portal-shell-body .portal-powered-inline {
  color: #64748b;
}

@media (max-width: 640px) {
  .portal-shell-body .portal-auth-shell {
    padding: 48px 16px 22px;
  }

  .portal-shell-body .portal-auth-layout {
    max-width: 100% !important;
  }

  .portal-shell-body .portal-auth-card {
    padding: 28px 22px 24px !important;
    border-radius: 18px;
  }

  .portal-shell-body .portal-auth-card-head h2 {
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Customer portal workspace polish
   Auth pages use a compact fixed language selector. The signed-in/customer
   portal needs a calm SaaS workspace instead, with normal document flow.
   -------------------------------------------------------------------------- */

.portal-shell-body .portal-page {
  width: min(100% - 48px, 1180px);
  max-width: none;
  padding: 22px 0 72px;
  gap: 34px;
  background: transparent;
}

.portal-shell-body .portal-page .portal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-1) 96%, transparent), color-mix(in srgb, var(--accent-tint) 38%, var(--bg-1))),
    var(--bg-1);
  box-shadow: 0 18px 48px -34px rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(18px);
}

.portal-shell-body .portal-page .portal-brand {
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.portal-shell-body .portal-page .portal-brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  box-shadow: 0 12px 28px -16px color-mix(in srgb, var(--accent) 70%, transparent);
}

.portal-shell-body .portal-page .portal-brand strong {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.portal-shell-body .portal-page .portal-top-actions {
  gap: 10px;
  margin-inline-start: auto;
}

.portal-shell-body .portal-user-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.portal-shell-body .portal-profile-chip {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 210px;
  max-width: 320px;
  min-height: 42px;
  padding: 4px 10px 4px 4px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-1) 84%, transparent);
  color: var(--text-1);
  text-decoration: none;
  box-shadow: 0 12px 28px -24px rgba(15, 23, 42, 0.35);
  transition:
    border-color var(--d-fast) var(--ease-std),
    background var(--d-fast) var(--ease-std),
    transform var(--d-fast) var(--ease-std);
}

[dir="rtl"] .portal-shell-body .portal-profile-chip {
  padding: 4px 4px 4px 10px;
}

.portal-shell-body .portal-profile-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 42%, var(--bg-1));
}

.portal-shell-body .portal-profile-avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--brand-accent-2));
  color: var(--accent-fg);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}

.portal-shell-body .portal-profile-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.portal-shell-body .portal-profile-text strong,
.portal-shell-body .portal-profile-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-shell-body .portal-profile-text strong {
  font-size: 12.5px;
  font-weight: 850;
  color: var(--text-1);
}

.portal-shell-body .portal-profile-text small {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 650;
  color: var(--text-3);
}

.portal-shell-body .portal-signout-form {
  margin: 0;
}

.portal-shell-body .portal-top-signout,
.portal-shell-body .portal-top-signin {
  min-height: 40px;
  border-radius: 999px;
  padding-inline: 15px;
  font-size: 12.5px;
  font-weight: 850;
}

.portal-shell-body .portal-page .portal-language {
  position: static;
  inset: auto;
  display: inline-flex;
  width: auto;
  margin: 0;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-2) 68%, var(--bg-1));
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  box-shadow: none;
}

[dir="rtl"] .portal-shell-body .portal-page .portal-language {
  position: static;
  inset: auto;
  margin: 0;
}

.portal-shell-body .portal-page .portal-language a {
  min-width: 38px;
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.portal-shell-body .portal-page .portal-language a.active {
  background: var(--bg-1);
  color: var(--accent);
  box-shadow: 0 8px 20px -16px color-mix(in srgb, var(--accent) 70%, transparent);
}

.portal-shell-body .portal-page .portal-alert {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--border));
  background: color-mix(in srgb, var(--success-tint) 54%, var(--bg-1));
  color: color-mix(in srgb, var(--success) 82%, var(--text-1));
  box-shadow: none;
  font-size: 13px;
  font-weight: 750;
}

.portal-shell-body .portal-workspace-head {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  align-items: end;
  padding: 28px 30px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  background:
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 17rem),
    linear-gradient(135deg, color-mix(in srgb, var(--bg-1) 96%, transparent), color-mix(in srgb, var(--bg-2) 84%, var(--bg-1)));
  box-shadow: 0 22px 64px -44px rgba(15, 23, 42, 0.42);
}

.portal-shell-body .portal-workspace-head::before {
  content: "";
  position: absolute;
  inset-inline: 24px;
  inset-block-start: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--brand-warm), var(--brand-accent-2));
  opacity: 0.75;
}

.portal-shell-body .portal-workspace-head .eyebrow {
  color: color-mix(in srgb, var(--accent) 42%, var(--text-3));
  font-size: 11px;
  letter-spacing: 0.16em;
}

.portal-shell-body .portal-workspace-head h1 {
  margin: 6px 0 6px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.portal-shell-body .portal-workspace-head p {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 650;
}

.portal-shell-body .portal-status-pill {
  height: 26px;
  gap: 6px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  border-color: color-mix(in srgb, var(--border) 88%, transparent);
}

.portal-shell-body .portal-status-pill::before {
  width: 6px;
  height: 6px;
}

.portal-shell-body .portal-status-pill.state-active,
.portal-shell-body .portal-status-pill.is-active {
  color: #047857;
  background: color-mix(in srgb, var(--success-tint) 70%, var(--bg-1));
  border-color: color-mix(in srgb, var(--success) 22%, var(--border));
}

:root[data-theme="dark"] .portal-shell-body .portal-status-pill.state-active,
:root[data-theme="dark"] .portal-shell-body .portal-status-pill.is-active {
  color: #6ee7b7;
}

.portal-shell-body .portal-workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-1) 86%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  box-shadow: 0 16px 42px -34px rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(14px);
}

.portal-shell-body .portal-workspace-tabs a {
  flex: 1 1 150px;
  min-height: 44px;
  border-radius: 14px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
}

.portal-shell-body .portal-workspace-tabs a:hover {
  background: color-mix(in srgb, var(--accent-tint) 48%, var(--bg-2));
  color: var(--accent);
}

.portal-shell-body .portal-workspace-tabs a.is-active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-tint) 76%, var(--bg-1));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.portal-shell-body .portal-dashboard {
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 0.72fr);
  gap: 18px;
}

.portal-shell-body .portal-dashboard.portal-section-support,
.portal-shell-body .portal-dashboard.portal-section-feedback,
.portal-shell-body .portal-dashboard.portal-section-updates {
  grid-template-columns: minmax(0, 1fr);
}

.portal-shell-body .portal-main-stack,
.portal-shell-body .portal-action-stack {
  gap: 18px;
}

.portal-shell-body .portal-license-panel,
.portal-shell-body .portal-releases-panel,
.portal-shell-body .portal-requests-panel,
.portal-shell-body .portal-machines-panel,
.portal-shell-body .portal-support-panel,
.portal-shell-body .portal-action-panel {
  border-radius: 20px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-1) 96%, transparent), color-mix(in srgb, var(--bg-2) 34%, var(--bg-1))),
    var(--bg-1);
  box-shadow: 0 18px 54px -42px rgba(15, 23, 42, 0.35);
}

.portal-shell-body .portal-support-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.portal-shell-body .portal-support-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-shell-body .portal-support-compose,
.portal-shell-body .portal-support-history {
  min-height: 100%;
}

.portal-shell-body .portal-support-compose textarea.form-control {
  min-height: 132px;
  resize: vertical;
}

.portal-shell-body .portal-support-thread {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.portal-shell-body .portal-support-message {
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 16px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg-2) 54%, var(--bg-1));
}

.portal-shell-body .portal-support-message.is-admin {
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 68%, var(--bg-1));
}

.portal-shell-body .portal-support-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-3);
  font-size: 11px;
  margin-bottom: 6px;
}

.portal-shell-body .portal-support-message-meta strong {
  color: var(--text-1);
  font-size: 12px;
}

.portal-shell-body .portal-support-message p {
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
  white-space: pre-wrap;
}

.portal-shell-body .portal-support-reply-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.portal-shell-body .portal-license-head {
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 14px;
}

.portal-shell-body .portal-license-head .license-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent-tint) 82%, var(--bg-2));
}

.portal-shell-body .portal-license-head h2 {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.portal-shell-body .portal-license-head p {
  font-size: 13px;
  font-weight: 650;
}

.portal-shell-body .portal-key-strip {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-2) 60%, var(--bg-1));
}

.portal-shell-body .portal-key-strip code {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.portal-shell-body .portal-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 16px;
}

.portal-shell-body .portal-detail-grid > div {
  min-height: 72px;
  padding: 14px 16px;
}

.portal-shell-body .portal-detail-grid span {
  font-size: 10.5px;
  font-weight: 800;
}

.portal-shell-body .portal-detail-grid strong {
  font-size: 14px;
  font-weight: 800;
}

.portal-shell-body .portal-progress {
  height: 3px;
  background: color-mix(in srgb, var(--accent-tint) 55%, var(--bg-2));
}

.portal-shell-body .portal-progress > span {
  background: linear-gradient(90deg, var(--accent), var(--brand-accent-2));
}

.portal-shell-body .portal-machine-row,
.portal-shell-body .portal-release-row,
.portal-shell-body .portal-request-row {
  border-radius: 16px;
  padding: 14px;
  background: color-mix(in srgb, var(--bg-1) 76%, var(--bg-2));
  border-color: color-mix(in srgb, var(--border) 72%, transparent);
}

.portal-shell-body .portal-machine-row strong {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.portal-shell-body .portal-machine-row time,
.portal-shell-body .portal-request-row time,
.portal-shell-body .portal-release-row time {
  color: var(--text-3);
  font-weight: 650;
}

@media (max-width: 1050px) {
  .portal-shell-body .portal-dashboard {
    grid-template-columns: 1fr;
  }

  .portal-shell-body .portal-support-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .portal-shell-body .portal-page {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
    gap: 22px;
  }

  .portal-shell-body .portal-page .portal-top,
  .portal-shell-body .portal-workspace-head {
    border-radius: 18px;
  }

  .portal-shell-body .portal-page .portal-top {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-shell-body .portal-page .portal-top-actions {
    justify-content: space-between;
    margin-inline-start: 0;
  }

  .portal-shell-body .portal-user-bar {
    width: 100%;
  }

  .portal-shell-body .portal-profile-chip {
    flex: 1 1 auto;
    min-width: 0;
  }

  .portal-shell-body .portal-workspace-tabs a {
    flex-basis: calc(50% - 4px);
  }

  .portal-shell-body .portal-workspace-head {
    align-items: flex-start;
    min-height: 0;
    padding: 24px;
  }
}

/* Fikrova public company portal */
.portal-shell-body .portal-page-home:has(.fikrova-public),
.portal-shell-body .portal-product-page {
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-fg: #ffffff;
  --accent-tint: rgba(79, 70, 229, 0.1);
  --accent-ring: rgba(79, 70, 229, 0.24);
  --brand-accent-2: #14b8a6;
  --brand-warm: #f59e0b;
  --brand-ink: #0f172a;
  --brand-grad: linear-gradient(135deg, #18c6b9 0%, #38bdf8 36%, #5b5bd6 70%, #8b5cf6 100%);
}

[data-theme="dark"] .portal-shell-body .portal-page-home:has(.fikrova-public),
[data-theme="dark"] .portal-shell-body .portal-product-page {
  --brand-ink: #f8fafc;
}

.portal-shell-body .portal-page-home:has(.fikrova-public) {
  max-width: 1280px;
  gap: 24px;
  padding-top: 24px;
}

.portal-shell-body .portal-page-home:has(.fikrova-public) .portal-top,
.portal-shell-body .portal-product-page .portal-top {
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.72)),
    var(--bg-1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .portal-shell-body .portal-page-home:has(.fikrova-public) .portal-top,
[data-theme="dark"] .portal-shell-body .portal-product-page .portal-top {
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(15, 23, 42, 0.76)),
    var(--bg-1);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

.portal-shell-body .portal-page-home:has(.fikrova-public) .portal-brand .brand-mark,
.portal-shell-body .portal-product-page .portal-brand .brand-mark {
  background: transparent;
  box-shadow: none;
}

.portal-shell-body .portal-page-home:has(.fikrova-public) .portal-brand .brand-mark img,
.portal-shell-body .portal-product-page .portal-brand .brand-mark img {
  width: 42px;
  height: 42px;
}

.portal-shell-body .portal-page-home:has(.fikrova-public) .portal-top-signin,
.portal-shell-body .portal-product-page .portal-top-signin {
  min-height: 42px;
  border-radius: 999px;
}

.portal-shell-body .fikrova-public,
.portal-shell-body .portal-product-page {
  display: grid;
  gap: 28px;
}

.portal-shell-body .fikrova-public {
  isolation: isolate;
}

.portal-shell-body .fikrova-public-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 8px;
  margin: -8px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  width: fit-content;
}

.portal-shell-body .fikrova-public-nav a {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.portal-shell-body .fikrova-public-nav a:hover,
.portal-shell-body .fikrova-public-nav a:focus-visible {
  color: var(--brand-ink);
  background: var(--accent-tint);
  transform: translateY(-1px);
}

.portal-shell-body .fikrova-public-alert,
.portal-shell-body .portal-alert.alert-danger {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.86);
  color: #991b1b;
}

[data-theme="dark"] .portal-shell-body .fikrova-public-alert,
[data-theme="dark"] .portal-shell-body .portal-alert.alert-danger {
  background: rgba(127, 29, 29, 0.22);
  color: #fecaca;
}

.portal-shell-body .fikrova-hero,
.portal-shell-body .fikrova-product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 250, 0.72) 45%, rgba(238, 242, 255, 0.74) 100%),
    linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(79, 70, 229, 0.08));
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .portal-shell-body .fikrova-hero,
[data-theme="dark"] .portal-shell-body .fikrova-product-hero {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.96) 0%, rgba(17, 24, 39, 0.88) 54%, rgba(30, 41, 59, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 184, 166, 0.12), rgba(99, 102, 241, 0.12));
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.portal-shell-body .fikrova-hero::before,
.portal-shell-body .fikrova-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.12) 72%, transparent 100%);
}

[data-theme="dark"] .portal-shell-body .fikrova-hero::before,
[data-theme="dark"] .portal-shell-body .fikrova-product-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}

.portal-shell-body .fikrova-hero-copy,
.portal-shell-body .fikrova-product-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 60px);
}

.portal-shell-body .fikrova-hero-copy {
  min-height: 360px;
}

.portal-shell-body .fikrova-product-hero-copy {
  min-height: 420px;
}

.portal-shell-body .fikrova-kicker,
.portal-shell-body .fikrova-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-shell-body .fikrova-kicker {
  padding: 8px 12px;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
  background: rgba(240, 253, 250, 0.78);
}

[data-theme="dark"] .portal-shell-body .fikrova-kicker {
  background: rgba(20, 184, 166, 0.1);
}

.portal-shell-body .fikrova-kicker img {
  width: 18px;
  height: 14px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.portal-shell-body .fikrova-hero h1,
.portal-shell-body .fikrova-product-hero h1 {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--brand-ink);
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.portal-shell-body .fikrova-product-hero h1 {
  font-size: clamp(44px, 5vw, 72px);
}

.portal-shell-body .fikrova-hero p,
.portal-shell-body .fikrova-product-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.68;
}

.portal-shell-body .fikrova-hero-actions,
.portal-shell-body .fikrova-product-hero-actions,
.portal-shell-body .fikrova-product-actions,
.portal-shell-body .fikrova-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.portal-shell-body .fikrova-hero-actions,
.portal-shell-body .fikrova-product-hero-actions {
  margin-top: 28px;
}

.portal-shell-body .fikrova-hero-actions .btn,
.portal-shell-body .fikrova-product-hero-actions .btn,
.portal-shell-body .fikrova-contact-actions .btn {
  min-height: 48px;
  border-radius: 999px;
  padding-inline: 24px;
}

.portal-shell-body .fikrova-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.portal-shell-body .fikrova-hero-facts span {
  padding: 8px 11px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-1) 78%, transparent);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.portal-shell-body .fikrova-product-stage,
.portal-shell-body .fikrova-product-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(28px, 4vw, 54px);
}

.portal-shell-body .fikrova-product-stage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-shell-body .fikrova-stage-product,
.portal-shell-body .fikrova-product-device,
.portal-shell-body .fikrova-product-card,
.portal-shell-body .fikrova-product-info-grid article,
.portal-shell-body .fikrova-product-detail-grid article,
.portal-shell-body .fikrova-contact-panel,
.portal-shell-body .fikrova-company-strip {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: color-mix(in srgb, var(--bg-1) 90%, transparent);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .portal-shell-body .fikrova-stage-product,
[data-theme="dark"] .portal-shell-body .fikrova-product-device,
[data-theme="dark"] .portal-shell-body .fikrova-product-card,
[data-theme="dark"] .portal-shell-body .fikrova-product-info-grid article,
[data-theme="dark"] .portal-shell-body .fikrova-product-detail-grid article,
[data-theme="dark"] .portal-shell-body .fikrova-contact-panel,
[data-theme="dark"] .portal-shell-body .fikrova-company-strip {
  background: color-mix(in srgb, var(--bg-1) 82%, transparent);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.portal-shell-body .fikrova-stage-product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: center;
  min-height: 94px;
  padding: 18px;
  border-radius: 20px;
  color: var(--text-1);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.portal-shell-body .fikrova-stage-product:hover,
.portal-shell-body .fikrova-stage-product:focus-visible {
  border-color: color-mix(in srgb, var(--product-accent) 44%, var(--border));
  box-shadow: 0 22px 54px color-mix(in srgb, var(--product-accent) 18%, transparent);
  transform: translateY(-2px);
}

.portal-shell-body .fikrova-stage-product img {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.portal-shell-body .fikrova-stage-product span {
  color: var(--text-3);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-shell-body .fikrova-stage-product strong {
  color: var(--brand-ink);
  font-size: 18px;
}

.portal-shell-body .product-teal { --product-accent: #0f766e; --product-tint: rgba(15, 118, 110, 0.1); }
.portal-shell-body .product-blue { --product-accent: #2563eb; --product-tint: rgba(37, 99, 235, 0.1); }
.portal-shell-body .product-amber { --product-accent: #b45309; --product-tint: rgba(180, 83, 9, 0.12); }
.portal-shell-body .product-violet { --product-accent: #7c3aed; --product-tint: rgba(124, 58, 237, 0.11); }

.portal-shell-body .fikrova-company-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border-radius: 22px;
}

.portal-shell-body .fikrova-company-strip div {
  padding: 24px;
  background: color-mix(in srgb, var(--bg-1) 72%, transparent);
}

.portal-shell-body .fikrova-company-strip span {
  display: block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portal-shell-body .fikrova-company-strip strong {
  display: block;
  margin-top: 8px;
  color: var(--text-1);
  font-size: 15px;
  line-height: 1.55;
}

.portal-shell-body .fikrova-section-head {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-top: 10px;
}

.portal-shell-body .fikrova-section-head h2 {
  margin: 0;
  color: var(--brand-ink);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.01em;
}

.portal-shell-body .fikrova-section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
}

.portal-shell-body .fikrova-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.portal-shell-body .fikrova-product-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-shell-body .fikrova-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 22px;
  border-radius: 22px;
  overflow: hidden;
}

.portal-shell-body .fikrova-product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--product-accent), color-mix(in srgb, var(--product-accent) 36%, white));
}

.portal-shell-body .fikrova-product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.portal-shell-body .fikrova-product-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--product-tint);
}

.portal-shell-body .fikrova-product-icon img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.portal-shell-body .fikrova-product-status {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--product-accent) 26%, var(--border));
  border-radius: 999px;
  background: var(--product-tint);
  color: var(--product-accent);
  font-size: 11px;
  font-weight: 900;
}

.portal-shell-body .fikrova-product-card h3 {
  margin: 10px 0 0;
  color: var(--text-1);
  font-size: 24px;
  letter-spacing: -0.01em;
}

.portal-shell-body .fikrova-product-card p {
  margin: 12px 0 0;
  color: var(--text-2);
  line-height: 1.62;
}

.portal-shell-body .fikrova-product-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.portal-shell-body .fikrova-product-card li {
  position: relative;
  padding-inline-start: 18px;
}

.portal-shell-body .fikrova-product-card li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--product-accent);
}

.portal-shell-body .fikrova-product-actions {
  margin-top: auto;
}

.portal-shell-body .fikrova-product-actions .btn {
  flex: 1 1 auto;
  min-height: 42px;
  border-radius: 14px;
}

.portal-shell-body .fikrova-contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(240, 253, 250, 0.78), rgba(238, 242, 255, 0.72)),
    var(--bg-1);
}

[data-theme="dark"] .portal-shell-body .fikrova-contact-panel {
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(99, 102, 241, 0.12)),
    var(--bg-1);
}

.portal-shell-body .fikrova-contact-panel h2 {
  margin: 8px 0 0;
  color: var(--brand-ink);
  font-size: clamp(26px, 3vw, 38px);
}

.portal-shell-body .fikrova-contact-panel p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

.portal-shell-body .fikrova-back-link {
  text-decoration: none;
}

.portal-shell-body .fikrova-back-link::before {
  content: "←";
  font-size: 16px;
}

[dir="rtl"] .portal-shell-body .fikrova-back-link::before {
  content: "→";
}

.portal-shell-body .fikrova-product-device {
  display: grid;
  gap: 20px;
  width: min(100%, 520px);
  margin-inline: auto;
  padding: 18px;
  border-radius: 24px;
  transform: rotate(1.5deg);
}

.portal-shell-body .fikrova-product-device-bar {
  display: flex;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #111827;
}

.portal-shell-body .fikrova-product-device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #14b8a6;
}

.portal-shell-body .fikrova-product-device-bar span:nth-child(2) {
  background: #60a5fa;
}

.portal-shell-body .fikrova-product-device-bar span:nth-child(3) {
  background: #f59e0b;
}

.portal-shell-body .fikrova-product-device-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
}

.portal-shell-body .fikrova-product-device-head img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}

.portal-shell-body .fikrova-product-device-head strong {
  display: block;
  color: var(--text-1);
  font-size: 22px;
}

.portal-shell-body .fikrova-product-device-head span {
  color: var(--product-accent);
  font-weight: 850;
}

.portal-shell-body .fikrova-product-device-lines {
  display: grid;
  gap: 10px;
}

.portal-shell-body .fikrova-product-device-lines span {
  padding: 13px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--product-tint) 68%, var(--bg-1));
  color: var(--text-2);
  font-size: 13px;
  font-weight: 750;
}

.portal-shell-body .fikrova-product-info-grid,
.portal-shell-body .fikrova-product-detail-grid {
  display: grid;
  gap: 16px;
}

.portal-shell-body .fikrova-product-info-grid {
  grid-template-columns: 1.35fr 1fr 0.9fr;
}

.portal-shell-body .fikrova-product-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-shell-body .fikrova-product-info-grid article,
.portal-shell-body .fikrova-product-detail-grid article {
  border-radius: 22px;
  padding: 24px;
}

.portal-shell-body .fikrova-product-info-grid h2,
.portal-shell-body .fikrova-product-detail-grid h2 {
  margin: 10px 0 0;
  color: var(--text-1);
  font-size: 22px;
  line-height: 1.35;
}

.portal-shell-body .fikrova-product-info-grid p {
  margin: 12px 0 0;
  color: var(--text-2);
  line-height: 1.7;
}

.portal-shell-body .fikrova-product-detail-grid ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.portal-shell-body .fikrova-product-detail-grid li {
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-2) 68%, transparent);
  color: var(--text-2);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .portal-shell-body .fikrova-product-grid,
  .portal-shell-body .fikrova-product-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell-body .fikrova-hero,
  .portal-shell-body .fikrova-product-hero {
    grid-template-columns: 1fr;
  }

  .portal-shell-body .fikrova-product-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell-body .fikrova-hero-copy,
  .portal-shell-body .fikrova-product-hero-copy {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .portal-shell-body .fikrova-public-nav {
    width: 100%;
    justify-content: stretch;
  }

  .portal-shell-body .fikrova-public-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  .portal-shell-body .fikrova-company-strip,
  .portal-shell-body .fikrova-product-stage,
  .portal-shell-body .fikrova-product-info-grid,
  .portal-shell-body .fikrova-product-detail-grid,
  .portal-shell-body .fikrova-product-grid,
  .portal-shell-body .fikrova-product-grid.compact {
    grid-template-columns: 1fr;
  }

  .portal-shell-body .fikrova-contact-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .portal-shell-body .fikrova-contact-actions {
    width: 100%;
  }

  .portal-shell-body .fikrova-contact-actions .btn {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .portal-shell-body .fikrova-hero-copy,
  .portal-shell-body .fikrova-product-hero-copy,
  .portal-shell-body .fikrova-product-stage,
  .portal-shell-body .fikrova-product-hero-visual {
    padding: 24px;
  }

  .portal-shell-body .fikrova-hero h1,
  .portal-shell-body .fikrova-product-hero h1 {
    font-size: 38px;
  }

  .portal-shell-body .fikrova-hero-actions .btn,
  .portal-shell-body .fikrova-product-hero-actions .btn,
  .portal-shell-body .fikrova-product-actions .btn {
    flex: 1 1 100%;
  }
}

.portal-shell-body .portal-account-security {
  grid-column: 1 / -1;
  overflow: hidden;
}

.portal-shell-body .portal-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portal-shell-body .portal-security-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-1) 92%, transparent), color-mix(in srgb, var(--accent-tint) 16%, transparent)),
    var(--bg-1);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

[data-theme="dark"] .portal-shell-body .portal-security-form {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.portal-shell-body .portal-security-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.portal-shell-body .portal-security-form-head strong {
  color: var(--text-1);
  font-size: 15px;
}

.portal-shell-body .portal-security-form-head span {
  max-width: 54%;
  overflow: hidden;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.45;
  text-align: end;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-shell-body .portal-field {
  display: grid;
  gap: 7px;
  margin: 0;
}

.portal-shell-body .portal-field > span:first-child {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 800;
}

.portal-shell-body .portal-field .form-control {
  min-height: 48px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--border) 86%, transparent);
  background: color-mix(in srgb, var(--bg-0) 46%, var(--bg-1));
}

.portal-shell-body .portal-field .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.portal-shell-body .portal-field .text-danger {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}

.portal-shell-body .portal-security-form .btn {
  justify-self: start;
  min-height: 44px;
  padding-inline: 18px;
}

[dir="rtl"] .portal-shell-body .portal-security-form .btn {
  justify-self: end;
}

@media (max-width: 900px) {
  .portal-shell-body .portal-security-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium portal recovery */
.portal-shell-body .portal-recovery-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at 12% 12%, color-mix(in srgb, var(--accent-tint) 78%, transparent), transparent 34%),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--brand-warm) 16%, transparent), transparent 28%),
    linear-gradient(135deg, var(--bg-0), color-mix(in srgb, var(--accent-tint) 20%, var(--bg-0)));
}

.portal-shell-body .portal-recovery-card {
  position: relative;
  display: grid;
  width: min(1080px, 100%);
  min-height: 640px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 32px;
  background: var(--bg-1);
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[data-theme="dark"] .portal-shell-body .portal-recovery-card {
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.portal-shell-body .portal-recovery-card::before {
  content: "";
  position: absolute;
  inset-inline: 34px;
  inset-block-start: 0;
  z-index: 2;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--brand-warm), var(--brand-accent-2));
}

.portal-shell-body .portal-recovery-brand {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  padding: clamp(30px, 4vw, 48px);
  color: #fff;
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 119, 6, 0.32), transparent 32%),
    radial-gradient(circle at 84% 88%, rgba(20, 184, 166, 0.28), transparent 34%),
    linear-gradient(145deg, #07111f 0%, #0d1b32 44%, #0f766e 125%);
}

.portal-shell-body .portal-recovery-brand::before,
.portal-shell-body .portal-recovery-brand::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(20, 184, 166, 0.22);
  border-radius: 999px;
}

.portal-shell-body .portal-recovery-brand::before {
  width: 360px;
  height: 360px;
  inset-inline-end: -116px;
  inset-block-start: -116px;
}

.portal-shell-body .portal-recovery-brand::after {
  width: 260px;
  height: 260px;
  inset-inline-start: -86px;
  inset-block-end: -86px;
  border-color: rgba(180, 83, 9, 0.26);
}

.portal-shell-body .portal-recovery-logo,
.portal-shell-body .portal-recovery-copy,
.portal-shell-body .portal-recovery-steps,
.portal-shell-body .portal-recovery-brand .portal-powered-by {
  position: relative;
  z-index: 1;
}

.portal-shell-body .portal-recovery-logo {
  display: inline-grid;
  width: max-content;
  grid-template-columns: 48px auto;
  gap: 14px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.portal-shell-body .portal-recovery-logo span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.portal-shell-body .portal-recovery-logo img {
  width: 36px;
  height: 36px;
}

.portal-shell-body .portal-recovery-logo strong,
.portal-shell-body .portal-recovery-logo small {
  display: block;
  letter-spacing: 0;
}

.portal-shell-body .portal-recovery-logo strong {
  font-size: 18px;
  font-weight: 900;
}

.portal-shell-body .portal-recovery-logo small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.portal-shell-body .portal-recovery-copy {
  max-width: 360px;
  margin-block: auto;
}

.portal-shell-body .portal-recovery-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  color: #d9fffa;
}

.portal-shell-body .portal-recovery-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.05;
}

.portal-shell-body .portal-recovery-copy p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

.portal-shell-body .portal-recovery-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-shell-body .portal-recovery-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 800;
}

.portal-shell-body .portal-recovery-steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
}

.portal-shell-body .portal-recovery-steps .is-active span,
.portal-shell-body .portal-recovery-steps .is-complete span {
  border-color: rgba(20, 184, 166, 0.45);
  background: rgba(20, 184, 166, 0.2);
}

.portal-shell-body .portal-recovery-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: clamp(32px, 5vw, 64px);
}

.portal-shell-body .portal-recovery-tools {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 24px;
}

[dir="rtl"] .portal-shell-body .portal-recovery-tools {
  inset-inline: 24px auto;
}

.portal-shell-body .portal-recovery-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 520px;
  padding-top: 34px;
}

.portal-shell-body .portal-recovery-icon {
  display: grid;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-tint) 78%, var(--bg-1)), var(--bg-1));
  color: var(--accent);
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.12);
}

.portal-shell-body .portal-recovery-icon svg,
.portal-shell-body .portal-recovery-submit svg,
.portal-shell-body .portal-recovery-input svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.portal-shell-body .portal-recovery-heading h2 {
  margin: 0;
  color: var(--text-1);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.08;
}

.portal-shell-body .portal-recovery-heading p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
}

.portal-shell-body .portal-recovery-alert {
  max-width: 560px;
  margin: 0;
  padding: 14px 16px;
}

.portal-shell-body .portal-recovery-form {
  display: grid;
  max-width: 560px;
  gap: 16px;
}

.portal-shell-body .portal-recovery-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-shell-body .portal-recovery-field-wide {
  grid-column: 1 / -1;
}

.portal-shell-body .portal-recovery-field {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 850;
}

.portal-shell-body .portal-recovery-input {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-0) 52%, var(--bg-1));
  color: var(--text-3);
  padding-inline: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.portal-shell-body .portal-recovery-input:focus-within {
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

.portal-shell-body .portal-recovery-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-1);
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.portal-shell-body .portal-recovery-input input::placeholder {
  color: var(--text-3);
  font-weight: 650;
}

.portal-shell-body .portal-recovery-code-input input {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.portal-shell-body .portal-recovery-field .text-danger {
  min-height: 18px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.portal-shell-body .portal-recovery-submit {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.portal-shell-body .portal-recovery-actions {
  display: flex;
  max-width: 560px;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
}

.portal-shell-body .portal-recovery-actions a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.portal-shell-body .portal-recovery-actions a:hover {
  text-decoration: underline;
}

.portal-shell-body .portal-recovery-success-card {
  min-height: 600px;
}

.portal-shell-body .portal-recovery-success-icon {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success-tint) 76%, var(--bg-1)), var(--bg-1));
  color: var(--success);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--success) 18%, transparent);
}

.portal-shell-body .portal-recovery-success-box {
  display: grid;
  max-width: 560px;
  gap: 8px;
  border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border));
  border-radius: 22px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--success-tint) 72%, var(--bg-1)), var(--bg-1));
  padding: 18px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.portal-shell-body .portal-recovery-success-box span,
.portal-shell-body .portal-recovery-note {
  color: var(--text-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.portal-shell-body .portal-recovery-success-box strong {
  overflow-wrap: anywhere;
  color: var(--text-1);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
}

.portal-shell-body .portal-recovery-note {
  max-width: 560px;
  margin: 0;
  border-inline-start: 3px solid color-mix(in srgb, var(--brand-warm) 58%, var(--border));
  padding: 3px 0 3px 14px;
  letter-spacing: 0;
  line-height: 1.55;
}

[dir="rtl"] .portal-shell-body .portal-recovery-note {
  padding: 3px 14px 3px 0;
}

.portal-shell-body .portal-recovery-success-actions {
  justify-content: flex-start;
}

.portal-shell-body .portal-recovery-actions .portal-recovery-submit {
  min-width: 180px;
  color: var(--accent-fg);
  text-decoration: none;
}

.portal-shell-body .portal-recovery-actions .portal-recovery-submit:hover {
  color: var(--accent-fg);
  text-decoration: none;
}

.portal-shell-body .portal-recovery-dev-code {
  max-width: 560px;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--border));
}

[dir="rtl"] .portal-shell-body .portal-recovery-logo {
  text-align: right;
}

[dir="rtl"] .portal-shell-body .portal-recovery-steps li {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

@media (max-width: 920px) {
  .portal-shell-body .portal-recovery-card {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .portal-shell-body .portal-recovery-brand {
    min-height: 320px;
  }

  .portal-shell-body .portal-recovery-panel {
    padding-top: 84px;
  }
}

@media (max-width: 640px) {
  .portal-shell-body .portal-recovery-shell {
    padding: 12px;
  }

  .portal-shell-body .portal-recovery-card {
    border-radius: 24px;
  }

  .portal-shell-body .portal-recovery-brand,
  .portal-shell-body .portal-recovery-panel {
    padding: 26px;
  }

  .portal-shell-body .portal-recovery-tools {
    inset-block-start: 18px;
    inset-inline-end: 18px;
  }

  [dir="rtl"] .portal-shell-body .portal-recovery-tools {
    inset-inline: 18px auto;
  }

  .portal-shell-body .portal-recovery-heading {
    flex-direction: column;
    padding-top: 52px;
  }

  .portal-shell-body .portal-recovery-form-grid {
    grid-template-columns: 1fr;
  }
}
