:root {
    --primary-color: #fc3cad;
    --primary-strong: #d81f8f;
    --accent-color: #7ed957;

    --bg-black: #0b0b0f;
    --bg-panel: rgba(255, 255, 255, 0.88);

    --text-dark: #101018;
    --text-medium: #4b4b5c;
    --text-light: #767689;
    --text-on-dark: #ffffff;

    --border-color: rgba(16, 16, 24, 0.09);

    --radius-pill: 999px;
    --radius-md: 22px;
    --radius-lg: 30px;

    --shadow-sm: 0 10px 24px rgba(12, 12, 18, 0.06);
    --shadow-md: 0 18px 50px rgba(12, 12, 18, 0.10);
    --shadow-lg: 0 28px 80px rgba(12, 12, 18, 0.16);
    --shadow-xl: 0 36px 110px rgba(12, 12, 18, 0.22);

    --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Cormorant Garamond", Georgia, serif;

    --container: 1180px;
    --container-sm: 760px;
    --container-xs: 560px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--text-dark);
    background:
        radial-gradient(circle at 12% 12%, rgba(252, 60, 173, 0.08), transparent 24%),
        radial-gradient(circle at 86% 10%, rgba(126, 217, 87, 0.08), transparent 20%),
        linear-gradient(180deg, #fbfbfe 0%, #f6f6fb 48%, #f9f9fc 100%);
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.12;
    z-index: -3;
}

.site-bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -2;
}

.site-bg-glow-one {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -6%;
    background: rgba(252, 60, 173, 0.12);
}

.site-bg-glow-two {
    width: 280px;
    height: 280px;
    right: -4%;
    bottom: 6%;
    background: rgba(126, 217, 87, 0.10);
}

img,
video {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(252, 60, 173, 0.38);
    box-shadow: 0 0 0 4px rgba(252, 60, 173, 0.12);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
    line-height: 0.95;
}

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

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.page-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.06s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.26s; }
.reveal-delay-4 { transition-delay: 0.36s; }
.reveal-delay-5 { transition-delay: 0.46s; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background:
        linear-gradient(180deg, rgba(251, 251, 254, 0.94), rgba(251, 251, 254, 0.72)),
        radial-gradient(circle at left, rgba(252, 60, 173, 0.08), transparent 22%),
        radial-gradient(circle at right, rgba(126, 217, 87, 0.08), transparent 20%);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 16, 24, 0.06);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 82px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1rem;
    line-height: 1;
}

.brand-text em {
    font-style: normal;
    font-size: 0.72rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.nav-links a,
.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 0.95rem;
    border-radius: var(--radius-pill);
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.nav-active,
.nav-logout-btn:hover {
    color: var(--text-dark);
    background: rgba(16, 16, 24, 0.05);
}

.nav-inline-form {
    display: inline-flex;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 0 0 4rem;
}

.site-footer {
    padding: 0 0 2.5rem;
}

.footer-shell {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(16, 16, 24, 0.08);
    padding-top: 1.4rem;
    color: var(--text-light);
    font-size: 0.92rem;
}

.flash-stack {
    margin: 1rem auto 0;
}

.alert {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(126, 217, 87, 0.16), rgba(126, 217, 87, 0.08));
    border: 1px solid rgba(126, 217, 87, 0.25);
    color: #23653c;
    box-shadow: var(--shadow-sm);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow-light {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 16, 24, 0.08);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.9rem 1.3rem;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-large {
    padding: 1.05rem 1.7rem;
    font-size: 1rem;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-strong));
    box-shadow: 0 18px 34px rgba(252, 60, 173, 0.22);
}

.btn-secondary {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 16, 24, 0.10);
    box-shadow: var(--shadow-sm);
}

.btn-ghost {
    color: var(--text-medium);
    background: transparent;
    border: 1px solid rgba(16, 16, 24, 0.12);
}

.btn-delete {
    color: #fff;
    background: linear-gradient(135deg, #ef556d, #dc304d);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 76vh;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #111118, #1d1220 38%, #111118 100%);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-xl);
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: saturate(0.82) contrast(0.95) brightness(0.72);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 10, 0.24) 0%, rgba(5, 5, 10, 0.42) 48%, rgba(5, 5, 10, 0.78) 100%),
        radial-gradient(circle at 18% 18%, rgba(252, 60, 173, 0.18), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(126, 217, 87, 0.12), transparent 22%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
    min-height: 76vh;
    padding: 5.5rem 0 3rem;
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: 2rem;
}

.hero-copy h1 {
    color: #fff;
    font-size: clamp(3.2rem, 9vw, 6.8rem);
    line-height: 0.88;
    max-width: 10ch;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.hero-copy .lead {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.84);
    max-width: 38rem;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.hero-panel {
    align-self: end;
    padding: 1.15rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.hero-panel-card {
    padding: 1.2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-panel-card + .hero-panel-card {
    margin-top: 0.85rem;
}

.hero-panel-card strong,
.hero-panel-card p,
.hero-metric-value,
.hero-metric-label {
    color: #fff;
}

.hero-panel-card p {
    opacity: 0.76;
    font-size: 0.92rem;
    margin-top: 0.3rem;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.hero-metric {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 0.95;
    margin-bottom: 0.2rem;
}

.hero-metric-label {
    opacity: 0.74;
    font-size: 0.82rem;
}

.content-section,
.cta-section {
    margin-top: 2.25rem;
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-top: 0.9rem;
    margin-bottom: 0.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    padding: 1.6rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(252, 60, 173, 0.16), rgba(126, 217, 87, 0.14));
    font-weight: 800;
}

.feature-card h3 {
    font-size: 1.7rem;
    margin-top: 0.7rem;
    margin-bottom: 0.45rem;
}

.cta-section {
    padding: 2.4rem 1.4rem;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(252, 60, 173, 0.08), transparent 32%),
        rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.diagnostic-shell {
    width: min(var(--container-sm), calc(100% - 2rem));
    margin: 1.5rem auto 0;
}

.progress-shell {
    margin-bottom: 1rem;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.86rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.progress-bar {
    background: rgba(16, 16, 24, 0.08);
    height: 10px;
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.question-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-lg);
}

.question-card h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 0.85rem;
}

.help-text,
.multi-hint {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.choice-options {
    display: grid;
    gap: 0.85rem;
}

.choice-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 16, 24, 0.09);
    background: rgba(255, 255, 255, 0.74);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.choice-option:hover {
    transform: translateY(-1px);
    border-color: rgba(252, 60, 173, 0.28);
    box-shadow: var(--shadow-sm);
    background: rgba(255, 242, 250, 0.96);
}

.choice-option input[type="radio"],
.choice-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.player-page {
    width: min(var(--container-xs), calc(100% - 1rem));
    margin: 1rem auto 0;
}

.player-shell {
    display: grid;
    gap: 1rem;
}

.player-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 28px;
    background: #050508;
    box-shadow: var(--shadow-xl);
}

.sequence-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 220ms linear;
    background: #000;
}

.sequence-video.is-active {
    opacity: 1;
}

.player-top-ui {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 5;
}

.clip-progress-chrome {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(8, 8, 12, 0.34);
    backdrop-filter: blur(10px);
}

.clip-progress-track {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.clip-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(126,217,87,0.98));
    box-shadow: 0 0 12px rgba(126, 217, 87, 0.28);
}

.clip-instruction {
    margin: 14px 0 0;
    padding: 10px 18px;
    text-align: center;
    font-family: inherit;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 32px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tap-to-begin {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 6, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.tap-to-begin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    user-select: none;
}
.ttb-play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fc3cad;
    box-shadow: 0 0 0 12px rgba(252, 60, 173, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.tap-to-begin:active .ttb-play-btn {
    transform: scale(0.92);
    box-shadow: 0 0 0 6px rgba(252, 60, 173, 0.14);
}
.ttb-play-icon {
    width: 0;
    height: 0;
    border-left: 28px solid #fff;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    margin-left: 6px;
}
.ttb-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #F7F3ED;
    letter-spacing: -0.01em;
}
.ttb-hint {
    font-size: 0.85rem;
    color: rgba(247, 243, 237, 0.55);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tap-overlay {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 80ms ease;
}
.tap-overlay.is-visible {
    opacity: 1;
    animation: tap-fade 700ms ease forwards;
}
@keyframes tap-fade {
    0%   { opacity: 1; }
    60%  { opacity: 1; }
    100% { opacity: 0; }
}
.tap-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tap-icon--pause::before,
.tap-icon--play::before {
    content: '';
    display: block;
}
.tap-icon--pause::before {
    width: 22px;
    height: 26px;
    background: #F7F3ED;
    box-shadow: -10px 0 0 #F7F3ED;
    margin-left: -4px;
}
.tap-icon--play::before {
    border-left: 26px solid #F7F3ED;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.player-bottom-ui {
    position: absolute;
    left: 16px;
    bottom: 18px;
    z-index: 5;
    max-width: 70%;
}

.move-banner {
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.move-banner.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.move-banner-inner {
    display: inline-flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    background: linear-gradient(135deg, rgba(252, 60, 173, 0.98), rgba(216, 31, 143, 0.98));
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(252, 60, 173, 0.22);
}

.move-count {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.88;
}

.move-name {
    font-size: 1rem;
    line-height: 1.1;
    font-weight: 800;
}

.player-loading,
.player-finished {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 8, 12, 0.34);
    backdrop-filter: blur(6px);
}

.loading-card,
.finished-card {
    width: min(90%, 340px);
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(18, 18, 25, 0.82);
    color: #fff;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
}

.loading-card strong {
    display: block;
    margin-top: 0.55rem;
    font-size: 1rem;
}

.loading-card span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.74);
}

.loading-shimmer {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.35rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(252, 60, 173, 0.24), rgba(126, 217, 87, 0.18));
    animation: shimmerPulse 1.2s ease-in-out infinite;
}

@keyframes shimmerPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

.finished-card h2 {
    color: #fff;
}

.finished-card p {
    color: rgba(255, 255, 255, 0.78);
}

.finished-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.results-summary {
    text-align: center;
}

.results-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(16, 16, 24, 0.05);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.meta-pill-success {
    background: rgba(126, 217, 87, 0.14);
    color: #2d7a33;
}

.meta-pill-danger {
    background: rgba(232, 79, 103, 0.12);
    color: #b42d4b;
}

.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.46);
    z-index: 1000;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 env(safe-area-inset-bottom, 0);
}

.modal-backdrop.open {
    display: flex;
}

.save-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    border-radius: 28px 28px 0 0;
    background: #fff;
    padding: 2rem 1.4rem 2.4rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.16);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-light);
    background: rgba(16, 16, 24, 0.05);
    cursor: pointer;
}

.modal-name-row {
    margin: 1rem 0 1.1rem;
}

.modal-name-row label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-buttons {
    display: grid;
    gap: 0.7rem;
}

.save-toast {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translateX(-50%);
    background: #1a1a21;
    color: #fff;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    font-size: 0.94rem;
    font-weight: 700;
    z-index: 1100;
    box-shadow: var(--shadow-lg);
}

.library-page {
    width: min(var(--container), calc(100% - 2rem));
    margin: 1.5rem auto 0;
}

.library-header {
    margin-bottom: 1.25rem;
}

.library-header h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
}

.library-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.saved-routine-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.saved-routine-card {
    padding: 1.15rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saved-routine-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.saved-routine-card-top,
.saved-routine-card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
}

.saved-routine-card-body {
    margin: 1rem 0;
}

.saved-routine-card-body h3 {
    font-size: 1.7rem;
    margin-bottom: 0.35rem;
}

.saved-routine-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(252, 60, 173, 0.10);
    color: var(--primary-strong);
    font-size: 0.75rem;
    font-weight: 800;
}

.saved-routine-date {
    color: var(--text-light);
    font-size: 0.82rem;
}

.saved-routine-link {
    color: var(--primary-strong);
    font-weight: 800;
    font-size: 0.9rem;
}

.empty-library {
    display: grid;
    place-items: center;
    padding: 2rem 0;
}

.empty-library-card {
    max-width: 520px;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.empty-library-card h2 {
    font-size: 2.4rem;
}

.empty-library-card p {
    margin: 0.7rem 0 1.1rem;
}

/* Admin */
.admin-auth-page,
.admin-page {
    width: min(var(--container), calc(100% - 2rem));
    margin: 1.5rem auto 0;
}

.admin-page-compact {
    width: min(1100px, calc(100% - 2rem));
}

.admin-auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-md);
}

.admin-auth-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.25rem;
}

.admin-auth-form label,
.admin-field label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark);
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.admin-page-header h1 {
    font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.admin-panel,
.admin-form-card,
.admin-preview-card {
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    align-items: end;
}

.admin-filter-grid-wide {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
}

.admin-filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-r2-status {
    margin: 0.9rem 0;
}

.admin-clip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.admin-clip-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(16, 16, 24, 0.06);
    box-shadow: var(--shadow-sm);
}

.admin-clip-preview {
    aspect-ratio: 16 / 9;
    background: #050508;
}

.admin-clip-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-clip-preview-empty {
    height: 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.82);
}

.admin-clip-preview-empty strong {
    color: #fff;
}

.admin-clip-body {
    padding: 0.9rem;
}

.admin-clip-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
}

.admin-status-badge.is-active {
    background: rgba(126, 217, 87, 0.16);
    color: #2d7a33;
}

.admin-status-badge.is-inactive {
    background: rgba(16, 16, 24, 0.08);
    color: var(--text-medium);
}

.admin-clip-date {
    color: var(--text-light);
    font-size: 0.82rem;
}

.admin-clip-body h3 {
    font-size: 1.55rem;
    margin-bottom: 0.35rem;
}

.admin-clip-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}

.admin-overlay-label {
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
}

.admin-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.7rem;
}

.admin-tag-list-secondary {
    opacity: 0.9;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.24rem 0.55rem;
    border-radius: 999px;
    background: rgba(16, 16, 24, 0.05);
    color: var(--text-medium);
    font-size: 0.76rem;
    font-weight: 700;
}

.admin-clip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-clip-actions form {
    display: inline-flex;
}

.admin-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.7fr);
    gap: 0.9rem;
}

.admin-form-layout-compact {
    align-items: start;
}

.admin-section {
    margin-bottom: 0.9rem;
}

.admin-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.admin-section-heading h3 {
    font-size: 1.45rem;
}

.admin-form-grid,
.admin-duration-grid,
.admin-dual-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid-tight {
    gap: 0.65rem;
}

.admin-dual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-help-text {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.admin-field-hint {
    margin: 0.2rem 0 0.4rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.75;
    line-height: 1.45;
}

.admin-target-groups {
    display: grid;
    gap: 0.75rem;
}

.admin-target-groups-compact {
    gap: 0.55rem;
}

.admin-target-group-disclosure {
    border: 1px solid rgba(16, 16, 24, 0.08);
    border-radius: 18px;
    background: rgba(16, 16, 24, 0.03);
    overflow: hidden;
}

.admin-target-group-disclosure summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    font-weight: 800;
    color: var(--text-dark);
}

.admin-target-group-disclosure summary::-webkit-details-marker {
    display: none;
}

.admin-target-group-disclosure .chevron {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.admin-target-group-disclosure[open] .chevron {
    transform: rotate(180deg);
}

.admin-target-group-disclosure .admin-checkbox-grid {
    padding: 0 0.75rem 0.75rem;
}

.admin-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.admin-checkbox-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-checkbox-grid.compact-dense {
    gap: 0.45rem;
}

.admin-checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 16, 24, 0.08);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.admin-checkbox-card input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    flex: 0 0 auto;
}

.compact-card {
    padding: 0.55rem 0.65rem;
    font-size: 0.92rem;
}

.admin-inline-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(16, 16, 24, 0.03);
    margin-bottom: 0.75rem;
}

.compact-toggle {
    margin-bottom: 0;
}

.admin-inline-toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

.admin-form-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.admin-preview-card h3 {
    font-size: 1.7rem;
    margin-bottom: 0.7rem;
}

.admin-preview-card video {
    width: 100%;
    border-radius: 20px;
    background: #050508;
}

.admin-process-list {
    display: grid;
    gap: 0.7rem;
}

.admin-process-step {
    display: flex;
    gap: 0.75rem;
    padding: 0.85rem;
    border-radius: 18px;
    background: rgba(16, 16, 24, 0.04);
}

.admin-process-step span:first-child {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(252, 60, 173, 0.12);
    color: var(--primary-strong);
    font-weight: 800;
}

@media (max-width: 980px) {
    .hero-inner,
    .feature-grid,
    .saved-routine-grid,
    .admin-clip-grid,
    .admin-form-layout,
    .admin-filter-grid,
    .admin-filter-grid-wide,
    .admin-form-grid,
    .admin-dual-grid,
    .admin-checkbox-grid,
    .admin-checkbox-grid.compact {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;
        padding: 5rem 0 2rem;
    }
}

@media (max-width: 720px) {
    .nav-shell,
    .footer-shell,
    .library-summary,
    .button-group,
    .hero-actions,
    .admin-page-header,
    .admin-filter-actions,
    .admin-form-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .btn,
    .btn-large {
        width: 100%;
    }

    .player-bottom-ui {
        max-width: calc(100% - 32px);
    }

    .move-banner-inner {
        width: 100%;
    }
}

/* ─── Auth / Login page ─────────────────────────────────────────────────── */

.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    background: #1a1218;
    border: 1px solid rgba(252, 60, 173, 0.28);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    text-align: center;
    color: #F7F3ED;
}

.auth-card-header {
    margin-bottom: 2rem;
}

.auth-card-header h1 {
    font-size: 1.75rem;
    margin: 0.75rem 0 0.5rem;
    color: #F7F3ED;
}

.auth-card-header p {
    color: rgba(247, 243, 237, 0.8);
    font-size: 0.95rem;
}

.brand-mark-lg {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
}

.clerk-component-shell {
    min-height: 200px;
}

.auth-fine-print {
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: rgba(247, 243, 237, 0.75);
}

.auth-fine-print a {
    color: #fc3cad;
    text-decoration: underline;
}

.success-checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf89, #2d8f66);
    font-size: 2rem;
    color: #fff;
    margin: 0 auto;
}

/* ─── Subscribe page ─────────────────────────────────────────────────────── */

.subscribe-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

.subscribe-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.subscribe-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    max-width: 18ch;
    margin: 0.75rem auto 1rem;
}

.subscribe-tagline {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 52ch;
    margin: 0 auto;
}

.subscribe-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 820px) {
    .subscribe-grid {
        grid-template-columns: 1fr;
    }
}

.subscribe-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,168,124,0.12);
    border-radius: 8px;
    color: #c9a87c;
    font-size: 0.8rem;
    margin-top: 2px;
}

.feature-item strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    margin: 0;
    opacity: 0.65;
    font-size: 0.9rem;
    line-height: 1.55;
}

.subscribe-card {
    position: sticky;
    top: 5rem;
}

.subscribe-card-inner {
    background: #1a1218;
    border: 1px solid rgba(252, 60, 173, 0.28);
    border-radius: 20px;
    padding: 2rem;
    color: #F7F3ED;
}

.subscribe-card-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    color: #F7F3ED;
}

.price-period {
    font-size: 1rem;
    opacity: 0.55;
    margin-left: 0.25rem;
}

.subscribe-card-desc {
    font-size: 0.88rem;
    color: #F7F3ED;
    margin: 0 0 1.5rem;
}

.level-ladder {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}

.level-rung {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    opacity: 0.45;
}

.level-rung-active {
    opacity: 1;
}

.level-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(247, 243, 237, 0.15);
    border: 1px solid rgba(247, 243, 237, 0.3);
}

.level-rung-active .level-dot {
    background: #fc3cad;
    border-color: #fc3cad;
}

.level-when {
    opacity: 0.55;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.subscribe-fine-print {
    font-size: 0.78rem;
    color: rgba(247, 243, 237, 0.75);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.5;
}

.coming-soon-btn {
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(252, 60, 173, 0.15);
    color: #fc3cad;
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.coming-soon-btn p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin: 0;
}

/* ─── Account page ───────────────────────────────────────────────────────── */

.account-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 5rem 1.5rem 4rem;
}

.account-header {
    margin-bottom: 3rem;
}

.account-header h1 {
    margin: 0.5rem 0 0.25rem;
}

.account-email {
    opacity: 0.5;
    font-size: 0.9rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.account-card {
    background: var(--surface-mid, #17171e);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 1.75rem;
}

.account-card h3 {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.45;
    margin: 0 0 1.25rem;
}

.account-status {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
}

.account-status-active {
    background: rgba(76,175,137,0.15);
    color: #4caf89;
}

.account-status-warn {
    background: rgba(230,180,50,0.15);
    color: #e6b432;
}

.account-status-inactive {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.45);
}

.account-meta {
    font-size: 0.83rem;
    opacity: 0.55;
    margin: 0.75rem 0 0;
}

.level-display {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.25rem 0 0.5rem;
}

.level-number {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    color: #c9a87c;
}

.level-label {
    font-size: 1rem;
    opacity: 0.4;
}

.level-bar-track {
    display: flex;
    gap: 5px;
    margin-top: 1.25rem;
}

.level-bar-pip {
    flex: 1;
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,0.08);
}

.level-bar-pip-filled {
    background: linear-gradient(90deg, #c9a87c, #e8c99a);
}

.account-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-links a {
    color: var(--ink-body, #e0ddd8);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.account-links a:hover {
    opacity: 1;
    color: #c9a87c;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.8);
}

.btn-small {
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
}

/* ─── Flash message categories ──────────────────────────────────────────── */

.alert-info    { border-left: 3px solid #c9a87c; }
.alert-error   { border-left: 3px solid #c96060; }
.alert-success { border-left: 3px solid #4caf89; }

/* ─── Onboarding form ────────────────────────────────────────────────────── */

.onboarding-field {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.45rem;
    opacity: 0.8;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.7rem 0.95rem;
    color: var(--ink-body, #e0ddd8);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: rgba(201,168,124,0.5);
    background: rgba(255,255,255,0.07);
}

.req-star {
    color: #c96060;
    margin-left: 2px;
}

.consent-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.75rem;
    cursor: pointer;
}

.consent-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 3px;
    accent-color: #c9a87c;
    width: 16px;
    height: 16px;
}

.consent-row span {
    font-size: 0.86rem;
    line-height: 1.6;
    opacity: 0.75;
}

.consent-row a {
    color: #c9a87c;
    text-decoration: underline;
}

/* ─── Admin analytics ────────────────────────────────────────────────────── */

.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background: var(--surface-mid, #17171e);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

.kpi-card.kpi-green { border-color: rgba(76,175,137,0.25); }
.kpi-card.kpi-muted { opacity: 0.65; }

.kpi-label {
    font-size: 0.75rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    color: #c9a87c;
}

.analytics-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 700px) {
    .analytics-two-col { grid-template-columns: 1fr; }
    .analytics-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.level-share-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-share-bar {
    height: 6px;
    border-radius: 100px;
    background: linear-gradient(90deg, #c9a87c, #e8c99a);
    min-width: 2px;
    max-width: 160px;
}

.level-share-pct {
    font-size: 0.78rem;
    opacity: 0.5;
    flex-shrink: 0;
}

.concern-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.concern-rank-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.85rem;
}

.concern-rank-name {
    width: 140px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.concern-rank-bar-wrap {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    overflow: hidden;
}

.concern-rank-bar {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #c9a87c, #e8c99a);
    min-width: 2px;
}

.concern-rank-count {
    font-size: 0.78rem;
    opacity: 0.5;
    width: 28px;
    text-align: right;
    flex-shrink: 0;
}

.bar-chart-wrap {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-top: 1rem;
}

.bar-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    height: 100%;
    min-width: 0;
}

.bar-chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #c9a87c, #e8c99a);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}

.bar-chart-label {
    font-size: 0.6rem;
    opacity: 0.35;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

/* ─── Anatomy image picker (admin clip form) ─────────────────────── */
.anatomy-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.anatomy-picker-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(0,0,0,0.03);
    transition: border-color 0.15s, background 0.15s;
    min-width: 72px;
    max-width: 88px;
}

.anatomy-picker-option:hover {
    background: rgba(252, 60, 173, 0.06);
    border-color: rgba(252, 60, 173, 0.3);
}

.anatomy-picker-option.is-selected {
    border-color: #fc3cad;
    background: rgba(252, 60, 173, 0.1);
}

.anatomy-picker-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.anatomy-picker-option img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.anatomy-picker-none {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #888;
    border: 2px dashed #ccc;
    border-radius: 6px;
}

.anatomy-picker-label {
    font-size: 0.6rem;
    color: #555;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 80px;
}

/* ─── Anatomy overlay in player ──────────────────────────────────── */
@keyframes anatomy-enter {
    from { opacity: 0; transform: translateY(10px) scale(0.9); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

@keyframes anatomy-wiggle-exit {
    0%   { opacity: 1;   transform: rotate(0deg)  scale(1);    }
    12%  { opacity: 1;   transform: rotate(-7deg) scale(1.02); }
    28%  { opacity: 1;   transform: rotate(6deg)  scale(1.02); }
    44%  { opacity: 0.9; transform: rotate(-5deg) scale(1);    }
    60%  { opacity: 0.7; transform: rotate(4deg)  scale(0.97); }
    76%  { opacity: 0.4; transform: rotate(-2deg) scale(0.94); }
    100% { opacity: 0;   transform: rotate(0deg)  scale(0.88); }
}

.anatomy-overlay {
    position: absolute;
    /* top-left, just below the progress bar + instruction text */
    top: 192px;
    left: 14px;
    z-index: 8;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.55));
}

.anatomy-overlay.is-visible {
    animation: anatomy-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.anatomy-overlay.is-exiting {
    animation: anatomy-wiggle-exit 0.9s ease-in forwards;
}

.anatomy-overlay img {
    display: block;
    width: clamp(72px, 18vw, 120px);
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(0,0,0,0.18);
}
