/* ============================================================
   Tavo Kelias – dizaino sistema
   Tokenai pagal DESIGN.md 1 skyrių. Nekeisti spalvų/šriftų reikšmių
   be dokumento atnaujinimo.
   ============================================================ */

:root {
  /* Spalvos */
  --bg-deep: #0F0E28;
  --bg-base: #151435;
  --bg-panel: #1E1C3D;
  --bg-panel-2: #2B2645;
  --violet: #A99EE8;
  --violet-dim: #8B7FD9;
  --violet-border: rgba(139, 127, 217, 0.25);
  --gold: #f5c14a;
  --gold-deep: #e0a82e;
  --gold-glow: rgba(245, 193, 74, 0.35);
  --text: #E8E6F5;
  --text-dim: #A5A0C4;
  --white: #FFFFFF;
  --error: #E88B8B;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 40px rgba(139, 127, 217, 0.15);
  --shadow-gold: 0 8px 32px rgba(245, 193, 74, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --content-max: 1080px;
  --chart-max: 720px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Base
   ============================================================ */
body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body { font-size: 18px; line-height: 1.75; }
}

h1, h2, h3, h4 {
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(34px, 6vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 28px); }

p { color: var(--text); }

.dim { color: var(--text-dim); }

::selection { background: var(--gold-glow); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--chart-max);
}

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

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border: none;
  border-radius: 14px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), opacity 260ms var(--ease);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1A1608;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(245, 193, 74, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--violet-border);
}
.btn-ghost:hover { border-color: var(--violet-dim); background: rgba(139,127,217,0.08); transform: translateY(-1px); }
.btn-ghost:disabled { opacity: 0.5; cursor: not-allowed; transform: none; pointer-events: none; }

[data-audio-state="ready"] {
  color: #7EC8A3;
  border-color: rgba(126, 200, 163, 0.4);
}
[data-audio-state="ready"]:hover {
  color: #9BDBC0;
  border-color: rgba(126, 200, 163, 0.7);
  background: rgba(126, 200, 163, 0.08);
}

.btn-secondary {
  background: var(--bg-panel-2);
  color: var(--text);
  border: 1px solid var(--violet-border);
}
.btn-secondary:hover { background: var(--bg-panel); border-color: var(--violet-dim); }

.btn-text {
  background: none;
  border: none;
  color: var(--violet);
  font-weight: 600;
  padding: 8px 4px;
}
.btn-text:hover { color: var(--gold); }

.btn-block { width: 100%; }
.btn-sm { padding: 12px 22px; font-size: 14px; border-radius: 12px; }

.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-panel-2); border: 1px solid var(--violet-border);
}

/* ============================================================
   Cards / panels
   ============================================================ */
.card {
  background: var(--bg-panel);
  border: 1px solid var(--violet-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.card--elevated {
  background: var(--bg-panel-2);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 24px; }
.field label,
.field-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}
.field-hint {
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.5;
}
.field-error {
  font-size: 14px;
  color: var(--error);
  margin-top: 8px;
  display: none;
}
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea,
.field.has-error select { border-color: var(--error); }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="search"],
textarea,
select {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--violet-border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); opacity: 0.75; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--violet-dim);
  box-shadow: 0 0 0 4px var(--violet-border);
}
textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23A5A0C4' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  margin-top: 14px;
}
.checkbox-row input[type="checkbox"] {
  width: 22px; height: 22px;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-panel);
  border: 1.5px solid var(--violet-border);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.checkbox-row input[type="checkbox"]:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.checkbox-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 11px;
  border: solid #1A1608;
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.checkbox-row span { font-size: 15px; color: var(--text-dim); }

.date-select-group {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

/* Autocomplete */
.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--bg-panel-2);
  border: 1px solid var(--violet-border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 20;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.autocomplete-list.is-open { display: block; }
.autocomplete-item {
  padding: 13px 18px;
  font-size: 15px;
  cursor: pointer;
  transition: background 150ms var(--ease);
  border-bottom: 1px solid var(--violet-border);
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.is-active { background: var(--bg-panel); color: var(--gold); }
.autocomplete-empty { padding: 13px 18px; font-size: 14px; color: var(--text-dim); }

/* Photo upload */
.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px 20px;
  border: 1.5px dashed var(--violet-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
  cursor: pointer;
}
.photo-upload:hover, .photo-upload.is-dragover {
  border-color: var(--gold-deep);
  background: rgba(245, 193, 74, 0.04);
}
.photo-upload input[type="file"] { display: none; }
.photo-preview {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 5px rgba(245,193,74,0.12), var(--shadow-gold);
  object-fit: cover;
  background: var(--bg-panel-2);
}
.photo-upload-placeholder {
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 1.5px dashed var(--violet-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.photo-upload-placeholder svg { width: 40px; height: 40px; opacity: 0.6; }
.photo-upload-text { font-weight: 600; color: var(--text); }
.photo-upload-sub { font-size: 14px; color: var(--text-dim); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  transition: background 300ms var(--ease), backdrop-filter 300ms var(--ease), border-color 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(15, 14, 40, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--violet-border);
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { height: 26px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 20px; }
.header-nav a { font-size: 15px; font-weight: 600; color: var(--text-dim); transition: color 200ms var(--ease); }
.header-nav a:hover { color: var(--gold); }

/* ============================================================
   Kelio linijos (path-line) motyvas
   ============================================================ */
.path-line {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 6px var(--gold-glow));
  stroke-linecap: round;
}

.path-draw {
  stroke-dasharray: var(--path-len, 1000);
  stroke-dashoffset: var(--path-len, 1000);
  animation: path-draw 3s var(--ease) forwards;
  animation-delay: 0.2s;
}
@keyframes path-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .path-draw { stroke-dashoffset: 0; animation: none; }
}

.hero-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

/* Wizard progress line */
.wizard-progress {
  padding: 20px 24px 6px;
}
.wizard-progress-track {
  position: relative;
  height: 34px;
}
.wizard-progress-svg { width: 100%; height: 100%; overflow: visible; }
.wizard-progress-bg { stroke: var(--violet-border); stroke-width: 2; fill: none; }
.wizard-progress-fill {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 5px var(--gold-glow));
  transition: stroke-dashoffset 500ms var(--ease);
}
.wizard-progress-dot {
  fill: var(--bg-panel-2);
  stroke: var(--violet-border);
  stroke-width: 1.5;
  transition: fill 300ms var(--ease), stroke 300ms var(--ease), r 300ms var(--ease);
}
.wizard-progress-dot.is-active,
.wizard-progress-dot.is-done {
  fill: var(--gold);
  stroke: var(--gold);
  filter: drop-shadow(0 0 6px var(--gold-glow));
}
.wizard-progress-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Generation spinner */
.gen-spinner-wrap {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gen-spinner-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gen-spinner-track { stroke: var(--violet-border); stroke-width: 2; fill: none; }
.gen-spinner-arc {
  stroke: var(--gold);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px var(--gold-glow));
  stroke-dasharray: 90 500;
  transform-origin: center;
  animation: gen-spin 2.6s linear infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .gen-spinner-arc { animation-duration: 8s; }
}
.gen-spinner-icon { width: 64px; height: 64px; opacity: 0.9; }

/* Chart side indicator */
.chart-side-indicator {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  z-index: 40;
}
@media (min-width: 1180px) {
  .chart-side-indicator { display: flex; }
}
.chart-side-svg { width: 2px; }
.chart-side-track { stroke: var(--violet-border); stroke-width: 2; }
.chart-side-fill { stroke: var(--gold); stroke-width: 2; filter: drop-shadow(0 0 5px var(--gold-glow)); transition: stroke-dashoffset 300ms linear; }
.chart-side-dot {
  fill: var(--bg-panel-2);
  stroke: var(--violet-border);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 300ms var(--ease), stroke 300ms var(--ease);
}
.chart-side-dot.is-active { fill: var(--gold); stroke: var(--gold); filter: drop-shadow(0 0 6px var(--gold-glow)); }

/* ============================================================
   Landing – Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,14,40,0.55) 0%, rgba(15,14,40,0.86) 68%, var(--bg-base) 100%),
    var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(15,14,40,0.55) 0%, rgba(15,14,40,0.88) 70%, var(--bg-base) 100%),
    url('../assets/img/hero-path-mobile.webp');
  background-size: cover;
  background-position: center;
}
@media (min-width: 700px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(15,14,40,0.55) 0%, rgba(15,14,40,0.88) 70%, var(--bg-base) 100%),
      url('../assets/img/hero-path.webp');
  }
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(169,158,232,0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 80ms; }
.reveal-2 { transition-delay: 180ms; }
.reveal-3 { transition-delay: 280ms; }

/* ============================================================
   Sections generic
   ============================================================ */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head p { color: var(--text-dim); margin-top: 14px; font-size: 17px; }

/* Recognition cards */
.recognition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 860px) {
  .recognition-grid { grid-template-columns: repeat(3, 1fr); }
}
.recognition-card {
  padding: 36px 28px;
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}
.recognition-outro {
  text-align: center;
  margin-top: 40px;
  font-size: 18px;
  color: var(--gold);
  font-weight: 700;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  position: relative;
}
@media (min-width: 860px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.step-item { text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 600;
  box-shadow: 0 0 24px var(--gold-glow);
}
.step-item p { font-size: 16px; color: var(--text-dim); }
.steps-connector {
  display: none;
}
@media (min-width: 860px) {
  .steps-connector {
    display: block;
    position: absolute;
    top: 28px; left: 16.5%; right: 16.5%;
    height: 2px;
    z-index: -1;
  }
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
.pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.pricing-card .pricing-icon { margin-bottom: 14px; width: 48px; height: 48px; }
.pricing-card h3 { font-size: 22px; margin-bottom: 2px; }
.pricing-pages { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; }
.pricing-price { font-family: var(--font-serif); font-style: italic; font-size: 30px; color: var(--gold); margin-bottom: 22px; }
.pricing-card .btn { margin-top: 4px; width: 100%; }

/* Quote / pearl */
.quote-block {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 36px;
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(245,193,74,0.06), transparent 70%);
  box-shadow: inset 0 0 60px rgba(245,193,74,0.05);
}
.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.55;
  color: var(--white);
}
.quote-cite {
  display: block;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-dim);
  font-style: normal;
  font-family: var(--font);
}

/* Pearls (used also in chart) */
.pearl {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--white);
  border-left: 2px solid var(--gold);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
}

/* FAQ Accordion */
.accordion-item {
  border-bottom: 1px solid var(--violet-border);
}
.accordion-item:first-child { border-top: 1px solid var(--violet-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 24px 4px;
  text-align: left;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.accordion-trigger .chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  transition: transform 300ms var(--ease);
  color: var(--gold);
}
.accordion-item.is-open .accordion-trigger .chevron { transform: rotate(180deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease);
}
.accordion-panel-inner {
  padding: 0 4px 24px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  padding: 48px 0 8px;
  margin-top: 56px;
  border-top: 1px solid var(--violet-border);
  text-align: center;
}
.site-footer--auth {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 36px;
}
.site-footer .logo { justify-content: center; margin-bottom: 20px; }
.footer-social,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-dim);
}
.footer-social { font-weight: 600; }
.footer-social a:hover,
.footer-links a:hover,
.footer-copy a:hover { color: var(--gold); }
.footer-copy { font-size: 13px; color: var(--text-dim); opacity: 0.7; margin-top: 4px; }
.footer-copy a { color: inherit; }

/* ============================================================
   Login page
   ============================================================ */
.auth-shell {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(169,158,232,0.12), transparent 55%),
    var(--bg-base);
}
.auth-card {
  width: 100%;
  max-width: 400px;
}
.auth-card .logo { justify-content: center; margin-bottom: 28px; }
.auth-card h1 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 32px;
}
.auth-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-top: 20px;
}
.auth-error {
  display: none;
  background: rgba(232, 139, 139, 0.1);
  border: 1px solid rgba(232, 139, 139, 0.3);
  color: var(--error);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-error.is-visible { display: block; }

/* Prisijungimo žingsniai (email -> kodas/slaptažodis -> kodas) */
.auth-step[hidden] { display: none; }
.auth-email-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
  gap: 12px;
}
.auth-email-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-email-row a { color: var(--accent, #f5c14a); white-space: nowrap; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.auth-code-sub {
  text-align: center;
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 20px;
  overflow-wrap: break-word;
}
.auth-code-input {
  width: 100%;
  text-align: center;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 12px;
  padding: 14px 8px 14px 20px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text, #fff);
}
.auth-code-input:focus {
  outline: none;
  border-color: var(--accent, #f5c14a);
}
.auth-help { margin-top: 28px; font-size: 13px; }

/* ============================================================
   App shell / views
   ============================================================ */
.app-shell { min-height: 100svh; display: flex; flex-direction: column; }
.view { display: none; }
.view.is-active { display: block; }

.app-loading {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-loading .spinner-dot-line { opacity: 0.6; }

/* ============================================================
   Wizard
   ============================================================ */
/* display tik su .is-active – kitaip .wizard-view nugali .view { display:none }
   ir vedlys lieka matomas po perėjimo į generavimo ekraną */
.wizard-view.is-active { min-height: 100svh; display: flex; flex-direction: column; }
.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 0;
}
.wizard-exit { color: var(--text-dim); font-size: 14px; font-weight: 600; }
.wizard-exit:hover { color: var(--gold); }
.wizard-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 32px 20px 60px;
}
.wizard-step {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}
.wizard-step h2 { margin-bottom: 12px; }
.wizard-step-sub { color: var(--text-dim); margin-bottom: 32px; font-size: 16px; }
.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.wizard-actions .btn { flex: 1; min-width: 140px; }

/* Konteksto žingsnis (statusas / vaikai / situacija) */
.ctx-group { margin-bottom: 26px; }
.ctx-label { color: var(--text); font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.ctx-optional { color: var(--text-dim); font-weight: 400; font-size: 13px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row .choice-chip { white-space: nowrap; }
.choice-chip {
  background: var(--bg-panel);
  border: 1px solid var(--violet-border);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}
.choice-chip:hover { border-color: var(--violet-dim); transform: translateY(-1px); }
.choice-chip.is-selected {
  border-color: var(--violet-dim);
  background: rgba(139,127,217,0.16);
  box-shadow: 0 0 0 3px var(--violet-border);
}
#ctx-situation { min-height: 90px; }
.ctx-custom-input { margin-top: 12px; }

/* Type cards */
.type-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
.type-card {
  background: var(--bg-panel);
  border: 1.5px solid var(--violet-border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), background 220ms var(--ease);
}
.type-card:hover { transform: translateY(-3px); border-color: var(--violet-dim); }
.type-card.is-selected {
  border-color: var(--gold);
  background: rgba(245,193,74,0.06);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold);
}
.type-card svg { width: 40px; height: 40px; margin: 0 auto 16px; }
.type-card h3 { font-size: 18px; margin-bottom: 6px; }
.type-card p { font-size: 14px; color: var(--text-dim); }

/* Question examples rotator */
.question-examples {
  margin-top: 18px;
  min-height: 24px;
  position: relative;
}
.question-example {
  position: absolute;
  inset: 0;
  font-size: 14px;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 600ms var(--ease);
  font-style: italic;
}
.question-example.is-active { opacity: 0.75; }

/* Review */
.review-grid { display: grid; gap: 16px; margin-bottom: 8px; }
.review-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.review-photo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}
.review-photo-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-panel-2);
  border: 1px solid var(--violet-border);
  flex-shrink: 0;
}
.review-info { flex: 1; min-width: 0; }
.review-name { font-weight: 700; color: var(--white); margin-bottom: 3px; }
.review-detail { font-size: 14px; color: var(--text-dim); }
.review-question {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--white);
  padding: 22px;
}
.review-credits {
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
  margin: 20px 0 4px;
}

/* ============================================================
   Generation screen
   ============================================================ */
.gen-view.is-active {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(15,14,40,0.7), rgba(15,14,40,0.92)),
    var(--bg-deep);
  background-image:
    linear-gradient(180deg, rgba(15,14,40,0.7), rgba(15,14,40,0.94)),
    url('../assets/img/waiting-bg.webp');
  background-size: cover;
  background-position: center;
}
.gen-inner { max-width: 480px; }
.gen-stage-text {
  font-size: 20px;
  color: var(--white);
  font-weight: 600;
  line-height: 1.5;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0 20px;
  transition: opacity 400ms var(--ease);
}
.gen-elapsed {
  font-size: 13px;
  color: var(--text-dim);
  margin: -8px 0 0;
  min-height: 1.2em;
}
.gen-soft-note {
  font-size: 14px;
  color: var(--text-soft, #c8c4d8);
  margin: 16px 0 0;
  line-height: 1.5;
}
.gen-soft-note[hidden] { display: none; }
.gen-footnote { font-size: 14px; color: var(--text-dim); margin-top: 24px; }
.gen-error {
  display: none;
  margin-top: 24px;
  color: var(--error);
  background: rgba(232,139,139,0.08);
  border: 1px solid rgba(232,139,139,0.25);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
}
.gen-error.is-visible { display: block; }
.gen-error a { color: var(--error); text-decoration: underline; }

/* ============================================================
   Chart view
   ============================================================ */
.chart-view { background: var(--bg-base); }

.chart-cover {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 60px 24px 80px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15,14,40,0.35) 0%, rgba(15,14,40,0.92) 85%),
    var(--bg-deep);
  background-size: cover;
  background-position: center;
  transition: transform 800ms var(--ease), opacity 800ms var(--ease);
}
.chart-cover.is-opening { transform: translateY(-100%); opacity: 0.4; pointer-events: none; }
.chart-cover-name {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(30px, 6vw, 44px);
  color: var(--white);
  margin-bottom: 10px;
}
.chart-cover-date { color: var(--text-dim); font-size: 15px; margin-bottom: 30px; letter-spacing: 0.03em; }
.chart-cover-line { width: 160px; height: 20px; margin-bottom: 36px; }
.chart-cover .btn { margin-top: 10px; }

.chart-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(15,14,40,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--violet-border);
}
.chart-topbar-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chart-topbar-identity .logo svg { height: 20px; }
.chart-topbar-name { font-size: 14px; font-weight: 600; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-pdf-group { display: flex; align-items: center; gap: 8px; }
.chart-pdf-group select { width: auto; padding: 10px 34px 10px 14px; font-size: 13px; }
.chart-pdf-group .btn { padding: 10px 18px; font-size: 13px; }

.chart-essence {
  max-width: var(--chart-max);
  margin: 60px auto 0;
  padding: 0 24px;
  display: grid;
  gap: 20px;
}
.essence-item {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--white);
  text-align: center;
  padding: 4px 12px;
}

.chart-content {
  max-width: var(--chart-max);
  margin: 0 auto;
  padding: 56px 24px 100px;
}
.chart-section { margin-bottom: 64px; }
.chart-section h2 {
  font-size: 26px;
  margin-bottom: 14px;
}
.chart-section-rule {
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  border-radius: 2px;
  margin-bottom: 26px;
}
.chart-section-body p { margin-bottom: 20px; }
.chart-section-body p:last-child { margin-bottom: 0; }

/* Vinjetė - plati dekoratyvinė juosta, susiliejanti su tamsiu fonu.
   mix-blend-mode: screen panaikina paveiksliuko tamsų foną (lieka tik
   auksinės linijos švytėjimas), mask nutirpdo kraštus. */
.chart-section-vignette {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.9;
  margin: -8px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.member-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 72px 0 40px;
}
.member-divider-line { flex: 1; height: 1px; background: var(--violet-border); }
.member-divider-vignette {
  height: 44px;
  width: 130px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.member-divider span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--gold);
  white-space: nowrap;
}

.chart-outro {
  max-width: var(--chart-max);
  margin: 0 auto;
  padding: 0 24px 100px;
  text-align: center;
}
.chart-outro p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--white);
  margin-bottom: 28px;
}

/* ============================================================
   Account / charts list
   ============================================================ */
.account-view { padding: 100px 0 80px; min-height: 100svh; }
.account-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.account-credits-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.account-credits {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.account-credits span { color: var(--gold); }
.admin-stats { margin-bottom: 28px; }
.admin-stats h2 { font-size: 20px; margin-bottom: 6px; }
.admin-stats-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) {
  .admin-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.admin-stat {
  background: var(--bg-panel-2);
  border-radius: 12px;
  padding: 14px 16px;
}
.admin-stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0 0 4px;
}
.admin-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin: 0;
}
.admin-stat-value.is-gold { color: var(--gold); }
.admin-stat-value.is-dim { color: var(--violet); }
.admin-stat-note { font-size: 12px; color: var(--text-dim); margin: 4px 0 0; }
.admin-stats-table-wrap { margin-top: 22px; overflow-x: auto; }
.admin-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-stats-table th,
.admin-stats-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--violet-border);
  white-space: nowrap;
}
.admin-stats-table th { color: var(--text-dim); font-weight: 600; }
.admin-stats-table td { color: var(--text); }
.admin-stats-table .is-pos { color: #8fd4a2; }
.admin-stats-table .is-neg { color: var(--error); }
.admin-credits { margin-bottom: 36px; }
.admin-credits h2 { font-size: 20px; margin-bottom: 18px; }
.admin-credits-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 16px;
  align-items: end;
}
.admin-credits-form .field { margin-bottom: 0; }
.admin-credits-msg { margin-top: 14px; font-size: 14px; color: var(--gold); }
.admin-credits-msg.is-error { color: var(--error); }
.empty-state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.people-shelf { margin-bottom: 48px; }
.people-shelf-title {
  font-size: 22px;
  margin-bottom: 6px;
}
.people-shelf-sub {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.people-shelf-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.people-card-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
}
.people-card-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
}
.people-card-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--violet-border);
  background: var(--bg-panel);
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.people-card-btn:hover,
.people-card-btn:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}
.people-card-btn.is-danger:hover,
.people-card-btn.is-danger:focus-visible {
  border-color: var(--error);
  color: var(--error);
}
.btn.is-danger-text { color: var(--text-dim); }
.btn.is-danger-text:hover { color: var(--error); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 28, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.modal-overlay[hidden] { display: none; }
.modal-card {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 28px;
}
.modal-card h2 { margin-bottom: 20px; }
.people-card {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.people-card-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel);
  border: 2px solid var(--violet-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
  box-shadow: var(--shadow-glow);
  transition: border-color 220ms var(--ease), transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.people-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people-card:hover .people-card-avatar,
.people-card:focus-visible .people-card-avatar {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}
.people-card-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  line-height: 1.2;
}
.people-card-date {
  font-size: 12px;
  color: var(--text-dim);
}

.people-picker { margin-bottom: 28px; }
.people-picker-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.people-picker-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.people-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  background: transparent;
  border: 0;
  padding: 0;
}
.people-chip-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-panel);
  border: 2px solid var(--violet-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.people-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people-chip:hover .people-chip-avatar,
.people-chip.is-selected .people-chip-avatar {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold);
}
.people-chip-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.chart-list { display: grid; gap: 16px; }
.chart-list-item {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.chart-list-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-panel-2);
  border: 1px solid var(--violet-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chart-list-icon svg { width: 22px; height: 22px; }
.chart-list-info { flex: 1; min-width: 160px; }
.chart-list-title { font-weight: 700; color: var(--white); margin-bottom: 4px; }
.chart-list-meta { font-size: 14px; color: var(--text-dim); }
.chart-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-panel-2);
  color: var(--text-dim);
}
.chart-status.is-done { color: var(--gold); }
.chart-status.is-generating { color: var(--violet); }
.chart-status.is-failed { color: var(--error); }
.chart-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chart-list-actions { display: flex; gap: 10px; }

.chart-audio-row { flex-basis: 100%; padding-top: 4px; }
.chart-audio-row audio { width: 100%; height: 40px; display: block; }

.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-dim);
}
.empty-state h3 { color: var(--white); margin-bottom: 12px; }

/* ============================================================
   Skeletons / loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg-panel) 25%, var(--bg-panel-2) 50%, var(--bg-panel) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.6s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--bg-panel-2);
  border: 1px solid var(--violet-border);
  color: var(--text);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.is-error { border-color: rgba(232,139,139,0.4); color: var(--error); }

/* ============================================================
   Homepage – warm traffic pardavimas + login
   ============================================================ */
.home-body { background: var(--bg-base); }
.home-page {
  min-height: 100svh;
  padding: 20px 20px 60px;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(169,158,232,0.18), transparent 52%),
    radial-gradient(ellipse at 88% 20%, rgba(245,193,74,0.07), transparent 38%),
    var(--bg-base);
}
.home-inner { width: 100%; max-width: 840px; margin: 0 auto; }
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}
.home-login-link { flex-shrink: 0; }

.home-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.home-hero h1 {
  font-size: clamp(31px, 6.8vw, 50px);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.home-lead {
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--text);
  margin: 0 auto 28px;
  max-width: 30em;
}
.btn-cta-lg {
  font-size: 18px;
  padding: 20px 40px;
  width: 100%;
  max-width: 420px;
  min-height: 58px;
}
.home-cta-sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-dim);
}
.home-guarantee-line {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--white);
  opacity: 0.9;
}

.home-reviews-block { margin-bottom: 52px; }
.home-reviews-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 24px;
}
.home-reviews {
  display: grid;
  gap: 16px;
}
.review-shot {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #111018;
  border: 1px solid var(--violet-border);
}
.review-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.home-cta-block {
  text-align: center;
  padding: 8px 0 56px;
}
.home-cta-block h2 {
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 22px;
}
.home-cta-block .btn-cta-lg { margin: 0 auto; }

.home-auth {
  max-width: 440px;
  margin: 0 auto;
  scroll-margin-top: 24px;
}
.home-auth-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.home-auth .auth-card { width: 100%; max-width: none; }
.home-auth .auth-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .home-reviews { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
}

@media (min-width: 900px) {
  .home-page { padding: 28px 28px 88px; }
  .home-header { margin-bottom: 60px; }
  .btn-cta-lg { width: auto; }
}

@media (max-width: 720px) {
  .account-header { flex-direction: column; align-items: stretch; }
  .account-credits-block { flex-direction: column; align-items: stretch; }
  .account-credits-block .btn,
  .account-header > .btn { width: 100%; }
  .admin-credits-form { grid-template-columns: 1fr; }
  .empty-state-actions .btn { width: 100%; }
  .home-page { padding: 16px 16px 48px; }
  .home-header { margin-bottom: 32px; }
  .home-hero { margin-bottom: 40px; }
  .auth-card { padding: 24px 20px; }
}

/* ============================================================
   Chart „daugiau" meniu (⋯)
   ============================================================ */
.chart-more-wrap { position: relative; }
.chart-more-btn { min-width: 44px; font-weight: 800; letter-spacing: 1px; }
.chart-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 180px;
  background: var(--bg-panel-2);
  border: 1px solid var(--violet-border);
  border-radius: 14px;
  padding: 6px;
  z-index: 40;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.chart-more-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.chart-more-menu button:hover { background: rgba(139,127,217,0.12); }
.chart-more-menu button.is-danger-text { color: var(--text-dim); }
.chart-more-menu button.is-danger-text:hover { color: var(--error); background: rgba(232,139,139,0.08); }

/* ============================================================
   Paslėpti keliai
   ============================================================ */
.archived-block { margin-top: 28px; text-align: center; }
.archived-toggle { font-size: 14px; color: var(--text-dim); }
.archived-toggle:hover { color: var(--violet); }
.archived-list { display: grid; gap: 12px; margin-top: 16px; text-align: left; }
.chart-list-item.is-archived { opacity: 0.75; }
.chart-list-item.is-archived:hover { opacity: 1; }

/* ============================================================
   Balsas charto skaitymo ekrane
   ============================================================ */
.chart-audio-bar {
  position: sticky;
  top: 64px;
  z-index: 25;
  max-width: var(--chart-max);
  margin: 12px auto 0;
  padding: 0 24px;
}
.chart-audio-bar audio {
  width: 100%;
  height: 42px;
  display: block;
  border-radius: 12px;
  background: var(--bg-panel-2);
}

/* ============================================================
   Confirm modalas
   ============================================================ */
.confirm-card p { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 6px; }
.btn-danger,
.btn.btn-danger {
  background: rgba(232,139,139,0.14);
  color: var(--error);
  border: 1px solid rgba(232,139,139,0.4);
}
.btn-danger:hover { background: rgba(232,139,139,0.24); }

/* ============================================================
   App footer (paskyros apačia)
   ============================================================ */
.app-footer {
  margin-top: 64px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--violet-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.app-footer a {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.app-footer a:hover { color: var(--violet); }

/* ============================================================
   Garantijos / sąlygų puslapis
   ============================================================ */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
.legal-page .logo { display: inline-flex; margin-bottom: 40px; }
.legal-page h1 { font-size: 32px; margin-bottom: 28px; color: var(--white); }
.legal-page h2 { font-size: 19px; margin: 32px 0 10px; color: var(--gold); }
.legal-page p { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-bottom: 12px; }
.legal-page a { color: var(--violet); }
.legal-page a:hover { color: var(--gold); }
.legal-back { margin-top: 40px; }

/* ============================================================
   Mobile smulkinimai (nauji elementai)
   ============================================================ */
@media (max-width: 720px) {
  .chart-list-actions { width: 100%; }
  .chart-list-actions .btn { flex: 1; }
  .chart-more-wrap { flex: 0 0 auto; }
  .chart-more-menu { right: 0; left: auto; }
  .chart-audio-bar { top: 58px; padding: 0 16px; }
  .chart-pdf-group { flex-wrap: wrap; justify-content: flex-end; }
}

/* ============================================================
   Home – SEO sekcijos (kaip veikia / DUK) — minimalistinis
   ============================================================ */
.home-method-line {
  margin: -16px auto 28px;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}
.home-section { max-width: 560px; margin: 0 auto 64px; }
.home-section-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 28px);
  margin-bottom: 30px;
}

.how-steps { display: grid; gap: 26px; }
.how-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 6px;
}
.how-step-num {
  color: var(--gold);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}
.how-step h3 { font-size: 18px; margin-bottom: 5px; }
.how-step p { font-size: 15.5px; line-height: 1.65; color: var(--text-dim); }

.home-faq details {
  border-bottom: 1px solid var(--violet-border);
}
.home-faq details:first-of-type { border-top: 1px solid var(--violet-border); }
.home-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 30px 17px 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  position: relative;
}
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 600;
  font-size: 21px;
  transition: transform 0.25s var(--ease);
}
.home-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.home-faq details p {
  padding: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
