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

.hidden {
    display: none !important;
}

:root {
    --primary: #34d399;
    --primary-dark: #10b981;
    --primary-hover: #10b981;
    --primary-glow: rgba(52, 211, 153, 0.3);
    --primary-intense: rgba(52, 211, 153, 0.6);
    --primary-faded: rgba(52, 211, 153, 0.1);
    --primary-border: rgba(52, 211, 153, 0.3);
    --secondary: #06b6d4;
    --bg-dark: rgba(0, 0, 0, 0.9);
    --bg-card: rgba(0, 0, 0, 0.3);
    --bg-glass: rgba(0, 0, 0, 0.4);
    --bg-glass-hover: rgba(0, 0, 0, 0.5);
    --border-glow: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --danger: #ff3e3e;
    --warning: #ffbb00;
    --glass-blur: 20px;
    --glass-shine: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(to bottom right, #021f17 0%, #064e3b 50%, #021f17 100%);
    min-height: 100vh;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(52, 211, 153, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 24px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    margin-bottom: 24px;
    border-radius: 0 0 16px 16px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.step {
    background: var(--bg-card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 25px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    animation: stepFadeIn 0.6s ease-out;
}

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

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes scoreReveal {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    50% { transform: scale(1.2) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes badgePop {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.3); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px transparent; }
    50% { box-shadow: 0 0 30px var(--primary-intense), 0 0 60px var(--primary-glow); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-50px); }
}

.animate-count {
    animation: countUp 0.5s ease-out forwards;
}

.animate-score {
    animation: scoreReveal 0.8s ease-out forwards;
}

.animate-badge {
    animation: badgePop 0.6s ease-out forwards;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

.animate-slide-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.animate-slide-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.animate-bounce {
    animation: bounceIn 0.6s ease-out forwards;
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 20%);
    pointer-events: none;
    border-radius: 20px;
}

.step.hidden {
    display: none;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: white;
}

.step-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0;
}

.fighter-settings {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.fighter-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fighter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.fighter-card:hover {
    border-color: var(--border-bright);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 255, 157, 0.1);
    transform: translateY(-2px);
}

.fighter-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-glow);
}

.fighter-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.fighter-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.fighter-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-select, .cyber-input {
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    width: 100%;
}

.cyber-select:focus, .cyber-input:focus {
    outline: none;
    border-color: var(--primary);
}

.cyber-select:hover, .cyber-input:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.cyber-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.intensity-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.intensity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary-glow);
}

.intensity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--primary-glow);
}

.intensity-value {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.input-group .intensity-slider {
    margin-top: 8px;
}

.vs-divider {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-area {
    width: 100%;
    max-width: 550px;
    padding: 50px 40px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.upload-area.dragover {
    border-color: var(--primary);
    border-style: solid;
    background: rgba(16, 185, 129, 0.1);
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 15px;
}

.upload-hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.progress-container {
    width: 100%;
    max-width: 500px;
    margin-top: 20px;
}

.progress-container.hidden {
    display: none;
}

.progress-bar {
    height: 8px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

#progress-text {
    text-align: center;
    margin-top: 10px;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.analyzing-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.punch-loader {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brain-icon {
    animation: brainPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.6));
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.video-info-display {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-info-display .info-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.video-info-display .info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-info-display .info-label {
    color: var(--text-muted);
}

.video-info-display .info-value {
    color: var(--primary);
    font-weight: 600;
}

.video-info-display .crop-warning {
    color: #f59e0b;
    margin-top: 8px;
    font-size: 0.8rem;
}

.video-info-display.hidden {
    display: none;
}

.impact-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #34d399;
    border-radius: 50%;
    opacity: 0;
}

.ring-1 {
    width: 60px;
    height: 60px;
    animation: ringPulse 1s ease-out infinite 0.2s;
}

.ring-2 {
    width: 80px;
    height: 80px;
    animation: ringPulse 1s ease-out infinite 0.4s;
}

.ring-3 {
    width: 100px;
    height: 100px;
    animation: ringPulse 1s ease-out infinite 0.6s;
}

@keyframes punchMove {
    0%, 100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(10px) scale(1.1);
    }
}

@keyframes ringPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.results-summary {
    background: linear-gradient(135deg, rgba(0, 60, 45, 0.3) 0%, rgba(0, 35, 28, 0.2) 100%);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    gap: 35px;
    flex-wrap: wrap;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.summary-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.summary-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instruction {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.impacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.impact-card {
    background: rgba(0, 20, 15, 0.7);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.impact-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.selected-badge {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--bg-dark);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impact-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.impact-info {
    padding: 15px;
}

.impact-title {
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.impact-hand {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.impact-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.impact-stat-value {
    color: var(--primary);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
}

.speed-range {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.speed-range-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.speed-range-value {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.power-range {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 8px;
}

.power-range-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.power-range-value {
    font-family: 'Montserrat', sans-serif;
    color: var(--warning);
    font-size: 0.95rem;
    font-weight: 600;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn.primary {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(52, 211, 153, 0.3);
}

.btn.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4ade80 0%, #34d399 50%, #10b981 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(52, 211, 153, 0.4);
}

.btn.primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(52, 211, 153, 0.3);
}

.btn.primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    box-shadow: none;
}

.btn.secondary {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn.secondary:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.assessment-section {
    background: linear-gradient(145deg, rgba(0, 45, 35, 0.4) 0%, rgba(0, 25, 20, 0.3) 100%);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.assessment-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.assessment-section h3 {
    margin-bottom: 10px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.warning {
    background: rgba(255, 170, 0, 0.15);
    border-left: 4px solid var(--warning);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.red-flag-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.red-flag-item input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--danger);
}

.symptom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid var(--border-glow);
}

.symptom-slider {
    display: flex;
    align-items: center;
    gap: 10px;
}

.symptom-slider input[type="range"] {
    width: 150px;
    cursor: pointer;
    accent-color: var(--primary);
}

.symptom-value {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
}

.question-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-glow);
}

.question-toggle {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
}

.toggle-btn.incorrect.active {
    background: var(--danger);
    border-color: var(--danger);
}

#risk-results-section h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: var(--primary);
}

#risk-results {
    margin-bottom: 30px;
}

.risk-overview {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.risk-gauge {
    flex: 1;
    min-width: 200px;
    background: rgba(0, 20, 15, 0.7);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-glow);
}

.risk-level {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.risk-level.low { color: var(--primary); }
.risk-level.low-moderate { color: #8bc34a; }
.risk-level.moderate { color: var(--warning); }
.risk-level.high { color: #ff6644; }
.risk-level.critical { color: var(--danger); }

.risk-percentage {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.risk-details {
    flex: 2;
    min-width: 300px;
}

.risk-recommendation {
    background: rgba(0, 20, 15, 0.7);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.impact-details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.impact-details-table th,
.impact-details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-glow);
}

.impact-details-table th {
    background: rgba(0, 20, 15, 0.8);
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.impact-details-table td {
    font-family: 'Montserrat', sans-serif;
}

.assessment-result-card {
    background: rgba(0, 20, 15, 0.7);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-glow);
}

.assessment-result-card h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 15px;
    color: var(--secondary);
}

.urgency-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.urgency-badge.emergency { background: var(--danger); }
.urgency-badge.high { background: #ff6644; }
.urgency-badge.moderate { background: var(--warning); color: var(--bg-dark); }
.urgency-badge.low { background: #8bc34a; color: var(--bg-dark); }
.urgency-badge.none { background: var(--primary); color: var(--bg-dark); }

.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.score-item {
    background: rgba(0, 255, 136, 0.05);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-glow);
}

.score-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.disclaimer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 255, 136, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-glow);
}

.impact-frames-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-glow);
}

.impact-frames-section h3 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Header with login */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.header-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: contain;
}

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

.header-right {
    display: flex;
    align-items: center;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glow);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.user-logged-in {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

#user-name {
    font-weight: 600;
    color: var(--text-primary);
}

.history-btn, .logout-btn, .manage-sub-btn {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-glow);
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-btn:hover, .logout-btn:hover, .manage-sub-btn:hover {
    background: var(--bg-glass);
    color: var(--primary);
    border-color: var(--primary);
}

/* AI Summary Section */
.ai-summary-section {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.ai-summary-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-summary-content {
    background: rgba(0, 255, 136, 0.03);
    border-radius: 12px;
    padding: 20px;
    min-height: 100px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
}

.ai-pulse {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

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

/* AI Chat Styles */
.ai-chat-history {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-chat-message {
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.5;
}

.ai-chat-message.user {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.ai-chat-message.assistant {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-glow);
}

.ai-chat-message.loading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-input-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-glow);
}

.ai-chat-input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input-wrapper input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ai-chat-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.ai-chat-input-wrapper input::placeholder {
    color: var(--text-secondary);
}

#ai-chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

#ai-chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 5, 3, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, rgba(0, 50, 40, 0.6) 0%, rgba(0, 30, 25, 0.5) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        0 0 80px rgba(0, 255, 157, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, var(--primary) 50%, transparent 90%);
    border-radius: 20px 20px 0 0;
}

.login-modal-content {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-glow);
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--danger);
}

/* Login Form */
.login-form {
    padding: 25px;
}

.login-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: center;
}

/* History List */
.history-list {
    padding: 20px;
}

.loading-history {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-risk {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.history-risk.low {
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
}

.history-risk.moderate, .history-risk.low-moderate {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning);
}

.history-risk.high, .history-risk.critical {
    background: rgba(255, 68, 68, 0.2);
    color: var(--danger);
}

.history-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.history-summary {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-history {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .header-left {
        text-align: center;
    }
    
    header h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
    
    .step {
        padding: 20px;
    }
    
    .fighter-settings {
        flex-direction: column;
    }
    
    .vs-divider {
        margin: 10px 0;
    }
    
    .impacts-grid {
        grid-template-columns: 1fr;
    }
    
    .risk-overview {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* Gamification Styles */
.score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid var(--primary);
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.score-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary-glow), transparent);
    animation: rotate 4s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    z-index: 1;
}

.score-value {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
    z-index: 1;
}

.score-rank {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-top: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-icon {
    font-size: 1.5rem;
}

.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    min-width: 100px;
    opacity: 0;
}

.badge.earned {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.badge-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.badge-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.badge.earned .badge-name {
    color: var(--primary);
}

.xp-bar-container {
    width: 100%;
    margin: 20px 0;
}

.xp-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.xp-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.xp-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 6px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.xp-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmerBar 2s infinite;
}

@keyframes shimmerBar {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.impact-card {
    transition: all 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.2);
}

.impact-card.selected {
    animation: glowPulse 2s ease-in-out infinite;
}

.floating-points {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    animation: floatUp 1s ease-out forwards;
    z-index: 9999;
}

.level-up-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(6, 182, 212, 0.95) 100%);
    padding: 40px 60px;
    border-radius: 20px;
    text-align: center;
    z-index: 10000;
    animation: bounceIn 0.6s ease-out;
}

.level-up-notification h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 10px;
}

.level-up-notification p {
    color: rgba(255, 255, 255, 0.9);
}

.auth-modal-content {
    max-width: 400px;
}

.auth-form {
    padding: 25px;
}

.auth-form .input-group {
    margin-bottom: 20px;
}

.auth-form .input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.btn.full-width {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 1rem;
}

.auth-toggle {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-toggle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.auth-toggle a:hover {
    text-decoration: underline;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.badge-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.badge.earned .badge-icon svg {
    stroke: var(--primary);
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 50, 40, 0.95) 0%, rgba(0, 30, 25, 0.95) 100%);
    border: 1px solid var(--border-glow);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    min-width: 280px;
}

.toast.show {
    transform: translateX(0);
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

.toast-success {
    border-color: var(--primary);
}

.toast-success .toast-icon svg {
    stroke: var(--primary);
}

.toast-error {
    border-color: var(--danger);
}

.toast-error .toast-icon svg {
    stroke: var(--danger);
}

.toast-warning {
    border-color: var(--warning);
}

.toast-warning .toast-icon svg {
    stroke: var(--warning);
}

.toast-info {
    border-color: var(--secondary);
}

.toast-info .toast-icon svg {
    stroke: var(--secondary);
}

.session-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 5, 3, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.session-details-content {
    background: linear-gradient(145deg, rgba(0, 50, 40, 0.6) 0%, rgba(0, 30, 25, 0.5) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 80px rgba(0, 255, 157, 0.15);
    backdrop-filter: blur(20px);
}

.session-details-body {
    padding: 25px;
}

.session-details-body p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.session-details-body strong {
    color: var(--text-primary);
}

.session-detail-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glow);
}

.session-detail-section h4 {
    color: var(--primary);
    margin-bottom: 12px;
}

.red-flag-text {
    color: var(--danger) !important;
}

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

/* Video Guidelines Dropdown */
.video-guidelines-dropdown {
    margin-bottom: 16px;
}

.guidelines-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    list-style: none;
}

.guidelines-toggle::-webkit-details-marker {
    display: none;
}

.guidelines-toggle:hover {
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-secondary);
}

.guidelines-toggle svg {
    flex-shrink: 0;
}

.guidelines-toggle .chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

.video-guidelines-dropdown[open] .guidelines-toggle .chevron {
    transform: rotate(180deg);
}

.video-guidelines-dropdown[open] .guidelines-toggle {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.guidelines-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.guidelines-content .guideline-item {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.guidelines-content .guideline-item strong {
    color: var(--primary);
    font-weight: 600;
    margin-right: 4px;
}

/* G-Force Scale */
.g-force-scale-section {
    background: linear-gradient(145deg, rgba(0, 50, 40, 0.4) 0%, rgba(0, 30, 25, 0.3) 100%);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 28px;
    margin-top: 30px;
    backdrop-filter: blur(var(--glass-blur));
}

.g-force-scale-section h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.g-force-scale-section .section-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.g-scale-container {
    position: relative;
    padding: 50px 0 60px;
}

.g-scale-bar {
    position: relative;
    height: 16px;
    background: linear-gradient(to right, 
        #22c55e 0%, 
        #22c55e 10%, 
        #eab308 10%, 
        #eab308 22%, 
        #f97316 22%, 
        #f97316 38%, 
        #ef4444 38%, 
        #ef4444 100%
    );
    border-radius: 8px;
    margin-bottom: 12px;
    z-index: 1;
}

.g-scale-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 4px;
    margin-bottom: 16px;
}

.g-scale-label-item {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.g-scale-label-item strong {
    display: block;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.g-scale-zones {
    display: flex;
    margin-top: 8px;
}

.g-zone {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g-zone.safe {
    background: rgba(34, 197, 94, 0.25);
    border-radius: 6px 0 0 6px;
    color: #22c55e;
}

.g-zone.caution {
    background: rgba(234, 179, 8, 0.25);
    color: #eab308;
}

.g-zone.warning {
    background: rgba(249, 115, 22, 0.25);
    color: #f97316;
}

.g-zone.danger {
    background: rgba(239, 68, 68, 0.25);
    border-radius: 0 6px 6px 0;
    color: #ef4444;
}

.user-impacts-markers {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 16px;
    pointer-events: none;
}

.user-impacts-markers {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 20px;
    z-index: 15;
}

.user-g-marker {
    position: absolute;
    top: -2px;
    transform: translateX(-50%);
    z-index: 10;
    cursor: pointer;
}

.user-g-marker .marker-dot {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 3px solid white;
    box-shadow: 0 0 12px var(--primary);
    border-radius: 50%;
    margin-top: -2px;
}

.user-g-marker .marker-label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: black;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    z-index: 20;
}

.user-g-marker .marker-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.user-g-marker:hover .marker-label {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.4);
}

.user-g-marker .marker-dot {
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-g-marker:hover .marker-dot {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--primary);
}

.user-g-marker .marker-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 10px 14px;
    min-width: 160px;
    z-index: 200;
    text-align: left;
    pointer-events: none;
}

.user-g-marker:hover .marker-tooltip {
    display: block;
}

.user-g-marker .marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.marker-tooltip-title {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.marker-tooltip-row {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 3px;
}

.marker-tooltip-row span {
    color: var(--text-primary);
    font-weight: 600;
}

/* Impact card highlight animation */
.impact-card.highlight {
    animation: highlightPulse 2s ease;
}

@keyframes highlightPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
    25%, 75% { box-shadow: 0 0 20px 5px rgba(52, 211, 153, 0.5); }
    50% { box-shadow: 0 0 30px 8px rgba(52, 211, 153, 0.7); }
}

/* G-Force Reference List */
.g-reference-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.g-reference-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.g-reference-item .g-value {
    color: var(--primary);
    font-weight: 700;
    margin-right: 6px;
}

/* G-Force Disclaimer */
.g-force-disclaimer {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.g-force-disclaimer h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1rem;
}

.g-force-disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.g-force-disclaimer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.g-force-disclaimer li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.g-force-disclaimer li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.g-force-disclaimer li strong {
    color: var(--text-primary);
}

/* Research Sources */
.research-sources {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.research-sources h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.research-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.research-sources li {
    font-size: 0.75rem;
}

.research-sources a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.research-sources a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* G-Force display in impact cards */
.g-force-display {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g-force-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g-force-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* Hide some markers on mobile for clarity */
@media (max-width: 768px) {
    .g-scale-marker[data-g="3"],
    .g-scale-marker[data-g="4.5"],
    .g-scale-marker[data-g="10"],
    .g-scale-marker[data-g="20"],
    .g-scale-marker[data-g="25"] {
        display: none;
    }
    
    .guidelines-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Subscription Banner */
.subscription-banner {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.subscription-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscription-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.subscription-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subscription-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.subscription-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.trial-badge {
    background: rgba(52, 211, 153, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid var(--primary-border);
}

@media (max-width: 600px) {
    .subscription-content {
        flex-direction: column;
        text-align: center;
    }
    
    .subscription-text {
        flex-direction: column;
    }
}

/* Welcome Modal */
.welcome-modal-content {
    max-width: 600px;
}

.welcome-modal-body {
    padding: 1.5rem 2rem;
}

.welcome-section {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.welcome-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.welcome-text h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.welcome-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.welcome-note {
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
    font-style: italic;
}

.welcome-note strong {
    color: var(--text-secondary);
}

.welcome-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    margin: 1.5rem 0;
}

.welcome-modal-footer {
    padding: 1rem 2rem 1.5rem;
    text-align: center;
}

.welcome-modal-footer .btn-primary {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
}

.welcome-modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #4ade80 0%, #34d399 50%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 211, 153, 0.4);
}

/* Subscription Modal */
.subscription-modal-content {
    max-width: 450px;
    text-align: center;
}

.subscription-modal-body {
    padding: 1.5rem;
}

.subscription-icon {
    margin-bottom: 1.5rem;
}

.subscription-modal-body h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.subscription-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subscription-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.subscription-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
}

.subscription-pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.subscription-pricing .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subscription-pricing .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.trial-note {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.subscription-cta {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

/* ===== Main Tab Navigation ===== */
.main-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    border: 1px solid var(--border-glow);
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: var(--bg-glass-hover);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-faded);
    border-color: var(--primary-border);
    color: var(--primary);
}

.tab-btn svg {
    opacity: 0.7;
}

.tab-btn.active svg {
    opacity: 1;
    stroke: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== Course Container ===== */
.course-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.course-header {
    text-align: center;
    margin-bottom: 2rem;
}

.course-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.course-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Lesson Navigation ===== */
.lesson-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    border: 1px solid var(--border-glow);
}

.lesson-nav-btn {
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid var(--border-glow);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lesson-nav-btn:hover {
    background: var(--bg-glass-hover);
    border-color: var(--primary-border);
    color: var(--text-primary);
}

.lesson-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}

/* ===== Lesson Content ===== */
.lesson-content {
    display: none;
}

.lesson-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.lesson-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    border: 1px solid var(--border-glow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.lesson-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-faded) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-glow);
}

.lesson-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

.lesson-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.lesson-body {
    padding: 2rem;
}

.lesson-intro {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== Key Stat Box ===== */
.key-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-faded) 0%, transparent 100%);
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.key-stat-box.danger {
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.1) 0%, transparent 100%);
    border-color: rgba(255, 62, 62, 0.3);
}

.key-stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.key-stat-box.danger .key-stat-value {
    color: var(--danger);
}

.key-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ===== Info Cards ===== */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-card.warning {
    background: linear-gradient(135deg, rgba(255, 187, 0, 0.1) 0%, transparent 100%);
    border-color: rgba(255, 187, 0, 0.3);
}

.info-card.danger {
    background: linear-gradient(135deg, rgba(255, 62, 62, 0.1) 0%, transparent 100%);
    border-color: rgba(255, 62, 62, 0.3);
}

.info-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.info-card.warning h4 {
    color: var(--warning);
}

.info-card.danger h4 {
    color: var(--danger);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
    color: var(--text-secondary);
}

.info-card li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ===== Image Container ===== */
.image-container {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

/* ===== Crisis Steps ===== */
.crisis-steps {
    margin: 1.5rem 0;
}

.crisis-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-bottom: 1rem;
}

.crisis-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #000;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.crisis-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.crisis-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Comparison Table ===== */
.comparison-table {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
}

.table-header {
    background: var(--bg-glass);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-glow);
}

.table-row {
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-glow);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row.highlight {
    background: var(--primary-faded);
    color: var(--text-primary);
}

/* ===== Recovery Grid ===== */
.recovery-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.recovery-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
}

.recovery-letter {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 12px;
    flex-shrink: 0;
}

.recovery-text h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.recovery-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Symptom Clusters ===== */
.symptom-clusters {
    margin: 1.5rem 0;
}

.symptom-clusters h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.cluster-card {
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
}

.cluster-card h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.cluster-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== Return to Sport Ladder ===== */
.rts-ladder {
    margin: 1.5rem 0;
}

.rts-step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    position: relative;
}

.rts-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    bottom: -12px;
    width: 2px;
    height: 12px;
    background: var(--border-glow);
}

.rts-step.highlight {
    background: linear-gradient(135deg, var(--primary-faded) 0%, transparent 100%);
    border-color: var(--primary-border);
}

.rts-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 2px solid var(--primary-border);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.rts-step.highlight .rts-number {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.rts-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.rts-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== Risk Factors ===== */
.risk-factors {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
}

.risk-factors h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.risk-factors ul {
    margin-left: 1.5rem;
    color: var(--text-secondary);
}

.risk-factors li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ===== Source Citation ===== */
.source-citation {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.source-citation strong {
    color: var(--text-secondary);
}

/* ===== Course Footer ===== */
.course-footer {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 16px;
    border: 1px solid var(--border-glow);
}

.disclaimer {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-glow);
}

.disclaimer h4, .works-cited h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.works-cited ul {
    list-style: none;
}

.works-cited li {
    margin-bottom: 0.5rem;
}

.works-cited a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.works-cited a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== Mobile Responsive for Course ===== */
@media (max-width: 768px) {
    .main-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .lesson-nav {
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .lesson-nav-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .lesson-header {
        padding: 1rem 1.5rem;
    }
    
    .lesson-number {
        font-size: 1.5rem;
    }
    
    .lesson-header h3 {
        font-size: 1.2rem;
    }
    
    .lesson-body {
        padding: 1.25rem;
    }
    
    .key-stat-value {
        font-size: 2rem;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1.5fr 0.8fr 1fr 0.8fr;
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .crisis-step, .recovery-item, .rts-step {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cluster-grid {
        grid-template-columns: 1fr;
    }
    
    .course-header h2 {
        font-size: 1.5rem;
    }
}

/* Deep Dive Styles */
.deep-dive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1.5rem 0;
}

.deep-dive-btn:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.deep-dive-btn .deep-dive-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deep-dive-btn .deep-dive-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
}

.deep-dive-btn .deep-dive-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.deep-dive-btn .deep-dive-arrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--text-secondary);
}

.deep-dive-btn.active .deep-dive-arrow {
    transform: rotate(180deg);
}

.deep-dive-content {
    display: none;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(6, 78, 59, 0.3) 100%);
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.4s ease;
}

.deep-dive-content.active {
    display: block;
}

.deep-dive-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.deep-dive-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.deep-dive-section {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid var(--primary);
}

.deep-dive-section h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.deep-dive-section h5 {
    color: var(--secondary);
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}

.deep-dive-section p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.video-item {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid var(--border-glow);
}

.video-item h5 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .deep-dive-content {
        padding: 1.25rem;
    }
    
    .deep-dive-title {
        font-size: 1.25rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Course Paywall Styles */
.course-paywall {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.paywall-content {
    max-width: 450px;
    margin: 0 auto;
}

.paywall-icon {
    margin-bottom: 1.5rem;
}

.paywall-icon svg {
    stroke: var(--primary);
}

.course-paywall h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
}

.paywall-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.paywall-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    display: block;
}

.paywall-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.feature-item svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.feature-item.bonus {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border-glow);
}

.feature-item.bonus svg {
    stroke: #fbbf24;
}

.paywall-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: var(--bg-dark);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(52, 211, 153, 0.3);
    transition: all 0.3s ease;
}

.paywall-btn:hover {
    background: linear-gradient(135deg, #4ade80 0%, #34d399 50%, #10b981 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(52, 211, 153, 0.4);
}

.paywall-btn svg {
    stroke: var(--bg-dark);
}

.paywall-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

#course-content-wrapper.locked {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .course-paywall {
        padding: 1.5rem 1.25rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .course-paywall h3 {
        font-size: 1.25rem;
    }
}

/* Course Lesson Enhancements */
.info-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-table th {
    background: var(--primary-faded);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table td {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: rgba(52, 211, 153, 0.05);
}

.info-callout {
    background: rgba(52, 211, 153, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.info-callout strong {
    color: var(--primary);
}

.lesson-video {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lesson-video h6 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.lesson-video .video-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.source-citation {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.source-citation strong {
    color: var(--primary);
}

/* Deep Dive Toggle */
.deep-dive-toggle {
    margin: 1.5rem 0;
    text-align: center;
}

.deep-dive-toggle .deep-dive-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-faded);
    border: 1px solid var(--primary-border);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deep-dive-toggle .deep-dive-btn:hover {
    background: rgba(52, 211, 153, 0.2);
    border-color: var(--primary);
}

.deep-dive-toggle .deep-dive-btn svg {
    width: 20px;
    height: 20px;
}

/* Lesson Section Styles */
.lesson-section.simple-explanation {
    margin-bottom: 1.5rem;
}

.lesson-section.deep-dive {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.lesson-section h5 {
    color: var(--primary);
    font-size: 1.15rem;
    margin: 1.5rem 0 0.75rem;
}

.lesson-section h6 {
    color: var(--text-primary);
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
}

.lesson-section p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lesson-section ul,
.lesson-section ol {
    margin: 0.75rem 0 1.25rem 1.5rem;
}

.lesson-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.lesson-section li strong {
    color: var(--primary);
}

.section-title {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--primary-border);
}

/* ===== Enhanced Course Lesson Styling ===== */
.lesson-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.6) 0%, rgba(6, 78, 59, 0.2) 100%);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lesson-header {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
    padding: 2rem 2.5rem;
    border-bottom: 1px solid rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lesson-number {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.lesson-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Section Styling */
.lesson-section {
    padding: 2.5rem;
}

.lesson-section.simple-explanation {
    background: rgba(0, 0, 0, 0.2);
}

.lesson-section.deep-dive {
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-top: 2px solid var(--primary-border);
}

.section-title {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
}

/* Typography */
.lesson-section h5 {
    color: var(--primary);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(52, 211, 153, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lesson-section h5:first-of-type {
    margin-top: 0.5rem;
}

.lesson-section h6 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.75rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
}

.lesson-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.lesson-section ul,
.lesson-section ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.lesson-section ul li,
.lesson-section ol li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.02rem;
    line-height: 1.75;
}

.lesson-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow);
}

.lesson-section ol {
    counter-reset: list-counter;
}

.lesson-section ol li {
    counter-increment: list-counter;
}

.lesson-section ol li::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-section li strong {
    color: var(--primary);
    font-weight: 600;
}

/* Images */
.lesson-image {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.lesson-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.lesson-image:hover img {
    transform: scale(1.02);
}

.lesson-image .image-credit {
    padding: 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tables */
.info-table {
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.info-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.4);
}

.info-table th {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.25) 0%, rgba(6, 182, 212, 0.15) 100%);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 2px solid var(--primary-border);
}

.info-table td {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table tr:hover td {
    background: rgba(52, 211, 153, 0.08);
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--primary);
}

/* Deep Dive Toggle */
.deep-dive-toggle {
    padding: 0 2.5rem 2rem;
}

.deep-dive-toggle .deep-dive-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: var(--primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.deep-dive-toggle .deep-dive-btn:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.deep-dive-toggle .deep-dive-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
    color: #000;
}

/* Source Citation */
.source-citation {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.source-citation strong {
    color: var(--primary);
}

/* Info Callout */
.info-callout {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-left: 4px solid var(--primary);
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

.info-callout strong {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-section {
        padding: 1.5rem;
    }
    
    .lesson-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .lesson-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .lesson-header h3 {
        font-size: 1.4rem;
    }
    
    .lesson-section h5 {
        font-size: 1.15rem;
    }
    
    .lesson-section p {
        font-size: 1rem;
    }
    
    .deep-dive-toggle {
        padding: 0 1.5rem 1.5rem;
    }
    
    .info-table {
        overflow-x: auto;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}
