/**
 * Q Orb Onboarding - Exact Match to Login Page
 */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Base - Match Login Page Exactly */
.onboarding-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    position: relative;
    background-color: #000000 !important;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

/* Gradient overlay layer - exactly as login page */
.onboarding-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
        radial-gradient(ellipse 1400px 900px at 50% 45%,
            rgba(30, 35, 70, 0.4) 0%,
            rgba(20, 25, 50, 0.6) 35%,
            rgba(14, 14, 26, 0.85) 65%,
            rgba(10, 10, 20, 1) 100%
        ),
        linear-gradient(135deg,
            #0E0E1A 0%,
            #151530 50%,
            #0A0A14 100%
        );
}

/* Noise overlay - exactly as login page */
.onboarding-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    mix-blend-mode: overlay;
}

/* Logo - Match Login Page */
.logo-container {
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
}

.logo {
    height: 2.5rem;
}

/* Main Container - Properly Centered */
.onboarding-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Progress Header - Subtle */
.progress-header {
    position: absolute;
    top: 30px;
    right: 20px;
    text-align: right;
    z-index: 100;
    max-width: calc(100vw - 40px);
}

.progress-bar-container {
    width: 200px;
    max-width: calc(100vw - 60px);
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    margin-left: auto;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.progress-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0;
    font-weight: 500;
}

/* Q Orb Center Container */
.qorb-center-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

/* Q Orb Canvas Container */
.qorb-center-container .orb {
    position: relative;
    width: 165px;
    height: 165px;
    margin: 0 auto;
}

.qorb-center-container canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* Q Speaking Text - Larger Font */
.q-spoken {
    margin: 20px auto 0;
    max-width: 36ch;
    color: #dfe8ff;
    font-size: 20px;
    line-height: 1.7;
    text-align: center;
    min-height: 3em;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Word-by-word fade-in animation */
@keyframes wordFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Step Management */
.onboarding-step {
    display: none;
    width: 100%;
}

.onboarding-step.active {
    display: block;
    animation: stepFadeIn 0.5s ease-out;
}

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

.substep {
    display: none;
}

.substep.active {
    display: block;
}

/* Interaction Area - Below Q */
.interaction-area {
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
}

.q-instruction {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons - Clean Style */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Voice Range Inline Buttons */
.voice-range-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

/* Voice Choice Buttons (for TTS toggle) */
.voice-choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.btn-voice-choice {
    flex: 1;
    min-width: 200px;
    padding: 32px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #dfe8ff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.btn-voice-choice:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(124, 58, 237, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
}

.btn-voice-choice .btn-label {
    font-size: 1rem;
    font-weight: 500;
}

.voice-range-btn {
    flex: 1;
    min-width: 200px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.voice-range-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.voice-range-btn.selected {
    background: rgba(124, 58, 237, 0.2);
    border-color: #7c3aed;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4);
}

.voice-range-btn .btn-label {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.voice-range-btn .btn-sublabel {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.btn-primary-orb {
    padding: 14px 48px;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-primary-orb:hover {
    background: #6d28d9;
}

.btn-primary-orb:active {
    transform: scale(0.98);
}

.btn-primary-orb:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #4c2889;
    pointer-events: none;
}

.btn-link-subtle {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.btn-link-subtle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Form Inputs */
.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.interaction-area input[type="text"],
.interaction-area input[type="email"] {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.interaction-area input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.interaction-area input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Microphone Level Label */
.mic-level-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Volume Meter */
.volume-meter-container {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 30px;
}

.volume-meter {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        #667eea 0%,
        #764ba2 50%,
        #a855f7 100%
    );
    border-radius: 10px;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.6);
}

/* Status Checks - Inline */
.status-checks {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.status-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
}

.status-check.success {
    color: #22c55e;
}

.status-check.error {
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-check.measuring {
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.status-check i {
    font-size: 14px;
}

/* Countdown Display - Simple White Number */
.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px auto 40px;
}

#countdownNumber {
    font-size: 80px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

/* Noise Warning */
.noise-warning {
    text-align: center;
    max-width: 400px;
    margin: 0 auto 30px;
}

.noise-message {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.noise-tips {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noise-tips li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    position: relative;
    padding-left: 24px;
}

.noise-tips li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #7c3aed;
    font-size: 18px;
}

/* Visualization */
.visualization-container {
    margin: 30px auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
}

#pitchCanvas {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}

.range-display {
    margin-top: 15px;
    text-align: center;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
}

/* Record Button */
.btn-record {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 30px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-record:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

.btn-record i {
    font-size: 30px;
    margin-bottom: 8px;
}

.btn-record span {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Data Points Banner */
.data-points-banner {
    padding: 30px;
    margin: 30px auto;
    max-width: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.data-points-number {
    font-size: 42px;
    font-weight: 800;
    color: #ffd700;
    margin: 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.data-points-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Metrics */
.metrics-section {
    margin: 20px auto;
    max-width: 400px;
}

.metrics-section h3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
}

.metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.metrics-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid #667eea;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.metrics-list li:nth-child(1) { animation-delay: 0.1s; }
.metrics-list li:nth-child(2) { animation-delay: 0.2s; }
.metrics-list li:nth-child(3) { animation-delay: 0.3s; }

/* Results Background Canvas */
.results-background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.results-background-canvas.active {
    opacity: 1;
}

/* Results Hero Layout */
.results-hero {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.results-heading {
    font-size: 22px;
    font-weight: 600;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

/* Inline Metrics without Icons */
.core-metrics-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.inline-metric {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.inline-metric.reveal {
    animation: fadeInUp 0.5s ease-out forwards;
}

.inline-metric:nth-child(1).reveal { animation-delay: 0.5s; }
.inline-metric:nth-child(3).reveal { animation-delay: 0.7s; }
.inline-metric:nth-child(5).reveal { animation-delay: 0.9s; }

.metric-separator {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
    opacity: 0;
    animation: fadeIn 0.3s ease-out 0.8s forwards;
}

.inline-metric-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.inline-metric-value {
    font-size: 20px;
    font-weight: 600;
    color: white;
    line-height: 1.3;
}

.voice-profile-message {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 20px auto 30px;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.2s forwards;
}

.divider-subtle {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.4s forwards;
}

/* Vocal Profile Badge - Styled like Voice Type Badge */
.vocal-profile-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px;
    width: fit-content;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

.vocal-profile-row {
    display: flex;
    gap: 40px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
}

.vocal-profile-metric {
    text-align: center;
    min-width: 120px;
}

.vocal-profile-metric-main {
    min-width: 160px;
}

.vocal-profile-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 8px;
}

.vocal-profile-value {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.vocal-profile-value-main {
    font-size: 28px;
    color: #8b5cf6;
}

.voice-profile-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-style: italic;
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.advanced-analysis-section {
    max-width: 700px;
    margin: 0 auto 30px;
}

.advanced-heading {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 1.2s forwards;
}

/* Cycling Analysis Container */
.cycling-analysis-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    margin-bottom: 20px;
}

.cycling-analysis-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-icon {
    color: #10b981;
    font-weight: 700;
    font-size: 16px;
}


#btnContinueResults {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 2.8s forwards;
    margin: 30px auto 0;
    display: block;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.metrics-list li:nth-child(4) { animation-delay: 0.4s; }
.metrics-list li:nth-child(5) { animation-delay: 0.5s; }
.metrics-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.metrics-list li i {
    color: #22c55e;
    font-size: 12px;
}

/* Voice Type Badge - Professional & App-like */
.voice-type-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.voice-type-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
    margin-bottom: 2px;
}

.voice-type-name {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.voice-type-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    max-width: 300px;
}

/* Step 5: Voice Type with Horizontal Carousel */
#step-voice-type.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

#step-voice-type .voice-type-badge {
    margin-bottom: 10px;
}

.artists-heading {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    text-align: center;
    margin: 0;
}

.artists-heading span {
    font-weight: 600;
    color: #667eea;
}

/* Horizontal Scrolling Carousel */
.artist-carousel-horizontal {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 30px 0;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 5%,
        black 95%,
        transparent 100%
    );
}

.artist-carousel-track {
    display: flex;
    gap: 20px;
    width: fit-content;
    will-change: transform;
}

/* Animation will be added dynamically via JavaScript */

/* Artist Card - A4 Portrait Proportions with Header Image */
.artist-card {
    flex-shrink: 0;
    width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.artist-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.artist-card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    z-index: 10;
}

.artist-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Artist Image - Full Width Header */
.artist-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.artist-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    pointer-events: none;
}

/* Artist Details */
.artist-details {
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.artist-name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.artist-song {
    font-size: 12px;
    color: #667eea;
    font-style: italic;
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}

/* Artist Meta (Genre + Origin) */
.artist-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
    flex-wrap: wrap;
}

.artist-genre-tag {
    display: inline-block;
    padding: 3px 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.artist-origin {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

/* Monthly Listeners */
.artist-listeners {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 4px;
    padding: 0;
    font-size: 11px;
    color: #667eea;
    font-weight: 600;
}

.artist-listeners i {
    font-size: 12px;
}

/* Complete Button */
.btn-complete {
    margin-top: 20px;
    padding: 16px 40px;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .artist-card {
        width: 180px;
    }

    .artist-image-container {
        height: 180px;
    }

    .artist-details {
        padding: 12px;
        gap: 8px;
    }

    .artist-name {
        font-size: 15px;
    }

    .artist-song {
        font-size: 11px;
    }

    .voice-type-badge {
        padding: 16px 30px;
    }

    .voice-type-name {
        font-size: 30px;
    }
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 30px 0;
}

/* Content Card (fallback) */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    margin: 0 auto;
}

/* Circular Waveform Design (Option 3) - Overlaid on Q */
.task-indicator-small {
    position: absolute;
    top: calc(50% - 200px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #ff8c42;
    text-align: center;
    z-index: 10;
}

.circular-waveform-canvas {
    position: fixed;
    /* Position will be set dynamically by JavaScript */
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.circular-waveform-canvas.recording {
    opacity: 1;
}

.spacebar-hint-slide {
    position: absolute;
    top: calc(50% + 140px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: center;
    z-index: 10;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.spacebar-hint-slide kbd {
    display: inline-block;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    font-family: ui-monospace, 'Courier New', monospace;
    text-transform: uppercase;
}

.frequency-label-slide {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.frequency-label-slide.visible {
    opacity: 1;
}

.hint-text-slide {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    z-index: 10;
    line-height: 1.6;
}

/* Audio Examples */
.audio-examples-container {
    position: absolute;
    top: calc(50% + 185px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 15;
    display: none;
}

.audio-example-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.25));
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
    animation: subtlePulse 3s ease-in-out infinite;
}

.audio-example-btn:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.4));
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    animation: none;
}

.audio-example-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.audio-example-btn.playing {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.5));
    border-color: rgba(139, 92, 246, 0.7);
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
    animation: playingPulse 0.8s ease-in-out infinite;
}

.audio-example-btn.playing i {
    animation: playingIconPulse 0.8s ease-in-out infinite;
}

.audio-example-btn i {
    font-size: 11px;
    animation: iconPulse 3s ease-in-out infinite;
}

.audio-example-btn:hover i {
    animation: none;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
    }
    50% {
        box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
    }
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

@keyframes playingPulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.6);
    }
}

@keyframes playingIconPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes celebrateGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    25% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
        transform: scale(1.05);
    }
    50% {
        text-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 40px rgba(139, 92, 246, 0.5), 0 0 50px rgba(139, 92, 246, 0.3);
        transform: scale(1.08);
    }
    75% {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
        transform: scale(1.05);
    }
}

/* Research Citation Badge - Subtle & Academic */
.research-citation-badge {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 500px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    z-index: 10;
    opacity: 0.85;
    transition: all 0.3s ease;
    cursor: help;
}

.research-citation-badge:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    max-width: 650px;
    padding: 12px 20px;
}

.research-citation-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.01em;
    transition: opacity 0.3s ease;
}

.research-citation-badge:hover .research-citation-text {
    opacity: 0;
    display: none;
}

.research-citation-text::before {
    content: "🔬 ";
    opacity: 0.6;
    margin-right: 4px;
}

.research-citation-expanded {
    display: none;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.research-citation-badge:hover .research-citation-expanded {
    display: block;
    animation: fadeInExpanded 0.3s ease;
}

@keyframes fadeInExpanded {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .logo-container {
        top: 20px;
        left: 20px;
    }

    .progress-header {
        top: 20px;
        right: 20px;
    }

    .progress-bar-container {
        width: 150px;
    }

    #qSpeechText {
        font-size: 16px;
    }

    .interaction-area {
        padding: 20px;
    }

    .form-group-inline {
        grid-template-columns: 1fr;
    }

    .btn-primary-orb {
        width: 100%;
    }

    .research-citation-badge {
        max-width: 90%;
        padding: 6px 12px;
        bottom: 80px;
    }

    .research-citation-badge:hover {
        max-width: 95%;
        padding: 10px 14px;
    }

    .research-citation-text {
        font-size: 10px;
    }

    .research-citation-expanded {
        font-size: 9.5px;
        line-height: 1.5;
    }

    .audio-examples-container {
        top: calc(50% + 175px);
    }

    .audio-example-btn {
        font-size: 11px;
        padding: 5px 12px;
    }

    .vocal-profile-badge {
        padding: 20px 25px;
        max-width: 90%;
        width: auto;
    }

    .vocal-profile-row {
        gap: 25px;
    }

    .vocal-profile-metric {
        min-width: 90px;
    }

    .vocal-profile-metric-main {
        min-width: 120px;
    }

    .vocal-profile-label {
        font-size: 10px;
    }

    .vocal-profile-value {
        font-size: 17px;
    }

    .vocal-profile-value-main {
        font-size: 22px;
    }

    .cycling-analysis-item {
        font-size: 13px;
        padding: 10px 18px;
    }

    .results-heading {
        font-size: 18px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
}
