/* 2026 product dashboard refresh */
:root {
    --page-gutter: clamp(12px, 2.8vw, 20px);
    --shell-pad-top: clamp(12px, 2.5vw, 22px);
    --shell-pad-bottom: clamp(40px, 8vw, 56px);
    --card-pad: clamp(16px, 2.4vw, 26px);
    --card-radius: clamp(18px, 2.2vw, 28px);
    --touch-min: 44px;
    --content-max: min(640px, 100%);
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
video,
svg {
    max-width: 100%;
    height: auto;
}

body {
    align-items: stretch;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background: #08060f;
}

.converter-hero,
.results.visible,
.utility-shelf,
.resolver-card,
.shelf-item,
.shelf-meta,
.universal-link,
.share-text-panel,
.platform-panel {
    min-width: 0;
    max-width: 100%;
}

#async-bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08), transparent 52%),
        radial-gradient(ellipse at 80% 90%, rgba(236, 72, 153, 0.05), transparent 45%),
        linear-gradient(180deg, rgba(8, 6, 15, 0.35) 0%, rgba(8, 6, 15, 0.72) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent 60%);
}

.page-shell {
    width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
    margin: 0 auto;
    padding: var(--shell-pad-top) 0 calc(var(--shell-pad-bottom) + env(safe-area-inset-bottom, 0px));
    position: relative;
    z-index: 2;
    animation: pageRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

@media (prefers-reduced-motion: reduce) {
    .page-shell { animation: none; }
}

.topbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    background: rgba(12, 12, 22, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.nav-brand, .nav-links {
    display: flex;
    align-items: center;
}

.nav-brand {
    gap: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-size: 1.2rem;
}

.nav-brand img {
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 8px 18px rgba(99,102,241,0.38));
}

.nav-links {
    gap: 6px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.converter-hero {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 0 24px;
}

.intro-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 28px;
    align-items: center;
    margin-bottom: 22px;
}

.intro-copy {
    min-width: 0;
}

.intro-copy .headline {
    text-align: left;
}

.intro-copy .tagline {
    text-align: left;
    margin-left: 0;
}

.intro-copy .trust-row,
.intro-copy .sync-pillars {
    justify-content: flex-start;
}

.converter-hero .headline {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

.converter-hero .tagline {
    margin: 0 0 18px;
    max-width: 560px;
    font-size: 1.05rem;
    color: #a8b3c7;
    line-height: 1.55;
}

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    perspective: 1000px;
    min-width: 0;
}

.hero-visual .orbit-card {
    width: min(300px, 100%);
    flex-shrink: 0;
}

.domain-hint {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    width: 100%;
    max-width: 300px;
}

.domain-tag {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.1);
    color: #64748b;
    flex: 0 0 auto;
    width: auto;
    min-height: 0;
}

.domain-tag.live {
    color: #c4b5fd;
    border-color: rgba(129,140,248,0.35);
    background: rgba(99,102,241,0.14);
}

.domain-tag.soon {
    opacity: 0.72;
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
}

.input-wrapper.is-resolving {
    border-color: rgba(129, 140, 248, 0.38);
    box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.14);
    opacity: 0.94;
}

.input-wrapper.paste-flash {
    animation: pasteFlash 0.45s ease;
}

@keyframes pasteFlash {
    0% {
        border-color: rgba(34, 211, 238, 0.55);
        box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 0 20px rgba(34, 211, 238, 0.12);
    }
    100% {
        border-color: rgba(255,255,255,0.1);
        box-shadow: none;
    }
}

.input-wrapper.shake-error {
    animation: inputShake 0.42s ease;
    border-color: rgba(239, 68, 68, 0.55);
}

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

.converter-hero .resolver-card {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--card-radius);
    background: rgba(12, 12, 22, 0.78);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    padding: var(--card-pad);
}

.converter-hero .input-section {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.converter-hero .hint {
    display: none;
}

.loader-steps span.active {
    color: #f8fafc;
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(99, 102, 241, 0.22);
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}

.loader-steps span.done {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(34, 197, 94, 0.1);
}

.results.visible {
    animation: resultIn 0.4s ease both;
}

@keyframes resultIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: 42px;
    align-items: center;
    min-height: 560px;
    padding: 64px 0 36px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: #c4b5fd;
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(167,139,250,0.24);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 18px;
}

.eyebrow::before, .section-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
    animation: syncBlink 2s ease-in-out infinite;
}

@keyframes syncBlink {
    0%, 100% { opacity: 0.45; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

h1.headline {
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: 0.94;
    max-width: 850px;
    letter-spacing: -0.075em;
    margin-bottom: 22px;
}

.tagline {
    margin: 0;
    max-width: 650px;
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    color: #b9c0d4;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-cta, .secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, filter 0.25s ease, border-color 0.25s ease;
}

.primary-cta:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.primary-cta:active {
    transform: translateY(0);
}

.secondary-cta:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
}

.primary-cta {
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    box-shadow: 0 18px 42px rgba(124,58,237,0.34);
}

.secondary-cta {
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.trust-row span {
    color: #dbeafe;
    background: rgba(15,23,42,0.72);
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.86rem;
}

.sync-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.pillar {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.1);
}

.pillar.live {
    color: #c4b5fd;
    background: rgba(99,102,241,0.14);
    border-color: rgba(129,140,248,0.32);
}

.pillar.soon {
    color: #64748b;
    background: rgba(15,23,42,0.5);
    opacity: 0.65;
}

.pillar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.pillar.live .pillar-dot {
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
    animation: syncBlink 2.2s ease-in-out infinite;
}

.orbit-card {
    position: relative;
    width: min(280px, 100%);
    aspect-ratio: 1;
    border: 1px solid rgba(129,140,248,0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 42%, rgba(99,102,241,0.22), transparent 48%),
        linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.12),
        0 0 48px rgba(99,102,241,0.14),
        0 24px 64px rgba(0,0,0,0.38);
    overflow: hidden;
    transform-style: preserve-3d;
    animation: orbitTilt 16s ease-in-out infinite;
}

.sync-beams {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.28;
}

.sync-beams line {
    stroke: url(#beamGrad);
    stroke-width: 1.2;
    stroke-dasharray: 6 14;
    animation: beamFlow 2.8s linear infinite;
}

.sync-beams line:nth-child(2) { animation-delay: 0.35s; }
.sync-beams line:nth-child(3) { animation-delay: 0.7s; }
.sync-beams line:nth-child(4) { animation-delay: 1.05s; }
.sync-beams line:nth-child(5) { animation-delay: 1.4s; }
.sync-beams line:nth-child(6) { animation-delay: 1.75s; }

@keyframes beamFlow {
    to { stroke-dashoffset: -40; }
}

.sync-ripple {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 50%;
    pointer-events: none;
    animation: rippleOut 3s ease-out infinite;
}

.sync-ripple::after {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 50%;
    animation: rippleOut 3s ease-out 1.2s infinite;
}

@keyframes rippleOut {
    0% { transform: scale(0.75); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes orbitTilt {
    0%, 100% { transform: rotateX(6deg) rotateY(-8deg); }
    50% { transform: rotateX(-5deg) rotateY(7deg); }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-card { animation: none; }
    .orbit-card::before { animation: none; }
    .orbit-center::before { animation: none; }
    .sync-beams line { animation: none; }
    .sync-ripple, .sync-ripple::after { animation: none; display: none; }
    .orbit-chip { animation: none; }
    .orbit-node { animation: none; }
    .eyebrow::before, .section-kicker::before, .pillar.live .pillar-dot { animation: none; }
    .universal-link.link-ready { animation: none; }
    .input-wrapper.shake-error { animation: none; }
}

/* Calm orbit after the user starts converting — keeps first impression, reduces repeat noise */
.page-shell.has-interacted .orbit-card {
    animation: none;
    opacity: 0.78;
}

.page-shell.has-interacted .sync-beams {
    opacity: 0.28;
}

.page-shell.has-interacted .sync-beams line {
    animation: none;
}

.page-shell.has-interacted .sync-ripple,
.page-shell.has-interacted .sync-ripple::after {
    animation: none;
    opacity: 0.35;
}

.page-shell.has-interacted .orbit-chip {
    animation: none;
    opacity: 0.75;
}

.page-shell.has-interacted .orbit-node {
    animation: none;
    opacity: 0.82;
}

.page-shell.has-interacted .orbit-card::before {
    animation-duration: 52s;
    opacity: 0.45;
}

.page-shell.has-interacted .eyebrow::before,
.page-shell.has-interacted .pillar.live .pillar-dot {
    animation: none;
    opacity: 0.65;
}

.orbit-card::before {
    content: "";
    position: absolute;
    inset: 58px;
    border: 1px dashed rgba(255,255,255,0.16);
    border-radius: 50%;
    animation: orbitSpin 28s linear infinite;
}

.orbit-center {
    position: absolute;
    inset: 50%;
    width: 96px;
    height: 96px;
    transform: translate(-50%, -50%);
    border-radius: 22px;
    background: rgba(8,8,18,0.88);
    border: 1px solid rgba(167,139,250,0.35);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 0 36px rgba(99,102,241,0.35);
    z-index: 2;
}

.orbit-center::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 32px;
    border: 1px solid rgba(129,140,248,0.22);
    animation: hubRing 4s ease-in-out infinite;
}

@keyframes hubRing {
    0%, 100% { opacity: 0.35; transform: scale(0.96); }
    50% { opacity: 0.85; transform: scale(1); }
}

.orbit-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 6px 16px rgba(99,102,241,0.45));
    position: relative;
    z-index: 1;
}

.orbit-hub-label {
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #e0e7ff, #f9a8d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.orbit-node {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: block;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    z-index: 2;
    overflow: hidden;
    animation: nodeFloat 3.6s ease-in-out infinite;
    padding: 0;
    line-height: 0;
}

.orbit-node .platform-brand-icon {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

@keyframes nodeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.spotify-node { left: 8%; top: 58%; animation-delay: 0s; }
.apple-node { right: 8%; top: 20%; animation-delay: 0.5s; }
.youtube-node { right: 8%; top: 58%; animation-delay: 1s; }
.jiosaavn-node { left: 8%; top: 20%; animation-delay: 1.5s; }
.amazon-node { left: calc(50% - 15px); top: 5%; animation-delay: 2s; }
.gaana-node { left: calc(50% - 15px); bottom: 5%; animation-delay: 2.5s; }

@keyframes orbitSpin { to { transform: rotate(360deg); } }

.resolver-grid {
    display: block;
    scroll-margin-top: 24px;
}

.resolver-card, .content section {
    background: rgba(17,18,30,0.72);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--card-radius);
    box-shadow: 0 24px 80px rgba(0,0,0,0.32);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.resolver-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, transparent 30%, rgba(34,211,238,0.45) 50%, transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
    animation: scanEdge 5s linear infinite;
    pointer-events: none;
}

.resolver-card:has(.results.visible)::before,
.resolver-card:has(.loading:not(.visible))::before {
    display: none;
}

@keyframes scanEdge {
    0% { transform: translateX(-60%) rotate(0deg); }
    100% { transform: translateX(60%) rotate(0deg); }
}

.resolver-card {
    padding: var(--card-pad);
    overflow: hidden;
}

.resolver-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    margin-bottom: 10px;
}

.resolver-intro {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.input-section {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.input-wrapper {
    padding: 8px;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(5,6,14,0.78);
    flex-wrap: wrap;
}

.input-wrapper input[type="text"] {
    flex: 1 1 180px;
    min-width: 0;
    width: 100%;
}

.occasion-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.42);
}

.occasion-label {
    font-size: 0.82rem;
    font-weight: 750;
    color: #cbd5e1;
    white-space: nowrap;
}

.occasion-picker {
    flex: 1;
    min-width: 0;
    position: relative;
}

.occasion-trigger {
    width: 100%;
    min-height: 44px;
    padding: 8px 38px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(2, 6, 23, 0.55);
    color: #f8fafc;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    text-align: left;
}

.occasion-trigger-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.occasion-trigger::after {
    content: "";
    width: 14px;
    height: 14px;
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23cbd5e1' d='M5.7 7.6a1 1 0 0 1 1.4 0L10 10.5l2.9-2.9a1 1 0 1 1 1.4 1.4l-3.6 3.6a1 1 0 0 1-1.4 0L5.7 9a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.occasion-trigger:hover {
    border-color: rgba(129,140,248,0.28);
    background: rgba(2, 6, 23, 0.65);
    transform: none;
    box-shadow: none;
}

.occasion-trigger:focus-visible {
    outline: none;
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.18);
}

.occasion-trigger[aria-expanded="true"] {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(2, 6, 23, 0.72);
}

.occasion-menu {
    margin: 0;
    padding: 8px 10px 8px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(16px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.55),
        0 0 0 1px rgba(99,102,241,0.08);
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(129,140,248,0.58) rgba(15,23,42,0.25);
}

.occasion-menu.is-open,
.share-template-menu.is-open {
    position: fixed;
    z-index: 1400;
}

.occasion-menu[hidden],
.share-template-menu[hidden] {
    display: none !important;
}

.occasion-row.is-open,
.share-template-picker.is-open {
    position: relative;
    z-index: 2;
}

.occasion-menu::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.occasion-menu::-webkit-scrollbar-track {
    background: rgba(15,23,42,0.25);
    border-radius: 999px;
    margin: 6px 4px;
}

.occasion-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(129,140,248,0.85) 0%,
        rgba(236,72,153,0.75) 100%
    );
    border: 2px solid rgba(2, 6, 23, 0.88);
    box-shadow: 0 0 0 1px rgba(99,102,241,0.08);
}

.occasion-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(129,140,248,0.95) 0%,
        rgba(236,72,153,0.85) 100%
    );
}

.occasion-option {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    transform: none;
}

.occasion-option:hover,
.occasion-option:focus-visible {
    outline: none;
    background: rgba(99,102,241,0.18);
    border-color: rgba(129,140,248,0.28);
    transform: none;
    box-shadow: none;
}

.occasion-option.is-selected {
    background: rgba(99,102,241,0.26);
    border-color: rgba(129,140,248,0.38);
    color: #ffffff;
}

.occasion-option + .occasion-option {
    margin-top: 6px;
}

input[type="text"] {
    border: 0;
    background: transparent;
    min-height: 52px;
    font-family: 'DM Sans', sans-serif;
}

button#convertBtn {
    border-radius: 13px;
    min-width: 132px;
    min-height: var(--touch-min);
    flex: 0 1 auto;
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

button#convertBtn:not(:disabled):hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

button#convertBtn:not(:disabled):active {
    transform: translateY(0);
}

.hint {
    margin-top: 13px;
    line-height: 1.5;
}

.loading {
    margin-top: 18px;
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 22px;
    background: rgba(99,102,241,0.08);
}

.loader-orb {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-bottom: 13px;
}

.loader-orb span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a78bfa, #ec4899);
    animation: pulseDots 0.95s ease-in-out infinite;
}

.loader-orb span:nth-child(2) { animation-delay: 0.15s; }
.loader-orb span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulseDots {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.spinner { display: none; }

.loader-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.loader-steps span {
    color: #c4b5fd;
    border: 1px solid rgba(196,181,253,0.18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
}

.error-message {
    margin-top: 18px;
    border-radius: 18px;
}

.results.visible {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.result-header, .panel-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.success-pill, .entity-pill {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
}

.success-pill {
    color: #bbf7d0;
    background: rgba(16,185,129,0.14);
    border: 1px solid rgba(16,185,129,0.26);
}

.entity-pill {
    color: #dbeafe;
    background: rgba(59,130,246,0.14);
    border: 1px solid rgba(59,130,246,0.22);
}

.track-info {
    margin: 0;
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.09);
    border-radius: 22px;
    min-width: 0;
    overflow: hidden;
}

.result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.result-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(17,18,30,0.65);
    color: #cbd5e1;
}

.result-chip.provenance {
    border-color: rgba(129,140,248,0.3);
    background: rgba(99,102,241,0.12);
    color: #c7d2fe;
}

.result-chip.verified {
    border-color: rgba(34,211,238,0.28);
    background: rgba(34,211,238,0.10);
    color: #67e8f9;
}

.result-chip.explicit {
    border-color: rgba(244,63,94,0.28);
    background: rgba(244,63,94,0.10);
    color: #fda4af;
}

.result-chip.chip-occasion {
    border-color: rgba(236,72,153,0.26);
    background: rgba(236,72,153,0.10);
    color: #fbcfe8;
}

.result-chip.chip-warning {
    border-color: rgba(245,158,11,0.30);
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
}

.result-chip.chip-vibe {
    border-color: rgba(16,185,129,0.30);
    background: rgba(16,185,129,0.12);
    color: #6ee7b7;
}

.result-chip.chip-energy {
    border-color: rgba(34,211,238,0.30);
    background: rgba(34,211,238,0.08);
    color: #a5f3fc;
}

.result-chip.chip-era {
    border-color: rgba(168,85,247,0.30);
    background: rgba(168,85,247,0.10);
    color: #e9d5ff;
}

.result-chip.chip-genre {
    border-color: rgba(56,189,248,0.30);
    background: rgba(56,189,248,0.10);
    color: #bae6fd;
}

.enrichment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    align-items: center;
}

.energy-meter {
    flex: 1 1 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148,163,184,0.18);
    overflow: hidden;
}

.energy-meter-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(34,211,238,0.55), rgba(129,140,248,0.85));
}

.share-context-panel {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    background: rgba(15,23,42,0.35);
    overflow: hidden;
}

.share-context-panel > summary {
    cursor: pointer;
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 650;
    color: #cbd5e1;
    list-style: none;
}

.share-context-panel > summary::-webkit-details-marker {
    display: none;
}

.share-context-fields {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.share-context-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.share-context-fields input,
.share-context-fields textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(2,6,23,0.55);
    color: #f8fafc;
    padding: 8px 10px;
    font: inherit;
}

.share-context-preview {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(129,140,248,0.22);
    background: rgba(99,102,241,0.08);
    font-size: 0.84rem;
    color: #c7d2fe;
}

.share-preview-by {
    margin-bottom: 4px;
}

.share-preview-note {
    color: #e2e8f0;
    font-style: italic;
}

.warnings-panel {
    margin-top: 10px;
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 12px;
    background: rgba(245,158,11,0.06);
}

.warnings-panel > summary {
    cursor: pointer;
    padding: 8px 10px;
    font-size: 0.8rem;
    font-weight: 650;
    color: #fbbf24;
    list-style: none;
}

.warnings-list {
    margin: 0;
    padding: 0 10px 10px 24px;
    color: #fcd34d;
    font-size: 0.78rem;
}

details.confidence-explainer {
    margin: 0;
    padding: 0;
    background: rgba(15,23,42,0.35);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

details.confidence-explainer > summary {
    cursor: pointer;
    padding: 12px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
    list-style: none;
}

details.confidence-explainer > summary::-webkit-details-marker {
    display: none;
}

details.confidence-explainer > summary::after {
    content: "▾";
    float: right;
    color: #94a3b8;
    transition: transform 0.18s ease;
}

details.confidence-explainer[open] > summary::after {
    transform: rotate(180deg);
}

.confidence-body {
    padding: 0 18px 14px;
}

.confidence-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 0;
}

.confidence-row + .confidence-row {
    border-top: 1px solid rgba(148,163,184,0.12);
}

.confidence-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 750;
    white-space: nowrap;
}

.confidence-definitive { background: rgba(16,185,129,0.18); color: #34d399; }
.confidence-high { background: rgba(16,185,129,0.14); color: #6ee7b7; }
.confidence-medium { background: rgba(245,200,50,0.16); color: #fcd34d; }
.confidence-low { background: rgba(148,163,184,0.16); color: #94a3b8; }

.confidence-text {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.35;
}

.artwork-shell {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99,102,241,0.28), rgba(236,72,153,0.22));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.track-artwork {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.artwork-fallback {
    color: #c4b5fd;
    font-size: 2.1rem;
    display: none;
}

.platform-panel {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 8px;
}

.panel-title {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-weight: 800;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.panel-title small {
    color: var(--text-muted);
    font-weight: 600;
}

.platform-links {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding-bottom: 6px;
}

.platform-link {
    border-bottom-color: rgba(255,255,255,0.08);
}

.platform-link:hover {
    background: rgba(255,255,255,0.06);
}

.platform-link-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.platform-why {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.25;
}

.universal-link {
    padding: 18px;
    border: 1px solid rgba(129,140,248,0.32);
    border-radius: 22px;
    background: rgba(99,102,241,0.1);
    overflow: visible;
}

.share-text-panel {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(5,6,14,0.55);
    overflow: visible;
}

.universal-link.primary-output h3 {
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.share-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(129,140,248,0.28);
    background: rgba(99,102,241,0.12);
    color: #c7d2fe;
    font-size: clamp(0.76rem, 2.4vw, 0.82rem);
    font-weight: 750;
    text-decoration: none;
    width: fit-content;
    max-width: 100%;
}

.share-card-link:hover {
    border-color: rgba(129,140,248,0.45);
    background: rgba(99,102,241,0.18);
}

.share-card-preview-wrap {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.share-card-layout-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.share-card-layout-btn {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(129,140,248,0.22);
    background: rgba(15,16,28,0.65);
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.share-card-layout-btn:hover {
    border-color: rgba(167,139,250,0.45);
    color: #e9d5ff;
}

.share-card-layout-btn.is-selected {
    border-color: rgba(167,139,250,0.72);
    background: rgba(99,102,241,0.22);
    color: #f5f3ff;
}

.share-card-preview {
    display: block;
    width: 100%;
    max-width: min(100%, 420px);
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(129,140,248,0.28);
    box-shadow: 0 14px 42px rgba(0,0,0,0.38);
    text-decoration: none;
    background: rgba(8,10,20,0.55);
    position: relative;
}

.share-card-preview-wrap[data-layout="story"] .share-card-preview {
    max-width: min(280px, 52vw);
}

.share-card-preview-wrap[data-layout="compact"] .share-card-preview {
    max-width: min(300px, 56vw);
}

.share-card-preview-wrap[data-layout="square"] .share-card-preview {
    max-width: min(320px, 62vw);
}

.share-card-preview-wrap[data-layout="wide"] .share-card-preview {
    max-width: min(100%, 480px);
}

.share-card-live {
    --live-accent: #6366f1;
    --live-accent-2: #ec4899;
    --live-top: #6366f1;
    --live-bottom: #ec4899;
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    color: #f8fafc;
    font-family: inherit;
}

.share-card-live[data-layout="compact"] {
    aspect-ratio: 4 / 5;
}

.share-card-live[data-layout="square"] {
    aspect-ratio: 1 / 1;
}

.share-card-live[data-layout="wide"] {
    aspect-ratio: 16 / 9;
}

.share-card-live-bg,
.share-card-live-body {
    position: absolute;
    inset: 0;
}

.share-card-live-art-blur {
    position: absolute;
    inset: -12%;
    background-size: cover;
    background-position: center;
    filter: blur(28px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.55;
}

.share-card-live-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--live-top), var(--live-bottom));
    opacity: 0.72;
}

.share-card-live-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.45;
    animation: shareCardGlow 6s ease-in-out infinite;
}

.share-card-live-glow-a {
    width: 42%;
    height: 28%;
    left: 28%;
    top: 18%;
    background: rgba(99,102,241,0.55);
}

.share-card-live-glow-b {
    width: 34%;
    height: 24%;
    right: 10%;
    top: 42%;
    background: rgba(236,72,153,0.42);
    animation-delay: -2.4s;
}

.share-card-live-body {
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5% 6% 4%;
    gap: 2.5%;
    text-align: center;
}

.share-card-live-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35em 0.9em;
    border-radius: 999px;
    border: 1px solid rgba(129,140,248,0.35);
    background: rgba(10,12,24,0.72);
    font-size: clamp(0.55rem, 2.2vw, 0.72rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    animation: shareCardBrandPulse 3.6s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(99,102,241,0.18);
}

.share-card-live-brand-hero {
    gap: 0.55em;
    padding: 0.5em 1em 0.5em 0.65em;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(24,20,48,0.92), rgba(12,14,30,0.95));
    border: 1px solid rgba(167,139,250,0.55);
    box-shadow: 0 10px 32px rgba(0,0,0,0.35), 0 0 28px rgba(99,102,241,0.22);
    animation: shareCardBrandPulse 3.6s ease-in-out infinite;
}

.share-card-live-brand-mark {
    width: 1.65em;
    height: 1.65em;
    border-radius: 10px;
    border: 2px solid rgba(99,102,241,0.75);
    background: radial-gradient(circle at 30% 30%, rgba(99,102,241,0.35), rgba(18,18,30,0.95));
    position: relative;
    flex-shrink: 0;
}

.share-card-live-brand-mark::before,
.share-card-live-brand-mark::after {
    content: "";
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    inset: 0.18em;
}

.share-card-live-brand-mark::before {
    border-top-color: #6366f1;
    border-right-color: #6366f1;
    transform: rotate(35deg);
}

.share-card-live-brand-mark::after {
    border-bottom-color: #ec4899;
    border-left-color: #ec4899;
    transform: rotate(35deg);
}

.share-card-live-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    text-align: left;
}

.share-card-live-brand-text strong {
    font-size: clamp(0.68rem, 2.6vw, 0.92rem);
    color: #f8fafc;
    letter-spacing: 0.01em;
}

.share-card-live-brand-text small {
    font-size: clamp(0.46rem, 1.7vw, 0.6rem);
    font-weight: 600;
    color: #c4b5fd;
}

.share-card-live-art {
    width: 46%;
    aspect-ratio: 1;
    border-radius: 14%;
    overflow: hidden;
    border: 2px solid rgba(167,139,250,0.55);
    box-shadow: 0 12px 32px rgba(0,0,0,0.38);
    background: linear-gradient(145deg, rgba(30,24,58,0.9), rgba(18,18,30,0.95));
    display: grid;
    place-items: center;
}

.share-card-live-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.share-card-live-art-fallback {
    font-size: clamp(1.4rem, 8vw, 2.4rem);
    opacity: 0.9;
}

.share-card-live-note {
    width: 100%;
    padding: 0.55em 0.75em;
    border-radius: 14px;
    border: 1px solid rgba(236,72,153,0.35);
    background: rgba(8,10,24,0.78);
    font-size: clamp(0.52rem, 2vw, 0.68rem);
    line-height: 1.35;
}

.share-card-live-note-by {
    color: #fbcfe8;
    font-weight: 800;
}

.share-card-live-note-text {
    color: #e2e8f0;
    margin-top: 0.25em;
}

.share-card-live-meta {
    width: 100%;
    padding: 0.65em 0.75em;
    border-radius: 16px;
    border: 1px solid rgba(129,140,248,0.22);
    background: rgba(8,10,24,0.76);
}

.share-card-live-title {
    margin: 0;
    font-size: clamp(0.72rem, 3.2vw, 1rem);
    line-height: 1.15;
    font-weight: 800;
}

.share-card-live-artist {
    margin: 0.35em 0 0;
    color: #cbd5e1;
    font-size: clamp(0.58rem, 2.4vw, 0.78rem);
}

.share-card-live-sub,
.share-card-live-chips,
.share-card-live-occasion {
    margin: 0.45em 0 0;
    font-size: clamp(0.5rem, 2vw, 0.66rem);
}

.share-card-live-sub {
    color: #94a3b8;
}

.share-card-live-chips {
    color: #c4b5fd;
    font-weight: 700;
}

.share-card-live-occasion {
    color: #fbcfe8;
    font-weight: 700;
}

.share-card-live-energy {
    margin-top: 0.55em;
    text-align: left;
}

.share-card-live-energy-label {
    display: block;
    font-size: clamp(0.48rem, 1.8vw, 0.62rem);
    font-weight: 800;
    color: #c4b5fd;
    margin-bottom: 0.35em;
}

.share-card-live-energy-track {
    height: 0.45em;
    border-radius: 999px;
    background: rgba(30,41,59,0.9);
    border: 1px solid rgba(129,140,248,0.25);
    overflow: hidden;
}

.share-card-live-energy-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22d3ee, #818cf8);
    animation: shareCardEnergyPulse 2.8s ease-in-out infinite;
}

.share-card-live-energy-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25em;
    font-size: clamp(0.42rem, 1.6vw, 0.55rem);
    color: #94a3b8;
}

.share-card-live-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45em;
    margin-top: auto;
}

.share-card-live-orbit {
    position: relative;
    width: clamp(2.4rem, 14vw, 3.6rem);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(129,140,248,0.35);
    animation: shareCardOrbitSpin 14s linear infinite;
}

.share-card-live-orbit::before {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    border: 1px solid rgba(236,72,153,0.28);
}

.share-card-live-orbit span {
    position: absolute;
    width: 0.42em;
    height: 0.42em;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    margin: -0.21em 0 0 -0.21em;
    transform: rotate(var(--angle)) translateY(calc(-1 * clamp(1rem, 6vw, 1.55rem)));
    background: var(--dot, #818cf8);
}

.share-card-live-orbit span:nth-child(1) { --angle: 0deg; --dot: #6366f1; }
.share-card-live-orbit span:nth-child(2) { --angle: 72deg; --dot: #ec4899; }
.share-card-live-orbit span:nth-child(3) { --angle: 144deg; --dot: #22d3ee; }
.share-card-live-orbit span:nth-child(4) { --angle: 216deg; --dot: #818cf8; }
.share-card-live-orbit span:nth-child(5) { --angle: 288deg; --dot: #a78bfa; }

.share-card-live-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35em;
}

.share-card-live-platforms span {
    padding: 0.22em 0.55em;
    border-radius: 999px;
    border: 1px solid rgba(129,140,248,0.28);
    background: rgba(8,10,24,0.72);
    font-size: clamp(0.42rem, 1.6vw, 0.55rem);
    font-weight: 700;
    color: #cbd5e1;
}

.share-card-live-qr-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35em;
}

.share-card-live-scan {
    margin: 0;
    font-size: clamp(0.48rem, 1.8vw, 0.62rem);
    font-weight: 800;
    color: #c4b5fd;
}

.share-card-live-qr {
    width: clamp(3.2rem, 18vw, 4.6rem);
    aspect-ratio: 1;
    border-radius: 12%;
    background:
        linear-gradient(90deg, rgba(15,23,42,0.15) 50%, transparent 50%) 0 0 / 14% 14%,
        linear-gradient(rgba(15,23,42,0.15) 50%, transparent 50%) 0 0 / 14% 14%,
        #f8fafc;
    border: 2px solid rgba(129,140,248,0.35);
    position: relative;
    display: grid;
    place-items: center;
}

.share-card-live-qr-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
    padding: 0.25em 0.35em;
    border-radius: 8px;
    background: #fff;
    border: 2px solid rgba(99,102,241,0.55);
    font-size: clamp(0.34rem, 1.2vw, 0.48rem);
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.share-card-live-qr-mark {
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    border: 2px solid #6366f1;
    position: relative;
}

.share-card-live-qr-mark::before,
.share-card-live-qr-mark::after {
    content: "";
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    inset: 0.08em;
}

.share-card-live-qr-mark::before {
    border-top-color: #6366f1;
    border-right-color: #6366f1;
    transform: rotate(35deg);
}

.share-card-live-qr-mark::after {
    border-bottom-color: #ec4899;
    border-left-color: #ec4899;
    transform: rotate(35deg);
}

.share-card-live-cta {
    margin: 0;
    font-size: clamp(0.42rem, 1.6vw, 0.56rem);
    color: #cbd5e1;
    line-height: 1.25;
}

.share-card-live.theme-wedding { --live-top: #f43f5e; --live-bottom: #1e293b; }
.share-card-live.theme-party { --live-top: #22d3ee; --live-bottom: #6366f1; }
.share-card-live.theme-romance { --live-top: #f43f5e; --live-bottom: #581c87; }
.share-card-live.theme-chill { --live-top: #22d3ee; --live-bottom: #1e3a8a; }
.share-card-live.theme-gym { --live-top: #f59e0b; --live-bottom: #dc2626; }
.share-card-live.theme-study { --live-top: #3b82f6; --live-bottom: #1e293b; }
.share-card-live.theme-road_trip { --live-top: #22c55e; --live-bottom: #0e7490; }
.share-card-live.theme-sad { --live-top: #475569; --live-bottom: #0f172a; }

.share-card-live[data-layout="wide"] .share-card-live-body {
    display: grid;
    grid-template-columns: 1.05fr 1.15fr 0.95fr;
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 2.5% 3%;
    padding: 3.5% 4% 0;
    text-align: left;
    min-height: 100%;
}

.share-card-live[data-layout="wide"] .share-card-live-brand {
    grid-column: 1 / -1;
    justify-self: center;
}

.share-card-live[data-layout="wide"] .share-card-live-art {
    width: 88%;
    justify-self: center;
    grid-row: 2;
    grid-column: 1;
    box-shadow: 0 16px 40px rgba(0,0,0,0.42);
}

.share-card-live[data-layout="wide"] .share-card-live-note {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 72%;
    justify-self: center;
}

.share-card-live[data-layout="wide"] .share-card-live-meta {
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88%;
    background: rgba(8,10,24,0.78);
    border: 1px solid rgba(129,140,248,0.22);
    border-radius: 16px;
    padding: 0.75em 0.85em;
}

.share-card-live[data-layout="wide"] .share-card-live-mid {
    display: none;
}

.share-card-live[data-layout="wide"] .share-card-live-qr-wrap {
    grid-column: 3;
    grid-row: 2;
    justify-self: center;
}

.share-card-live[data-layout="wide"] .share-card-live-qr {
    width: clamp(4rem, 22vw, 5.6rem);
}

.share-card-live[data-layout="wide"] .share-card-live-qr-badge {
    font-size: clamp(0.42rem, 1.5vw, 0.58rem);
    padding: 0.35em 0.45em;
}

.share-card-live[data-layout="wide"] .share-card-live-qr-mark {
    width: 1.35em;
    height: 1.35em;
}

.share-card-live[data-layout="wide"] .share-card-live-title {
    font-size: clamp(0.82rem, 2.8vw, 1.08rem);
}

.share-card-live[data-layout="wide"] .share-card-live-artist {
    font-size: clamp(0.62rem, 2.2vw, 0.86rem);
}

.share-card-live-footer {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    margin-top: auto;
    padding: 0.65em 0.5em 0.5em;
    border-top: 2px solid rgba(129,140,248,0.45);
    background: linear-gradient(180deg, rgba(8,10,24,0.72), rgba(8,10,24,0.96));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45em;
}

.share-card-live-platforms-footer {
    gap: 0.45em;
}

.share-card-live-platforms-footer span {
    font-size: clamp(0.42rem, 1.5vw, 0.54rem);
    padding: 0.28em 0.62em;
}

.share-card-live-footer-tag {
    margin: 0;
    font-size: clamp(0.42rem, 1.5vw, 0.54rem);
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.share-card-live-footer-divider {
    display: block;
    width: 36%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,140,248,0.65), transparent);
}

.share-card-live-footer-brand {
    font-size: clamp(0.48rem, 1.6vw, 0.62rem);
    font-weight: 800;
    color: #e2e8f0;
    letter-spacing: 0.04em;
}

.share-card-live[data-layout="wide"] .share-card-live-art,
.share-card-live[data-layout="wide"] .share-card-live-meta {
    position: relative;
}

.share-card-live[data-layout="wide"] .share-card-live-art::before,
.share-card-live[data-layout="wide"] .share-card-live-meta::before {
    content: none;
}

.share-card-live[data-layout="wide"] .share-card-live-mid {
    margin-top: 0;
}

.share-card-live[data-layout="square"] .share-card-live-mid,
.share-card-live[data-layout="compact"] .share-card-live-mid {
    margin-top: 0.25em;
}

.share-card-live[data-layout="square"] .share-card-live-qr-wrap {
    margin-top: 0.15em;
}

@keyframes shareCardGlow {
    0%, 100% { transform: scale(1); opacity: 0.38; }
    50% { transform: scale(1.08); opacity: 0.55; }
}

@keyframes shareCardBrandPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(129,140,248,0); }
    50% { box-shadow: 0 0 18px rgba(129,140,248,0.28); }
}

@keyframes shareCardOrbitSpin {
    to { transform: rotate(360deg); }
}

@keyframes shareCardEnergyPulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.15); }
}

.share-card-preview-wrap.is-loading .share-card-preview {
    position: relative;
}

.share-card-preview-wrap.is-loading .share-card-preview::after {
    content: "Generating preview…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 10, 20, 0.72);
    color: #c4b5fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 2;
}

.share-card-preview-img.is-swapping {
    opacity: 0;
}

.share-card-preview-wrap[data-layout="story"] .share-card-preview {
    aspect-ratio: 9 / 16;
}

.share-card-preview-wrap[data-layout="compact"] .share-card-preview {
    aspect-ratio: 4 / 5;
}

.share-card-preview-wrap[data-layout="square"] .share-card-preview {
    aspect-ratio: 1 / 1;
}

.share-card-preview-wrap[data-layout="wide"] .share-card-preview {
    aspect-ratio: 16 / 9;
}

.share-card-preview-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(8, 10, 20, 0.55);
    transition: opacity 0.18s ease;
}

.share-card-preview-img[hidden],
.share-card-preview .share-card-live[hidden] {
    display: none !important;
}

.share-card-preview:not(:has(.share-card-preview-img:not([hidden]))) .share-card-live {
    display: block;
}

.share-card-preview-hint {
    margin: 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.76rem;
}

@media (min-width: 768px) {
    .share-card-preview-wrap[data-layout="wide"] .share-card-preview {
        max-width: min(560px, 72%);
    }
}

.universal-link.link-ready {
    animation: linkReady 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes linkReady {
    0% {
        border-color: rgba(129, 140, 248, 0.32);
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
    35% {
        border-color: rgba(167, 139, 250, 0.72);
        box-shadow:
            0 0 0 1px rgba(129, 140, 248, 0.35),
            0 0 32px rgba(99, 102, 241, 0.28);
    }
    100% {
        border-color: rgba(129, 140, 248, 0.32);
        box-shadow: none;
    }
}

.share-btn:active {
    transform: scale(0.97);
}

/* Share text templates (Phase 0 UH-02) */
.copy-text-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    cursor: pointer;
}

.copy-text-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
    box-shadow: none;
}

.copy-text-btn.copied {
    background: rgba(16,185,129,0.92);
    border-color: rgba(16,185,129,0.92);
    color: #fff;
}

.share-text-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.share-text-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    flex: 1 1 auto;
}

.share-template-picker {
    position: relative;
    min-width: min(168px, 100%);
    flex: 1 1 168px;
    flex-shrink: 1;
}

.share-template-trigger {
    width: 100%;
    min-height: 40px;
    padding: 8px 34px 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,0.2);
    background: rgba(2, 6, 23, 0.55);
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    box-shadow: none;
    transform: none;
    text-align: left;
}

.share-template-trigger-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.share-template-trigger::after {
    content: "";
    width: 14px;
    height: 14px;
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23cbd5e1' d='M5.7 7.6a1 1 0 0 1 1.4 0L10 10.5l2.9-2.9a1 1 0 1 1 1.4 1.4l-3.6 3.6a1 1 0 0 1-1.4 0L5.7 9a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.share-template-trigger:hover {
    border-color: rgba(129,140,248,0.28);
    background: rgba(2, 6, 23, 0.65);
    transform: none;
    box-shadow: none;
}

.share-template-trigger:focus-visible {
    outline: none;
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.18);
}

.share-template-trigger[aria-expanded="true"] {
    border-color: rgba(129, 140, 248, 0.55);
    background: rgba(2, 6, 23, 0.72);
}

.share-template-menu {
    margin: 0;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(16px);
    box-shadow:
        0 20px 60px rgba(0,0,0,0.55),
        0 0 0 1px rgba(99,102,241,0.08);
    max-height: 280px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(129,140,248,0.58) rgba(15,23,42,0.25);
}

.share-template-menu::-webkit-scrollbar {
    width: 8px;
}

.share-template-menu::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(129,140,248,0.55);
}

.share-template-option {
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    padding: 10px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    text-align: left;
    box-shadow: none;
    transform: none;
}

.share-template-option:hover,
.share-template-option:focus-visible {
    outline: none;
    background: rgba(99,102,241,0.18);
    border-color: rgba(129,140,248,0.28);
    transform: none;
    box-shadow: none;
}

.share-template-option.is-selected {
    background: rgba(99,102,241,0.26);
    border-color: rgba(129,140,248,0.38);
    color: #ffffff;
}

.share-template-option + .share-template-option {
    margin-top: 6px;
}

#shareText {
    width: 100%;
    min-height: 96px;
    max-height: 132px;
    resize: none;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(5,6,14,0.72);
    color: #dbeafe;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.86rem;
    line-height: 1.5;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(129,140,248,0.55) rgba(15,23,42,0.35);
}

#shareText::-webkit-scrollbar {
    width: 8px;
}

#shareText::-webkit-scrollbar-track {
    background: rgba(15,23,42,0.35);
    border-radius: 999px;
}

#shareText::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(129,140,248,0.55);
    border: 2px solid rgba(5,6,14,0.72);
}

.link-box input {
    background: rgba(5,6,14,0.72);
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: clip;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(129,140,248,0.55) rgba(15,23,42,0.35);
}

.link-box input::-webkit-scrollbar {
    height: 6px;
}

.link-box input::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(129,140,248,0.55);
}

/* Recents + pins shelf (Phase 0 UH-01) */
.utility-shelf {
    margin-top: 18px;
    padding: var(--card-pad);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--card-radius);
    background: rgba(255,255,255,0.04);
    display: grid;
    gap: 12px;
    min-width: 0;
}

.shelf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.utility-shelf h3 {
    font-size: 1.05rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #e0e7ff;
    margin: 0;
}

.shelf-subtitle {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.shelf-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.shelf-action {
    padding: 8px 12px;
    min-height: 36px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    background-image: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.shelf-action:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
    box-shadow: none;
}

.shelf-action.primary {
    border-color: rgba(129,140,248,0.35);
    background: rgba(99,102,241,0.16);
    color: #e0e7ff;
}

.shelf-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.mini-collection-panel {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(129,140,248,0.18);
    background: rgba(99,102,241,0.06);
    display: grid;
    gap: 8px;
}

.mini-collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mini-collection-header h4 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #e0e7ff;
}

.mini-collection-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
}

.mini-collection-hint {
    margin: 0;
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.mini-collection-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shelf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.shelf-section {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    background: rgba(12, 12, 22, 0.55);
    padding: 12px;
    display: grid;
    gap: 10px;
    min-width: 0;
}

.shelf-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #dbeafe;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.shelf-list {
    display: grid;
    gap: 10px;
}

.shelf-empty {
    color: rgba(226,232,240,0.72);
    font-size: 0.86rem;
    line-height: 1.45;
    display: none;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(148,163,184,0.22);
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(10px);
}

.shelf-item {
    display: grid;
    grid-template-columns: auto 44px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(5,6,14,0.55);
}

.shelf-select {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shelf-select input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #818cf8;
    cursor: pointer;
}

.shelf-select input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.shelf-art {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99,102,241,0.26), rgba(236,72,153,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shelf-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shelf-meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.shelf-meta-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.shelf-entity-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.2;
    border: 1px solid rgba(148,163,184,0.24);
    color: #cbd5e1;
    background: rgba(148,163,184,0.12);
}

.shelf-entity-tag--track {
    color: #ddd6fe;
    background: rgba(99,102,241,0.16);
    border-color: rgba(129,140,248,0.28);
}

.shelf-entity-tag--album {
    color: #bfdbfe;
    background: rgba(59,130,246,0.14);
    border-color: rgba(96,165,250,0.28);
}

.shelf-entity-tag--playlist {
    color: #99f6e4;
    background: rgba(20,184,166,0.14);
    border-color: rgba(45,212,191,0.28);
}

.shelf-entity-tag--book {
    color: #fde68a;
    background: rgba(245,158,11,0.14);
    border-color: rgba(251,191,36,0.28);
}

.shelf-entity-tag--game {
    color: #bbf7d0;
    background: rgba(16,185,129,0.14);
    border-color: rgba(52,211,153,0.28);
}

.shelf-entity-tag--movie,
.shelf-entity-tag--show {
    color: #fbcfe8;
    background: rgba(236,72,153,0.14);
    border-color: rgba(244,114,182,0.28);
}

.shelf-title {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shelf-artist {
    color: var(--text-muted);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shelf-item-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
    gap: 6px;
}

.shelf-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    min-height: var(--touch-min);
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-primary);
    font-size: clamp(0.68rem, 2.2vw, 0.78rem);
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.shelf-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: none;
    box-shadow: none;
}

.shelf-btn.primary {
    background: rgba(99,102,241,0.18);
    border-color: rgba(129,140,248,0.35);
}

.shelf-btn.card {
    background: rgba(99,102,241,0.12);
    border-color: rgba(129,140,248,0.28);
    color: #c7d2fe;
}

.shelf-btn.card:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(167,139,250,0.45);
}

.shelf-btn.danger {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.28);
}

.platforms-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.platforms-strip span {
    color: #dbeafe;
    background: rgba(15,23,42,0.72);
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.platforms-label {
    margin-top: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}

.resolver-card:has(.occasion-row.is-open),
.resolver-card:has(.share-template-picker.is-open) {
    overflow: visible;
}

.accordion {
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-primary);
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
    content: "+";
    color: #818cf8;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.accordion[open] summary::after {
    content: "−";
}

.accordion-body {
    padding: 0 18px 18px;
    color: var(--text-secondary);
    line-height: 1.55;
    font-size: 0.95rem;
}

.accordion-body .steps,
.accordion-body .features {
    margin-top: 4px;
}

.faq-answer {
    padding-bottom: 4px;
}

.content {
    width: 100%;
    max-width: var(--content-max);
    margin: clamp(20px, 4vw, 32px) auto 0;
    scroll-margin-top: 24px;
}

.content section {
    padding: 28px;
}

.content h2 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.steps {
    grid-template-columns: repeat(3, 1fr);
}

.step, .feature {
    background: rgba(255,255,255,0.045);
    border-color: rgba(255,255,255,0.08);
}

footer {
    color: var(--text-muted);
    text-align: center;
    padding-top: 2rem;
}

.seo-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.seo-footer h3 {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: 18px;
}

.seo-footer h3:first-child {
    margin-top: 0;
}

.seo-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.seo-links a {
    color: #c4b5fd;
    text-decoration: none;
    font-size: 0.84rem;
    padding: 6px 11px;
    border: 1px solid rgba(129,140,248,0.22);
    border-radius: 999px;
    background: rgba(99,102,241,0.08);
}

.seo-links a:hover {
    background: rgba(99,102,241,0.16);
}

/* --- Responsive layout system --- */

@media (max-width: 1024px) {
    .topbar {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .intro-band {
        grid-template-columns: 1fr;
        gap: clamp(18px, 4vw, 28px);
    }

    .hero-visual {
        order: -1;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual .orbit-card {
        width: min(280px, 78vw);
    }

    .intro-copy .headline,
    .intro-copy .tagline {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .intro-copy .trust-row,
    .intro-copy .sync-pillars {
        justify-content: center;
    }

    .converter-hero:has(.results.visible) .intro-band {
        display: none;
    }

    .shelf-grid {
        grid-template-columns: 1fr;
    }

    .share-card-preview-wrap[data-layout="wide"] .share-card-preview {
        max-width: min(100%, 520px);
    }
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 44px;
    }

    .hero-visual {
        order: -1;
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 12px 14px;
        border-radius: 18px;
    }

    .nav-brand {
        font-size: clamp(1rem, 4.2vw, 1.2rem);
    }

    .nav-brand img {
        width: 36px;
        height: 36px;
    }

    .occasion-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .occasion-label {
        white-space: normal;
    }

    .share-text-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(140px, 52%);
        align-items: center;
        gap: 10px;
    }

    .share-text-label {
        margin: 0;
    }

    .share-template-picker {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .share-card-link {
        width: 100%;
    }

    .share-card-layout-picker {
        justify-content: center;
    }

    .mini-collection-header {
        flex-wrap: wrap;
    }

    .mini-collection-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    }

    .mini-collection-actions .shelf-action {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .shelf-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .shelf-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .content section {
        padding: clamp(16px, 4vw, 28px);
    }

    .accordion summary {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .universal-link,
    .share-text-panel {
        padding: clamp(14px, 3.5vw, 18px);
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
        padding-top: 10px;
        padding-bottom: max(72px, calc(env(safe-area-inset-bottom, 0px) + 48px));
    }

    .topbar {
        border-radius: 18px;
    }

    .hero {
        padding: 34px 0 22px;
    }

    h1.headline {
        font-size: clamp(2rem, 14vw, 3.6rem);
    }

    .hero-actions,
    .input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .input-wrapper input[type="text"],
    button#convertBtn {
        width: 100%;
        flex: 1 1 100%;
    }

    .primary-cta,
    .secondary-cta {
        width: 100%;
    }

    .orbit-card {
        width: min(330px, 100%);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .result-header,
    .panel-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .track-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .track-details {
        width: 100%;
    }

    .track-details h2,
    #trackTitle {
        font-size: clamp(1rem, 4.8vw, 1.15rem);
        line-height: 1.35;
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }

    .track-details .artist,
    .track-details .album,
    #trackArtist,
    #trackAlbum {
        white-space: normal;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-break: break-word;
    }

    .result-header {
        flex-wrap: wrap;
    }

    .panel-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .platform-link {
        grid-template-columns: 34px minmax(0, 1fr) auto 14px;
        column-gap: 8px;
        padding: 11px 12px;
        min-height: 52px;
    }

    .platform-icon-logo {
        width: 34px;
        height: 34px;
    }

    .confidence {
        font-size: 0.62rem;
        padding: 3px 6px;
    }

    .converter-hero .headline {
        font-size: clamp(1.65rem, 7.5vw, 2.5rem);
    }

    .hero-visual .orbit-card {
        width: min(260px, 78vw);
    }

    .trust-row span,
    .sync-pillars .pillar,
    .domain-tag {
        font-size: clamp(0.68rem, 2.8vw, 0.86rem);
    }

    .shelf-item {
        grid-template-columns: auto 40px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 8px;
    }

    .shelf-art {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .shelf-title {
        font-size: clamp(0.84rem, 3.8vw, 0.92rem);
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .shelf-artist {
        font-size: clamp(0.74rem, 3.2vw, 0.82rem);
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .shelf-item-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .share-card-preview-wrap[data-layout="story"] .share-card-preview,
    .share-card-preview-wrap[data-layout="compact"] .share-card-preview {
        max-width: min(100%, 280px);
    }

    .share-card-preview-wrap[data-layout="square"] .share-card-preview {
        max-width: min(100%, 300px);
    }
}

@media (max-width: 480px) {
    :root {
        --page-gutter: 10px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-links a {
        flex: 1 1 auto;
        text-align: center;
    }

    .converter-hero {
        padding: 12px 0 18px;
    }

    .utility-shelf {
        padding: 14px;
    }

    .shelf-section {
        padding: 10px;
    }

    .shelf-item-actions {
        grid-template-columns: 1fr;
    }

    .share-card-layout-picker {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .share-card-layout-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .loader-steps span {
        font-size: 0.68rem;
        padding: 5px 8px;
    }

    .seo-links {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .nav-brand span {
        font-size: 0.95rem;
    }

    .shelf-select input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }
}
