:root {
  --primary: #4a90e2;
  --secondary: #2ecc71;
  --background: #f7f8fa;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --warning: #f5a623;
  --success: #34c759;
  --violet: #8e7cf6;
  --rose: #ff7a90;
  --cyan: #5ac8fa;
  --line: #e7e9ee;
  --shadow: 0 18px 48px rgba(28, 28, 30, 0.09);
  --soft-shadow: 0 10px 28px rgba(28, 28, 30, 0.07);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at 16% 12%, rgba(74, 144, 226, 0.16), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(46, 204, 113, 0.12), transparent 25%),
    radial-gradient(circle at 48% 92%, rgba(255, 122, 144, 0.1), transparent 30%),
    var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  width: min(430px, 100%);
  height: min(900px, calc(100vh - 56px));
  min-height: 720px;
  overflow: hidden;
  background: var(--background);
  border: 1px solid rgba(28, 28, 30, 0.1);
  border-radius: 34px;
  box-shadow: 0 30px 90px rgba(28, 28, 30, 0.18);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 42px 0 auto 0;
  height: 270px;
  pointer-events: none;
  background: radial-gradient(circle at 18% 20%, rgba(74, 144, 226, 0.2), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(46, 204, 113, 0.18), transparent 28%),
    radial-gradient(circle at 42% 86%, rgba(245, 166, 35, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(255, 122, 144, 0.1));
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.statusbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.status-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-dots i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.72;
}

.screen {
  height: calc(100% - 42px);
  overflow: hidden;
  position: relative;
}

.view {
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.32s ease both;
}

.app-view {
  animation: none;
}

.scroll {
  overflow-y: auto;
  padding: 22px 22px 116px;
  scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.center {
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 34px;
  text-align: center;
}

.logo-mark {
  width: 88px;
  height: 76px;
  margin: 0 auto 16px;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.brand {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.slogan {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.hero-illustration {
  width: 100%;
  max-width: 318px;
  margin: 4px auto 24px;
  filter: drop-shadow(0 18px 26px rgba(74, 144, 226, 0.12));
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 38px;
  line-height: 1.06;
  font-weight: 780;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.12;
  font-weight: 760;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.24;
  font-weight: 720;
}

.lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.button-stack {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 22px;
}

.button-stack.compact {
  justify-items: start;
  margin-top: 24px;
  padding-top: 0;
}

.quiz-actions {
  grid-template-columns: auto auto;
  align-items: center;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn {
  min-height: 50px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #3d7fd0);
  box-shadow: 0 14px 28px rgba(74, 144, 226, 0.22);
}

.compact-btn {
  width: auto;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 15px;
  font-size: 14px;
}

.secondary-btn {
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
}

.ghost-btn {
  min-height: 44px;
  color: var(--muted);
  background: transparent;
}

.icon-btn {
  width: 48px;
  min-height: 48px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.primary-btn:active,
.secondary-btn:active,
.ghost-btn:active,
.icon-btn:active,
.task-card:active,
.nav-item:active {
  transform: scale(0.98);
}

.card {
  background: var(--card);
  border: 1px solid rgba(28, 28, 30, 0.075);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(28, 28, 30, 0.065);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.7), rgba(46, 204, 113, 0.62), rgba(245, 166, 35, 0.62));
  opacity: 0.76;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.feature-card {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.offer-list .feature-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.14), rgba(255, 255, 255, 0.94));
}

.offer-list .feature-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.14), rgba(255, 255, 255, 0.94));
}

.offer-list .feature-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(255, 255, 255, 0.94));
}

.result-notes {
  margin-top: 14px;
}

.methods-title {
  margin-top: 22px;
}

.methods-title h2 {
  color: var(--text);
}

.icon-disc {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: rgba(74, 144, 226, 0.11);
}

.icon-disc.green {
  color: var(--success);
  background: rgba(52, 199, 89, 0.12);
}

.icon-disc.warn {
  color: var(--warning);
  background: rgba(245, 166, 35, 0.14);
}

.icon-disc.violet {
  color: var(--violet);
  background: rgba(142, 124, 246, 0.13);
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 4px;
}

.quick-stats span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(231, 233, 238, 0.88);
  box-shadow: 0 8px 20px rgba(28, 28, 30, 0.05);
  font-size: 12px;
  font-weight: 760;
}

.access-card {
  margin: 18px 0 8px;
  padding: 22px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.16), rgba(142, 124, 246, 0.1) 42%, rgba(46, 204, 113, 0.12)), var(--card);
  border-color: rgba(74, 144, 226, 0.18);
}

.access-card h2 {
  margin: 14px 0 8px;
  font-size: 24px;
}

.access-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.45;
}

.access-card .primary-btn {
  width: 100%;
}

.payment-actions {
  display: grid;
  gap: 10px;
}

.payment-actions .secondary-btn {
  width: 100%;
}

.primary-btn {
  padding: 0 18px;
  text-decoration: none;
}

.icon-disc svg,
.tab-icon svg,
.task-check svg,
.small-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card p,
.module-card p,
.task-card p,
.metric-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 14px;
}

.quiz-card {
  padding: 18px;
  margin-top: 20px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.option {
  min-height: 48px;
  justify-content: flex-start;
  padding: 0 16px;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.option.selected {
  color: var(--primary);
  border-color: rgba(74, 144, 226, 0.45);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(90, 200, 250, 0.08));
}

.step-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 18px;
}

.step-dots span {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #d8dce3;
}

.step-dots span.active {
  width: 24px;
  background: var(--primary);
}

.pay-card {
  padding: 24px;
  margin: 22px 0;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
}

.price strong {
  font-size: 42px;
  letter-spacing: 0;
}

.price span {
  color: var(--muted);
  font-weight: 700;
}

.mini-note {
  color: var(--muted);
  font-size: 13px;
}

.progress-wrap {
  display: grid;
  gap: 10px;
  margin: 18px 0 10px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eaf0;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transition: width 0.48s ease;
}

.progress-fill.green {
  background: linear-gradient(90deg, var(--success), var(--secondary));
}

.progress-fill.warn {
  background: linear-gradient(90deg, var(--warning), #ffcc66);
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.task-list,
.module-grid,
.metric-list,
.profile-list {
  display: grid;
  gap: 13px;
}

.task-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.9));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
}

.task-list .task-card:nth-child(1) {
  border-color: rgba(74, 144, 226, 0.2);
}

.task-list .task-card:nth-child(2) {
  border-color: rgba(52, 199, 89, 0.22);
}

.task-list .task-card:nth-child(3) {
  border-color: rgba(245, 166, 35, 0.23);
}

.task-card.done {
  border-color: rgba(52, 199, 89, 0.34);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.11), rgba(255, 255, 255, 0.82));
}

.task-check {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--background);
  border: 1px solid var(--line);
}

.task-card.done .task-check {
  color: #fff;
  background: var(--success);
  border-color: var(--success);
  animation: pop 0.28s ease both;
}

.task-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--background);
  font-size: 12px;
  font-weight: 750;
}

.module-card {
  padding: 18px;
}

.module-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), var(--card) 58%);
}

.module-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), var(--card) 58%);
}

.module-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), var(--card) 58%);
}

.module-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}

.module-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--success), var(--secondary));
}

.module-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--warning), var(--rose));
}

.module-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.module-card .secondary-btn {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  border-radius: 16px;
}

.completion-card {
  display: none;
  padding: 20px;
  margin-top: 18px;
  border-color: rgba(52, 199, 89, 0.28);
  background: linear-gradient(180deg, rgba(52, 199, 89, 0.11), var(--card));
}

.completion-card.show {
  display: block;
  animation: fadeUp 0.28s ease both;
}

.bottom-nav {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(28, 28, 30, 0.12);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.nav-item {
  min-height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 750;
}

.nav-item.active {
  color: var(--primary);
  background: rgba(74, 144, 226, 0.1);
}

.metric-card {
  padding: 18px;
  background: linear-gradient(135deg, rgba(90, 200, 250, 0.08), var(--card) 58%);
}

.metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(74, 144, 226, 0.06));
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-row:nth-child(2n) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(46, 204, 113, 0.07));
}

.profile-row:nth-child(3n) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 166, 35, 0.08));
}

.profile-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.account-section {
  margin-bottom: 18px;
}

.account-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-card h3 {
  margin: 0;
}

.account-button {
  width: 100%;
  margin-top: 10px;
}

.account-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.account-actions .secondary-btn,
.account-actions .ghost-btn {
  width: 100%;
}

.auth-scroll {
  padding-top: 12px;
}

.auth-back {
  justify-content: flex-start;
  padding: 0;
  margin-bottom: 18px;
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-top: 24px;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-card input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
}

.auth-card input:focus {
  border-color: rgba(74, 144, 226, 0.62);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.auth-card .otp-input {
  text-align: center;
  font-size: 26px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.auth-card .primary-btn {
  width: 100%;
}

.auth-card .primary-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-error {
  min-height: 18px;
  margin: -4px 0 0;
  color: #d64045;
  font-size: 13px;
  line-height: 1.4;
}

.auth-error.success {
  color: var(--success);
}

.paypal-checkout {
  min-height: 76px;
  margin-top: 18px;
}

.paypal-checkout .primary-btn {
  width: 100%;
}

#paypal-button-container {
  min-height: 48px;
}

.payment-message {
  min-height: 20px;
  margin: 10px 4px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.checkout-account {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.checkout-account .ghost-btn {
  padding: 8px;
}

.auth-switch {
  width: 100%;
  margin-top: 16px;
  padding: 12px;
  color: var(--primary);
  background: transparent;
  font-weight: 700;
}

.confirmation-view {
  max-width: 380px;
  margin: 0 auto;
}

.confirmation-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  color: #fff;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(52, 199, 89, 0.24);
}

.confirmation-mark svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation-action {
  width: 100%;
  margin-top: 12px;
}

.toggle {
  width: 52px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  background: #d9dde4;
  transition: background 0.2s ease;
}

.toggle::after {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(28, 28, 30, 0.18);
  transition: transform 0.2s ease;
}

.toggle.on {
  background: var(--primary);
}

.toggle.on::after {
  transform: translateX(22px);
}

.toast {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 96px;
  z-index: 4;
  padding: 14px 16px;
  color: #fff;
  background: rgba(28, 28, 30, 0.92);
  border-radius: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 750;
  animation: toast 1.6s ease both;
}

.dark {
  --background: #111318;
  --card: #1b1e24;
  --text: #f6f7f9;
  --muted: #a8adb7;
  --line: #2a2f39;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --soft-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.dark .quick-stats span {
  background: rgba(27, 30, 36, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .phone,
.phone.dark {
  border-color: rgba(255, 255, 255, 0.1);
}

.phone.dark .bottom-nav {
  background: rgba(27, 30, 36, 0.84);
  border-color: rgba(255, 255, 255, 0.08);
}

.phone.dark .progress-track,
.phone.dark .task-check,
.phone.dark .pill,
.phone.dark .option {
  background: #242832;
}

.phone.dark .offer-list .feature-card,
.phone.dark .task-card,
.phone.dark .module-card,
.phone.dark .metric-card,
.phone.dark .profile-row,
.phone.dark .access-card {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(27, 30, 36, 0.96));
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop {
  0% {
    transform: scale(0.82);
  }
  70% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes toast {
  0%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
  12%,
  86% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 34px;
  }
}
