*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --olive: #5A5A40;
  --olive-light: #A8A878;
  --olive-dark: #4A4A30;
  --bg: #F5F2ED;
  --dark: #1A1A1A;
  --muted: #6B6B6B;
  --card-bg: rgba(255,255,255,0.6);
  --border: rgba(90,90,64,0.15);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(90,90,64,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(168,168,120,0.06) 0%, transparent 60%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

/* ── INPUT SCREEN ── */
#input-screen {
  width: 100%;
  max-width: 440px;
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

.clock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  margin-bottom: 1.5rem;
}

#input-screen h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  color: var(--dark);
  margin-bottom: 0.75rem;
}
#input-screen h2 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.875rem, 4.5vw, 2.44rem);
    color: var(--dark);
    margin-bottom: 0.75rem;
    text-align: center;
}
#input-screen p {
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.4rem;
  opacity: 0.7;
}

.form-field input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.5);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

/* ── Custom Dropdowns (ViewZee pattern, olive palette) ── */
.date-select-row {
  display: flex;
  gap: 0.5rem;
}

#birth-month-wrapper { flex: 1 1 45%; min-width: 0; }
#birth-day-wrapper   { flex: 1 1 25%; min-width: 0; }
#birth-year-wrapper  { flex: 1 1 30%; min-width: 0; }

.date-select-row .custom-select-wrapper {
  position: relative;
  user-select: none;
}

.date-select-row .custom-select-trigger {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.date-select-row .custom-select-trigger:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--olive);
  box-shadow: 0 4px 12px rgba(90, 90, 64, 0.1);
}

.date-select-row .custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 90, 64, 0.15);
}

.date-select-row .chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.date-select-row .custom-select-wrapper.open .chevron {
  transform: rotate(180deg);
  color: var(--olive);
}

.date-select-row .custom-options {
  position: absolute;
  display: block;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  max-height: 200px;
  scrollbar-width: auto;
  scrollbar-color: transparent transparent;
}

.date-select-row .custom-options:hover {
  scrollbar-color: rgba(90, 90, 64, 0.5) transparent;
}

.date-select-row .custom-options::-webkit-scrollbar {
  width: 6px;
}

.date-select-row .custom-options:hover::-webkit-scrollbar {
  width: 10px;
}

.date-select-row .custom-options::-webkit-scrollbar-track {
  background: transparent;
}

.date-select-row .custom-options::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.date-select-row .custom-options:hover::-webkit-scrollbar-thumb {
  background: rgba(90, 90, 64, 0.4);
}

.date-select-row .custom-options:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(90, 90, 64, 0.6);
}

.date-select-row .custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.date-select-row .custom-option {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  cursor: pointer;
  border-radius: 0;
  transition: background 0.2s;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.08);
}

.date-select-row .custom-option:last-child {
  border-bottom: none;
}

.date-select-row .custom-option:hover {
  background: rgba(90, 90, 64, 0.1);
  color: var(--olive);
}

.date-select-row .custom-option.selected {
  background: var(--olive);
  color: #fff;
}

.form-field input:focus {
  border-color: rgba(90,90,64,0.4);
  box-shadow: 0 0 0 3px rgba(90,90,64,0.12);
}

.submit-btn {
  width: 100%;
  background: var(--olive);
  color: #fff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s;
}

.submit-btn:hover { background: var(--olive-dark); }
.submit-btn:active { transform: scale(0.98); }

.submit-btn svg { transition: transform 0.2s; }
.submit-btn:hover svg { transform: translateX(4px); }

/* ── RESULT SCREEN ── */
#result-screen {
  display: none;
  width: 100%;
  max-width: 1200px;
  animation: fadeIn 0.5s ease both;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 1024px) {
  .result-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .left-col {
    grid-row: 1 / 3;
  }
}
@media (min-width: 1900px) {
  .result-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr) minmax(0, 5fr);
  }
  .left-col {
    grid-row: auto;
  }
  #result-screen {
    max-width: 1800px;
  }
}

.left-col {
    border-radius: 2rem;
    padding: 2rem;
    max-height: fit-content;
    min-width: 0;
}

.right-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.right-card {
  border-radius: 2rem;
  padding: 2rem;
  min-width: 0;
}

.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.journey-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.75rem;
  color: var(--dark);
}

.since-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--olive);
  font-weight: 600;
  margin-top: 0.25rem;
}

.reset-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s;
  display: flex;
  align-items: center;
}

.reset-btn:hover { background: rgba(0,0,0,0.05); }

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-box {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 1rem;
  padding: 1rem;
}

.stat-box .stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-box .stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark);
}
@media screen and (min-width: 480px) and (max-width: 555px) {
  .stat-box .stat-value {
    font-size: 1.14rem;
  }
}

.seconds-section { margin-bottom: 2rem; }

.seconds-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.seconds-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--dark);
}

/* Card previews */
.card-section { margin-bottom: 2rem; }

.card-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}

.card-section-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 700;
}

.regen-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  transition: opacity 0.2s;
}

.regen-btn:hover { text-decoration: underline; }

.card-preview-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 100%;
  width: 400px;
  margin: 0 auto;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
}

.card-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-placeholder {
  width: 100%;
  height: 100%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.card-action-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.card-action-btn {
  flex: 1;
  padding: 0.6rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}

.card-action-btn:active { transform: scale(0.96); }
.card-action-btn.white { background: #fff; color: #000; border: 1px solid var(--border); }
.card-action-btn.olive { background: var(--olive); color: #fff; }
.card-action-btn:hover { opacity: 0.85; }

.download-both-btn {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.download-both-btn:hover { background: #f5f5f5; }

/* ── RIGHT COLUMN (Story) ── */
.right-col {
  display: flex;
  flex-direction: column;
}

.story-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--olive);
}

.story-header span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.story-body {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--dark);
}

.story-body p { margin-bottom: 1rem; }
.story-body strong { font-weight: 600; }
.story-body em { font-style: italic; }

.story-rate-msg {
  text-align: center;
  color: var(--dark);
  font-size: 1.5rem;
  line-height: 1.6;
  padding: 1.5rem 1rem;
  margin: 0;
  position: fixed;
  z-index: 9999;
  top: 23%;
  max-width: 375px;
  left: 10%;
}

/* ── Share Link Prompt (after card share) ── */
.share-link-prompt {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  animation: slp-fade-in 0.25s ease;
}
@keyframes slp-fade-in { from { opacity: 0; } to { opacity: 1; } }

.share-link-prompt-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}
.share-link-prompt-card p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark);
}
.share-link-btn {
  display: block;
  width: 100%;
  padding: 0.7rem;
  border: none;
  border-radius: 0.6rem;
  background: var(--olive);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.6rem;
}
.share-link-btn:active { opacity: 0.85; }
.share-link-dismiss {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.story-loading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton {
  height: 16px;
  background: rgba(0,0,0,0.06);
  border-radius: 4px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton.w-3-4 { width: 75%; }
.skeleton.w-full { width: 100%; }
.skeleton.w-5-6 { width: 83%; }
.skeleton.w-2-3 { width: 66%; }

.story-quote {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-style: italic;
  font-size: 0.8rem;
  color: #aaa;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

/* ── ALLOCATION SECTION ── */
.allocation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.allocation-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--olive);
}

.allocation-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--dark);
}

.alloc-accordion {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: background 0.2s;
}

.alloc-accordion:hover {
  background: rgba(0,0,0,0.04);
}

.alloc-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
}

.alloc-accordion-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.alloc-cat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alloc-cat-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.51rem;
  color: var(--dark);
}

.alloc-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--olive);
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.alloc-summary {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.alloc-chevron {
  transition: transform 0.3s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.alloc-accordion.open .alloc-chevron {
  transform: rotate(180deg);
}

.alloc-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.alloc-accordion.open .alloc-accordion-body {
  max-height: 500px;
}

.alloc-sub-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.alloc-sub-left {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.alloc-sub-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.alloc-sub-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark);
}

.alloc-sub-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
}

.alloc-sub-freq {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alloc-sub-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark);
  white-space: nowrap;
  padding-top: 0.15rem;
}

/* ── FREE TIME SUMMARY ── */
.alloc-free-summary {
  background: rgba(90,90,64,0.06);
  border: 1px solid rgba(90,90,64,0.15);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.alloc-free-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.alloc-free-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.alloc-free-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 700;
}

.alloc-free-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--dark);
}

.alloc-free-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--muted);
}

.alloc-free-item.highlight .alloc-free-value {
  color: var(--olive);
  font-weight: 700;
}

.alloc-free-divider {
  width: 1px;
  height: 3rem;
  background: rgba(90,90,64,0.2);
}

.alloc-free-subtitle {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── ABOUT PAGE ── */
.main {
  text-align: left;
  margin-top: 1.5rem;
}

.card {
  margin-bottom: 1.5rem;
}

.card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--dark);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.muted {
  color: var(--muted) !important;
  font-size: 0.85rem !important;
}

/* ── FOOTER ── */
footer {
  margin-top: 3rem;
  color: #898484;
  font-size: 0.565rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 300;
}

footer a {
  color: #6b6767;
  font-size: 0.565rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 300;
  text-decoration: none;
}

.app-pill {
  display: block;
  width: fit-content;
  margin: 0.75rem auto 0;
  padding: 0.35rem 1rem;
  font-size: 0.6rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--olive);
  background: rgba(90,90,64,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin { animation: spin 1s linear infinite; }


/* ── STEPHEN ── */
span.toyouby {
    font-size: 60%;
    color: var(--muted);
}

span.toyou {
    font-size: 67%;
    letter-spacing: .05em;
    padding-left: 2px;
    color: var(--muted);
}

/* ── CARD MODAL OVERLAY ── */
.card-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.card-modal-img {
  max-width: min(80vw, 600px);
  max-height: 85vh;
  border-radius: 1rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  object-fit: contain;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-modal-overlay.active .card-modal-img {
  transform: scale(1);
  opacity: 1;
}

.card-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.3s, transform 0.3s;
}

.card-modal-close:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.05);
}

/* Make card previews look clickable */
.card-preview-wrapper {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-preview-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 70px rgba(0,0,0,0.2);
}

@media (pointer: coarse) {
  .card-preview-wrapper {
    cursor: pointer;
  }
  .card-preview-wrapper:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ── CARD LIVE LINK ── */
.card-live-link {
  text-align: center;
  margin-top: 0.5rem;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.live-link-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--olive);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.live-link-text:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* ── SOCIAL SHARE SECTION ── */
.social-share-section {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 2rem;
  text-align: center;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.8);
}

.social-share-heading {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.social-share-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.social-share-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.social-share-btn:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

.social-share-btn:active {
  transform: scale(0.97);
}

.social-share-btn svg {
  flex-shrink: 0;
}

.x-btn {
  background: #000000;
}

.linkedin-btn {
  background: #0A66C2;
}

.facebook-btn {
  background: #1877F2;
}

@media (max-width: 480px) {
  .social-share-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .social-share-btn {
    justify-content: center;
  }
}

/* ── Toast Notification ── */
.chronos-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.chronos-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
label.form-label.dont-show {
    display: none;
}

/* ══════════════════════════════════════════
   MY STORY — Wizard Flow
   ══════════════════════════════════════════ */

/* Wizard container */
.wizard-container {
  width: 100%;
  max-width: 520px;
  border-radius: 2rem;
  padding: 3rem 2.5rem;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

/* Progress bar */
.wizard-progress {
  margin-bottom: 2rem;
}

.wizard-progress-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wizard-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(90,90,64,0.12);
  border-radius: 2px;
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--olive);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Step visibility */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* Step headings */
.wizard-step h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.wizard-step-sub {
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

/* Options grid — 2x2 for 4 options */
.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Options grid — 1x3 for 3 options */
.wizard-options-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

/* Individual option card */
.wizard-option {
  background: rgba(255,255,255,0.5);
  border: 2px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.25rem 1rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  user-select: none;
}

.wizard-option:hover {
  border-color: rgba(90,90,64,0.35);
  background: rgba(255,255,255,0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.wizard-option.selected {
  border-color: var(--olive);
  background: rgba(90,90,64,0.08);
  box-shadow: 0 0 0 3px rgba(90,90,64,0.12);
}

.wizard-option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.wizard-option-label {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.wizard-option-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Wizard navigation */
.wizard-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wizard-back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.wizard-back:hover {
  color: var(--olive);
}

/* Result screen for mystory */
.mystory-result {
    width: 100%;
    max-width: 600px;
    border-radius: 2rem;
    padding: 2rem;
    animation: fadeUp 0.5s ease both;
    margin: 0 auto;
}

.mystory-result .story-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: var(--olive);
}

.mystory-result .story-header span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .wizard-container {
    padding: 2rem 1.5rem;
  }

  .wizard-options-grid {
    grid-template-columns: 1fr;
  }

  .wizard-options-grid.three-col {
    grid-template-columns: 1fr;
  }

  .wizard-option {
    padding: 1rem 0.75rem;
  }

  .mystory-result {
    padding: 1.5rem;
  }
}
