:root {
  --bg-primary: #050607;
  --bg-secondary: #0D0F10;
  --bg-card: #101314;
  --green: #4A9E4A;
  --cyan: #3FE0D0;
  --text-primary: #F5F6F5;
  --text-secondary: #8A9290;
  --negative: #E0574A;
  --glow: rgba(63, 224, 208, 0.35);
  --border-subtle: rgba(245, 246, 245, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

#app {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
}
.screen.active {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.wrap.center {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lead {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.fineprint {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 24px;
  opacity: 0.75;
}

.field {
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-size: 18px;
  outline: none;
}
.field input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--glow);
}

.btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--green);
  color: #04140a;
}
.btn-primary:hover { box-shadow: 0 0 24px rgba(74,158,74,0.4); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* PULSE / LOADING */
.pulse-dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  margin-bottom: 24px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* CAMERA STAGE */
.camera-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
#camera-feed, #camera-feed-2 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror front camera */
}
#overlay-canvas, #scan-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transform: scaleX(-1);
}

.scrim-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 24px 20px;
  padding-top: calc(24px + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
  display: flex;
  gap: 16px;
  z-index: 2;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.check-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.check-row.ok .check-dot {
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.check-row.ok { color: var(--text-primary); }

.scrim-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  z-index: 2;
  text-align: center;
}
.scrim-bottom p {
  font-size: 15px;
  color: var(--text-primary);
}

.progress-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 240px; height: 240px;
  z-index: 2;
  pointer-events: none;
}
.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 4;
}
.ring-fg {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 565;
  stroke-dashoffset: 565;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.2s linear;
  filter: drop-shadow(0 0 6px var(--cyan));
}

/* PROCESSING */
.processing-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 24px;
  transition: opacity 0.4s ease;
}

/* RESULT */
#avatar-canvas {
  display: block;
  margin: 24px auto;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 360 / 420;
}

.score-block {
  text-align: center;
  margin-bottom: 32px;
  margin-top: 28px;
}
.score-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.score-number {
  font-size: 72px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.score-number.small { font-size: 36px; }
.score-delta {
  font-size: 14px;
  color: var(--green);
  margin-top: 4px;
}

.score-gauge {
  max-width: 320px;
  margin: 20px auto 0;
}
.score-gauge-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(138, 146, 144, 0.35) 0%,
    rgba(63, 224, 208, 0.4) 35%,
    rgba(74, 158, 74, 0.6) 65%,
    rgba(74, 158, 74, 1) 100%
  );
}
.score-gauge-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(63, 224, 208, 0.9);
  transform: translate(-50%, -50%);
  transition: left 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-gauge-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.score-explainer {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.changes-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.change-row {
  background: var(--bg-card);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(6px);
  animation: revealRow 0.5s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes revealRow {
  to { opacity: 1; transform: translateY(0); }
}
.change-region {
  font-size: 15px;
  color: var(--text-primary);
}
.change-region .confidence-flag {
  font-size: 11px;
  color: var(--text-secondary);
  margin-left: 6px;
}
.change-value {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.change-value.up { color: var(--green); }
.change-value.down { color: var(--negative); }
.change-value.flat { color: var(--text-secondary); }

/* MENU */
.menu-header {
  text-align: center;
  margin-bottom: 24px;
  margin-top: env(safe-area-inset-top, 0px);
  padding-top: 20px;
}
.menu-tier-badge {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #04140a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 16px rgba(63, 224, 208, 0.4);
  margin: 6px 0 16px;
}
.card-full {
  width: 100%;
  margin-bottom: 16px;
}
.weekly-reminder {
  text-align: center;
  font-size: 13px;
  color: var(--cyan);
  line-height: 1.5;
  background: rgba(63, 224, 208, 0.08);
  border: 1px solid rgba(63, 224, 208, 0.25);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}
.card-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.card-value {
  font-size: 20px;
  font-weight: 700;
}

/* HISTORY */
.history-item {
  display: flex;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.history-date { color: var(--text-primary); font-size: 15px; }
.history-score { color: var(--cyan); font-weight: 700; }

/* TRANSFORMATION */
#transformation-canvas {
  display: block;
  margin: 24px auto;
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 360 / 420;
}
.transformation-date {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

/* SHARE */
.share-progress-block {
  text-align: center;
  padding: 48px 0;
}
.share-progress-track {
  width: 100%;
  max-width: 280px;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  margin: 20px auto 0;
  overflow: hidden;
}
.share-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.share-preview-block {
  text-align: center;
}
#share-video {
  width: 100%;
  max-width: 320px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: #000;
}

/* RESULT PHOTO — glavni "hero" element, sjajan gradient okvir */
.result-hero {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 8px auto 8px;
}
.result-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
    linear-gradient(135deg, var(--cyan), var(--green), var(--cyan)) border-box;
  box-shadow: 0 0 50px rgba(63, 224, 208, 0.25), 0 0 100px rgba(74, 158, 74, 0.1);
  animation: heroGlow 3.5s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { box-shadow: 0 0 50px rgba(63, 224, 208, 0.25), 0 0 100px rgba(74, 158, 74, 0.1); }
  50% { box-shadow: 0 0 70px rgba(63, 224, 208, 0.4), 0 0 120px rgba(74, 158, 74, 0.18); }
}
.result-tier-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #04140a;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 24px rgba(63, 224, 208, 0.55);
  white-space: nowrap;
}

/* CAROUSEL — napredak po skenovima, prave fotografije */
.wrap-full {
  padding-left: 0;
  padding-right: 0;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding: 8px 24px 20px;
  -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 320px;
  min-width: 0;
  scroll-snap-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}
.carousel-info {
  padding: 16px 18px 20px;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.carousel-info * {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.carousel-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--bg-secondary);
}
.carousel-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  padding: 20px;
  background: var(--bg-secondary);
}
.carousel-card-reminder {
  display: flex;
  flex-direction: column;
  border: 1px dashed rgba(63, 224, 208, 0.4);
  background: linear-gradient(160deg, rgba(63, 224, 208, 0.08), rgba(74, 158, 74, 0.05));
}
.carousel-reminder-icon {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.carousel-reminder-target {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}
.carousel-scan-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.1;
}
.carousel-date {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.carousel-headline {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
}
.carousel-vtaper {
  display: inline-block;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(63,224,208,0.12);
  border: 1px solid rgba(63,224,208,0.3);
  color: var(--text-primary);
  margin-bottom: 14px;
}
.carousel-vtaper span {
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.carousel-vtaper small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 400;
}
.carousel-detail-row.carousel-trend {
  color: var(--cyan);
  font-weight: 500;
}
.carousel-momentum {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.carousel-score {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.carousel-details {
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}
.carousel-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  color: var(--text-secondary);
}
.carousel-detail-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.carousel-detail-value.up { color: var(--green); }
.carousel-detail-value.down { color: var(--negative); }
.carousel-detail-value.flat { color: var(--text-secondary); font-weight: 400; }
.carousel-delta {
  font-size: 13px;
  margin-top: 4px;
  color: var(--green);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
}
.carousel-dot.active {
  background: var(--cyan);
}

.vtaper-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(63,224,208,0.1), rgba(74,158,74,0.1));
  border: 1px solid rgba(63,224,208,0.3);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}
.vtaper-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.vtaper-value {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.vtaper-band {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 4px;
  font-weight: 600;
}
.vtaper-scale {
  margin: 16px auto 0;
  max-width: 260px;
}
.vtaper-scale-track {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(138,146,144,0.35), rgba(63,224,208,0.5), rgba(74,158,74,1));
}
.vtaper-scale-marker {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 8px rgba(63,224,208,0.8);
  transform: translate(-50%, -50%);
  transition: left 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.vtaper-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 9px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.6;
}
.vtaper-description {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 14px;
}
.vtaper-delta {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 8px;
}
.momentum-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 4px auto 20px;
  max-width: 300px;
}
.insight-row.insight-trend {
  border-left: 3px solid var(--cyan);
  background: linear-gradient(90deg, rgba(63,224,208,0.08), transparent);
  font-weight: 500;
}

.then-now {
  max-width: 340px;
  margin: 0 auto 20px;
}
.then-now-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 10px;
}
.then-now-photos {
  display: flex;
  align-items: center;
  gap: 10px;
}
.then-now-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.then-now-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
}
.then-now-item span {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.then-now-arrow {
  color: var(--cyan);
  font-size: 20px;
  flex-shrink: 0;
}

.result-headline {
  text-align: center;
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 20px auto 24px;
  max-width: 320px;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.insight-row {
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.4;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  transform: translateY(8px);
  animation: revealRow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.insight-row.insight-up {
  border-left: 3px solid var(--green);
}
.insight-row.insight-down {
  border-left: 3px solid var(--cyan);
}

.symmetry-heading {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin: 20px 0 10px;
}
.symmetry-card {
  background: rgba(224, 87, 74, 0.08);
  border: 1px solid rgba(224, 87, 74, 0.25);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(8px);
  animation: revealRow 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.symmetry-text {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-weight: 600;
}
.symmetry-tip {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* MILESTONE PUTANJA */
.home-screen-guide {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 8px 0 16px;
}
.volume-warning {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--negative);
  animation: volumeBlink 1.4s ease-in-out infinite;
}
@keyframes volumeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.notify-hero {
  text-align: center;
  padding: 32px 0 24px;
}
.notify-icon {
  font-size: 56px;
  margin-bottom: 12px;
  animation: notifyPulse 1.8s ease-in-out infinite;
}
@keyframes notifyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.notify-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#btn-enable-notify {
  margin-top: 8px;
}

.home-screen-guide-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.home-screen-os-block {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.home-screen-os-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.home-screen-os-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
}
.home-screen-guide-warning {
  font-size: 12px;
  color: var(--cyan);
  line-height: 1.5;
  margin-bottom: 12px;
}
.home-screen-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-screen-steps li {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.home-screen-steps strong {
  color: var(--text-primary);
}
.step-icon {
  font-size: 11px;
}

.milestone-count {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.milestone-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 260px;
  margin: 6px auto 0;
}
.milestone-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 20px 24px;
  gap: 0;
}
.milestone-next {
  text-align: center;
  font-size: 12px;
  color: var(--cyan);
  margin-top: -8px;
  margin-bottom: 8px;
}
.milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}
.milestone-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
}
.milestone.reached .milestone-dot {
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(63, 224, 208, 0.7);
}
.milestone-label {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.milestone.reached .milestone-label {
  color: var(--cyan);
  font-weight: 700;
}
.milestone-line {
  flex: 1;
  min-width: 20px;
  height: 2px;
  background: var(--border-subtle);
  margin-bottom: 18px;
}

.carousel-symmetry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(224, 87, 74, 0.25);
  font-size: 12px;
  color: var(--negative);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
