/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --primary-bg: #f5f3ff;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --text-primary: #1e1b4b;
    --text-secondary: #4c4676;
    --text-muted: #8b83b0;
    --text-light: #a5a0c0;

    --bg-primary: #ffffff;
    --bg-secondary: #faf9ff;
    --bg-tertiary: #f3f1ff;
    --bg-card: #ffffff;

    --border: #e8e5f5;
    --border-light: #f0edfa;

    --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.06);
    --shadow-md: 0 4px 12px rgba(124, 58, 237, 0.08);
    --shadow-lg: 0 8px 30px rgba(124, 58, 237, 0.12);
    --shadow-xl: 0 16px 50px rgba(124, 58, 237, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--primary);
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-light);
}

/* ========== PAGES ========== */
.page {
    display: none;
    padding-top: 72px;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: calc(100vh - 72px);
    padding: 60px 48px;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    right: 10%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    top: 40%;
    right: 30%;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-visual {
    flex-shrink: 0;
    z-index: 1;
}

.hair-visual {
    position: relative;
    width: 400px;
    height: 400px;
}

.visual-circle {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-svg {
    width: 100%;
    height: 100%;
    animation: slowRotate 20s linear infinite;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.scan-ring {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 1;
    stroke-dasharray: 8 4;
}

.scan-ring-inner {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-dasharray: 4 8;
}

.scan-cross {
    stroke: var(--primary-light);
    stroke-width: 0.5;
    stroke-dasharray: 2 4;
}

.scan-dot {
    fill: var(--primary-bg);
    stroke: var(--primary);
    stroke-width: 2;
}

.floating-label {
    position: absolute;
    padding: 4px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
}

.floating-label.top { top: 20px; left: 50%; transform: translateX(-50%); }
.floating-label.right { right: 0; top: 50%; transform: translateY(-50%); animation-delay: 1s; }
.floating-label.bottom { bottom: 20px; left: 50%; transform: translateX(-50%); animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(-50%); }
    50% { transform: translateY(-8px) translateX(-50%); }
}

.floating-label.right {
    animation-name: floatRight;
}

@keyframes floatRight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
}

/* ========== SECTIONS ========== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-primary);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    background: var(--bg-secondary);
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 300px;
    padding: 32px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.step-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.step-icon svg {
    width: 100%;
    height: 100%;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    flex-shrink: 0;
    color: var(--primary-light);
}

.step-connector svg {
    width: 100%;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-icon.purple { background: #f3e8ff; color: #7c3aed; }
.feature-icon.blue { background: #e0f2fe; color: #0284c7; }
.feature-icon.green { background: #dcfce7; color: #16a34a; }
.feature-icon.orange { background: #fff7ed; color: #ea580c; }
.feature-icon.pink { background: #fce7f3; color: #db2777; }
.feature-icon.teal { background: #ccfbf1; color: #0d9488; }

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== CTA ========== */
.cta-section {
    background: var(--bg-secondary);
}

.cta-card {
    text-align: center;
    padding: 64px 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    color: white;
}

.cta-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cta-card p {
    opacity: 0.85;
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.cta-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ========== ANALYZE PAGE ========== */
.analyze-container {
    padding-top: 40px;
    padding-bottom: 80px;
}

.analyze-header {
    text-align: center;
    margin-bottom: 40px;
}

.analyze-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.analyze-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Progress Bar */
.analysis-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 48px;
    gap: 0;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: var(--transition);
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

.progress-step.completed .step-circle {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.progress-step span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.progress-step.active span {
    color: var(--text-primary);
}

.progress-step.completed span {
    color: var(--success);
}

.progress-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin: 0 12px;
    transition: var(--transition);
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.upload-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.upload-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.upload-card.has-image {
    border-style: solid;
    border-color: var(--success);
}

.upload-zone {
    position: relative;
    width: 100%;
    height: 280px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.remove-btn:hover {
    background: var(--danger);
}

.upload-placeholder {
    text-align: center;
    padding: 24px;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: var(--primary-light);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-placeholder h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.upload-placeholder p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.upload-hint {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.upload-status {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.pending { background: var(--text-light); }
.status-dot.uploaded { background: var(--success); }

/* Additional Info */
.additional-info {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 32px;
}

.additional-info h3 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.info-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.info-field select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* Concern Chips */
.concerns-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.concerns-section h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.concern-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.concerns-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.concern-chip {
    cursor: pointer;
    user-select: none;
}

.concern-chip input[type="checkbox"] {
    display: none;
}

.chip-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    transition: var(--transition);
}

.chip-icon {
    font-size: 1rem;
}

.concern-chip:hover .chip-content {
    border-color: var(--primary-light);
    background: var(--primary-bg);
}

.concern-chip input[type="checkbox"]:checked + .chip-content {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.concern-chip input[type="checkbox"]:checked + .chip-content .chip-icon {
    filter: none;
}

/* ========== ANALYZING STEP ========== */
.analyzing-container {
    text-align: center;
    padding: 80px 0;
}

.analyzing-visual {
    margin-bottom: 32px;
}

.scan-circle {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 0 auto;
}

.scan-ring-outer {
    position: absolute;
    inset: 0;
    border: 3px solid var(--primary-bg);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.scan-ring-inner {
    position: absolute;
    inset: 16px;
    border: 2px solid var(--primary-bg);
    border-bottom: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite reverse;
}

.scan-ring-core {
    position: absolute;
    inset: 32px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-ring-core::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.scan-sweep {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(124, 58, 237, 0.1) 25%, transparent 50%);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.analyzing-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.analyzing-status {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.analysis-tasks {
    max-width: 400px;
    margin: 0 auto 32px;
    text-align: left;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    opacity: 0.4;
    transition: var(--transition);
}

.task-item.active {
    opacity: 1;
    color: var(--text-primary);
}

.task-item.completed {
    opacity: 0.7;
    color: var(--success);
}

.task-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

.task-item.completed .task-spinner {
    border: none;
    background: none;
    animation: none;
}

.task-item.completed .task-spinner::after {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
}

.analysis-progress-bar {
    max-width: 400px;
    margin: 0 auto 8px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-percent {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
}

/* ========== RESULTS ========== */
.results-container {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 8px;
}

.results-header p {
    color: var(--text-muted);
}

.overall-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: 32px;
}

.score-circle {
    width: 120px;
    height: 120px;
    position: relative;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-circle .score-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.score-circle .score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.score-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.score-details h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.score-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Problem Cards */
.problems-section {
    margin-bottom: 32px;
}

.problems-section h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.problem-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.problem-card:hover {
    box-shadow: var(--shadow-md);
}

.problem-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
}

.problem-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.problem-severity {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.problem-severity.high {
    background: #fef2f2;
    color: var(--danger);
}

.problem-severity.moderate {
    background: #fffbeb;
    color: var(--warning);
}

.problem-severity.low {
    background: #f0fdf4;
    color: var(--success);
}

.problem-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.problem-confidence {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.problem-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.problem-card.expanded .problem-toggle {
    transform: rotate(180deg);
    background: var(--primary-bg);
    border-color: var(--primary-light);
}

.problem-details {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border-light);
}

.problem-card.expanded .problem-details {
    display: block;
    padding-top: 20px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.detail-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.root-causes {
    list-style: none;
}

.root-causes li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.root-causes li::before {
    content: '→';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

.remedies-list {
    list-style: none;
}

.remedies-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.remedies-list li::before {
    content: '✦';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* Routine Section */
.routine-section {
    margin-bottom: 32px;
}

/* ========== TOP RECOMMENDATION ========== */
.top-recommendation {
    margin-top: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid #10b981;
}

.top-rec-header {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-rec-header svg {
    flex-shrink: 0;
}

.top-rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f0fdf4;
}

.top-rec-item {
    padding: 16px 20px;
    border-bottom: 1px solid #dcfce7;
    border-right: 1px solid #dcfce7;
}

.top-rec-item:nth-child(2n) {
    border-right: none;
}

.top-rec-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.rec-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rec-icon {
    font-size: 1rem;
}

.top-rec-item p {
    font-size: 0.85rem;
    color: #1e1b4b;
    line-height: 1.6;
}

.routine-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
}

.routine-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.routine-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.routine-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.routine-content {
    display: none;
}

.routine-content.active {
    display: block;
}

.routine-step {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.routine-step:last-child {
    border-bottom: none;
}

.routine-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.routine-step-content h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.routine-step-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Product Recommendations */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.product-card {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-buy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    background: linear-gradient(135deg, #d97706, #b45309);
}

.btn-buy svg {
    flex-shrink: 0;
}

/* ========== CLINICAL REPORT STYLES ========== */
.clinical-header {
    text-align: center;
    margin-bottom: 32px;
}

.clinical-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 28px;
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: white;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.clinical-badge svg {
    color: #a78bfa;
}

.clinical-date {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.clinical-section {
    margin-bottom: 24px;
}

.clinical-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.clinical-section-header h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.only-one-badge {
    margin-left: auto;
    padding: 4px 14px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.clinical-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 24px;
}

.summary-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.secondary-note {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.secondary-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}

.secondary-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-right: 6px;
    margin-bottom: 4px;
}

.concern-card {
    padding: 20px 24px;
}

.concern-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.concern-icon {
    font-size: 2rem;
}

.concern-top h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.concern-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.concern-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.solution-card {
    padding: 0;
    overflow: hidden;
    border: 2px solid #10b981;
}

.solution-title-bar {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 14px 24px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.solution-body {
    padding: 20px 24px;
}

.solution-row {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #dcfce7;
}

.solution-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.solution-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.solution-row p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.solution-product-row {
    background: #f0fdf4;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 8px;
}

.solution-product-card {
    margin-top: 8px;
}

.sp-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 4px;
}

.sp-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sp-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.root-cause-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.root-cause-list h5 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.root-cause-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.rc-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}

.root-cause-item strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.rc-weight {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
}

.root-cause-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 2px;
}

.disclaimer-card {
    display: flex;
    gap: 16px;
    background: #fffbeb;
    border-color: #fde68a;
}

.disclaimer-icon {
    flex-shrink: 0;
}

.disclaimer-card h4 {
    font-size: 0.95rem;
    color: #92400e;
    margin-bottom: 4px;
}

.disclaimer-card p {
    font-size: 0.88rem;
    color: #a16207;
    line-height: 1.6;
}

/* Solution Product Buy Grid */
.solution-products-section {
    background: #f0fdf4;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 8px;
}

.products-hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-style: italic;
}

.solution-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.solution-buy-card {
    background: white;
    border: 1px solid #dcfce7;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sbc-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sbc-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
}

.solution-buy-card .btn-buy {
    margin-top: 4px;
    width: fit-content;
}

@media (max-width: 640px) {
    .solution-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== FEEDBACK UI ========== */
.learning-badge {
    margin-left: auto;
    padding: 4px 14px;
    background: #f5f3ff;
    color: #7c3aed;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.feedback-card {
    background: linear-gradient(135deg, #f5f3ff, #eff6ff);
    border: 1px solid #ddd6fe;
}

.feedback-intro {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.feedback-rating {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.rating-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #9ca3af;
}

.rating-btn:hover {
    border-color: #7c3aed;
    transform: scale(1.1);
}

.rating-btn.rating-active {
    border-color: #7c3aed;
    background: #f5f3ff;
}

.feedback-conditions {
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.feedback-conditions p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.feedback-condition-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feedback-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.feedback-chip:hover {
    border-color: #7c3aed;
}

.feedback-chip input {
    accent-color: #7c3aed;
}

.feedback-chip input:checked + span {
    color: #7c3aed;
    font-weight: 600;
}

.feedback-comment textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    resize: vertical;
    margin-bottom: 12px;
    font-family: inherit;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.btn-feedback-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.feedback-thankyou {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: var(--radius-md);
    border: 1px solid #bbf7d0;
}

.feedback-thankyou h4 {
    color: #10b981;
    font-size: 1rem;
}

.feedback-thankyou p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.learning-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.lp-level {
    padding: 3px 10px;
    background: #7c3aed;
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.lp-count {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ========== LEARNING INSIGHTS ========== */
.learning-card {
    background: linear-gradient(135deg, #f5f3ff, #eff6ff);
    border: 1px solid #ddd6fe;
}

.learning-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.ls-item {
    text-align: center;
    padding: 12px 8px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid #e5e7eb;
}

.ls-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.ls-value {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
}

.ls-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

.learning-top-conditions {
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.learning-top-conditions h5 {
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.ltc-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ltc-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ltc-name {
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-shrink: 0;
    min-width: 100px;
}

.ltc-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.ltc-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.ltc-count {
    font-size: 0.82rem;
    font-weight: 700;
    color: #7c3aed;
    flex-shrink: 0;
}

.ls-empty {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
    padding: 12px;
}

@media (max-width: 640px) {
    .learning-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feedback-rating {
        justify-content: center;
    }
}

.results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

/* ========== SOLUTIONS PAGE ========== */
.solutions-hero {
    text-align: center;
    padding: 40px 0 32px;
}

.solutions-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.solutions-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.solutions-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.sol-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.sol-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding-bottom: 80px;
}

.solution-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.solution-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.solution-card-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.solution-card-header h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.solution-card-header .severity {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    margin-top: 2px;
    display: inline-block;
}

.solution-card-body {
    padding: 0 24px 24px;
}

.solution-section {
    margin-bottom: 16px;
}

.solution-section:last-child {
    margin-bottom: 0;
}

.solution-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.solution-section ul {
    list-style: none;
}

.solution-section ul li {
    padding: 4px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.solution-section ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: 700;
}

/* ========== ABOUT PAGE ========== */
.about-hero {
    text-align: center;
    padding: 60px 0 48px;
}

.about-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.about-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.about-card {
    padding: 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    color: var(--primary);
}

.about-icon svg {
    width: 100%;
    height: 100%;
}

.about-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-disclaimer {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
}

.about-disclaimer svg {
    color: var(--warning);
    flex-shrink: 0;
}

.about-disclaimer h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: #92400e;
}

.about-disclaimer p {
    font-size: 0.88rem;
    color: #a16207;
    line-height: 1.6;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-text {
    color: white;
}

.footer-brand .logo-icon {
    color: var(--primary-light);
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-top: 12px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.6);
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero {
        padding: 40px 24px;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hair-visual {
        width: 300px;
        height: 300px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px 32px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        justify-content: center;
    }

    .hair-visual {
        width: 250px;
        height: 250px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 16px;
    }

    .step-connector {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: 1fr;
    }

    .upload-zone {
        height: 220px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .top-rec-grid {
        grid-template-columns: 1fr;
    }
    .top-rec-item {
        border-right: none;
    }

    .overall-score {
        flex-direction: column;
        text-align: center;
    }

    .results-actions {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .analysis-progress {
        scale: 0.85;
    }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========== DRAG & DROP HIGHLIGHT ========== */
.upload-card.drag-over {
    border-color: var(--primary);
    background: var(--primary-bg);
}

/* ========== LOADING SHIMMER ========== */
@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--border-light) 25%, var(--bg-secondary) 50%, var(--border-light) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite;
}
