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

:root {
    --bg: #f8f9fb;
    --accent: #c41e3a;
    --accent-hover: #a8182f;
    --accent-light: #fef2f2;
    --green: #16a34a;
    --blue: #2563eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --card: #ffffff;
    --text: #1a1a2e;
    --muted: #6b7280;
    --line: #e5e7eb;
    --light-blue: #eff6ff;
    --light-green: #f0fdf4;
    --border: #d1d5db;
}

.hero-title,
.section-title,
.dashboard-title,
.final-cta-content h2 {
    font-family: 'DM Sans', 'Inter', sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--card);
    color: var(--text);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#username-display {
    white-space: nowrap;
    font-weight: 500;
    color: var(--text);
    font-size: 0.9rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary {
    background: var(--blue);
    color: white;
    border: 1px solid var(--blue);
}

.btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Loading & Spinner */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

@keyframes pulse-green {
    0% {
        border-color: var(--green);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }
    50% {
        border-color: var(--green);
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
    100% {
        border-color: var(--green);
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--card);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: var(--muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding: 0.8rem;
    padding-right: 50px;
    border: 2px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    flex: 1;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    color: var(--muted);
    transition: color 0.3s;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
}

.password-toggle:hover {
    color: var(--blue);
    background-color: rgba(37, 99, 235, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: var(--blue);
    background-color: rgba(37, 99, 235, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 5px;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .auth-buttons {
        gap: 0.3rem;
    }

    .user-menu {
        gap: 0.25rem;
        justify-content: flex-end;
        max-width: 50%;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    #username-display {
        font-size: 0.7rem;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1;
    }

    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: 4px;
    }

    .modal-content {
        margin: 5% auto;
        padding: 1.5rem;
        width: 95%;
        max-width: 350px;
    }

    .form-group input {
        padding: 0.7rem;
    }
}

/* Styles for larger mobile screens (iPhone Pro Max, etc.) */
@media (max-width: 932px) and (min-width: 769px) {
    .logo {
        font-size: 1.1rem;
    }

    .user-menu {
        gap: 0.4rem;
        max-width: 45%;
    }

    #username-display {
        font-size: 0.8rem;
        max-width: 120px;
    }

    .btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 8px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .user-menu {
        gap: 0.15rem;
        flex-direction: row;
        align-items: center;
        max-width: 48%;
        flex-wrap: nowrap;
    }

    #username-display {
        font-size: 0.65rem;
        max-width: 70px;
        text-align: right;
        line-height: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .user-menu .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
        margin: 0;
        white-space: nowrap;
        border-radius: 3px;
    }

    .modal-content {
        margin: 2% auto;
        padding: 1.2rem;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Hidden class */
.hidden {
    display: none !important;
}

/* Show class */
.show {
    display: block !important;
}

/* Feedback button styles */
.feedback-btn {
    transition: all 0.2s ease;
    opacity: 0.6;
}

.feedback-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.active-thumbs-up {
    opacity: 1;
    background: #e6f7ff;
    border-radius: 4px;
    color: #16a34a;
}

.active-thumbs-down {
    opacity: 1;
    background: #fff2f0;
    border-radius: 4px;
    color: #ff4d4f;
}

/* Admin feedback styles */
.feedback-item {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin: 1rem 0;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.rating-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.rating-positive {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #86efac;
}

.rating-negative {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #fecaca;
}
/* New Landing Page Styles - Append to style.css */

/* Hero Section */
.hero-section {
    min-height: 90vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>') repeat;
    background-size: 100px 100px;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.2);
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(196, 30, 58, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(135deg, #2563eb, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}

/* Social Proof Strip */
.social-proof-strip {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
}

.social-proof-strip .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-proof-text {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.social-proof-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.proof-logo {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.7;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    background: var(--light-blue);
    color: var(--blue);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* How It Works Section */
.how-it-works-section {
    padding: 6rem 0;
    background: white;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-card {
    background: var(--bg);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    position: relative;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--blue);
    background: white;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.step-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--green));
    align-self: center;
    margin-top: 3rem;
}

/* Features/Value Props Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg);
}

.value-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.value-prop-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.value-prop-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--blue);
}

.value-prop-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.value-prop-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Phases Section */
.phases-section {
    padding: 6rem 0;
    background: white;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.phase-card {
    background: var(--bg);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.phase-card:hover {
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    border-color: var(--accent);
    background: white;
}

.phase-number-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.phase-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.phase-card p {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Sample Report Section */
.sample-report-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.sample-report-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sample-report-content .section-badge {
    display: inline-block;
}

.sample-report-content .section-title {
    text-align: left;
    font-size: 2.25rem;
}

.sample-report-description {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sample-report-features {
    list-style: none;
    margin-bottom: 2rem;
}

.sample-report-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text);
}

.report-mockup {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    border: 1px solid var(--line);
}

.report-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-title {
    color: white;
    font-weight: 600;
}

.report-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
}

.report-body {
    padding: 1.5rem;
}

.report-score {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-green);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.score-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--green);
}

.score-max {
    font-size: 1.5rem;
    color: var(--muted);
}

.report-highlights {
    margin-bottom: 1.5rem;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.highlight.good {
    background: var(--light-green);
    color: var(--green);
}

.highlight.improve {
    background: var(--light-blue);
    color: var(--blue);
}

.highlight-icon {
    font-weight: 700;
}

.report-drill {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}

.drill-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.drill-name {
    font-weight: 600;
    color: var(--text);
}

/* Testimonials Section */
.testimonials-section {
    padding: 6rem 0;
    background: white;
}

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

.testimonial-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.testimonial-stars {
    color: #faad14;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-quote {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text);
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted);
}

/* Final CTA Section */
.final-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
}

.final-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.final-cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.final-cta-buttons {
    margin-bottom: 1.5rem;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 30, 58, 0.4);
}

.cta-note {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    padding: 4rem 0 2rem;
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: white;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .phases-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sample-report-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .step-connector {
        display: none;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .final-cta-content h2 {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }
}

/* =============================================
   DASHBOARD STYLES - Modern Card Design
   ============================================= */

.dashboard-page {
    min-height: 100vh;
    background: var(--bg);
    padding-top: 70px;
}

.dashboard-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1520 50%, #3d1024 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-welcome {
    flex: 1;
}

.dashboard-badge {
    display: inline-block;
    background: rgba(196, 30, 58, 0.2);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(196, 30, 58, 0.3);
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
}

.dashboard-back {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-back:hover {
    background: rgba(255,255,255,0.2);
}

.dashboard-content {
    padding-bottom: 4rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Cards - Unified Style */
.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--line);
    transition: box-shadow 0.2s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.results-card {
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-icon {
    background: var(--light-blue);
    color: var(--blue);
}

.results-icon {
    background: var(--light-green);
    color: var(--green);
}

.history-icon {
    background: #f3f0ff;
    color: #722ed1;
}

.card-description {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Upload Buttons */
.upload-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.btn-upload-primary {
    flex: 1;
    min-width: 140px;
    background: linear-gradient(135deg, var(--blue), #1d4ed8);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-upload-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-upload-primary:disabled,
.btn-upload-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-upload-secondary {
    flex: 1;
    min-width: 140px;
    background: white;
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--line);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-upload-secondary:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
}

.upload-formats {
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

/* Upload Status */
.upload-status {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    text-align: center;
}

.upload-status.processing {
    border-left: 4px solid var(--blue);
    background: var(--light-blue);
}

.upload-status.success {
    border-left: 4px solid var(--green);
    background: var(--light-green);
}

.upload-status.error {
    border-left: 4px solid #ff4d4f;
    background: #fff2f0;
}

.error-content {
    text-align: center;
    padding: 1.5rem;
}

.error-message {
    color: #ff4d4f;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #1677ff;
}

.retry-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
}

/* Feedback Content - Analysis Results Card Style */
.feedback-content {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.5rem;
}

.feedback-content .score-section {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-green);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.feedback-content .score-label {
    display: block;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.feedback-content .score-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--green);
}

.feedback-content .score-max {
    font-size: 1.5rem;
    color: var(--muted);
}

.feedback-content .highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.feedback-content .highlight-good {
    background: var(--light-green);
    color: var(--green);
}

.feedback-content .highlight-improve {
    background: var(--light-blue);
    color: var(--blue);
}

.feedback-content .drill-recommendation {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--blue);
    margin-top: 1rem;
}

.feedback-content .drill-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.feedback-content .drill-name {
    font-weight: 600;
    color: var(--text);
}

/* History Content */
.history-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.history-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

.history-item-date {
    font-size: 0.875rem;
    color: var(--muted);
}

.history-item-score {
    background: var(--light-green);
    color: var(--green);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.history-item-summary {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--muted);
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.empty-state-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.empty-state-subtext {
    font-size: 0.9rem;
    color: var(--muted);
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 2rem 0;
    }

    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-title {
        font-size: 1.75rem;
    }

    .dashboard-back {
        width: 100%;
        justify-content: center;
    }

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

    .upload-buttons {
        flex-direction: column;
    }

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

/* =============================================
   ANALYSIS REPORT CARD STYLES
   ============================================= */

.analysis-report-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid var(--line);
}

.report-card-header {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-card-header:hover {
    background: linear-gradient(135deg, #22223a, #1a2848);
}

.report-card-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

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

.header-actions .rename-btn,
.header-actions .delete-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    margin: 0;
}

.report-card-date {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
}

.header-chevron {
    color: rgba(255,255,255,0.6);
    transition: transform 0.3s ease;
}

.header-chevron.rotated {
    transform: rotate(180deg);
}

.header-score {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.report-card-body {
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.report-card-body.collapsed {
    display: none;
}

.score-section {
    text-align: center;
    padding: 1.25rem;
    background: var(--light-green);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.score-section .score-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.25rem;
}

.score-section .score-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green);
}

.score-section .score-max {
    font-size: 1.25rem;
    color: var(--muted);
}

.highlights-section {
    margin-bottom: 1.25rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.highlight-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight-good {
    background: var(--light-green);
    color: var(--green);
}

.highlight-improve {
    background: var(--light-blue);
    color: var(--blue);
}

.drill-recommendation {
    background: var(--bg);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    border-left: 3px solid var(--blue);
}

.drill-recommendation .drill-label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.drill-recommendation .drill-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.analysis-report-card.is-collapsed .history-entry-footer {
    border-radius: 0 0 12px 12px;
}

.coach-notes-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 3px solid var(--green);
}

.coach-notes-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.coach-notes-header svg {
    color: var(--green);
}

.coach-notes-content {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
}

.rename-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-right: 0.25rem;
}

.rename-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

/* History Entry Card */
.history-entry-card {
    position: relative;
    margin-bottom: 1rem;
}

.athlete-tag {
    background: var(--light-blue);
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 6px 6px 0 0;
    display: inline-block;
    margin-bottom: -1px;
}

.history-entry-actions {
    display: none;
}

.delete-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #ff4d4f;
    border-color: #ff4d4f;
    color: white;
}

.history-entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: var(--bg);
    border-radius: 0 0 12px 12px;
    margin-top: 0;
    border-top: 1px solid var(--line);
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-label {
    font-size: 0.7rem;
    color: var(--muted);
}

.rate-btn {
    background: none;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.15rem;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.rate-btn:hover, .rate-btn.active-up, .rate-btn.active-down {
    opacity: 1;
    transform: scale(1.15);
}

.comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.comment-btn svg {
    width: 14px;
    height: 14px;
}

.comment-btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.user-comment {
    padding: 0.75rem 1rem;
    background: #f6f8fa;
    border-left: 3px solid var(--blue);
    margin: 0 1rem 1rem;
    border-radius: 0 6px 6px 0;
    font-size: 0.9rem;
}

.comment-box {
    padding: 1rem;
    background: var(--bg);
    margin: 0 1rem 1rem;
    border-radius: 8px;
}

.comment-box textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.save-btn {
    padding: 0.4rem 1rem;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

.cancel-btn {
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Mobile responsive styles for header actions */
@media (max-width: 480px) {
    .report-card-header {
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .report-card-title {
        font-size: 0.75rem;
        gap: 0.3rem;
        flex: 1;
        min-width: 0;
    }

    .report-card-title span:not(.header-score) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .header-score {
        font-size: 0.65rem;
        padding: 0.1rem 0.35rem;
    }

    .header-right {
        gap: 0.35rem;
    }

    .report-card-date {
        font-size: 0.65rem;
    }

    .header-actions .rename-btn,
    .header-actions .delete-btn {
        width: 24px;
        height: 24px;
    }

    .header-actions svg {
        width: 12px;
        height: 12px;
    }

    .header-chevron {
        width: 14px;
        height: 14px;
    }
}

/* ============ Dashboard Tabs ============ */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: 0;
}

.dashboard-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s ease;
}

.dashboard-tab:hover {
    color: var(--text);
    background: var(--light-blue);
}

.dashboard-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.dashboard-tab svg {
    flex-shrink: 0;
}

/* ============ Athletes Section ============ */
.athletes-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.athletes-card .header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.athletes-icon {
    background: var(--light-green);
    color: var(--green);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.athletes-content {
    margin-top: 1rem;
}

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

.athlete-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.athlete-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

.athlete-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.athlete-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.athlete-info {
    flex: 1;
    min-width: 0;
}

.athlete-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.15rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.athlete-bats {
    font-size: 0.8rem;
    color: var(--muted);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--line);
    background: var(--card);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--light-blue);
    color: var(--blue);
    border-color: var(--blue);
}

.athlete-card-body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.athlete-detail {
    font-size: 0.85rem;
    color: var(--text);
}

.athlete-detail .detail-label {
    color: var(--muted);
}

/* ============ Athlete Modal ============ */
.modal-wide {
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--line);
    border-radius: 6px;
    font-size: 1rem;
    background: var(--card);
    color: var(--text);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--blue);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* Empty state for athletes */
.athletes-content .empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.athletes-content .empty-state-icon {
    color: var(--muted);
    margin-bottom: 1rem;
}

.athletes-content .empty-state-subtext {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Mobile responsive for athletes */
@media (max-width: 600px) {
    .dashboard-tabs {
        gap: 0;
    }

    .dashboard-tab {
        flex: 1;
        justify-content: center;
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .dashboard-tab svg {
        width: 16px;
        height: 16px;
    }

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

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

    .modal-wide {
        max-width: 95%;
    }

    .athletes-card .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .athletes-card .header-right {
        width: 100%;
    }

    .athletes-card .header-right .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============ Swing Summary & Score Bars ============ */
.scores-unavailable {
    color: var(--muted);
    font-size: 0.9rem;
    padding: 1rem;
    text-align: center;
    background: var(--bg);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.swing-summary-section {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.summary-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.overall-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.75rem;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--line);
}

.overall-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

.overall-score-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.summary-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.summary-bullet {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

.summary-bullet.strength svg {
    color: #16a34a;
}

.summary-bullet.fix svg {
    color: var(--blue);
}

.category-scores-section {
    background: var(--bg);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.category-scores-header {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.score-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.score-bar-row:last-child {
    margin-bottom: 0;
}

.score-bar-label {
    width: 80px;
    font-size: 0.85rem;
    color: var(--text);
    flex-shrink: 0;
}

.score-bar-track {
    flex: 1;
    height: 8px;
    background: var(--line);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.score-bar-fill.score-good { background: #16a34a; }
.score-bar-fill.score-mid  { background: #d97706; }
.score-bar-fill.score-low  { background: #dc2626; }

.score-bar-value {
    width: 24px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 480px) {
    .summary-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .overall-score-box {
        align-self: center;
    }

    .score-bar-label {
        width: 70px;
        font-size: 0.8rem;
    }
}

/* ===== Parent Dashboard ===== */
.parent-dashboard {
    margin-bottom: 1.5rem;
}

.parent-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.parent-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.parent-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.parent-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parent-card-icon.progress { background: var(--light-green); color: var(--green); }
.parent-card-icon.focus { background: #fef3c7; color: #d97706; }
.parent-card-icon.plan { background: #dbeafe; color: #2563eb; }

.parent-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

/* Progress Card */
.progress-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.progress-score-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green);
}

.progress-score-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.mini-trend {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
}

.mini-bar {
    flex: 1;
    min-width: 12px;
    background: var(--green);
    border-radius: 3px 3px 0 0;
    transition: height 0.3s ease;
}

.mini-bar.latest {
    background: var(--blue);
}

.trend-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

/* Focus Card */
.focus-main {
    margin-bottom: 0.75rem;
}

.focus-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.focus-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #d97706;
}

.strength-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.strength-label {
    font-size: 0.75rem;
    color: var(--muted);
}

.strength-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--green);
}

/* Plan Card */
.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.4;
}

.plan-item:not(:last-child) {
    border-bottom: 1px solid var(--line);
}

.plan-bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Dashboard Empty State */
.dashboard-empty {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dashboard-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.dashboard-empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.dashboard-empty-text {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.dashboard-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--green);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-empty-cta:hover {
    text-decoration: underline;
}

/* Single Swing State */
.single-swing-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

/* Rate Buttons (replacing thumbs) */
.rate-buttons {
    display: flex;
    gap: 0.5rem;
}

.rate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.rate-button:hover {
    border-color: var(--green);
    color: var(--text);
}

.rate-button.active-helpful {
    background: var(--light-green);
    border-color: var(--green);
    color: var(--green);
}

.rate-button.active-not-helpful {
    background: #fef2f2;
    border-color: #ef4444;
    color: #ef4444;
}

.rate-button svg {
    width: 14px;
    height: 14px;
}

/* Trend axis labels */
.trend-axis {
    display: flex;
    justify-content: space-between;
    margin-top: 0.35rem;
}

.trend-axis-label {
    font-size: 0.65rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Focus why text */
.focus-why {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-style: italic;
}

/* View all swings button */
.view-all-container {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-all-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Parent Dashboard Mobile */
@media (max-width: 768px) {
    .parent-dashboard-grid {
        display: flex;
        flex-direction: column;
    }

    .card-focus { order: 1; }
    .card-plan { order: 2; }
    .card-progress { order: 3; }

    .single-swing-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   AUTH MODAL ENHANCEMENTS
   ============================================= */

.btn-full {
    width: 100%;
}

.auth-divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid var(--line);
}

.auth-divider-text {
    display: inline-block;
    padding: 0 10px;
    background: var(--card);
    position: relative;
    z-index: 1;
    color: var(--muted);
    font-size: 0.875rem;
}

.oauth-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.btn-oauth {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.forgot-password-link {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password-link a {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-password-link a:hover {
    color: var(--accent);
}

/* Modal polish */
.modal-content h2 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.modal-content {
    border-top: 4px solid var(--accent);
}

/* Footer logo flex */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   Auth Page (Reset Password standalone page)
   ============================================= */
.auth-page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 88px;
    padding-bottom: 2rem;
    background: var(--bg);
}

.auth-page-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
}

/* Primary actions on the reset page use accent red, matching landing CTAs */
.auth-page-card .btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.auth-page-card .btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.auth-page-title {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.auth-page-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Inline field validation error */
.field-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

/* Block-level form error / info banner */
.form-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.form-error-message a {
    color: #b91c1c;
    text-decoration: underline;
}

/* Reset success / error full-card states */
.reset-result-state {
    text-align: center;
    padding: 1rem 0;
}

.reset-result-state svg {
    margin-bottom: 1.25rem;
}

.reset-result-state h2 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.reset-result-state p {
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* Forgot-password modal success state */
.modal-success-state {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.modal-success-state svg {
    margin-bottom: 1rem;
}

.modal-success-state h3 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.modal-success-state p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
