:root {
    --primary: #007BFF;
    --primary-hover: #0056b3;
    --success: #28A745;
    --success-hover: #1e7e34;
    --warning: #FFC107;
    --warning-hover: #d39e00;
    --danger: #DC3545;
    --danger-hover: #bd2130;
    --purple: #6f42c1;
    --info: #17a2b8;

    --bg: #F8F9FA;
    --bg-card: #FFFFFF;
    --bg-nav: #FFFFFF;
    --text: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-nav: #161b22;
    --text: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --border: #30363d;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

.main-content {
    flex: 1;
    padding-bottom: 40px;
}

/* Navbar */
.navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.25rem;
    min-width: fit-content;
}

.nav-logo {
    height: 32px;
    width: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.nav-brand i { font-size: 1.4rem; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    min-width: 48px;
    min-height: 48px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    margin-left: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 48px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    background: rgba(0,123,255,0.08);
}

.nav-cta {
    color: var(--warning) !important;
    font-weight: 600;
}

.nav-cta:hover { background: rgba(255,193,7,0.1) !important; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-username {
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    color: var(--text-muted) !important;
    padding: 8px !important;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pro {
    background: linear-gradient(135deg, var(--warning), #ff8c00);
    color: #000;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
    min-width: 48px;
    line-height: 1.2;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,123,255,0.3); }

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

.btn-outline:hover { background: var(--primary); color: white; }

.btn-sm { padding: 6px 14px; font-size: 0.85rem; min-height: 36px; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.card h2, .card h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a365d 50%, #0d2137 100%);
    color: white;
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(0,123,255,0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 50%, rgba(111,66,193,0.1) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-badge i { color: var(--primary); }

/* Why SongVet / Benefits */
.why-songvet { padding: 80px 0; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.benefit-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-highlight {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0,123,255,0.04), rgba(111,66,193,0.04));
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .benefit-highlight {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 1fr auto;
        column-gap: 24px;
    }
    .benefit-highlight .benefit-icon { grid-row: 1 / 3; align-self: start; }
    .benefit-highlight h3 { grid-column: 2; }
    .benefit-highlight p { grid-column: 2; }
    .benefit-highlight .benefit-tag { grid-column: 2; }
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
}

.benefit-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

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

.benefit-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* How It Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

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

/* Features */
.features { padding: 80px 0; }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

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

/* Pricing */
.pricing-preview { padding: 80px 0; }

.pricing-cards, .pricing-comparison {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    position: relative;
    transition: var(--transition);
}

.pricing-card-featured {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 { font-size: 1.3rem; margin-bottom: 8px; }

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

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.pricing-features li i {
    width: 18px;
    text-align: center;
}

.pricing-features li .fa-check { color: var(--success); }
.pricing-features li .fa-times { color: var(--text-muted); }
.pricing-features li.disabled { color: var(--text-muted); }

.pricing-action { text-align: center; }

.pricing-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.current-plan-label {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Page Header */
.page-header {
    padding: 40px 0 24px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header p {
    color: var(--text-secondary);
    margin-top: 8px;
}

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

/* Scan Page */
.scan-container {
    max-width: 700px;
    margin: 0 auto;
}

.stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 32px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.step.active .step-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}

.step.completed .step-circle {
    background: var(--success);
    color: white;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.step.active .step-label { color: var(--primary); }

.step-line {
    flex: 1;
    height: 3px;
    background: var(--border);
    margin: 0 8px;
    margin-bottom: 20px;
    max-width: 80px;
    border-radius: 2px;
    transition: var(--transition);
}

.step-line.active { background: var(--primary); }

.scan-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.scans-remaining {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(0,123,255,0.03);
}

.upload-zone.dragover {
    transform: scale(1.01);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

.upload-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-zone h3 { margin-bottom: 8px; }

.upload-formats {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

.file-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-info i { font-size: 2rem; color: var(--primary); }
.file-name { font-weight: 600; display: block; }
.file-size { font-size: 0.85rem; color: var(--text-secondary); }

.disclaimer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    overflow-y: auto;
}

.disclaimer-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.disclaimer-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 16px;
}

.disclaimer-modal h2 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.disclaimer-text {
    text-align: left;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.disclaimer-text ul {
    margin: 12px 0;
    padding-left: 20px;
}

.disclaimer-text li {
    margin-bottom: 8px;
}

.disclaimer-text a {
    color: var(--primary);
    text-decoration: underline;
}

.disclaimer-items {
    text-align: left;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.disclaimer-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    line-height: 1.5;
    transition: var(--transition);
}

.disclaimer-item:has(input:checked) {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.06);
}

.disclaimer-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.disclaimer-check-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.disclaimer-item:has(input:checked) .disclaimer-check-label {
    color: var(--success);
}

.disclaimer-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--success);
}

.disclaimer-item a {
    color: var(--primary);
    text-decoration: underline;
}

.disclaimer-intro {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.6;
}

.terms-agree-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text);
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    line-height: 1.5;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 12px;
}

.terms-agree-row:has(input:checked) {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.06);
}

.terms-agree-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    accent-color: var(--success);
    margin-top: 2px;
}

.terms-agree-row a {
    color: var(--primary);
    text-decoration: underline;
}

.report-disclaimer-text {
    text-align: left;
    margin-bottom: 24px;
}

.report-disclaimer-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text);
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    line-height: 1.6;
    transition: var(--transition);
}

.report-disclaimer-check:has(input:checked) {
    border-color: var(--success);
    background: rgba(40, 167, 69, 0.06);
}

.report-disclaimer-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    accent-color: var(--success);
    margin-top: 2px;
}

#viewReportBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#viewReportBtn.btn-ready {
    animation: btnPulse 1s ease-in-out;
}

@keyframes btnPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.file-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.file-list-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-items {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.file-item:last-child {
    border-bottom: none;
}

.file-item > i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-item-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.file-item-size {
    color: var(--text-secondary);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.file-item-status {
    font-size: 0.8rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 80px;
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.9rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.file-item-remove:hover {
    color: var(--danger);
}

.file-list-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.scan-limit-warning {
    padding: 12px 16px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    color: var(--warning);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-limit-warning a {
    color: var(--primary);
    text-decoration: underline;
    margin-left: 4px;
}

.batch-results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.batch-results-header {
    text-align: center;
    margin-bottom: 24px;
}

.batch-results-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.batch-results-header p {
    color: var(--text-secondary);
}

.batch-results-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.batch-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.batch-result-item:last-child {
    border-bottom: none;
}

.batch-result-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.batch-result-info i {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.batch-result-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.batch-result-score {
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

.batch-result-error-msg {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .disclaimer-modal {
        padding: 20px;
        max-height: 85vh;
    }

    .file-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .file-item-name {
        width: 100%;
        order: 1;
    }

    .file-item-size {
        order: 2;
    }

    .file-item-status {
        order: 3;
    }

    .batch-result-item {
        flex-wrap: wrap;
        gap: 8px;
    }

    .file-list-actions {
        flex-direction: column;
    }
}

/* Processing Animation */
.processing-container {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.processing-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    animation: pulse 2s ease-out infinite;
    opacity: 0;
}

.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

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

.processing-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--primary);
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -55%) scale(1.05); }
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    margin: 20px auto;
}

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

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-fill.progress-pulse {
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 40px;
}

.processing-stage {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 12px;
}

.fun-fact {
    margin-top: 24px;
    padding: 16px;
    background: rgba(0,123,255,0.05);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.fun-fact i { color: var(--warning); font-size: 1.2rem; }

.limit-reached {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.limit-reached i {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 16px;
}

.result-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.result-disclaimer i {
    color: var(--warning);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.result-disclaimer p {
    margin: 0;
}

/* Result Page */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
    align-items: start;
}

.risk-gauge-card { text-align: center; }

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.circular-gauge {
    position: relative;
    width: 200px;
    height: 200px;
}

.gauge-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 12;
}

.gauge-fill {
    fill: none;
    stroke: var(--primary);
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
}

.gauge-score {
    font-size: 3rem;
    font-weight: 800;
}

.gauge-percent {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.risk-label {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 20px;
}

.risk-low { color: var(--success); background: rgba(40,167,69,0.1); }
.risk-medium { color: var(--warning-hover); background: rgba(255,193,7,0.15); }
.risk-high { color: var(--danger); background: rgba(220,53,69,0.1); }

.advice-card .advice-main {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.advice-actions h3 { margin-top: 20px; font-size: 1rem; }

.advice-actions ul {
    list-style: none;
    margin-top: 8px;
}

.advice-actions li {
    padding: 6px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95rem;
}

.advice-actions li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 0.8rem;
}

.matches-list { display: flex; flex-direction: column; gap: 8px; }

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.match-track { font-weight: 600; display: block; }
.match-artist { color: var(--text-secondary); font-size: 0.9rem; }
.match-type { font-size: 0.8rem; color: var(--text-muted); text-transform: capitalize; }

.match-score {
    font-size: 1.2rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

/* Sidebar details */
.detail-list { display: flex; flex-direction: column; gap: 12px; }

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.detail-label { color: var(--text-secondary); font-size: 0.9rem; }
.detail-value { font-weight: 600; font-size: 0.9rem; }

.ai-score-container { margin-top: 8px; }

.ai-score-bar {
    height: 10px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 8px;
}

.ai-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--warning), var(--danger));
    border-radius: 5px;
    transition: width 1.5s ease;
}

.ai-score-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.action-buttons { display: flex; flex-direction: column; gap: 8px; }

/* History Table */
.history-table-container { overflow-x: auto; }

.history-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-table th {
    background: var(--bg);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
}

.history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.history-table tr:hover td { background: rgba(0,123,255,0.02); }

.file-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-cell i { color: var(--primary); }

.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-completed { background: rgba(40,167,69,0.1); color: var(--success); }
.status-processing { background: rgba(0,123,255,0.1); color: var(--primary); }
.status-failed { background: rgba(220,53,69,0.1); color: var(--danger); }
.status-active { background: rgba(40,167,69,0.1); color: var(--success); }
.status-canceled { background: rgba(220,53,69,0.1); color: var(--danger); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px 0;
}

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

/* Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content { display: flex; flex-direction: column; }
.stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-title { font-size: 0.85rem; color: var(--text-secondary); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card { min-height: 300px; }
.chart-card canvas { max-height: 260px; }

.activity-list { display: flex; flex-direction: column; }

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.activity-item:hover { background: rgba(0,123,255,0.02); padding-left: 8px; }
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,123,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.activity-info { flex: 1; }
.activity-title { font-weight: 600; display: block; font-size: 0.95rem; }
.activity-date { font-size: 0.8rem; color: var(--text-secondary); }

/* Account */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.profile-info h2 { margin-bottom: 4px; }
.profile-info p { color: var(--text-secondary); font-size: 0.9rem; }
.member-since { font-size: 0.85rem; color: var(--text-muted); }

.subscription-info { display: flex; flex-direction: column; gap: 16px; }

.current-plan {
    display: flex;
    align-items: center;
    gap: 12px;
}

.plan-name {
    font-size: 1.3rem;
    font-weight: 800;
}

.usage-stats { display: flex; flex-direction: column; gap: 12px; }

.usage-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.usage-label { color: var(--text-secondary); }
.usage-value { font-weight: 700; }

/* Subscribe */
.subscribe-container { max-width: 800px; margin: 0 auto; }

/* Recent Scans */
.recent-scans { padding: 60px 0; }

.scans-list { display: flex; flex-direction: column; gap: 8px; }

.scan-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.scan-item:hover { box-shadow: var(--shadow-lg); transform: translateX(4px); }

.scan-info { display: flex; flex-direction: column; }
.scan-filename { font-weight: 600; }
.scan-date { font-size: 0.85rem; color: var(--text-secondary); }

.scan-score {
    font-size: 1.3rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

/* Quick Result */
.quick-result {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
}

/* Alerts */
.flash-messages {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 20px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
}

.alert-success { background: rgba(40,167,69,0.1); color: var(--success); border: 1px solid rgba(40,167,69,0.2); }
.alert-error { background: rgba(220,53,69,0.1); color: var(--danger); border: 1px solid rgba(220,53,69,0.2); }
.alert-warning { background: rgba(255,193,7,0.1); color: var(--warning-hover); border: 1px solid rgba(255,193,7,0.2); }

.alert-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-page i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-page h1 { margin-bottom: 12px; }
.error-page p { color: var(--text-secondary); margin-bottom: 24px; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); margin-bottom: 20px; }

/* Footer */
.footer {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.legal-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.legal-page .legal-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.legal-page h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.legal-page ul, .legal-page ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

.legal-page a {
    color: var(--primary);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        margin-left: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-username { display: none; }
    .result-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .hero { padding: 48px 0; }
    .hero-title { font-size: 1.8rem; }
    .features-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
    .benefit-highlight { grid-column: auto; }
    .steps-grid { grid-template-columns: 1fr; }
    .pricing-cards, .pricing-comparison { flex-direction: column; align-items: center; }
    .pricing-card-featured { transform: none; }
    .account-grid { grid-template-columns: 1fr; }
    .profile-section { flex-direction: column; text-align: center; }
}

/* Accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus { top: 0; }

/* Melody DNA */
.melody-dna-img {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--border);
}

/* Platform Readiness */
.platform-grid {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.platform-item {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

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

.platform-name {
    font-weight: 600;
    font-size: 1rem;
}

.platform-name i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.platform-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.platform-badge-clear { background: rgba(40, 167, 69, 0.15); color: #28A745; }
.platform-badge-warning { background: rgba(255, 193, 7, 0.15); color: #e6a800; }
.platform-badge-blocked { background: rgba(220, 53, 69, 0.15); color: #DC3545; }

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

.platform-score-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.platform-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.platform-fill-clear { background: #28A745; }
.platform-fill-warning { background: #FFC107; }
.platform-fill-blocked { background: #DC3545; }

.platform-notes {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.platform-notes li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 2px 0;
}

.platform-notes li::before {
    content: '\2022';
    margin-right: 0.5rem;
    color: var(--primary);
}

/* Certificate Page */
.certificate-page {
    max-width: 700px;
    margin: 2rem auto;
}

.certificate-frame {
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.certificate-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007BFF, #28A745, #FFC107, #007BFF);
}

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

.certificate-header h1 {
    font-size: 1.75rem;
    margin: 1rem 0 0.25rem;
    color: var(--text);
}

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

.certificate-body {
    text-align: center;
}

.certificate-seal {
    margin: 1rem 0;
}

.certificate-track {
    font-size: 1.25rem;
    margin: 1rem 0 1.5rem;
    color: var(--primary);
    word-break: break-word;
}

.certificate-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
    margin: 1.5rem 0;
}

.cert-detail {
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

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

.cert-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.certificate-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.certificate-footer p {
    margin: 0.25rem 0;
}

.certificate-banner {
    margin-bottom: 1.5rem;
    border: none !important;
}

@media (max-width: 768px) {
    .certificate-details {
        grid-template-columns: 1fr;
    }
    .certificate-frame {
        padding: 1.5rem;
    }
}

.ai-detail-item {
    margin-bottom: 0.75rem;
}
.ai-detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.score-guide {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.score-range {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.score-range-active {
    border-color: var(--primary);
    background: rgba(0, 123, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}
[data-theme="dark"] .score-range-active {
    background: rgba(0, 123, 255, 0.1);
}
.score-range-bar {
    width: 4px;
    min-height: 100%;
    border-radius: 4px;
    flex-shrink: 0;
}
.score-range-content {
    flex: 1;
}
.score-range-content strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}
.score-range-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detection-explainer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.detection-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.detection-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.detection-item strong {
    display: block;
    margin-bottom: 0.15rem;
}
.detection-item p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.modification-tips {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.mod-tip {
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--bg);
    border-left: 3px solid var(--primary);
}
.mod-tip strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text);
}
.mod-tip strong i {
    color: var(--primary);
    margin-right: 0.35rem;
}
.mod-tip p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.pdf-viewer-container {
    width: 100%;
    height: calc(100vh - 140px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.pdf-viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
}
@media (max-width: 768px) {
    .pdf-viewer-container {
        height: calc(100vh - 120px);
        border-radius: 0;
    }
}
