@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Tenor+Sans&display=swap");

:root {
  --finup-navy: #0f2744;
  --finup-navy-light: #1a3558;
  --finup-burgundy: #6d2235;
  --finup-burgundy-light: #842a42;
  --finup-brand-red: #c41e3a;
  --finup-text: #0f2744;
  --finup-muted: #5c6b7a;
  --finup-border: #e2e8f0;
  --finup-bg: #f8fafc;
}

@keyframes bounce-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.animate-bounce-in {
  animation: bounce-in 0.4s ease-out;
}

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

.hayot-page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  transition: opacity 0.38s ease, visibility 0.38s ease;
}

.hayot-page-loader--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.hayot-page-loader-inner {
  text-align: center;
  max-width: 22rem;
  padding: 2rem 1.5rem;
}

.hayot-page-loader-mark {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid #e2e8f0;
  border-top-color: var(--finup-burgundy);
  animation: hayot-loader-spin 0.85s linear infinite;
}

.hayot-page-loader-title {
  font-family: "Tenor Sans", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--finup-navy);
  margin: 0 0 0.5rem;
}

.hayot-page-loader-sub {
  font-size: 0.875rem;
  color: var(--finup-muted);
  margin: 0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--finup-text);
  background: #fff;
  line-height: 1.5;
}

.font-heading {
  font-family: "Tenor Sans", Georgia, serif;
}

/* «Ҳаёт баланси» — red fill + burgundy outline */
.hayot-brand-name {
  color: var(--finup-brand-red);
  -webkit-text-stroke: 1px var(--finup-burgundy);
  paint-order: stroke fill;
  text-shadow: 0 0 1px rgba(109, 34, 53, 0.35);
}

.hayot-nav-brand .hayot-brand-name {
  color: #ff8a96;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* AI profile gate — intro + privacy callouts */
.hayot-profile-gate {
  padding: 1.25rem 1.35rem 1.35rem;
}

.hayot-profile-gate-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--finup-burgundy);
}

.hayot-profile-gate-intro {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1a1a1a;
  background: linear-gradient(135deg, rgba(109, 34, 53, 0.08) 0%, rgba(109, 34, 53, 0.04) 100%);
  border-left: 4px solid var(--finup-burgundy);
  border-radius: 0 8px 8px 0;
}

.hayot-profile-gate-intro .hayot-brand-name {
  font-size: inherit;
}

.hayot-profile-gate-fields {
  margin-bottom: 0.25rem;
}

.hayot-profile-gate-privacy {
  margin: 1.1rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--finup-burgundy);
  background: #f8f4f5;
  border: 1px solid rgba(109, 34, 53, 0.22);
  border-radius: 8px;
  text-align: center;
}

.hayot-profile-gate-privacy::before {
  content: "🔒 ";
}

.hayot-profile-gate-actions {
  margin-top: 1rem;
}

.hayot-profile-gate-btn {
  max-width: 20rem;
  width: 100%;
}

.hayot-chat-log {
  max-height: 22rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 8px;
}

.hayot-chat-msg {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  line-height: 1.5;
  max-width: 92%;
  white-space: pre-wrap;
}

.hayot-chat-msg--user {
  align-self: flex-end;
  background: var(--finup-burgundy);
  color: #fff;
}

.hayot-chat-msg--assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.hayot-chat-form {
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
}

.hayot-chat-form .hayot-textarea {
  flex: 1;
  margin: 0;
}

.hayot-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
}

.hayot-cal-cell {
  aspect-ratio: 1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hayot-cal-cell--empty {
  border: none;
  background: transparent;
  cursor: default;
}

.hayot-cal-cell--mark {
  border-color: var(--finup-burgundy);
  background: #fdf4f6;
  font-weight: 600;
}

.hayot-cal-cell--selected {
  outline: 2px solid var(--finup-burgundy);
}

.hayot-review-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hayot-review-rec-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  animation: hayot-rec-pulse 1s ease-in-out infinite;
}

@keyframes hayot-rec-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.hayot-nav {
  background: var(--finup-burgundy);
  color: #fff;
}

.hayot-nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.hayot-nav-brand {
  font-family: "Tenor Sans", Georgia, serif;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.hayot-nav-brand:hover {
  opacity: 0.9;
}

.hayot-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  overflow-x: auto;
  padding: 0.25rem 0;
}

.hayot-nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.hayot-nav-links a:hover {
  color: #fff;
}

.hayot-nav-active {
  color: #fff !important;
  font-weight: 600;
  border-bottom: 2px solid #fff;
}

.hayot-nav-logout {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75) !important;
  padding: 0.5rem 0.5rem !important;
}

.hayot-nav-logout:hover {
  color: #fff !important;
}

.hayot-nav-xp {
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff !important;
}

.hayot-lang {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.hayot-lang button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0.25rem 0.35rem;
  border-radius: 0.25rem;
}

.hayot-lang button:hover {
  color: #fff;
}

.hayot-lang-on {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  font-weight: 600;
}

.hayot-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hayot-main-wide {
  max-width: 56rem;
}

.hayot-card {
  border: 1px solid var(--finup-border);
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.06);
}

/* Plan step: highlight 3 weakest areas (exercise averages) */
.hayot-plan-area {
  padding: 0.75rem 1rem;
}
.hayot-plan-area--weak {
  border-color: #fecaca;
  background: #fff1f2;
}
.hayot-plan-area--weak strong {
  color: #991b1b;
}
.hayot-plan-area-score {
  display: block;
  font-size: 0.875rem;
  margin-top: 0.35rem;
  color: var(--finup-muted);
}
.hayot-plan-area--weak .hayot-plan-area-score {
  color: #9f1239;
}

.hayot-pro-upsell {
  border: 1px solid #c7d2fe;
  border-radius: 0.75rem;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 55%, #f1f5f9 100%);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 39, 68, 0.06);
}
.hayot-pro-upsell-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--finup-navy);
  font-size: 1.05rem;
  line-height: 1.35;
}
.hayot-pro-upsell-body {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--finup-text);
}
.hayot-pro-upsell .hayot-pro-upsell-btn {
  width: auto;
  display: inline-block;
  padding: 0.65rem 1.35rem;
  text-align: center;
}

.hayot-pro-upsell--in-card {
  margin-bottom: 1rem;
  padding: 0.95rem 1.1rem;
}
.hayot-pro-upsell--in-card .hayot-pro-upsell-title {
  font-size: 1rem;
}

.hayot-ai-report-card .hayot-ai-report-out {
  border-top: 1px solid var(--finup-border);
  padding-top: 1rem;
}
.hayot-ai-h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--finup-navy);
}
.hayot-ai-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--finup-text);
}
.hayot-ai-p {
  margin: 0 0 0.65rem;
  line-height: 1.55;
  font-size: 0.95rem;
}
.hayot-ai-block {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--finup-bg);
  border: 1px solid var(--finup-border);
}
.hayot-ai-day {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--finup-border);
}
.hayot-ai-task {
  margin: 0.5rem 0 0 0.5rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--finup-navy);
}
.hayot-ai-disclaimer {
  font-size: 0.8rem;
  color: var(--finup-muted);
  margin-top: 1rem;
  font-style: italic;
}

.hayot-ai-sublabel {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--finup-muted);
  margin: 0.65rem 0 0.25rem;
}

.hayot-ai-advice-wrap {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 0.5rem;
  border: 1px solid #c7d2fe;
  background: #f8fafc;
}

.hayot-ai-advice-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--finup-border);
}

.hayot-ai-advice-item:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.35rem;
}

.hayot-ai-flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 11000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
}

.hayot-ai-flow-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 24rem;
}
.hayot-ai-flow-inner--wide {
  max-width: 28rem;
}
.hayot-ai-flow-spinner {
  margin: 0 auto 1rem;
}
.hayot-ai-flow-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--finup-navy);
  margin: 0;
  line-height: 1.45;
  min-height: 3.2em;
}

/* Hide page chrome while AI loading overlay is open (avoids ghost text behind overlay). */
body.hayot-ai-flow-active {
  overflow: hidden;
}

body.hayot-ai-flow-active .hayot-nav,
body.hayot-ai-flow-active .hayot-main {
  visibility: hidden;
  pointer-events: none;
}

/* Overlay is a direct child of body (not inside .hayot-main). */
body.hayot-ai-flow-active .hayot-ai-flow-overlay {
  visibility: visible;
  pointer-events: auto;
}

body.hayot-ai-flow-active #hayot-page-loader {
  display: none !important;
}

.hayot-hint {
  border: 1px solid var(--finup-border);
  border-radius: 0.75rem;
  background: var(--finup-bg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.hayot-hint-title {
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--finup-text);
}

.hayot-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  color: #fff;
  background: var(--finup-navy);
}

.hayot-btn:hover {
  background: var(--finup-navy-light);
}

.hayot-btn-outline {
  background: transparent;
  color: var(--finup-navy);
  border: 2px solid var(--finup-navy);
}

.hayot-btn-outline:hover {
  background: var(--finup-bg);
}

.hayot-input,
.hayot-textarea,
.hayot-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--finup-border);
  border-radius: 0.5rem;
  font: inherit;
}

.hayot-textarea {
  min-height: 5rem;
  resize: vertical;
}

.hayot-muted {
  color: var(--finup-muted);
  font-size: 0.875rem;
}

.hayot-ai-flow-overlay .hayot-ai-flow-sub {
  color: #3d4f60;
  font-size: 0.9rem;
}

.hayot-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.hayot-step {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--finup-bg);
  border: 1px solid var(--finup-border);
  color: var(--finup-muted);
}

.hayot-step-done {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.hayot-step-current {
  border-color: var(--finup-navy);
  color: var(--finup-navy);
  font-weight: 600;
}

.hayot-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hayot-wheel-hint {
  font-size: 0.75rem;
  color: var(--finup-muted);
  text-align: center;
  max-width: 20rem;
  margin: 0;
}

.hayot-wheel-total {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--finup-text);
}

.hayot-wheel-total-label {
  font-weight: 700;
}

.hayot-wheel-total-val {
  font-weight: 800;
}

.hayot-wheel-total-max {
  color: var(--finup-muted);
  font-weight: 700;
}

.hayot-wheel-total-red { color: #b91c1c; }
.hayot-wheel-total-yellow { color: #a16207; }
.hayot-wheel-total-green { color: #15803d; }

.hayot-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
}

.hayot-modal {
  width: 100%;
  max-width: 32rem;
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--finup-border);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hayot-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hayot-modal-head h3 {
  margin: 0;
  font-family: "Tenor Sans", Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
}

.hayot-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--finup-muted);
  padding: 0.25rem;
}

.hayot-modal-q {
  font-size: 0.875rem;
  color: var(--finup-muted);
  padding: 0.75rem;
  background: var(--finup-bg);
  border-radius: 0.5rem;
  border: 1px solid var(--finup-border);
  margin-bottom: 1rem;
}

.hayot-modal-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.hayot-rating-row {
  /* Use grid to avoid "space-between" stretching on wrapped rows (mobile). */
  display: grid;
  grid-template-columns: repeat(10, minmax(2.25rem, 1fr));
  gap: 0.35rem;
  justify-items: center;
}

.hayot-rate-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: var(--finup-text);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

@media (max-width: 520px) {
  .hayot-rating-row {
    /* Two clean rows: 1–5 and 6–10, keeping 8/9/10 side-by-side */
    grid-template-columns: repeat(5, minmax(2.25rem, 1fr));
  }
}

.hayot-rate-red { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.hayot-rate-yellow { background: #fef9c3; border-color: #fde68a; color: #713f12; }
.hayot-rate-green { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }

.hayot-rate-btn:hover:not(.hayot-rate-btn-active) {
  filter: brightness(0.96);
}

/* Selected rating: solid fill + white digit (tier matches low / mid / high) */
.hayot-rate-btn-active {
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(15, 39, 68, 0.22);
  outline: 0;
}

.hayot-rate-btn-active.hayot-rate-red {
  background: #dc2626;
  border-color: #b91c1c;
}

.hayot-rate-btn-active.hayot-rate-red:hover {
  background: #b91c1c;
  border-color: #991b1b;
  color: #fff;
}

.hayot-rate-btn-active.hayot-rate-yellow {
  background: #ca8a04;
  border-color: #a16207;
}

.hayot-rate-btn-active.hayot-rate-yellow:hover {
  background: #a16207;
  border-color: #854d0e;
  color: #fff;
}

.hayot-rate-btn-active.hayot-rate-green {
  background: #16a34a;
  border-color: #15803d;
}

.hayot-rate-btn-active.hayot-rate-green:hover {
  background: #15803d;
  border-color: #166534;
  color: #fff;
}

/* Wheel modal etc.: buttons without tier classes */
.hayot-rate-btn-active:not(.hayot-rate-red):not(.hayot-rate-yellow):not(.hayot-rate-green) {
  background: var(--finup-navy);
  border-color: var(--finup-navy);
  color: #fff;
}

.hayot-rate-btn-active:not(.hayot-rate-red):not(.hayot-rate-yellow):not(.hayot-rate-green):hover {
  background: var(--finup-navy-light);
  border-color: var(--finup-navy-light);
  color: #fff;
}

.hayot-ex-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.75rem 0;
  background: linear-gradient(to top, rgba(255,255,255,0.98), rgba(255,255,255,0.65));
  backdrop-filter: blur(6px);
  margin-top: 1rem;
}

@media (max-width: 520px) {
  .hayot-ex-nav {
    grid-template-columns: 1fr 1fr;
  }
}

/* Scroll targets stay clear of sticky bottom nav on phones */
#subs .hayot-card {
  scroll-margin-bottom: 5.5rem;
  scroll-margin-top: 0.75rem;
}

.hayot-ex-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hayot-ex-sphere-header {
  margin-bottom: 1rem;
}

.hayot-ex-sphere-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--finup-navy);
}

.hayot-ex-sphere-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--finup-text);
}

.hayot-ex-sphere-quote {
  font-style: italic;
  margin: 0;
}

.hayot-ex-sphere-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 0 1rem;
  padding: 0.65rem 1rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--finup-border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(15, 39, 68, 0.08);
}

.hayot-ex-sphere-sticky-text {
  font-size: 0.95rem;
  color: var(--finup-text);
}

.hayot-ex-sphere-sticky-text strong {
  font-weight: 700;
  color: var(--finup-navy);
}

.hayot-ex-avg-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.hayot-ex-avg-label {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.hayot-ex-avg-inner {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.5rem;
}

.hayot-avg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--finup-border);
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 1.75rem;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(15, 39, 68, 0.12);
}

.hayot-avg-red { background: #fee2e2; border-color: #fecaca; color: #7f1d1d; }
.hayot-avg-yellow { background: #fef9c3; border-color: #fde68a; color: #713f12; }
.hayot-avg-green { background: #dcfce7; border-color: #bbf7d0; color: #14532d; }

.hayot-ex-back-btn {
  width: auto;
  display: inline-block;
}

.hayot-skip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--finup-navy);
  cursor: pointer;
  white-space: nowrap;
}

.hayot-skip-btn:hover {
  border-color: var(--finup-navy);
  color: var(--finup-navy);
  background: #e2e8f0;
}

.hayot-skip-btn--active {
  background: var(--finup-navy);
  border: 2px solid var(--finup-navy);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 39, 68, 0.25);
}

.hayot-skip-btn--active:hover {
  background: var(--finup-navy-light);
  border-color: var(--finup-navy-light);
  color: #fff;
}

.hayot-modal-scale {
  font-size: 0.75rem;
  color: var(--finup-muted);
  margin: 0.75rem 0 0;
}

.hayot-grid {
  display: grid;
  gap: 0.75rem;
}

.hayot-area-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hayot-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.hayot-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.hayot-dot-on {
  border-color: #16a34a;
  background: #22c55e;
}

.hayot-ex-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hayot-ex-top {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hayot-ex-seq {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--finup-bg);
  border: 1px solid var(--finup-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--finup-navy);
  font-size: 0.9rem;
  line-height: 1;
}

.hayot-ex-name-block {
  flex: 1;
  min-width: 0;
}

.hayot-ex-card--next {
  border-color: #86efac;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.hayot-ex-start-pill {
  display: block;
  margin-top: 0.75rem;
  text-align: center;
  background: #22c55e;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.hayot-ex-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.hayot-ex-avg-badge {
  font-weight: 600;
  color: var(--finup-navy);
  font-size: 0.875rem;
  white-space: nowrap;
}

.hayot-ex-overall {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--finup-border);
  background: var(--finup-bg);
  text-align: center;
  font-weight: 600;
  color: var(--finup-text);
  font-size: 1rem;
}

@keyframes hayot-ex-blink-error {
  0%,
  100% {
    border-color: var(--finup-border);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 39, 68, 0.06);
  }
  50% {
    border-color: #dc2626;
    background: #fef2f2;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.45);
  }
}

.hayot-ex-card--error-blink {
  animation: hayot-ex-blink-error 0.38s ease 2;
}

.hayot-compare-wheels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1rem;
  align-items: start;
}

@media (max-width: 639px) {
  .hayot-compare-wheels {
    grid-template-columns: 1fr;
  }
}

.hayot-compare-wheel-col {
  min-width: 0;
}

.hayot-compare-wheel-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--finup-text);
  margin: 0 0 0.5rem;
  text-align: center;
  line-height: 1.35;
}

.hayot-wheel-wrap--compare {
  margin: 0 auto;
  padding: 0.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.hayot-wheel-wrap--compare .hayot-wheel-svg {
  max-width: 100%;
  height: auto;
}

@keyframes hayot-wheel-seg-miss {
  0%,
  100% {
    fill: #f1f5f9;
    stroke: #cbd5e1;
  }
  50% {
    fill: #fecaca;
    stroke: #ef4444;
  }
}

.hayot-wheel-g--blink .hayot-wheel-base {
  animation: hayot-wheel-seg-miss 0.36s ease 2;
}

.hayot-plan-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 639px) {
  .hayot-plan-choice-grid {
    grid-template-columns: 1fr;
  }
}

.hayot-plan-choice-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hayot-plan-choice-card--paid {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18);
}

.hayot-plan-choice-badge {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--finup-navy);
}

.hayot-plan-choice-badge--free::before {
  content: "✓ ";
  color: #16a34a;
}

.hayot-plan-choice-badge--paid::before {
  content: "✨ ";
}

.hayot-plan-choice-note {
  font-size: 0.8rem;
  color: var(--finup-muted);
  margin: 0 0 0.75rem;
}

.hayot-plan-choice-card .hayot-btn {
  margin-top: auto;
  width: 100%;
}

@media (min-width: 640px) {
  .hayot-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hayot-area-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  margin: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--finup-border);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.hayot-area-chip-on {
  background: var(--finup-navy);
  color: #fff;
  border-color: var(--finup-navy);
}

.hayot-error {
  color: #b91c1c;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.hayot-landing {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.hayot-landing ul {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto 2rem;
  padding: 0;
  list-style: none;
}

.hayot-landing li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.hayot-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 20rem;
}

@media (min-width: 640px) {
  .hayot-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}
