/* ========================================
   ReviewMaster Pro - Main Styles
   ======================================== */

:root {
    /* Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5a67d8 0%, #6b3f9e 100%);

    --bg-dark: #0f0f23;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --border: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(102, 126, 234, 0.5);

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

    --sidebar-width: 260px;
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-dark: #f5f7fa;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-card-hover: rgba(0, 0, 0, 0.05);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.5);

    --border: rgba(0, 0, 0, 0.1);
    --border-focus: rgba(102, 126, 234, 0.5);

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-right: 1px solid var(--border);
}

[data-theme="light"] .dashboard-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .dashboard-card,
[data-theme="light"] .stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background: rgba(102, 126, 234, 0.1);
}

[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border);
    color: var(--text-primary);
}

[data-theme="light"] .modal-content {
    background: rgba(255, 255, 255, 0.98);
}

/* Light mode sidebar text fix */
[data-theme="light"] .nav-item,
[data-theme="light"] .nav-item span,
[data-theme="light"] .sidebar-nav a,
[data-theme="light"] .sidebar-footer button {
    color: var(--text-primary);
}

[data-theme="light"] .nav-item svg {
    stroke: var(--text-secondary);
}

[data-theme="light"] .nav-item.active,
[data-theme="light"] .nav-item.active span {
    color: var(--primary);
}

[data-theme="light"] .nav-item.active svg {
    stroke: var(--primary);
}

[data-theme="light"] .sidebar-header .logo span,
[data-theme="light"] .sidebar-header .logo {
    color: var(--text-primary);
}

[data-theme="light"] .btn-ghost {
    color: var(--text-primary);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.particles::before {
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.particles::after {
    background: var(--secondary);
    bottom: -200px;
    right: -200px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* ========== Typography ========== */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

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

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 44px;
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action input {
    flex: 1;
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 8px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo .pro {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.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);
    transition: all 0.3s;
}

/* ========== Hero ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    max-width: 600px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

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

.stat-divider {
    width: 1px;
    background: var(--border);
}

.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    max-width: 500px;
}

.dashboard-preview {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.preview-dots span:nth-child(1) {
    background: #ff5f56;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:nth-child(3) {
    background: #27c93f;
}

.preview-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.preview-content {
    padding: 20px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.preview-rating {
    color: #fbbf24;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

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

.preview-ai {
    font-size: 0.8rem;
    color: var(--primary);
}

.preview-chart {
    display: flex;
    gap: 8px;
    height: 60px;
    align-items: flex-end;
}

.chart-bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 4px 4px 0 0;
    animation: grow 1s ease-out forwards;
}

@keyframes grow {
    from {
        height: 0 !important;
    }
}

/* ========== Sections ========== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========== Features ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gradient-bg {
    background: var(--gradient);
    color: white;
}

.gradient-bg-alt {
    background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    color: white;
}

.gradient-bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.gradient-bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========== How it Works ========== */
.how-it-works {
    background: linear-gradient(180deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 12px;
}

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

.step-connector {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 30px;
}

/* ========== Pricing ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pricing-card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.1) 0%, var(--bg-card) 100%);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

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

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-price {
    margin-bottom: 32px;
}

.pricing-price .currency {
    font-size: 1.5rem;
    vertical-align: super;
    color: var(--text-secondary);
}

.pricing-price .amount {
    font-size: 3.5rem;
    font-weight: 800;
}

.pricing-price .period {
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ========== CTA ========== */
.cta-section {
    padding: 80px 0;
}

.cta-card {
    background: var(--gradient);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.cta-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.cta-card .btn-ghost {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-card .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========== Contact ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

/* ========== Footer ========== */
.footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========== Animations ========== */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease forwards;
}

.animate-float {
    animation: floatAnim 6s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnim {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Auth Page ========== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
}

.auth-logo {
    justify-content: center;
    margin-bottom: 32px;
}

.auth-card h1 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.auth-form {
    margin-bottom: 24px;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-help {
    text-align: center;
    margin-top: 24px;
}

.auth-help p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-help a {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* ========== Dashboard ========== */
.dashboard-page {
    display: flex;
    background: var(--bg-dark);
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-size: 1.1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-item.active {
    color: var(--text-primary);
    background: var(--gradient);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.mobile-logo {
    display: none;
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.header-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.header-search input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.header-search input:focus {
    outline: none;
    border-color: var(--primary);
}

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

.icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

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

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.dashboard-content {
    padding: 24px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h1 {
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.section-title p {
    color: var(--text-secondary);
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info .stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-info .stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

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

.card-header h2 {
    font-size: 1.1rem;
}

/* Reviews */
.reviews-list {
    padding: 0;
}

.review-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.review-item:hover {
    background: var(--bg-card-hover);
}

.review-item:last-child {
    border: none;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex: 1;
    min-width: 0;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
}

.review-rating {
    color: #fbbf24;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Badge Nouveau pour avis récents */
.badge-new {
    background: var(--gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.review-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

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

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

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

.analytics-grid .full-width {
    grid-column: 1 / -1;
}

.rating-distribution {
    padding: 20px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.rating-label {
    width: 40px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rating-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.sentiment-chart {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sentiment-donut {
    position: relative;
    width: 120px;
    height: 120px;
}

.sentiment-donut svg {
    width: 100%;
    height: 100%;
}

.donut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.sentiment-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.positive {
    background: var(--success);
}

.legend-color.neutral {
    background: var(--warning);
}

.legend-color.negative {
    background: var(--danger);
}

.keywords-cloud {
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    padding: 6px 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* AI Section */
.ai-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.ai-input-section {
    padding: 20px;
}

.ai-input-section label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.ai-input-section textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.ai-input-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.ai-options {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ai-options select {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

.ai-options select option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 10px;
}

.ai-output-section {
    padding: 20px;
    border-top: 1px solid var(--border);
    min-height: 150px;
}

.ai-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 40px 20px;
}

.ai-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.3;
}

.ai-response-text {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

.ai-tips {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.ai-tips h3 {
    margin-bottom: 16px;
}

.ai-tips ul {
    list-style: none;
}

.ai-tips li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-left: 24px;
    position: relative;
}

.ai-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

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

.settings-form {
    padding: 20px;
}

.place-results {
    margin-top: 16px;
}

.place-result {
    padding: 12px;
    background: var(--bg-card-hover);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.place-result:hover {
    background: rgba(102, 126, 234, 0.2);
}

.place-result-name {
    font-weight: 500;
    margin-bottom: 4px;
}

.place-result-address {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Loading & States */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.modal-header h2 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    /* Hide horizontal overflow on mobile */
    html,
    body {
        overflow-x: hidden;
    }

    .dashboard-page {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile browsers */
        background: #0a0a0f;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: left 0.3s ease;
        display: flex;
        flex-direction: column;
        visibility: hidden;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        /* Hide scrollbar */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .sidebar::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .sidebar.open {
        left: 0;
        visibility: visible;
    }

    .sidebar .sidebar-header {
        display: flex;
        padding: 24px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .sidebar .sidebar-nav {
        flex: 1;
        padding: 20px 12px;
        display: flex;
        flex-direction: column;
    }

    .sidebar .nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        border-radius: 10px;
        margin-bottom: 8px;
        font-size: 15px;
    }

    .sidebar .nav-item.active {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

    .sidebar .sidebar-footer {
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Overlay when sidebar is open - covers content area */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 999;
    }

    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .ai-container {
        grid-template-columns: 1fr;
    }

    /* Dashboard mobile improvements */
    .dashboard-header {
        padding: 12px 16px 12px 8px;
        gap: 12px;
        display: flex;
        align-items: center;
    }

    .dashboard-header .mobile-menu-toggle {
        order: 1;
    }

    .dashboard-header .mobile-logo {
        order: 2;
        margin-right: auto;
    }

    .dashboard-header .header-actions {
        order: 3;
    }

    .header-search {
        display: none;
    }

    .header-actions {
        gap: 8px;
        margin-left: 0;
    }

    /* Mobile logo in header */
    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1rem;
        color: var(--text-primary);
    }

    .mobile-logo .logo-icon {
        width: 32px;
        height: 32px;
    }

    .mobile-logo .pro {
        color: var(--primary);
    }

    .user-menu .user-name {
        display: none;
    }

    .section-title h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .stat-card {
        min-width: 0;
        overflow: hidden;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .stat-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .stat-icon svg {
        width: 26px;
        height: 26px;
    }

    .stat-value {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .main-content {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 0;
    }

    .dashboard-content {
        padding: 16px 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dashboard-card {
        padding: 20px;
        border-radius: 16px;
    }

    .dashboard-card {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    section {
        padding: 60px 0;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .steps {
        flex-direction: column;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

/* ========== Legal Pages ========== */
.legal-page {
    padding-top: 100px;
}

.legal-content {
    padding: 60px 0;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-update {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.legal-section h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-section ul {
    list-style: none;
    margin-top: 12px;
}

.legal-section li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.legal-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

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

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

/* ========== QR Code Section ========== */
.qrcode-container {
    max-width: 800px;
}

.qrcode-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 32px;
    padding: 24px;
}

.qrcode-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
}

#qrcodeImage {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcodeImage canvas,
#qrcodeImage img {
    max-width: 100%;
    height: auto;
}

.qrcode-instruction {
    color: #333;
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
    font-weight: 500;
}

.qrcode-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qrcode-tips {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
}

.qrcode-tips h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.qrcode-tips ul {
    list-style: none;
}

.qrcode-tips li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.qrcode-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

/* ========== Response History ========== */
.response-history {
    max-height: 600px;
    overflow-y: auto;
}

.history-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.history-item:hover {
    background: var(--bg-card-hover);
}

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

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

.history-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.history-rating {
    color: #fbbf24;
}

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

.history-original {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-style: italic;
}

.history-response {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    line-height: 1.6;
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .qrcode-content {
        grid-template-columns: 1fr;
    }
}

/* ========== Demo Code Box ========== */
.demo-code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 24px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-lg);
}

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

.demo-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-dark);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    letter-spacing: 1px;
}

/* ========== Improved Dropdown Hovers ========== */
.filter-select:hover,
.ai-options select:hover {
    border-color: var(--primary);
}

.filter-select option:hover,
.filter-select option:focus,
.ai-options select option:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* ========== Remember Me Checkbox ========== */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-me label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ========== Mobile Improvements ========== */
@media (max-width: 480px) {
    .demo-code-box {
        flex-direction: column;
        text-align: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        padding: 16px;
    }

    .section-title h1 {
        font-size: 1.5rem;
    }

    .filters-bar {
        flex-direction: column;
        gap: 8px;
    }

    .filter-select {
        width: 100%;
    }
}

/* ========== Mobile Navigation Menu ========== */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-links {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--border);
    }

    .nav-links.active {
        right: 0;
    }

    /* Mobile menu overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.3);
        z-index: 999;
        pointer-events: auto;
    }

    .mobile-menu-overlay.active {
        display: block;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 24px;
    }

    .nav-links .btn-outline {
        margin-top: 16px;
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .step-connector {
        display: none;
    }

    .steps {
        flex-direction: column;
        gap: 32px;
    }
}

/* ========== Legal Pages (Mentions Légales, CGV, Privacy) ========== */

/* Force navbar to have solid background on legal pages */
.legal-page .navbar {
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.legal-page .legal-content {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: calc(100vh - 100px);
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-section ul {
    list-style: none;
    padding: 0;
}

.legal-section ul li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.legal-section ul li:last-child {
    border-bottom: none;
}

.legal-section ul li strong {
    color: var(--text-primary);
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--secondary);
}

/* ========== Templates Section ========== */
.templates-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.tab-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.templates-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.template-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.template-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

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

.template-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

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

.template-category {
    font-size: 0.85rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: var(--bg-card);
}

.template-category.positive {
    color: var(--success);
}

.template-category.neutral {
    color: var(--warning);
}

.template-category.negative {
    color: var(--danger);
}

.template-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.template-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .templates-tabs {
        padding: 12px;
    }

    .template-item {
        flex-direction: column;
        gap: 12px;
    }

    .template-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ========== Calendar Section ========== */
.calendar-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-mini {
    flex: 1;
    min-width: 120px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-mini .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-mini .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stat-mini.urgent .stat-number {
    color: var(--danger);
}

.stat-mini.warning .stat-number {
    color: var(--warning);
}

.stat-mini.ok .stat-number {
    color: var(--success);
}

.calendar-filters {
    display: flex;
    gap: 8px;
}

.input-sm {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-sm option {
    background: #1a1a2e;
    color: #ffffff;
}

.pending-reviews-list {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
}

.pending-review-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.pending-review-item:hover {
    border-color: var(--primary);
}

.pending-review-item.urgent {
    border-left: 4px solid var(--danger);
}

.pending-review-item.warning {
    border-left: 4px solid var(--warning);
}

.pending-review-item.ok {
    border-left: 4px solid var(--success);
}

.pending-review-urgency {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}

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

.pending-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pending-review-author {
    font-weight: 600;
    color: var(--text-primary);
}

.pending-review-rating {
    color: #fbbf24;
}

.pending-review-rating.negative {
    color: var(--danger);
}

.pending-review-rating.positive {
    color: var(--success);
}

.pending-review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.pending-review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pending-review-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.empty-state.success {
    color: var(--success);
}

@media (max-width: 768px) {
    .calendar-stats {
        flex-direction: column;
    }

    .stat-mini {
        min-width: auto;
    }

    .pending-review-item {
        flex-direction: column;
        gap: 12px;
    }

    .pending-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}