/* ========================================
   ExpertAuto-BG — Components
   ======================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #1d1729;
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-accent-purple);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-accent-purple);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-accent-purple-light);
  box-shadow: var(--shadow-glow-purple);
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid var(--color-accent-purple);
  color: var(--color-accent-purple);
  background: transparent;
}

.btn-outline:hover {
  background: var(--color-accent-purple);
  color: #fff;
  border-color: var(--color-accent-purple);
}

.btn-ghost {
  border: 1px solid var(--color-accent-purple);
  color: var(--color-accent-purple);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(114, 67, 242, 0.06);
  border-color: var(--color-accent-purple);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---- Cards ---- */
.card {
  background: var(--color-light-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--dark {
  background: var(--color-light-surface);
  border: 1px solid var(--color-light-muted);
}

.card--dark:hover {
  background: var(--color-light-surface);
  border-color: var(--color-accent-purple-glow);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-purple-glow);
  color: var(--color-accent-purple);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-lg);
}

.card__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-light-bg);
  margin-bottom: var(--space-md);
  transition: transform 0.3s ease;
}

.card:hover .card__icon-wrap {
  transform: scale(1.1);
}

.card--dark .card__icon-wrap {
  background: var(--color-light-bg);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.section--dark .card__text {
  color: var(--color-text-muted);
}

/* ---- Pricing Cards ---- */
.card--pricing {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card--pricing.featured {
  border: 2px solid var(--color-accent-gold);
  transform: scale(1.03);
}

.card--pricing.featured:hover {
  transform: scale(1.05);
}

.card--pricing .featured-badge {
  position: absolute;
  top: 16px;
  right: -32px;
  background: var(--color-accent-gold);
  color: #1d1729;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 40px;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.price {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent-purple);
  margin: var(--space-lg) 0 var(--space-sm);
}

.price-currency {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
}

.price-period {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.price-original {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
}

.pricing-features {
  text-align: left;
  margin: var(--space-xl) 0;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge--beginner {
  background: rgba(40, 167, 69, 0.15);
  color: var(--color-success);
}

.badge--intermediate {
  background: var(--color-accent-purple-glow);
  color: var(--color-accent-purple);
}

.badge--advanced {
  background: rgba(29, 23, 41, 0.08);
  color: #1d1729;
}

.badge--free {
  background: rgba(40, 167, 69, 0.15);
  color: var(--color-success);
}

.badge--pro {
  background: var(--color-accent-purple-glow);
  color: var(--color-accent-purple);
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.section--dark .form-label {
  color: var(--color-text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--fs-base);
  border: 2px solid var(--color-light-muted);
  border-radius: var(--radius-md);
  background: var(--color-light-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-accent-purple);
  box-shadow: 0 0 0 3px var(--color-accent-purple-glow);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-error-msg {
  font-size: var(--fs-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
}

.form-hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-error);
}

.form-group--error .form-input,
.form-group--error .form-textarea {
  border-color: var(--color-error);
  animation: shake 0.4s ease;
}

.form-group--error .form-error-msg {
  display: block;
}

.form-error-msg {
  display: none;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.form-success {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: var(--fw-medium);
  animation: fadeInUp 0.4s ease;
}

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

/* ---- Testimonial Cards ---- */
.testimonial {
  padding: var(--space-xl);
  position: relative;
}

.testimonial__quote {
  font-size: var(--fs-md);
  font-style: italic;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-left: var(--space-xl);
}

.testimonial__quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 3rem;
  color: var(--color-accent-purple-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial__author {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.section--dark .testimonial__role {
  color: var(--color-text-muted);
}

.testimonial__footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-purple), var(--color-accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

/* ---- Stats ---- */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent-gold);
  font-family: var(--font-heading);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.section--dark .stat__label {
  color: var(--color-text-muted);
}

/* ---- Accordion ---- */
.accordion__item {
  border-bottom: var(--border-light);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  text-align: left;
  cursor: pointer;
}

.accordion__trigger::after {
  content: '+';
  font-size: var(--fs-xl);
  color: var(--color-accent-purple);
  transition: transform var(--transition-normal);
}

.accordion__item--open .accordion__trigger::after {
  content: '−';
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion__item--open .accordion__content {
  max-height: 500px;
}

.accordion__text {
  padding-bottom: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* ---- Steps / Process ---- */
.steps {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  counter-reset: step;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 0 auto var(--space-md);
}

.step__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.step__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ---- Calculator Panel (Glassmorphism) ---- */
/* ---- Calculator Panel — Premium White ---- */
.calc-panel {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  /* Offset for fixed site header (~72px) + breathing room — keeps the
     calculator title visible when scrolled via anchor links. The JS
     handlers in calculators.html use a computed offset, but this is the
     fallback for native anchor jumps. */
  scroll-margin-top: 110px;
}

.calc-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7243f2, #9b6dff, #c4b5fd);
  border-radius: 20px 20px 0 0;
}

.calc-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(114, 67, 242, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ---- Header ---- */
.calc-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 28px 18px;
  color: #1d1729;
  border-bottom: 1px solid #f0f1f4;
}

.calc-panel__header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-panel__header h3 {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  letter-spacing: -0.2px;
}

.calc-formula {
  display: inline-block;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  color: #7243f2;
  background: rgba(114, 67, 242, 0.06);
  padding: 3px 10px;
  border-radius: 6px;
  margin-top: 4px;
  letter-spacing: 0.3px;
  font-weight: 600;
  /* Protect formula from copying */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  cursor: default;
}
.calc-formula::selection,
.calc-formula *::selection { background: transparent; color: inherit; }
.calc-formula::-moz-selection,
.calc-formula *::-moz-selection { background: transparent; color: inherit; }

/* Locked formula (free users on stop-zone, etc.) — blurred + PRO overlay */
.calc-formula--locked {
  position: relative;
  color: transparent !important;
  text-shadow: 0 0 8px rgba(114, 67, 242, 0.45);
  filter: blur(5px);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.10), rgba(114, 67, 242, 0.04));
}
/* Wrap to allow overlay positioning */
.calc-formula-wrap {
  position: relative;
  display: inline-block;
}
.calc-formula-lock-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #7243f2, #9b6dff);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(114, 67, 242, 0.35);
  user-select: none;
  text-decoration: none;
}
.calc-formula-lock-pill:hover {
  filter: brightness(1.1);
  transform: translate(-50%, -50%) scale(1.04);
  transition: all 0.15s ease;
}
.calc-formula-lock-pill svg { vertical-align: -2px; margin-right: 3px; }

/* Method header text in collision — also protect */
.method-header__text h3,
.method-header__text p {
  user-select: none;
  -webkit-user-select: none;
}
.method-header__text h3::selection,
.method-header__text p::selection { background: transparent; color: inherit; }

.calc-panel__body {
  padding: 24px 28px;
}

/* ---- Input Groups ---- */
.calc-input-group {
  margin-bottom: 16px;
  position: relative;
}

.calc-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 14px 52px 14px 16px;  /* reserve space on the right for the unit badge */
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fafbfc;
  font-size: 1rem;
  font-weight: 500;
  color: #1d1729;
  transition: all 0.2s;
  -moz-appearance: textfield;
}

.calc-input-group input::-webkit-outer-spin-button,
.calc-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calc-input-group input:focus,
.calc-input-group select:focus {
  background: #fff;
  border-color: #7243f2;
  box-shadow: 0 0 0 3px rgba(114, 67, 242, 0.1);
  outline: none;
}

/* Prevent grid stretching so each group sizes to its own content. */
.calc-input-row .calc-input-group {
  align-self: start;
}

/* The .calc-input-field wrapper is added at runtime by js/calculators.js —
   it wraps the <input>/<select> + the trailing .calc-input-unit so the
   badge can be anchored to the centre of the INPUT itself, independent of
   label / hint heights. */
.calc-input-field {
  position: relative;
}
.calc-input-field input,
.calc-input-field select {
  width: 100%;
}

/* Unit badge — vertically centred on the input, hugging its right edge. */
.calc-input-unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b21a8;
  pointer-events: none;
  background: rgba(114, 67, 242, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
  white-space: nowrap;
}
/* Fallback (badge not wrapped yet — before JS runs): keep it inside the
   group's right edge using the previous heuristic so it never appears
   *below* the input even on first paint. */
.calc-input-group > .calc-input-unit {
  top: auto;
  transform: none;
  /* Approximate centre of the input: label is ~26-52px, input is ~52px →
     anchor to ~84px from the top.  This is just a flash before the JS
     wraps the input. */
  bottom: auto;
  /* Hide briefly if JS hasn't yet wrapped.  Once it has, the unit lives
     inside .calc-input-field which removes this hiding rule. */
  visibility: hidden;
}
.calc-input-field > .calc-input-unit {
  visibility: visible;
}

.calc-hint {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* ---- Calculate Button ---- */
.calc-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1d1729, #2d1f4e);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(29, 23, 41, 0.2);
  cursor: pointer;
}

.calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(29, 23, 41, 0.3);
  background: linear-gradient(135deg, #2d1f4e, #3d2f5e);
}

/* ---- Results Area ---- */
.calc-panel__results {
  padding: 0;
  border-top: none;
  background: transparent;
}

.calc-result-hero {
  text-align: center;
  padding: 28px 24px 20px;
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.04), rgba(167, 139, 250, 0.04));
  border-top: 1px solid #f0f1f4;
  animation: calcResultFadeIn 0.4s ease-out;
}

.calc-result-hero__value {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  background: linear-gradient(135deg, #7243f2, #9b6dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.calc-result-hero__label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: #f0f1f4;
  border-top: 1px solid #f0f1f4;
  animation: calcResultFadeIn 0.5s ease-out;
}

.calc-result-grid__item {
  background: #fff;
  padding: 14px 20px;
  text-align: center;
}

.calc-result-grid__value {
  font-size: 1rem;
  font-weight: 700;
  color: #1d1729;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
}

.calc-result-grid__label {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 2px;
  font-weight: 500;
}

/* Fallback for old render style */
.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #f5f5f7;
  font-size: 0.875rem;
  animation: calcResultFadeIn 0.4s ease-out;
}

.calc-result:last-child {
  border-bottom: none;
}

.calc-result__label {
  color: #6b7280;
}

.calc-result__value {
  font-weight: 700;
  color: #7243f2;
  font-size: 1rem;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
}

.calc-result--highlight {
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.06), rgba(167, 139, 250, 0.04));
  border-radius: 10px;
  margin: 4px 8px;
  padding: 14px 20px;
}

.calc-result--highlight .calc-result__value {
  font-size: 1.25rem;
  background: linear-gradient(135deg, #7243f2, #9b6dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ---- Pro locked overlay ---- */
.calc-panel--locked {
  position: relative;
}

.calc-panel--locked .calc-panel__body,
.calc-panel--locked .calc-panel__results,
.calc-panel--locked .calc-panel__main {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* Keep saved notes (archived calculations) accessible even when panel is locked */
.calc-panel--locked .calc-panel__notes {
  filter: none !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 6;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04), #fafbfc 60px);
}

.calc-panel--locked .calc-panel__notes .calc-notes__header {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
}

.calc-panel--locked .calc-panel__notes .calc-notes__header::after {
  content: 'АРХИВ';
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #d97706;
  background: rgba(245, 158, 11, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Hide "Load into form" button on locked panel notes — can't recalc */
.calc-panel--locked .calc-note__btn--load {
  display: none;
}

.calc-lock-overlay {
  position: absolute;
  inset: 60px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
  padding: 32px;
  text-align: center;
}

/* Keep the lock overlay clear of the notes column (which sits BESIDE the form
   at ≥769px — it only stacks below at ≤768px). Otherwise the overlay spans the
   full panel width and its centred text hides behind the notes panel. */
@media (min-width: 769px) {
  /* The overlay covers the whole form and overlaps a little into the notes
     column (notes min-width is 260px, so this never leaves a strip of form
     uncovered). The notes panel is raised above the overlay (z-index below)
     with its own opaque background, so it cleanly hides the overlay's right
     edge — no visible seam, and "Бележки" stays fully readable. */
  .calc-panel--locked .calc-lock-overlay,
  .calc-panel--anon-locked .calc-anon-lock-overlay {
    right: 260px;
  }
  /* Raise the notes column above the overlay on the free/anon calculator too
     (the PRO panels already do this). */
  .calc-panel--anon-locked .calc-panel__notes {
    position: relative;
    z-index: 6;
  }
}

.calc-lock-overlay .lock-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.calc-lock-overlay p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 16px;
}

/* ---- Daily-limit usage counter (free tier) ---- */
.calc-usage-counter {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: #f9fafb;
  border: 1px dashed #e5e7eb;
  border-radius: 8px;
}
.calc-usage-counter b { color: #1d1729; font-weight: 700; }
.calc-usage-counter a {
  color: #7243f2;
  font-weight: 700;
  text-decoration: none;
}
.calc-usage-counter a:hover { text-decoration: underline; }
.calc-usage-counter--maxed {
  background: #fef2f2;
  border-color: #fecaca;
  border-style: solid;
}

/* ---- Toast / Notification ---- */
.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-toast);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast--show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--color-success);
  color: #fff;
}

.toast--error {
  background: var(--color-error);
  color: #fff;
}

/* ---- Auth Social Buttons ---- */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  border: 2px solid var(--color-light-muted);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.social-btn--google {
  background: #fff;
  color: var(--color-text-dark);
}

.social-btn--google:hover {
  border-color: #4285f4;
}

.social-btn--apple {
  background: #000;
  color: #fff;
  border-color: #000;
}

.social-btn--apple:hover {
  background: #1a1a1a;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-light-muted);
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent-purple-glow);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-2xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  border: 2px solid var(--color-light-bg);
}

.timeline__year {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--color-accent-gold);
  margin-bottom: var(--space-xs);
}

.timeline__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* ---- Calculator History ---- */
.calc-history {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.calc-history__item {
  background: var(--color-light-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.calc-history__item:hover {
  box-shadow: var(--shadow-md);
}

.calc-history__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.calc-history__title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}

.calc-history__date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}

.calc-history__delete {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: var(--fs-base);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1;
}

.calc-history__delete:hover {
  color: var(--color-error);
  background: rgba(220, 53, 69, 0.1);
}

.calc-history__results {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}

.calc-history__result-item {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.calc-history__result-item strong {
  color: var(--color-accent-purple);
}

/* ---- Subscription Card (Profile) ---- */
.subscription-card {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-light-muted);
}

.subscription-card--active {
  border-color: var(--color-success);
  background: rgba(40, 167, 69, 0.03);
}

.subscription-card--expired {
  border-color: var(--color-error);
  background: rgba(220, 53, 69, 0.03);
}

.subscription-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.subscription-card__plan {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.subscription-card__details {
  display: flex;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.subscription-card__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subscription-card__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.subscription-card__value {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-dark);
}

/* ========================================
   Pricing Modal
   ======================================== */

.pricing-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-modal-backdrop--visible {
  opacity: 1;
}

.pricing-modal {
  background: var(--color-light-surface);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
  z-index: var(--z-modal);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.pricing-modal--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pricing-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.pricing-modal__close:hover {
  color: var(--color-text-dark);
  background: rgba(0, 0, 0, 0.05);
}

.pricing-modal__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.pricing-modal__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.pricing-modal__subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.pricing-modal__toggle-wrap {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  background: var(--color-light-muted);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: var(--space-xl);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pricing-modal__toggle-btn {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.pricing-modal__toggle-btn--active {
  background: var(--color-light-surface);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-sm);
}

.pricing-modal__save-badge {
  background: var(--color-success);
  color: #fff;
  font-size: var(--fs-xs);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
}

.pricing-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.pricing-modal__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 700px;
  margin-inline: auto;
}

.pricing-modal__price--free {
  opacity: 0.5;
}

.pricing-modal__card {
  background: var(--color-light-surface);
  border: 2px solid var(--color-light-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.pricing-modal__card:hover {
  border-color: var(--color-accent-purple-light);
  box-shadow: var(--shadow-md);
}

.pricing-modal__card--popular {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px var(--color-accent-gold), var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-modal__card--popular:hover {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 1px var(--color-accent-gold), var(--shadow-glow-gold);
}

.pricing-modal__popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent-gold);
  color: #1d1729;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-modal__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.1), rgba(29, 23, 41, 0.1));
  color: var(--color-accent-purple);
}

.pricing-modal__card--popular .pricing-modal__card-icon {
  background: linear-gradient(135deg, rgba(29, 23, 41, 0.15), rgba(114, 67, 242, 0.1));
  color: var(--color-accent-gold);
}

.pricing-modal__card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.pricing-modal__card-desc {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.pricing-modal__price-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.pricing-modal__price {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-text-dark);
}

.pricing-modal__currency {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-semibold);
}

.pricing-modal__period {
  font-weight: var(--fw-regular);
}

.pricing-modal__yearly-note {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.pricing-modal__cta {
  width: 100%;
  margin-bottom: var(--space-lg);
}

.pricing-modal__features {
  list-style: none;
  text-align: left;
  margin: 0;
  flex: 1;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-muted);
}

.pricing-modal__feature {
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-modal__feature--disabled {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.pricing-modal__icon {
  flex-shrink: 0;
}

.pricing-modal__icon--check {
  color: var(--color-success);
}

.pricing-modal__icon--cross {
  color: var(--color-text-muted);
}

.pricing-modal__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.pricing-modal__guarantee svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ---- Modal Persona Block ---- */
.pricing-modal__persona {
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.04), rgba(29, 23, 41, 0.04));
  border: 1px solid var(--color-light-muted);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  text-align: left;
}

.pricing-modal__persona-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--color-accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.pricing-modal__persona-text {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin: 0;
}

/* ---- Modal Social Proof ---- */
.pricing-modal__social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 4px var(--space-md);
  background: rgba(29, 23, 41, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #c77d00;
  margin-bottom: var(--space-md);
}

@media (max-width: 768px) {
  .pricing-modal {
    padding: var(--space-lg);
    max-height: 95vh;
  }

  .pricing-modal__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .pricing-modal__card--popular {
    transform: none;
    order: -1;
  }
}

/* ========================================
   Mac Monitor Demo
   ======================================== */

.mac-demo {
  text-align: center;
}

.mac-demo__monitor {
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  padding: 12px 12px 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.mac-demo__monitor::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: #444;
  border-radius: 50%;
  margin: 0 auto var(--space-sm);
}

.mac-demo__screen {
  background: var(--color-light-surface);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 420px;
}

.mac-demo__screen iframe {
  width: 154%;
  height: 154%;
  border: none;
  transform: scale(0.65);
  transform-origin: top left;
  pointer-events: none;
}

.mac-demo__stand {
  max-width: 800px;
  margin: 0 auto;
  height: 40px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 0 0 4px 4px;
  position: relative;
}

.mac-demo__stand::after {
  content: '';
  display: block;
  width: 200px;
  height: 12px;
  background: linear-gradient(180deg, #333 0%, #222 100%);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  position: relative;
  top: 100%;
}

@media (max-width: 768px) {
  .mac-demo__screen {
    height: 260px;
  }
}

/* ---- Section Wave Divider ---- */
.section-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.section-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
}

.section-wave--to-footer {
  background: transparent;
  margin-top: -1px;
  margin-bottom: -1px;
}

.section-wave--to-footer svg {
  fill: var(--color-footer-bg);
}

/* ---- Billing & Subscription (profile.html) ---- */
.billing-section__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.billing-section__hint {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.billing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billing-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  background: linear-gradient(180deg, rgba(114, 67, 242, 0.02), rgba(114, 67, 242, 0));
  border: 1px dashed rgba(114, 67, 242, 0.2);
  border-radius: var(--radius-lg);
}

.billing-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(114, 67, 242, 0.08);
  color: var(--color-accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.billing-empty p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 360px;
  margin: 0;
}

.billing-row {
  display: grid;
  grid-template-columns: 36px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--color-light-muted);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.billing-row:hover {
  border-color: rgba(114, 67, 242, 0.35);
  box-shadow: 0 4px 18px rgba(114, 67, 242, 0.06);
}

.billing-row__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(114, 67, 242, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.billing-row__main {
  min-width: 0;
}

.billing-row__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.billing-row__tier {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  letter-spacing: 0.02em;
}

.billing-row__period {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  padding: 2px 8px;
  background: var(--color-light-surface);
  border-radius: 999px;
}

.billing-row__meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.billing-row__sep {
  opacity: 0.5;
}

.billing-row__invoice {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 11px;
}

.billing-row__amount {
  font-weight: var(--fw-bold);
  font-size: var(--fs-md);
  color: var(--color-text-dark);
  font-variant-numeric: tabular-nums;
}

.billing-row__status {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  white-space: nowrap;
}

.billing-row__status--paid {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.billing-row__status--refunded {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.billing-row__status--failed {
  background: rgba(220, 53, 69, 0.12);
  color: #b91c1c;
}

.billing-row__download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent-purple);
  background: rgba(114, 67, 242, 0.07);
  border: 1px solid rgba(114, 67, 242, 0.15);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.billing-row__download:hover {
  background: rgba(114, 67, 242, 0.14);
  border-color: rgba(114, 67, 242, 0.32);
}

.billing-row__download--refresh {
  color: var(--color-text-muted);
  background: var(--color-light-surface);
  border-color: var(--color-light-muted);
}

.billing-row__download--refresh:hover {
  color: var(--color-accent-purple);
  background: rgba(114, 67, 242, 0.07);
}

/* ---- Subscription card extras (cancel/resume) ---- */
.subscription-card__notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--space-md);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.subscription-card__notice--warn {
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.subscription-card__notice svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.subscription-card__includes {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-muted);
}

.subscription-card__includes-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.subscription-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subscription-card__chip {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  padding: 3px 10px;
  background: rgba(114, 67, 242, 0.06);
  color: var(--color-accent-purple);
  border-radius: 999px;
}

.subscription-card__actions {
  display: flex;
  gap: 8px;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-light-muted);
}

.subscription-card__actions .btn {
  display: inline-flex;
  align-items: center;
}

/* Mobile billing layout */
@media (max-width: 640px) {
  .billing-row {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "icon main"
      "icon meta"
      "amount status"
      "actions actions";
    row-gap: 8px;
  }
  .billing-row__icon { grid-area: icon; }
  .billing-row__main { grid-area: main; }
  .billing-row__amount {
    grid-area: amount;
    font-size: var(--fs-sm);
  }
  .billing-row__status {
    grid-area: status;
    justify-self: end;
  }
  .billing-row__actions {
    grid-area: actions;
    justify-self: stretch;
  }
  .billing-row__download {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Coming Soon Hero (ai-check.html) ---- */
.coming-soon-hero {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: radial-gradient(ellipse at top, rgba(114,67,242,0.06), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(155,109,255,0.04), transparent 60%);
}

.coming-soon-hero__inner {
  max-width: 640px;
  text-align: center;
}

.coming-soon-hero__brain {
  width: 220px;
  height: 220px;
  margin: 0 auto 28px;
  opacity: 0.55;
  filter: drop-shadow(0 8px 20px rgba(114,67,242,0.18));
}

.coming-soon-hero__brain .brain-line {
  stroke: var(--color-accent-purple, #7243f2);
  stroke-width: 1;
  opacity: 0.4;
}

.coming-soon-hero__brain .brain-node {
  fill: var(--color-accent-purple, #7243f2);
}

.coming-soon-hero__brain .brain-node--core { fill: #7243f2; }
.coming-soon-hero__brain .brain-node--mid { fill: #9b6dff; }
.coming-soon-hero__brain .brain-node--inner { fill: #c4b5fd; }

.coming-soon-hero__brain .brain-ring {
  fill: none;
  stroke: var(--color-accent-purple, #7243f2);
  stroke-width: 1;
  opacity: 0.3;
  animation: comingSoonPulse 3s ease-in-out infinite;
}

.coming-soon-hero__brain .brain-ring--2 {
  animation-delay: 0.6s;
}

@keyframes comingSoonPulse {
  0%, 100% { opacity: 0.15; transform-origin: 200px 80px; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.08); }
}

.coming-soon-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(114,67,242,0.12), rgba(155,109,255,0.12));
  border: 1px solid rgba(114,67,242,0.22);
  color: var(--color-accent-purple, #7243f2);
  font-size: 13px;
  font-weight: var(--fw-semibold, 600);
  border-radius: 999px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.coming-soon-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text-dark, #1d1729);
  line-height: 1.15;
  margin: 0 0 14px;
}

.coming-soon-hero__lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.55;
  max-width: 540px;
  margin: 0 auto 36px;
}

.coming-soon-hero__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
  text-align: left;
}

.coming-soon-feature {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(114,67,242,0.1);
  border-radius: 14px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.coming-soon-feature:hover {
  border-color: rgba(114,67,242,0.3);
  transform: translateY(-2px);
}

.coming-soon-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(114,67,242,0.08);
  color: var(--color-accent-purple, #7243f2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.coming-soon-feature__title {
  font-size: 14px;
  font-weight: var(--fw-bold, 700);
  color: var(--color-text-dark, #1d1729);
  margin-bottom: 4px;
}

.coming-soon-feature__desc {
  font-size: 12px;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.45;
}

.coming-soon-hero__notify {
  padding: 24px;
  background: linear-gradient(135deg, rgba(114,67,242,0.04), rgba(155,109,255,0.04));
  border: 1px dashed rgba(114,67,242,0.2);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.coming-soon-hero__notify-text {
  font-size: 14px;
  color: var(--color-text-dark, #1d1729);
  margin: 0;
  font-weight: var(--fw-semibold, 600);
}

.coming-soon-hero__notify .btn {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 640px) {
  .coming-soon-hero { padding: 40px 16px; min-height: calc(100vh - 160px); }
  .coming-soon-hero__brain { width: 160px; height: 160px; }
  .coming-soon-hero__notify { padding: 18px; }
  .coming-soon-hero__notify .btn { width: 100%; margin-left: 0 !important; justify-content: center; }
}

/* ---- Coming Soon Badge (nav items + cards) ---- */
.app-shell__nav-badge--soon,
.badge--soon,
.appl-feature-card__soon {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #92400e !important;
  border: 1px solid rgba(180, 83, 9, 0.2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.app-shell__nav-item--soon {
  position: relative;
}

.app-shell__nav-item--soon .app-shell__nav-icon,
.app-shell__nav-item--soon > span:first-of-type {
  opacity: 0.6;
}

.appl-feature-card--soon {
  position: relative;
  pointer-events: none;
}

.appl-feature-card--soon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(0.5px);
  border-radius: inherit;
  pointer-events: none;
}

.appl-feature-card--soon > * {
  position: relative;
  z-index: 1;
}

/* ---- App Mockup Panel — Coming Soon variant ---- */
.app-mockup__panel--soon {
  position: relative;
}

.app-mockup__panel--soon .app-mockup__panel-preview,
.app-mockup__panel--soon .app-mockup__panel-features {
  opacity: 0.55;
}

.app-mockup__panel--soon .app-mockup__panel-icon {
  filter: grayscale(15%);
}

.app-mockup__panel-badge.badge--soon {
  background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
  color: #92400e !important;
}

/* ---- Roadmap section (landing page) ---- */
.roadmap-section {
  background: linear-gradient(180deg, rgba(114,67,242,0.02), rgba(245,243,255,0.4));
  padding: clamp(56px, 7vw, 96px) 0;
}

.roadmap-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.roadmap-section__tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(114, 67, 242, 0.1);
  color: var(--color-accent-purple, #7243f2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 999px;
  margin-bottom: 14px;
}

.roadmap-section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--color-text-dark, #1d1729);
  line-height: 1.2;
  margin: 0 0 14px;
}

.roadmap-section__subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--color-text-muted, #6b7280);
  line-height: 1.55;
  margin: 0;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.roadmap-card {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(114, 67, 242, 0.12);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.roadmap-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7243f2, #9b6dff, #c4b5fd);
}

.roadmap-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(114, 67, 242, 0.12);
  border-color: rgba(114, 67, 242, 0.3);
}

.roadmap-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(114,67,242,0.08), rgba(155,109,255,0.12));
  color: var(--color-accent-purple, #7243f2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.roadmap-card__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.roadmap-card__bar {
  flex: 1;
  height: 6px;
  background: rgba(114, 67, 242, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.roadmap-card__fill {
  height: 100%;
  background: linear-gradient(90deg, #7243f2, #9b6dff);
  border-radius: 999px;
  transition: width 1.4s ease;
}

.roadmap-card__progress-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent-purple, #7243f2);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: right;
}

.roadmap-card__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-text-dark, #1d1729);
  margin: 0 0 8px;
  line-height: 1.3;
}

.roadmap-card__desc {
  font-size: 14px;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.5;
  margin: 0 0 18px;
}

.roadmap-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roadmap-section__cta {
  text-align: center;
  margin-top: 48px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(114,67,242,0.04), rgba(155,109,255,0.06));
  border: 1px dashed rgba(114, 67, 242, 0.25);
  border-radius: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.roadmap-section__cta-text {
  font-size: 15px;
  color: var(--color-text-dark, #1d1729);
  margin: 0 0 16px;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .roadmap-grid { gap: 14px; }
  .roadmap-card { padding: 22px 18px; }
}

/* ---- Spin animation (for loading buttons) ---- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ===== Anonymous formula lock (speed-skid) ===== */
/* Free user (anon): formula blurred + small "Регистрирай се" pill */
.calc-formula--anon-locked {
  position: relative;
  color: transparent !important;
  text-shadow: 0 0 8px rgba(114, 67, 242, 0.45);
  filter: blur(5px);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.10), rgba(114, 67, 242, 0.04));
}
.calc-formula-anon-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #7243f2;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.3px;
  pointer-events: auto;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  border: 1.5px solid #ddd6fe;
  user-select: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.calc-formula-anon-pill:hover {
  background: #f5f3ff;
  transform: translate(-50%, -50%) scale(1.04);
  transition: all 0.15s ease;
}
/* Logged-in users see the formula clearly */
body.is-logged-in .calc-formula--anon-locked {
  color: #7243f2 !important;
  text-shadow: none;
  filter: none;
  pointer-events: auto;
  background: rgba(114, 67, 242, 0.06);
}
body.is-logged-in .calc-formula-anon-pill { display: none; }

/* ===== Anonymous panel lock (stop-zone) ===== */
.calc-panel--anon-locked {
  position: relative;
}
.calc-panel--anon-locked .calc-panel__body,
.calc-panel--anon-locked .calc-panel__results,
.calc-panel--anon-locked .calc-panel__main {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
/* For anonymous users: hide the PRO upgrade pill on the formula
   (they need to register first; PRO upgrade comes after) */
.calc-panel--anon-locked .calc-formula-lock-pill {
  display: none;
}
/* Lock overlay starts BELOW the panel header — keeps title + lock-icon clear */
.calc-anon-lock-overlay {
  position: absolute;
  inset: 60px 0 0; /* match the PRO lock overlay coverage so nothing peeks above */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 5;
  padding: 28px 32px;
  text-align: center;
}
.calc-anon-lock-overlay .lock-icon {
  font-size: 2.75rem;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}
.calc-anon-lock-overlay p {
  font-size: 0.9rem;
  color: #1d1729;
  margin-bottom: 14px;
  font-weight: 600;
  max-width: 340px;
}
.calc-anon-lock-overlay .auth-secondary-link:hover {
  text-decoration: underline !important;
}
/* Logged-in users see the panel unlocked */
body.is-logged-in .calc-panel--anon-locked .calc-panel__body,
body.is-logged-in .calc-panel--anon-locked .calc-panel__results,
body.is-logged-in .calc-panel--anon-locked .calc-panel__main {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
body.is-logged-in .calc-anon-lock-overlay { display: none; }
/* PRO pill stays for logged-in non-PRO users (real CTA to upgrade) */
body.is-logged-in .calc-panel--anon-locked .calc-formula-lock-pill {
  display: inline-flex;
}

/* ===== Landing page: hide formula row for anonymous users ===== */
.formula-row-anon-locked {
  display: none !important;
}
body.is-logged-in .formula-row-anon-locked {
  display: flex !important;
}

/* ============================================
   Contact form — matched gray auth style
   ============================================ */
body[data-page="contact"] .glass-card .form-input,
body[data-page="contact"] .glass-card .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(229, 231, 235, 0.9);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #1d1729;
  background: rgba(255, 255, 255, 0.85);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  font-family: inherit;
}
body[data-page="contact"] .glass-card .form-input:hover,
body[data-page="contact"] .glass-card .form-textarea:hover {
  border-color: rgba(75, 85, 99, 0.4);
  background: rgba(255, 255, 255, 0.95);
}
body[data-page="contact"] .glass-card .form-input:focus,
body[data-page="contact"] .glass-card .form-textarea:focus {
  border-color: #4b5563;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.12);
  transform: translateY(-1px);
}
body[data-page="contact"] .glass-card .form-group:has(.form-input:focus) .form-label,
body[data-page="contact"] .glass-card .form-group:has(.form-textarea:focus) .form-label {
  color: #1f2937;
}
body[data-page="contact"] .glass-card .form-label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}

/* Submit button — dark gradient with shimmer (matches auth-modern) */
body[data-page="contact"] .glass-card .btn-primary {
  width: 100%;
  padding: 14px 24px !important;
  background: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
  background-size: 200% auto;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(31, 41, 55, 0.25);
  letter-spacing: 0.3px;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
}
body[data-page="contact"] .glass-card .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transition: left 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
body[data-page="contact"] .glass-card .btn-primary:hover {
  transform: translateY(-2px);
  background-position: right center;
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.35);
}
body[data-page="contact"] .glass-card .btn-primary:hover::before { left: 100%; }
body[data-page="contact"] .glass-card .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.25);
}

/* ============================================
   Contact form — subtle purple accents
   ============================================ */

/* Top accent line on the glass card (gradient gray → purple) */
body[data-page="contact"] .glass-card {
  position: relative;
}
body[data-page="contact"] .glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(114, 67, 242, 0.5) 30%,
    rgba(114, 67, 242, 0.7) 50%,
    rgba(114, 67, 242, 0.5) 70%,
    transparent 100%
  );
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Heading: very subtle purple tint */
body[data-page="contact"] .glass-card h2 {
  background: linear-gradient(135deg, #1f2937 0%, #4c1d95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Input focus — mix of gray border + light purple ring */
body[data-page="contact"] .glass-card .form-input:focus,
body[data-page="contact"] .glass-card .form-textarea:focus {
  border-color: #6b7280;
  background: rgba(255, 255, 255, 1);
  box-shadow:
    0 0 0 3px rgba(75, 85, 99, 0.08),
    0 0 0 5px rgba(114, 67, 242, 0.08);
  transform: translateY(-1px);
}

/* Submit button: subtle purple inner shadow at the bottom */
body[data-page="contact"] .glass-card .btn-primary {
  background: linear-gradient(135deg, #1f2937 0%, #2d2540 50%, #3b3052 100%);
  box-shadow:
    0 6px 20px rgba(31, 41, 55, 0.25),
    0 0 0 1px rgba(114, 67, 242, 0.08);
}
body[data-page="contact"] .glass-card .btn-primary:hover {
  background: linear-gradient(135deg, #2d2540 0%, #3b3052 50%, #4c3a6b 100%);
  box-shadow:
    0 12px 32px rgba(31, 41, 55, 0.35),
    0 0 24px rgba(114, 67, 242, 0.15);
}

/* Required asterisk in red-purple instead of plain red */
body[data-page="contact"] .glass-card .form-label::after,
body[data-page="contact"] .glass-card .form-label[for="ct-name"],
body[data-page="contact"] .glass-card .form-label[for="ct-email"],
body[data-page="contact"] .glass-card .form-label[for="ct-message"] {
  /* Default behavior preserved; just slightly adjusted color when focused */
}

/* ============================================================
   HIDE ALL FORMULAS ON UI — they appear only in PDF exports
   ============================================================ */

/* All formula spans on calculator headers */
.calc-formula,
.calc-formula--locked,
.calc-formula--anon-locked,
.calc-formula-wrap,
.calc-formula-anon-pill,
.calc-formula-lock-pill {
  display: none !important;
}

/* Formula chips on app.html feature cards */
.appl-feature-card__chips {
  display: none !important;
}

/* Locked formula rows in calc demo (landing showcase) */
.formula-row-anon-locked,
.calc-demo__result-row.formula-row-anon-locked {
  display: none !important;
}

/* Hero calc breakdown formula row (in case it had one) */
.hero-calc-preview__breakdown-row.formula-row-anon-locked {
  display: none !important;
}

/* ============================================
   Course Sessions Schedule (live course page)
   ============================================ */
.course-preview-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.06), rgba(155, 109, 255, 0.08));
  border: 1px dashed rgba(114, 67, 242, 0.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-purple, #7243f2);
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}

.course-sessions {
  margin-top: 32px;
  margin-bottom: 32px;
}

.course-sessions__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.course-sessions__header h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-text-dark, #1d1729);
  margin: 0;
}

.course-sessions__hint {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
  margin: 0 0 22px 0;
  padding: 12px 16px;
  background: rgba(114, 67, 242, 0.04);
  border-left: 3px solid var(--color-accent-purple, #7243f2);
  border-radius: 4px;
}

.course-sessions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.session-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(114, 67, 242, 0.08);
  border-color: rgba(114, 67, 242, 0.25);
}

.session-card__day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.session-card__day-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-purple, #7243f2);
}

.session-card__status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
}

.session-card__status--upcoming {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.session-card__status--live {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
  animation: sessionLivePulse 1.5s ease-in-out infinite;
}

@keyframes sessionLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.session-card__status--past {
  background: rgba(107, 114, 128, 0.1);
  color: #4b5563;
}

.session-card__status--locked {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.session-card__date,
.session-card__time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
}

.session-card__date svg,
.session-card__time svg {
  flex-shrink: 0;
  color: var(--color-accent-purple, #7243f2);
}

.session-card__topic {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-dark, #1d1729);
  line-height: 1.35;
  margin: 6px 0 4px 0;
}

.session-card__desc {
  font-size: 13px;
  color: var(--color-text-muted, #6b7280);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.session-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f1f4;
}

.session-card__action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.session-card__action--live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}

.session-card__action--live:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
}

.session-card__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  margin-right: 8px;
  animation: sessionLiveDot 1.2s ease-in-out infinite;
}

@keyframes sessionLiveDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.session-card__calendar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--color-light-muted, #e5e7eb);
  background: #fff;
  color: var(--color-text-muted, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.session-card__calendar:hover {
  background: rgba(114, 67, 242, 0.06);
  color: var(--color-accent-purple, #7243f2);
  border-color: rgba(114, 67, 242, 0.25);
}

@media (max-width: 640px) {
  .course-sessions__grid {
    grid-template-columns: 1fr;
  }
  .session-card__footer {
    flex-direction: column;
    align-items: stretch;
  }
  .session-card__calendar {
    width: 100%;
    height: 38px;
  }
}

/* ============================================
   Academy Course Cards — Available + Coming Soon
   ============================================ */
.academy-coming-soon__level {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.academy-coming-soon__level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.academy-coming-soon__level-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--color-accent-purple, #7243f2);
}

.academy-coming-soon__level-soon-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

.academy-coming-soon__level-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-muted, #6b7280);
}

.academy-coming-soon__level-meta svg {
  color: var(--color-accent-purple, #7243f2);
  flex-shrink: 0;
}

.academy-coming-soon__level-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--color-accent-purple, #7243f2);
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease;
}

.academy-coming-soon__level--available {
  cursor: pointer;
  background: #fff;
  border: 1px solid rgba(114, 67, 242, 0.18);
  border-radius: var(--radius-xl, 16px);  /* explicit so the ::before line below clips correctly */
  box-shadow: 0 4px 20px rgba(114, 67, 242, 0.05);
  overflow: hidden;  /* lets the rounded corners clip the top accent bar */
}

.academy-coming-soon__level--available::before {
  content: '';
  position: absolute;
  top: -1px;          /* cover the top 1px of the border so colours line up flush */
  left: -1px;
  right: -1px;
  height: 4px;
  background: linear-gradient(90deg, #7243f2, #9b6dff, #c4b5fd);
  /* No border-radius — the parent's overflow:hidden + border-radius clips this band cleanly. */
}

.academy-coming-soon__level--available:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(114, 67, 242, 0.15);
  border-color: rgba(114, 67, 242, 0.4);
}

.academy-coming-soon__level--available:hover .academy-coming-soon__level-cta {
  background: linear-gradient(135deg, #7243f2, #9b6dff);
  transform: translateX(2px);
}

.academy-coming-soon__level--soon {
  position: relative;
  opacity: 0.78;
}

.academy-coming-soon__level--soon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
  border-radius: inherit;
}

/* ============================================
   Pricing table — Coming Soon badge
   ============================================ */
.pricing-table__soon-badge {
  display: inline-block;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.18);
}

/* ============================================
   Calculator Quick-Nav — Floating menu
   ============================================ */
.calc-quick-nav {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  font-family: var(--font-primary, system-ui, sans-serif);
}

.calc-quick-nav__toggle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7243f2, #9b6dff);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(114, 67, 242, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 2;
}

.calc-quick-nav__toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(114, 67, 242, 0.45);
}

.calc-quick-nav__toggle:active {
  transform: translateY(0) scale(0.98);
}

.calc-quick-nav__icon-close {
  display: none;
}

.calc-quick-nav--open .calc-quick-nav__icon-open {
  display: none;
}

.calc-quick-nav--open .calc-quick-nav__icon-close {
  display: block;
}

.calc-quick-nav__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 340px;
  max-width: calc(100vw - 48px);
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(114, 67, 242, 0.08);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calc-quick-nav--open .calc-quick-nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.calc-quick-nav__header {
  padding: 6px 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b7280);
  border-bottom: 1px solid #f0f1f4;
  margin-bottom: 8px;
}

.calc-quick-nav__list {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

.calc-quick-nav__list::-webkit-scrollbar {
  width: 6px;
}
.calc-quick-nav__list::-webkit-scrollbar-thumb {
  background: rgba(114, 67, 242, 0.18);
  border-radius: 3px;
}

.calc-quick-nav__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text-dark, #1d1729);
  font-size: 13px;
  line-height: 1.3;
  transition: background 0.14s ease;
}

.calc-quick-nav__list a:hover {
  background: rgba(114, 67, 242, 0.06);
}

.calc-quick-nav__list a.is-active {
  background: linear-gradient(135deg, rgba(114, 67, 242, 0.1), rgba(155, 109, 255, 0.08));
  border-left: 3px solid var(--color-accent-purple, #7243f2);
  padding-left: 7px;
}

.calc-quick-nav__num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-light-surface, #f3f4f6);
  color: var(--color-text-muted, #6b7280);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.calc-quick-nav__list a.is-active .calc-quick-nav__num {
  background: var(--color-accent-purple, #7243f2);
  color: #fff;
}

.calc-quick-nav__label {
  flex: 1;
  min-width: 0;
}

.calc-quick-nav__badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(114, 67, 242, 0.1);
  color: var(--color-accent-purple, #7243f2);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-quick-nav__badge--free {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.calc-quick-nav__badge--soon {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
}

/* Click-anchor scroll offset for fixed header */
[id^="calc-"] {
  scroll-margin-top: 24px;
}

/* Pulse highlight when scrolled into via anchor */
@keyframes calcAnchorPulse {
  0% { box-shadow: 0 0 0 0 rgba(114, 67, 242, 0.5); }
  100% { box-shadow: 0 0 0 16px rgba(114, 67, 242, 0); }
}

.calc-panel.is-target-flash {
  animation: calcAnchorPulse 1.2s ease-out 1;
}

/* Anchor wrapper for feature-icon-item — restore block layout when <a> replaces <div> */
a.feature-icon-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Mobile — toggle button slightly smaller */
@media (max-width: 640px) {
  .calc-quick-nav {
    right: 14px;
    bottom: 14px;
  }
  .calc-quick-nav__toggle {
    width: 48px;
    height: 48px;
  }
  .calc-quick-nav__panel {
    width: calc(100vw - 32px);
    max-width: 380px;
    bottom: 60px;
  }
}

/* ===== Course enrollment request modal (Revolut flow) ===== */
.enroll-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(29, 23, 41, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: enrollFade 0.18s ease;
}
@keyframes enrollFade { from { opacity: 0; } to { opacity: 1; } }
.enroll-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  animation: enrollPop 0.2s ease;
}
@keyframes enrollPop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.enroll-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}
.enroll-modal__close:hover { color: #1d1729; }
.enroll-modal__body { padding: 28px; }
.enroll-modal__title {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: #1d1729;
  margin: 0 0 4px;
}
.enroll-modal__course { font-size: 14px; color: #6b7280; margin: 0 0 18px; }
.enroll-modal__form { display: flex; flex-direction: column; gap: 12px; }
.enroll-modal__label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #1d1729;
}
.enroll-modal__opt { font-weight: 400; color: #9ca3af; }
.enroll-modal__label input {
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #1d1729;
  background: #fafbfc;
  font-weight: 500;
}
.enroll-modal__label input:focus { outline: none; border-color: #7243f2; background: #fff; }
.enroll-modal__note { font-size: 12.5px; color: #6b7280; line-height: 1.5; margin: 2px 0 6px; }
.enroll-modal__msg { font-size: 13px; text-align: center; }
.enroll-modal__msg--error { color: #dc2626; font-weight: 600; }
.enroll-modal__success { text-align: center; padding: 12px 0 4px; }
.enroll-modal__success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}
.enroll-modal__success h3 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 20px;
  color: #1d1729;
  margin: 0 0 8px;
}
.enroll-modal__success p { font-size: 14px; color: #6b7280; line-height: 1.55; margin: 0 0 18px; }
