@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.95);
  --surface-strong: #ffffff;
  --text: #111827;
  --muted: #667085;
  --primary: #0f9f7f;
  --primary-strong: #0b6b63;
  --accent: #f7bc57;
  --accent-soft: #fff3d8;
  --danger: #d84f5f;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
  --radius-lg: 30px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: "Vazirmatn", "Tahoma", sans-serif;
  background: var(--bg);
  color: var(--text);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

body {
  line-height: 1.7;
}

.shell--light,
.shell--admin,
.auth-shell {
  padding-bottom: 4rem;
}

.page,
.admin-main,
.auth-page,
.single-card-page {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.topbar {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.topbar__brand {
  display: grid;
  gap: .2rem;
}

.topbar__brand span,
.hint,
.locked-pill,
.course-card__meta,
.timeline-step__meta,
.empty,
small {
  color: var(--muted);
}

.icon-button,
.button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.icon-button {
  width: 44px;
  height: 44px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(53, 41, 27, 0.09);
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  transform: none;
  opacity: .55;
  box-shadow: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 48px;
  padding: .85rem 1.4rem;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), #1bb39b);
  color: white;
  box-shadow: 0 18px 30px rgba(13, 138, 119, 0.25);
}

.button--ghost {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
}

.button--glow {
  box-shadow: 0 24px 36px rgba(255, 184, 77, 0.34);
}

.text-link {
  color: var(--primary-strong);
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8d5c08;
  font-size: .9rem;
  font-weight: 700;
}

.hero-card,
.hero-banner,
.course-hero,
.panel,
.video-card,
.single-card,
.auth-card,
.course-card,
.timeline-step,
.lottery-stage__card,
.stat,
.empty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.hero-card,
.hero-banner,
.course-hero,
.single-card,
.auth-card,
.lottery-stage__card {
  position: relative;
  overflow: hidden;
}

.hero-card,
.hero-banner,
.course-hero,
.step-hero {
  margin: 1rem 0 1.4rem;
  padding: 1.4rem;
}

.hero-card__content,
.hero-banner__content,
.course-hero__body {
  position: relative;
  z-index: 2;
}

.hero-card__glow {
  position: absolute;
  inset: auto auto -80px -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 184, 77, .72), transparent 65%);
}

.auth-page {
  display: grid;
  gap: 1rem;
  padding-top: 1rem;
}

.auth-card {
  padding: 1.2rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin-bottom: 1rem;
}

.auth-tab {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: 18px;
  min-height: 48px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
}

.auth-tab.is-active,
.auth-pane.is-active {
  display: block;
}

.auth-tab.is-active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(13, 138, 119, .12);
}

.auth-pane {
  display: none;
}

.stack {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: .35rem;
  text-align: right;
}

.field span {
  font-weight: 700;
}

input,
textarea,
select,
fieldset {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--text);
}

input,
select {
  min-height: 50px;
  padding: .9rem 1rem;
}

textarea {
  min-height: 110px;
  padding: 1rem;
  resize: vertical;
}

fieldset {
  padding: 1rem;
}

.checkbox,
.option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .8rem;
  text-align: right;
}

.checkbox input,
.option input {
  width: auto;
  min-height: auto;
}

.flash {
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.flash--success {
  background: rgba(13, 138, 119, 0.12);
  color: var(--primary-strong);
}

.flash--error {
  background: rgba(216, 79, 95, 0.12);
  color: var(--danger);
}

.single-card-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.single-card {
  width: min(560px, 100%);
  padding: 1.5rem;
}

.card-actions,
.inline-actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.auth-shell {
  background:
    radial-gradient(circle at top center, rgba(247, 188, 87, 0.16), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f9fbfd 100%);
}

.auth-shell .auth-page,
.auth-shell .single-card-page {
  width: min(460px, calc(100% - 1.5rem));
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem 0 2rem;
}

.auth-panel,
.auth-shell .single-card {
  width: min(460px, 100%);
  padding: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
}

.auth-panel__top {
  display: grid;
  gap: .9rem;
  justify-items: center;
  margin-bottom: 1rem;
}

.auth-panel__top--compact {
  margin-bottom: 1.15rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: .45rem .7rem .45rem .45rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.brand-chip--compact {
  transform: scale(.96);
}

.brand-chip__image {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: #f8fafc;
}

.brand-chip__copy {
  display: grid;
  gap: .05rem;
  text-align: center;
}

.brand-chip__copy strong {
  font-size: .96rem;
}

.brand-chip__copy span {
  color: var(--muted);
  font-size: .82rem;
}

.auth-head {
  display: grid;
  gap: .35rem;
}

.auth-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.55rem);
  line-height: 1.15;
}

.auth-head--compact h1 {
  font-size: clamp(1.7rem, 5vw, 2.1rem);
}

.auth-head p {
  margin: 0;
  font-size: .98rem;
  color: var(--muted);
}

.auth-head strong {
  color: var(--text);
}

.auth-mini-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem;
}

.auth-mini-points span {
  padding: .42rem .75rem;
  border-radius: 999px;
  background: #f6f8fb;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: .83rem;
  font-weight: 600;
}

.auth-card--flat {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.auth-panel__footer {
  margin-top: 1rem;
  padding-top: .95rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-shell .auth-tabs {
  background: #f7f9fc;
  padding: .35rem;
  border-radius: 18px;
  margin-bottom: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.auth-shell .auth-tab {
  background: transparent;
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  font-weight: 700;
}

.auth-shell .auth-tab.is-active {
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.auth-shell .field {
  text-align: center;
  gap: .5rem;
}

.auth-shell .field span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.auth-shell input,
.auth-shell select,
.auth-shell textarea {
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.auth-shell input {
  text-align: center;
  font-weight: 600;
}

.auth-shell input[name="phone"],
.otp-input {
  direction: ltr;
  letter-spacing: .08em;
}

.auth-shell input:focus,
.auth-shell textarea:focus,
.auth-shell select:focus {
  outline: none;
  border-color: rgba(15, 159, 127, 0.45);
  box-shadow:
    0 0 0 4px rgba(15, 159, 127, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.auth-note {
  margin: -.2rem 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.otp-stage__timer {
  --progress: 100;
  position: relative;
  width: 168px;
  height: 168px;
  margin: 1.2rem auto 1.3rem;
}

.otp-stage__ring {
  position: absolute;
  inset: 0;
  padding: 12px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #e8edf3 0);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

.otp-stage__ring::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
}

.otp-stage__timer-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .2rem;
}

.otp-stage__timer-value {
  font-size: 1.95rem;
  font-weight: 800;
  line-height: 1;
  direction: ltr;
  font-feature-settings: "tnum";
}

.otp-stage__timer-label {
  color: var(--muted);
  font-size: .84rem;
}

.otp-stage__form {
  gap: .9rem;
}

.otp-input {
  font-size: 1.55rem;
  letter-spacing: .32em;
}

.otp-stage__actions {
  display: grid;
  gap: .75rem;
  justify-items: center;
  margin-top: 1rem;
}

.otp-stage__actions form {
  width: 100%;
}

.otp-stage__actions .button {
  width: 100%;
}

.auth-shell .flash {
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border-radius: 16px;
}

.auth-shell .flash--success {
  background: rgba(15, 159, 127, 0.1);
}

.auth-shell .flash--error {
  background: rgba(216, 79, 95, 0.08);
}

@media (min-width: 720px) {
  .auth-shell .auth-page,
  .auth-shell .single-card-page {
    width: min(520px, calc(100% - 2rem));
  }

  .auth-panel,
  .auth-shell .single-card {
    padding: 1.35rem;
  }
}

.course-grid,
.panel-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.course-card {
  overflow: hidden;
  text-align: right;
}

.course-card__cover {
  height: 190px;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(13, 138, 119, 0.2), rgba(255, 184, 77, 0.2)),
    linear-gradient(120deg, #fff4d7, #dff9f1);
  background-size: cover;
  background-position: center;
}

.course-card__badge {
  background: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .88rem;
  font-weight: 700;
}

.course-card__body {
  padding: 1.2rem;
}

.course-card__body p,
.timeline-step__body p,
.panel p,
.single-card p,
.hero-card p,
.course-hero p,
.step-hero p {
  margin: 0;
}

.progress-bar {
  width: 100%;
  height: 10px;
  margin: .8rem 0;
  background: #f2e8d7;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: inherit;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .9rem;
  padding: 1rem;
  text-align: right;
}

.timeline-step__index {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--bg-soft);
  font-weight: 800;
  color: var(--primary-strong);
}

.timeline-step.is-locked {
  opacity: .78;
}

.timeline-step.is-passed .timeline-step__index {
  background: rgba(13, 138, 119, 0.14);
}

.locked-pill {
  display: inline-flex;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(126, 106, 88, 0.08);
}

.video-card,
.panel {
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.video-card__frame iframe {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 22px;
}

.question-block {
  text-align: right;
}

.question-block legend {
  font-weight: 800;
  padding: 0 .2rem;
}

.options {
  display: grid;
  gap: .7rem;
  margin-top: .8rem;
}

.option {
  padding: .8rem .95rem;
  border-radius: 16px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(54, 42, 30, 0.09);
}

.lottery-stage {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.lottery-stage__card {
  width: min(640px, 100%);
  padding: 1.6rem;
  background:
    radial-gradient(circle at top center, rgba(255, 184, 77, .36), transparent 35%),
    rgba(255,255,255,.93);
}

.lottery-actions {
  display: grid;
  gap: .9rem;
  margin-top: 1.3rem;
}

.callout {
  margin-top: 1rem;
  padding: .85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 184, 77, 0.13);
}

.callout--success {
  background: rgba(13, 138, 119, 0.12);
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.admin-layout {
  width: min(1280px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.admin-sidebar {
  display: grid;
  gap: .6rem;
  padding: 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.admin-sidebar a {
  padding: .8rem .9rem;
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}

.list {
  display: grid;
  gap: .8rem;
}

.list__row {
  padding: .95rem 1rem;
  border: 1px solid rgba(54, 42, 30, 0.08);
  border-radius: 18px;
  background: rgba(255,255,255,.74);
}

.list__row--stack {
  display: grid;
  gap: .2rem;
}

.question-card {
  margin-top: .7rem;
  padding: .8rem;
  border-radius: 18px;
  background: rgba(13, 138, 119, 0.06);
}

.question-card ul {
  margin: .5rem 0 0;
  padding-right: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.table th,
.table td {
  padding: .9rem .7rem;
  border-bottom: 1px solid rgba(54, 42, 30, 0.08);
}

.table th {
  color: var(--muted);
  font-weight: 700;
}

.filters-grid {
  display: grid;
  gap: .9rem;
}

.menu-drawer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 50;
}

.menu-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 17, .45);
}

.menu-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 92vw);
  height: 100%;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: #fffdf9;
  box-shadow: -30px 0 60px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .2s ease;
}

.menu-drawer.is-open .menu-drawer__panel {
  transform: translateX(0);
}

.menu-drawer__header,
.menu-drawer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-drawer__links {
  display: grid;
  gap: .65rem;
}

.menu-drawer__links a {
  padding: .9rem 1rem;
  border-radius: 16px;
  background: var(--bg-soft);
}

@media (min-width: 768px) {
  .auth-page {
    grid-template-columns: 1.1fr .9fr;
    align-items: stretch;
  }

  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (min-width: 1080px) {
  .course-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.auth-shell--v2 {
  background:
    radial-gradient(circle at top center, rgba(15, 159, 127, 0.07), transparent 26%),
    radial-gradient(circle at bottom center, rgba(247, 188, 87, 0.12), transparent 22%),
    #ffffff;
  padding-bottom: 0;
}

.auth-shell--v2 .auth-flow {
  min-height: 100vh;
  width: min(100%, 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem .9rem;
}

.auth-shell--v2 .auth-stage {
  width: min(100%, 28rem);
  display: grid;
  gap: 1.2rem;
}

.auth-shell--v2 .auth-stage--entry {
  width: min(100%, 31rem);
}

.auth-shell--v2 .auth-stage--compact {
  width: min(100%, 27rem);
}

.auth-shell--v2 .auth-stage__intro,
.auth-shell--v2 .auth-stage__headline {
  display: grid;
  gap: .55rem;
  justify-items: center;
}

.auth-shell--v2 .auth-stage__headline h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.1;
  font-weight: 800;
}

.auth-shell--v2 .auth-stage__headline--compact h1 {
  font-size: clamp(1.55rem, 5vw, 1.95rem);
}

.auth-shell--v2 .auth-stage__headline p {
  width: min(100%, 28rem);
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.9;
}

.auth-shell--v2 .auth-stage__headline strong {
  color: var(--text);
  font-weight: 700;
}

.auth-shell--v2 .auth-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .45rem .8rem .45rem .45rem;
  margin: 0 auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.auth-shell--v2 .auth-brand--center {
  justify-content: center;
}

.auth-shell--v2 .auth-brand__avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 22px;
  background: linear-gradient(180deg, #eff7f3, #f8fafc);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.auth-shell--v2 .auth-brand__avatar--small {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.auth-shell--v2 .auth-brand__copy {
  display: grid;
  gap: .05rem;
}

.auth-shell--v2 .auth-brand__copy strong {
  font-size: .98rem;
}

.auth-shell--v2 .auth-brand__copy span {
  color: var(--muted);
  font-size: .82rem;
}

.auth-shell--v2 .auth-card-v2 {
  width: 100%;
  padding: .5rem;
  border-radius: 32px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.08);
}

.auth-shell--v2 .auth-card-v2--single {
  padding: 1.15rem;
}

.auth-shell--v2 .auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  padding: .3rem;
  background: #f4f7fa;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.auth-shell--v2 .auth-switch__button {
  border: 0;
  border-radius: 14px;
  min-height: 46px;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.auth-shell--v2 .auth-switch__button.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.auth-shell--v2 .auth-form {
  display: none;
  gap: .95rem;
  padding: 1rem .45rem .45rem;
}

.auth-shell--v2 .auth-form.is-active,
.auth-shell--v2 .auth-form--single {
  display: grid;
}

.auth-shell--v2 .auth-field {
  display: grid;
  gap: .48rem;
  text-align: center;
}

.auth-shell--v2 .auth-field span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.auth-shell--v2 .auth-field input {
  min-height: 54px;
  padding: .95rem 1rem;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e3e8ef;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.auth-shell--v2 .auth-field input[name="phone"],
.auth-shell--v2 .otp-input {
  direction: ltr;
}

.auth-shell--v2 .auth-field input:focus {
  outline: none;
  border-color: rgba(15, 159, 127, 0.45);
  box-shadow:
    0 0 0 4px rgba(15, 159, 127, 0.08),
    inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.auth-shell--v2 .auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: .15rem;
}

.auth-shell--v2 .auth-caption {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.auth-shell--v2 .auth-inline-link {
  justify-self: center;
}

.auth-shell--v2 .auth-card-v2__footer {
  padding: .35rem .45rem .2rem;
  text-align: center;
}

.auth-shell--v2 .flash {
  margin: .85rem 0 0;
  border-radius: 16px;
  padding: .85rem 1rem;
}

.auth-shell--v2 .flash--success {
  background: rgba(15, 159, 127, 0.1);
}

.auth-shell--v2 .flash--error {
  background: rgba(216, 79, 95, 0.08);
}

.auth-shell--v2 .otp-clock {
  --progress: 100;
  width: 166px;
  height: 166px;
  position: relative;
  margin: .45rem auto 1rem;
}

.auth-shell--v2 .otp-clock__ring {
  position: absolute;
  inset: 0;
  padding: 11px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--progress) * 1%), #e8edf3 0);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
}

.auth-shell--v2 .otp-clock__ring::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
}

.auth-shell--v2 .otp-clock__content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: .2rem;
}

.auth-shell--v2 .otp-clock__value {
  direction: ltr;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-feature-settings: "tnum";
}

.auth-shell--v2 .otp-clock__content span {
  color: var(--muted);
  font-size: .82rem;
}

.auth-shell--v2 .otp-input {
  letter-spacing: .32em;
  font-size: 1.5rem;
  padding-inline-start: 1.3rem;
}

.auth-shell--v2 .auth-support {
  display: grid;
  gap: .8rem;
  justify-items: center;
  margin-top: 1rem;
}

.auth-shell--v2 .auth-support__block,
.auth-shell--v2 .auth-support__block form {
  width: 100%;
}

.auth-shell--v2 .auth-support__button {
  width: 100%;
}

.auth-shell--v2 .text-link {
  color: var(--primary-strong);
}

@media (min-width: 768px) {
  .auth-shell--v2 .auth-flow {
    padding: 2.25rem 1rem;
  }

  .auth-shell--v2 .auth-stage--entry {
    width: min(100%, 34rem);
    gap: 1.35rem;
  }

  .auth-shell--v2 .auth-stage--compact {
    width: min(100%, 29rem);
  }

  .auth-shell--v2 .auth-card-v2 {
    padding: .55rem;
  }

  .auth-shell--v2 .auth-card-v2--single {
    padding: 1.35rem;
  }

  .auth-shell--v2 .auth-stage__headline p {
    font-size: 1rem;
  }
}
