:root { --pink-50: #fff1f6; --pink-100: #ffe3ef; --pink-500: #ec4899; --pink-600: #db2777; --coral: #fb7185; --purple: #a78bfa; --yellow: #facc15; --ink: #3b2230; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 10% 20%, rgba(250, 204, 21, 0.22) 0 10px, transparent 11px), radial-gradient(circle at 92% 10%, rgba(167, 139, 250, 0.18) 0 18px, transparent 19px), linear-gradient(135deg, #fff7fb 0%, #fff1f6 48%, #fffaf0 100%); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; } .container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; padding: 58px 0 42px; } .hero h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); line-height: 0.93; letter-spacing: -0.07em; margin: 0 0 22px; }
.lede { font-size: clamp(1.1rem, 2vw, 1.35rem); color: #6d4155; line-height: 1.65; max-width: 720px; } .card { background: rgba(255,255,255,0.9); border: 1px solid rgba(236,72,153,0.12); border-radius: 28px; box-shadow: 0 24px 80px rgba(190, 24, 93, 0.11); } .card-pad { padding: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 13px 20px; border: 0; font-weight: 850; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; } .btn:hover { transform: translateY(-1px); } .btn-primary { background: linear-gradient(135deg, var(--pink-500), var(--coral)); color: white; box-shadow: 0 14px 28px rgba(219,39,119,.25); } .btn-secondary { background: white; color: var(--pink-600); border: 1px solid rgba(219,39,119,.2); } .btn-soft { background: #fff1f6; color: var(--pink-600); border: 1px solid #ffd2e4; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; } .confetti { position: relative; overflow: hidden; } .confetti::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#ec4899 2px, transparent 2px), radial-gradient(#facc15 2px, transparent 2px), radial-gradient(#a78bfa 2px, transparent 2px); background-size: 42px 42px, 54px 54px, 68px 68px; background-position: 0 0, 18px 12px, 28px 24px; opacity: .22; }
.section { padding: 58px 0; } .section h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -0.05em; margin: 0 0 14px; } .section-intro { color: #70465a; font-size: 1.1rem; line-height: 1.7; max-width: 760px; }
.grid { display: grid; gap: 18px; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.example-card { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; } .pill { display: inline-flex; border-radius: 999px; background: #fff1f6; color: #be185d; padding: 7px 11px; font-size: .82rem; font-weight: 800; } .audio-placeholder { display:flex; align-items:center; gap:10px; border-radius: 18px; background: linear-gradient(135deg, #fff1f6, #fff7ed); padding: 12px; color: #6d4155; font-weight: 750; } .play-dot { width: 34px; height: 34px; border-radius: 999px; background: #ec4899; color: white; display: inline-grid; place-items: center; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px 0 28px; } .step { border-radius: 999px; background: white; border: 1px solid #ffd2e4; height: 10px; overflow: hidden; } .step.active, .step.done { background: linear-gradient(135deg, #ec4899, #fb7185); }
.form-shell { max-width: 900px; margin: 22px auto 70px; } .form-title { font-size: clamp(2rem, 5vw, 4rem); line-height: .98; letter-spacing: -0.06em; margin: 0 0 12px; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; } .field label { font-weight: 850; color: #4c2939; } .helper { color: #7a5364; font-size: .93rem; line-height: 1.5; } .lore-helper { min-height: 2.8em; }
input, select, textarea { width: 100%; border-radius: 18px; border: 1px solid #f9bdd6; padding: 13px 14px; background: #fffafd; color: var(--ink); font: inherit; outline: none; } input[type="checkbox"], input[type="radio"] { width: auto; flex-shrink: 0; } textarea { min-height: 118px; resize: vertical; } input:focus, select:focus, textarea:focus { border-color: #ec4899; box-shadow: 0 0 0 4px rgba(236,72,153,.14); } .error { color: #be123c; font-weight: 750; font-size: .9rem; } .flash { border-radius: 18px; padding: 12px 16px; margin: 8px 0; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; } .flash.error { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.radio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .radio-card { border: 1px solid #ffd2e4; border-radius: 22px; background: #fffafd; padding: 14px; cursor: pointer; font-weight: 800; display: flex; align-items: flex-start; gap: 10px; } .radio-card input { width: auto; margin-right: 0; margin-top: 2px; } .checkbox-list { display: flex; flex-direction: column; gap: 10px; } .checkbox-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fffafd; border: 1px solid #ffd2e4; cursor: pointer; font-weight: 750; color: #4c2939; } .checkbox-row input { margin: 0; } .review-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid #ffd2e4; } .review-section:first-of-type { margin-top: 20px; padding-top: 0; border-top: 0; } .review-section-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; } .review-step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: linear-gradient(135deg, #ec4899, #fb7185); color: white; font-weight: 900; font-size: .95rem; flex-shrink: 0; } .review-section-title { margin: 0 0 4px; font-size: 1.35rem; letter-spacing: -0.03em; color: #4c2939; } .review-contact-form .btn, .checkout-form .btn { margin-top: 4px; } .review-section--locked { opacity: .72; } .review-locked-note { padding: 12px 14px; border-radius: 16px; background: #fff7fb; border: 1px dashed #f9bdd6; } .payment-status--success { padding: 12px 14px; border-radius: 16px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; } .review-actions .btn-primary { margin-top: 4px; } .review-actions .btn-primary:disabled, .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; } .spotify-addon-card { margin-top: 0 !important; } .note-row { display: grid; grid-template-columns: 1fr 1fr 1fr .8fr; gap: 10px; align-items: start; margin-bottom: 12px; } .pronunciation-guide-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; min-width: 0; } .pronunciation-preview-button { min-height: 48px; padding: 0 14px; white-space: nowrap; } .summary-list { display: grid; gap: 12px; min-width: 0; } .summary-item { min-width: 0; max-width: 100%; padding: 15px; border-radius: 18px; background: #fff7fb; border: 1px solid #ffd2e4; overflow-wrap: anywhere; } .song-player-card { position: relative; width: 100%; max-width: 320px; margin-top: 10px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); } .song-player-cover { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; } .song-player-cover--placeholder { display: grid; place-items: center; min-height: 220px; background: linear-gradient(135deg, #fff1f6, #fff7ed); padding: 12px; } .song-player-controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px; background: linear-gradient(to top, rgba(59,34,48,.82) 0%, rgba(59,34,48,.45) 55%, transparent 100%); } .song-player-controls audio { width: 100%; } .song-player-controls--placeholder { position: static; background: linear-gradient(135deg, #fff1f6, #fff7ed); border-top: 1px solid #ffd2e4; } .lyrics-box { max-width: 100%; margin: 8px 0 0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; line-height: 1.55; } .footer { padding: 38px 0; color: #7a5364; }
.admin-body { background: #fff7fb; overflow-x: clip; }
.admin-nav { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-bottom: 1px solid #ffd2e4; margin-bottom: 12px; }
.admin-nav-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-weight: 700; color: #70465a; font-size: .92rem; }
.admin-logout-form { display: inline; margin: 0; }
.admin-section { padding: 32px 0 48px; }
.admin-section h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; margin: 0 0 12px; word-break: break-word; }
.admin-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.admin-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #ffd2e4; vertical-align: top; word-break: break-word; }
.admin-table th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #7a5364; white-space: nowrap; }
.admin-stats { margin: 24px 0; }
.admin-stats .card { display: flex; flex-direction: column; gap: 6px; }
.admin-stats strong { font-size: 2rem; line-height: 1; }
.admin-panels { margin-top: 24px; }
.admin-filters { margin: 18px 0; }
.admin-filters .field { margin-bottom: 0; }
.filter-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.admin-pagination-pages { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.admin-pagination-link, .admin-pagination-current { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.admin-pagination-link { background: #fffafd; border: 1px solid #ffd2e4; color: #70465a; }
.admin-pagination-current { background: linear-gradient(135deg, #ec4899, #fb7185); color: white; }
.admin-pagination-disabled { opacity: .45; pointer-events: none; }
.admin-pagination-meta { margin: 0 0 12px; color: #7a5364; font-size: .92rem; }
.admin-email-editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr); gap: 18px; align-items: start; }
.admin-email-sidebar { display: grid; gap: 18px; min-width: 0; }
.admin-email-form { min-width: 0; }
.admin-variable-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.admin-variable-list li { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #ffe3ef; }
.admin-variable-list code { font-size: .88rem; color: #be185d; word-break: break-all; }
.admin-variable-list span { color: #7a5364; font-size: .9rem; line-height: 1.45; }
.admin-email-preview-frame-wrap { border: 1px solid #ffd2e4; border-radius: 18px; overflow: hidden; background: white; }
.admin-email-preview-frame { display: block; width: 100%; min-height: 320px; border: 0; background: white; }
.admin-preview-text { margin-top: 14px; }
.admin-preview-text summary { cursor: pointer; font-weight: 800; color: #70465a; }
.admin-action-stack { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 0; }
.admin-action-stack form { width: 100%; max-width: 320px; }
.admin-detail-panel { margin-top: 1.5rem; }
.trace-metadata { max-width: 100%; overflow-x: auto; }
.muted { color: #7a5364; }
.status-failed { color: #be123c; font-weight: 800; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9em; background: #fff1f6; padding: 2px 6px; border-radius: 8px; }
.ai-loading-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(59, 34, 48, 0.42); backdrop-filter: blur(4px); }
.ai-loading-overlay[hidden] { display: none !important; }
.ai-loading-card { width: min(360px, 100%); text-align: center; }
.ai-loading-lottie { width: 160px; height: 160px; margin: 0 auto; display: block; }
.ai-loading-message { margin: 0 0 8px; font-size: 1.15rem; font-weight: 850; color: #4c2939; }
.ai-loading-hint { margin: 0; }
.ai-loading-inline { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 0 6px; text-align: center; }
.ai-loading-inline lottie-player { width: 120px; height: 120px; }
.lore-card { overflow: hidden; }
.lore-known-for { margin: 24px 0 28px; padding: 22px; border-radius: 24px; background: linear-gradient(135deg, rgba(255,241,246,.95), rgba(255,250,240,.92)); border: 1px solid #ffd2e4; }
.lore-known-for-label { display: block; font-weight: 900; font-size: 1.1rem; color: #4c2939; margin-bottom: 6px; }
.lore-known-for-input { min-height: 84px; background: rgba(255,255,255,.92); border-radius: 18px; }
.lore-sections { display: grid; gap: 18px; }
.lore-section { padding: 22px; border-radius: 24px; background: #fffafd; border: 1px solid #ffe3ef; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.lore-section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.lore-section-icon { width: 42px; height: 42px; border-radius: 14px; display: inline-grid; place-items: center; background: linear-gradient(135deg, #fff1f6, #fff7ed); border: 1px solid #ffd2e4; font-size: 1.15rem; flex-shrink: 0; }
.lore-section-title { margin: 0 0 4px; font-size: 1.28rem; letter-spacing: -0.03em; color: #4c2939; }
.lore-like-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lore-like-label { display: block; font-weight: 850; font-size: .92rem; margin-bottom: 10px; }
.lore-like-label--love { color: #be185d; }
.lore-like-label--hate { color: #9a3412; }
.lore-tag-shell { border-radius: 20px; border: 1px solid #f9bdd6; background: white; padding: 12px; }
.lore-tag-shell--memory { background: linear-gradient(180deg, #fffafd 0%, #fff7fb 100%); }
.lore-tag-shell--love { border-color: #fbcfe8; }
.lore-tag-shell--hate { border-color: #fed7aa; }
.lore-tag-shell--people { border-color: #ddd6fe; }
.lore-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 10px; margin-bottom: 10px; }
.lore-tags:empty { margin-bottom: 0; }
.lore-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 8px 10px 8px 12px; border-radius: 999px; font-weight: 750; font-size: .9rem; line-height: 1.2; animation: loreChipIn .18s ease; }
.lore-chip-text { overflow: hidden; text-overflow: ellipsis; }
.lore-chip--memory { background: #fff1f6; color: #9d174d; border: 1px solid #fbcfe8; }
.lore-chip--love { background: #fdf2f8; color: #be185d; border: 1px solid #f9a8d4; }
.lore-chip--hate { background: #fff7ed; color: #c2410c; border: 1px solid #fdba74; }
.lore-chip--people { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.lore-chip--tone { background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4; }
.lore-chip--avoid { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.lore-chip-remove { width: 22px; height: 22px; border: 0; border-radius: 999px; background: rgba(255,255,255,.72); color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.lore-chip-remove:hover { background: white; }
.lore-tag-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.lore-tag-text { border-radius: 14px; padding: 11px 12px; min-height: 0; }
.lore-tag-add { padding: 11px 16px; white-space: nowrap; }
.lore-suggestions { margin-top: 12px; }
.lore-suggestions-label { display: block; font-size: .78rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; color: #9d6b7f; margin-bottom: 8px; }
.lore-suggestion-list { display: flex; flex-wrap: wrap; gap: 8px; }
.lore-suggestion { border: 1px dashed #f9bdd6; border-radius: 999px; background: white; color: #8f335f; padding: 7px 12px; font: inherit; font-weight: 750; font-size: .86rem; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.lore-suggestion:hover { transform: translateY(-1px); background: #fff7fb; border-color: #ec4899; }
.lore-suggestion.is-selected { background: linear-gradient(135deg, #fff1f6, #fff7ed); border-style: solid; border-color: #ec4899; color: #be185d; }
.lore-extras { margin-top: 22px; border-radius: 20px; border: 1px solid #ffe3ef; background: #fffafd; padding: 4px 16px; }
.lore-extras summary { cursor: pointer; font-weight: 850; color: #70465a; padding: 14px 0; list-style: none; }
.lore-extras summary::-webkit-details-marker { display: none; }
.lore-extras-body { padding-bottom: 8px; }
.lore-submit { margin-top: 24px; }
@keyframes loreChipIn { from { opacity: 0; transform: translateY(4px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.legal-body h2 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.03em; margin: 28px 0 10px; color: #4c2939; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #70465a; line-height: 1.7; }
.legal-body ul, .legal-body ol { padding-left: 1.2rem; margin: 0 0 14px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: #db2777; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .hero, .grid-2, .grid-3, .grid-4, .form-grid, .radio-grid { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(3, 1fr); } .note-row { grid-template-columns: 1fr; } .admin-nav { flex-direction: column; align-items: stretch; } .admin-nav-links { width: 100%; } .admin-section { padding: 24px 0 40px; } .card-pad { padding: 20px; } .filter-row { grid-template-columns: 1fr; } .admin-email-editor { grid-template-columns: 1fr; } .admin-pagination { justify-content: center; } .lore-like-grid { grid-template-columns: 1fr; } }
.wizard-brief-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 8px 0 18px; }
.wizard-edit-link { color: #db2777; font-weight: 750; font-size: .93rem; text-decoration: none; }
.wizard-edit-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.wizard-step-back { margin: 0 0 14px; }
.contact-summary { margin: 0; }
.lyrics-generation-status { margin: 18px 0; padding: 16px 18px; border-radius: 18px; background: #fff7fb; border: 1px solid #ffd2e4; }
.lyrics-generation-error { margin-bottom: 18px; }

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 247, 251, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 210, 228, 0.45);
  padding: 10px 0 12px;
}

.header-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
}

.site-header .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  text-decoration: none;
}

.site-header .logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.98), rgba(255, 241, 246, 0.96) 58%, rgba(255, 227, 239, 0.92) 100%);
  box-shadow: 0 8px 20px rgba(219, 39, 119, 0.14);
  flex-shrink: 0;
  transform: rotate(-3deg);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.site-header .logo-mark::before,
.site-header .logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.9;
}

.site-header .logo-mark::before {
  width: 5px;
  height: 5px;
  top: 5px;
  right: 5px;
  background: var(--yellow);
  box-shadow: -26px 4px 0 var(--purple), -18px 24px 0 var(--coral), -5px 28px 0 var(--yellow);
}

.site-header .logo-mark::after {
  width: 28px;
  height: 28px;
  inset: 5px;
  border: 1px dashed rgba(236, 72, 153, 0.22);
}

.site-header .logo-mark svg {
  width: 30px;
  height: 30px;
  max-width: 30px;
  max-height: 30px;
  display: block;
  position: relative;
  z-index: 1;
}

.site-header .logo:hover .logo-mark {
  transform: rotate(0deg) translateY(-1px) scale(1.03);
  box-shadow: 0 10px 22px rgba(219, 39, 119, 0.18);
}

.site-header .logo-text {
  display: inline-block;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
  font-size: clamp(1rem, 4.2vw, 1.12rem);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-create-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 20px;
  font-size: 0.92rem;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.24);
}

.btn-sm {
  padding: 0 14px;
  height: 32px;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 800;
}

.header-segmented-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  padding: 5px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 241, 246, 0.96), rgba(255, 248, 251, 0.92));
  border: 1px solid rgba(255, 210, 228, 0.6);
  box-shadow: 0 6px 24px rgba(219, 39, 119, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.segment-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 6px 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.76rem;
  line-height: 1.15;
  color: #8a6272;
  text-align: center;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.segment-tab-icon {
  display: block;
  width: 14px;
  height: 14px;
  font-size: 12px;
  line-height: 14px;
  color: #9a7080;
  flex-shrink: 0;
}

.segment-tab-label {
  display: block;
  white-space: nowrap;
}

.segment-tab.is-active {
  background: rgba(255, 255, 255, 0.97);
  color: var(--pink-600);
  box-shadow: 0 2px 12px rgba(219, 39, 119, 0.1);
}

.segment-tab.is-active .segment-tab-icon {
  color: var(--pink-500);
}

.segment-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-500), var(--coral));
}

.segment-tab:hover:not(.is-active) {
  color: #70465a;
  background: rgba(255, 255, 255, 0.5);
}

.segment-tab:hover:not(.is-active) .segment-tab-icon {
  color: #8f5f72;
}

.order-reveal-shell {
  max-width: 1180px;
  margin: 26px auto 76px;
}

.order-reveal-card {
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 251, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.18), transparent 28%),
    radial-gradient(circle at 96% 2%, rgba(108, 140, 255, 0.14), transparent 26%);
  box-shadow: 0 28px 90px rgba(190, 24, 93, 0.13);
}

.order-reveal-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
}

.order-cover-stage {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
}

.order-cover-stage::before {
  content: "";
  position: absolute;
  inset: 9%;
  border-radius: 32px;
  background: rgba(236, 72, 153, 0.18);
  filter: blur(32px);
  transform: rotate(-4deg);
}

.order-cover-art,
.order-cover-placeholder {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 72px rgba(59, 34, 48, 0.22);
}

.order-cover-art {
  object-fit: cover;
}

.order-cover-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #6d4155;
  font-weight: 850;
  background: linear-gradient(135deg, #fff1f6, #fff7ed 58%, #eef2ff);
}

.order-cover-placeholder lottie-player {
  width: min(190px, 58%);
  height: min(190px, 58%);
}

.order-reveal-copy {
  min-width: 0;
}

.order-reveal-lede {
  max-width: 650px;
  margin: 0 0 22px;
  color: #70465a;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.premium-player {
  display: grid;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid #ffd2e4;
  background: rgba(255, 255, 255, 0.78);
}

.premium-player audio {
  width: 100%;
}

.order-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.order-retry-form {
  margin-top: 16px;
}

.order-loading-inline {
  align-items: flex-start;
  text-align: left;
  padding: 10px 0;
}

.order-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0 clamp(22px, 4vw, 42px) clamp(22px, 4vw, 38px);
  list-style: none;
}

.order-timeline-item {
  position: relative;
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #ffe3ef;
  background: rgba(255, 250, 253, 0.78);
}

.order-timeline-item > span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  border: 2px solid #ffd2e4;
  background: white;
}

.order-timeline-item.is-done > span {
  border-color: #10b981;
  background: #10b981;
  box-shadow: inset 0 0 0 7px white;
}

.order-timeline-item.is-current {
  border-color: #f9a8d4;
  background: #fff1f6;
}

.order-timeline-item.is-current > span {
  border-color: var(--pink-500);
  background: var(--pink-500);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.16);
}

.order-timeline-item strong {
  display: block;
  color: #4c2939;
  font-size: 0.98rem;
}

.order-timeline-item p {
  margin: 5px 0 0;
  color: #7a5364;
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-secondary-panel,
.order-detail-panel,
.order-detail-grid > .summary-item,
.order-detail-grid > .spotify-addon-card {
  border-radius: 22px;
  border: 1px solid #ffd2e4;
  background: rgba(255, 250, 253, 0.82);
}

.order-secondary-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  margin: 0 clamp(22px, 4vw, 42px) 18px;
  padding: 18px;
}

.order-secondary-panel h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.order-bonus-cover {
  width: 150px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(59, 34, 48, 0.16);
}

.order-detail-grid {
  display: grid;
  gap: 14px;
  padding: 0 clamp(22px, 4vw, 42px) clamp(22px, 4vw, 42px);
}

.order-detail-panel {
  padding: 0 18px;
}

.order-detail-panel summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 900;
  color: #4c2939;
}

.order-detail-body {
  display: grid;
  gap: 12px;
  padding: 0 0 18px;
}

.gift-link-card {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid #ffe3ef;
  background: rgba(255, 255, 255, 0.72);
}

.gift-link-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.gift-link-input {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gift-link-copy,
.gift-link-open {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
}

.gift-link-status {
  min-height: 1.4em;
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    padding: 8px 0 10px;
  }

  .header-shell {
    gap: 8px;
  }

  .site-header .logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .header-create-btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 0.88rem;
  }

  .segment-tab {
    min-height: 46px;
    font-size: 0.72rem;
  }

  .order-reveal-shell {
    margin-top: 18px;
  }

  .order-reveal-card {
    border-radius: 24px;
  }

  .order-reveal-hero,
  .order-secondary-panel {
    grid-template-columns: 1fr;
  }

  .order-timeline {
    grid-template-columns: 1fr;
  }

  .order-bonus-cover {
    width: min(180px, 100%);
  }

  .gift-link-controls {
    grid-template-columns: 1fr 1fr;
  }

  .gift-link-input {
    grid-column: 1 / -1;
  }
}
