:root {
  --bg: #181a1f;
  --bg-elevated: #1e2127;
  --panel: #17191e;
  --panel-border: rgba(255, 255, 255, 0.06);
  --field: #3a3d42;
  --field-border: rgba(255, 255, 255, 0.08);
  --text: #f2f4f6;
  --text-soft: rgba(242, 244, 246, 0.78);
  --text-faint: rgba(242, 244, 246, 0.52);
  --accent: #0ca793;
  --accent-strong: #0fb6a0;
  --accent-soft: rgba(12, 167, 147, 0.18);
  --danger: #ff8f97;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
  --radius-panel: 28px;
  --radius-field: 8px;
  --radius-button: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Sans Armenian", "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, rgba(12, 167, 147, 0.08), transparent 28rem),
    linear-gradient(180deg, #26292f 0%, #1e2026 42%, #181a1f 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  pointer-events: none;
}

body::after {
  right: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.page-shell {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

.page,
.birth-year-page,
.age-page {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 24px;
}

.landing-page {
  display: flex;
}

.landing-card {
  padding: 10px 6px 0;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.landing-card .brand-lockup {
  margin: 0 auto 34px;
}

.card,
.step-card,
.landing-card,
.survey-card,
.survey-finish-card,
.waiting-card,
.rejected-card,
.auth-card,
.birth-year-card,
.age-card,
.call-screen {
  width: 100%;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.screen-panel,
.birth-year-sheet,
.age-sheet {
  width: 100%;
  min-height: 100%;
  padding: 8px 6px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.survey-card .screen-panel,
.survey-finish-card .screen-panel,
.waiting-card .screen-panel,
.rejected-card .screen-panel,
.call-screen .screen-panel {
  padding: 30px 24px 28px;
  border-radius: var(--radius-panel);
  background:
    linear-gradient(180deg, rgba(28, 31, 38, 0.98), rgba(21, 23, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--accent-strong);
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 20px;
  border-radius: 0 0 10px 10px;
  background: var(--accent-strong);
  transform: skewX(-14deg);
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-strong);
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
}

.brand-wordmark {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.section-copy,
.landing-copy {
  margin-bottom: 22px;
}

.landing-copy {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.landing-copy h1,
.auth-title,
.hero-copy h1,
.step-copy h1,
.call-title,
.birth-year-title,
.age-title {
  margin: 0;
  color: var(--text);
  font-family: "Noto Sans Armenian", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}


.landing-copy .subtitle {
  margin-top: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 18rem;
  color: rgba(242, 244, 246, 0.72);
}

.subtitle,
.birth-year-copy,
.loading-text,
.status,
.age-copy {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.93rem;
  line-height: 1.5;
}

.landing-hero {
  flex: 1;
  min-height: 320px;
  margin: 6px 0 22px;
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 18%, rgba(12, 167, 147, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(24, 41, 43, 0.92), rgba(20, 23, 29, 0.98)),
    center center / 74% auto no-repeat url("./img/logos.png");
  background-color: rgba(21, 38, 40, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 44px rgba(0, 0, 0, 0.18);
}

.landing-hero::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 26%, rgba(0, 0, 0, 0.08) 100%);
}

.landing-actions,
.waiting-card,
.survey-finish-card,
.rejected-card {
  margin-top: auto;
}

.landing-actions {
  width: 100%;
  max-width: 340px;
  margin-top: 0;
}

.landing-actions {
  padding-bottom: 2px;
}

.landing-btn {
  min-height: 48px;
}

.waiting-card,
.rejected-card,
.survey-finish-card,
.call-screen {
  justify-content: center;
}

.waiting-card .screen-panel,
.rejected-card .screen-panel,
.survey-finish-card .screen-panel,
.call-screen .screen-panel {
  max-width: 100%;
}

.survey-finish-card .screen-panel {
  min-height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.survey-finish-card .brand-lockup {
  margin-bottom: 0;
}

.survey-finish-card .section-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0;
  text-align: center;
}

.survey-finish-card .section-copy h1 {
  margin: 0 auto;
  text-wrap: balance;
}

.survey-finish-card .section-copy .subtitle {
  max-width: 20rem;
  margin: 14px auto 0;
  color: rgba(242, 244, 246, 0.72);
}

.survey-finish-card .submit-btn {
  margin-top: 0;
}

.phone-form,
.step-form,
.survey-form,
.auth-form,
.birth-year-form,
.age-form {
  display: grid;
  gap: 14px;
}

.phone-form-fields {
  display: grid;
  gap: 10px;
}

.field-label {
  display: block;
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.phone-field,
.birth-year-code-shell,
.age-code-shell,
.survey-option {
  width: 100%;
  border-radius: var(--radius-field);
}

.phone-field,
.birth-year-code-shell,
.age-code-shell {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  background: var(--field);
  border: 1px solid var(--field-border);
}

.has-action {
  padding-right: 8px;
}

.phone-field input,
.birth-year-native-input,
.age-native-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
}

.phone-field input::placeholder,
.birth-year-native-input::placeholder,
.age-native-input::placeholder {
  color: var(--text-faint);
}

.field-action,
.password-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.eye-icon {
  position: relative;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 12px / 8px;
}

.eye-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.password-toggle.is-active .eye-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(-30deg);
}

.inline-link {
  color: var(--text);
  font-size: 0.92rem;
  text-decoration-color: rgba(255, 255, 255, 0.8);
  text-underline-offset: 0.18rem;
}

.form-link {
  width: fit-content;
  margin-top: 2px;
}

.submit-btn,
.primary-cta,
.birth-year-open-btn {
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius-button);
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(12, 167, 147, 0.24);
  cursor: pointer;
}

.submit-btn:disabled,
.birth-year-submit:disabled {
  background: #4a4d52;
  color: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  cursor: not-allowed;
}

.auth-submit {
  margin-top: 12px;
}

.status,
.field-error,
.error-card {
  min-height: 18px;
  font-size: 0.88rem;
}

.field-error,
.status.is-error {
  color: var(--danger);
}

.survey-form {
  gap: 12px;
}

.survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.survey-option input {
  accent-color: var(--accent);
}

.birth-year-copy {
  display: grid;
  gap: 10px;
  margin-bottom: 4px;
}

.birth-year-open-btn {
  min-height: 46px;
}

.birth-year-code-shell {
  position: relative;
  min-height: 62px;
  padding: 10px 12px;
  cursor: text;
}

.birth-year-native-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: text;
}

.birth-year-code,
.age-code {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.age-code {
  grid-template-columns: repeat(4, 1fr);
}

.birth-year-slot,
.age-slot {
  min-height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.birth-year-slot.is-active,
.birth-year-slot.is-filled,
.age-slot.is-active,
.age-slot.is-filled {
  border-color: rgba(15, 182, 160, 0.6);
  box-shadow: inset 0 0 0 1px rgba(15, 182, 160, 0.16);
}

.loading-box,
.flow-inline-waiting {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.waiting-loading-box {
  padding: 12px 0 4px;
}

.loading-ring,
.phone-waiting-ring {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-strong);
  border-radius: 50%;
  animation: spin 0.95s linear infinite;
}

.waiting-copy,
.call-copy,
.hero-copy,
.step-copy {
  text-align: center;
}

.waiting-copy h1 {
  max-width: 8.5ch;
  margin: 0 auto;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.waiting-copy .subtitle {
  max-width: 18rem;
  margin: 10px auto 0;
  color: rgba(242, 244, 246, 0.68);
}

.waiting-status {
  margin-top: 8px;
  color: rgba(242, 244, 246, 0.82);
  font-weight: 500;
}

.call-phone {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
}

.call-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.call-timer-box {
  min-width: 56px;
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--field);
  border: 1px solid var(--field-border);
  font-size: 1.15rem;
  font-weight: 700;
}

.call-timer-sep {
  color: var(--text-faint);
  font-size: 1.1rem;
}

.input-mobile-header,
.mobile-header,
.hero-stage,
.landing-globe,
.call-brand,
.hero-stage-visual,
.hero-ring,
.hero-pedestal,
.hero-phone,
.hero-float-card,
.hero-float-icon,
.hero-ball,
.circle-btn,
.back-link,
.header-chip {
  display: none !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 420px) {
  .page,
  .birth-year-page,
  .age-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .survey-card .screen-panel,
  .survey-finish-card .screen-panel,
  .waiting-card .screen-panel,
  .rejected-card .screen-panel,
  .call-screen .screen-panel {
    padding: 24px 18px;
  }
}
