﻿/* ============================================================
   INVOSAN — Landing Page Styles
   Premium Marketing Site v1.0
   ============================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --brand-primary: #0EA5E9;
    --brand-primary-light: #38BDF8;
    --brand-secondary: #38BDF8;
    --brand-gradient: linear-gradient(135deg, #0EA5E9, #38BDF8, #38BDF8);
    --brand-gradient-hover: linear-gradient(135deg, #0284C7, #0891B2, #0EA5E9);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
}

/* Light theme (default) */
[data-theme="light"] {
    --bg-body: #F8FAFF;
    --bg-primary: #F8FAFF;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-input: rgba(99, 120, 255, 0.04);
    --bg-nav: rgba(255, 255, 255, 0.85);
    --border-color: rgba(99, 120, 255, 0.1);
    --border-hover: rgba(14, 165, 233, 0.2);
    --text-primary: #1E293B;
    --text-secondary: #5B6B82;
    --text-tertiary: #94A3B8;
    --text-inverse: #FFFFFF;
    --hero-bg: linear-gradient(180deg, #EEF2FF 0%, #F8FAFF 50%, #F0F7FF 100%);
    --section-alt-bg: #F1F5FF;
    --mockup-bg: #FFFFFF;
    --mockup-sidebar-bg: #F1F5F9;
    --mockup-line-bg: #E2E8F0;
    --mockup-line-light: #F1F5F9;
    --footer-bg: #0F172A;
    --footer-text: #94A3B8;
    --footer-heading: #F1F5F9;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-body: #0B0D17;
    --bg-primary: #0B0D17;
    --bg-secondary: #161B33;
    --bg-card: rgba(22, 27, 51, 0.85);
    --bg-card-hover: rgba(28, 34, 62, 0.95);
    --bg-elevated: #1C2039;
    --bg-glass: rgba(17, 20, 37, 0.85);
    --bg-input: rgba(22, 27, 51, 0.6);
    --bg-nav: rgba(11, 13, 23, 0.9);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --text-primary: #F1F3F9;
    --text-secondary: #8B92A8;
    --text-tertiary: #5A6077;
    --text-inverse: #0B0D17;
    --hero-bg: linear-gradient(180deg, #0B0D17 0%, #111425 50%, #0E1020 100%);
    --section-alt-bg: #111425;
    --mockup-bg: #1C2039;
    --mockup-sidebar-bg: #171B30;
    --mockup-line-bg: #2A2F4A;
    --mockup-line-light: #1E2340;
    --footer-bg: #060810;
    --footer-text: #5A6077;
    --footer-heading: #E2E8F0;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-primary);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition-slow), color var(--transition-slow);
    overflow-wrap: break-word;
    word-break: break-word;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(14,165,233,0.2); border-radius: 9999px; }

/* ─── Utility ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; overflow: hidden; }
.container.navbar-inner { overflow: visible; }
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    white-space: nowrap;
}
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--radius-xl); }
.btn-block { width: 100%; }
.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.btn-primary:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 6px 20px rgba(14,165,233,0.4);
    transform: translateY(-1px);
}
.btn-outline {
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(14,165,233,0.06);
}
.btn-ghost {
    color: var(--text-primary);
    padding: 0.625rem 1rem;
}
.btn-ghost:hover { color: var(--brand-primary); }
.btn-white {
    background: white;
    color: #1E293B;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-glass {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    overflow-x: hidden;
}
.navbar.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    min-width: 0;
    flex-shrink: 0;
}
.navbar-brand img {
    object-fit: contain;
    flex-shrink: 0;
}
.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.nav-link:hover {
    color: var(--text-primary);
    background: rgba(14,165,233,0.06);
}
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full, 9999px);
    padding: 2px;
    gap: 0;
}
.lang-option {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full, 9999px);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.lang-option:hover {
    color: var(--text-primary);
}
.lang-option.active {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(14,165,233,0.3);
}
[data-theme="dark"] .lang-switch {
    border-color: var(--border-color);
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
    background: rgba(14,165,233,0.08);
    color: var(--brand-primary);
}
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    flex-shrink: 0;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn:hover,
.mobile-menu-btn:active {
    background: rgba(14,165,233,0.08);
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
    transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open {
    max-height: 400px;
    opacity: 1;
    padding: 1rem 1.5rem 1.5rem;
}
.mobile-link {
    padding: 0.85rem 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.mobile-link:hover,
.mobile-link:active {
    color: var(--brand-primary);
    padding-left: 1rem;
}
.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}
.mobile-menu-controls {
    display: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    padding: 9rem 0 3.5rem;
    background: var(--hero-bg);
    overflow-x: hidden;
    overflow-y: visible;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hero-orb-1 {
    width: 600px; height: 600px;
    background: rgba(14,165,233,0.15);
    top: -200px; right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: rgba(56,189,248,0.12);
    bottom: -100px; left: -50px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: rgba(129,140,248,0.1);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 30s ease-in-out infinite;
}
[data-theme="dark"] .hero-orb-1 { background: rgba(14,165,233,0.08); }
[data-theme="dark"] .hero-orb-2 { background: rgba(56,189,248,0.06); }
[data-theme="dark"] .hero-orb-3 { background: rgba(129,140,248,0.05); }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(14,165,233,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
[data-theme="dark"] .hero-grid {
    background-image:
        linear-gradient(rgba(14,165,233,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14,165,233,0.06) 1px, transparent 1px);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(14,165,233,0.08);
    border: 1px solid rgba(14,165,233,0.15);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 2rem;
}
.hero-badge i { font-size: 0.9rem; }
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    overflow-wrap: break-word;
    word-break: break-word;
}
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.25rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* ─── Hero Mockup ───────────────────────────────────────── */
.hero-mockup-wrapper {
    position: relative;
    max-width: 960px;
    margin: 3rem auto 0;
    z-index: 2;
}
.hero-mockup {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl), 0 0 60px rgba(14,165,233,0.1);
    border: 1px solid var(--border-color);
    background: var(--mockup-bg);
}
.mockup-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--mockup-sidebar-bg);
    border-bottom: 1px solid var(--border-color);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #EF4444; }
.mockup-dots span:nth-child(2) { background: #F59E0B; }
.mockup-dots span:nth-child(3) { background: #10B981; }
.mockup-url {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-body);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-sm);
}
.mockup-screen {
    display: flex;
    min-height: 300px;
}
.mockup-sidebar {
    width: 60px;
    padding: 1rem 0.5rem;
    background: var(--mockup-sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mockup-nav-item {
    height: 8px;
    border-radius: 4px;
    background: var(--mockup-line-bg);
    margin: 0 4px;
}
.mockup-nav-item.active { background: var(--brand-primary); opacity: 0.7; }
.mockup-main {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mockup-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.mockup-kpi {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}
.mockup-kpi-icon {
    width: 28px; height: 28px;
    border-radius: var(--radius-sm);
    opacity: 0.8;
    flex-shrink: 0;
}
.mockup-kpi-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow: hidden; }
.mockup-line {
    height: 6px;
    border-radius: 3px;
    background: var(--mockup-line-bg);
}
.mockup-line.light { background: var(--mockup-line-light); }
.mockup-line.w15 { width: 15%; }
.mockup-line.w20 { width: 20%; }
.mockup-line.w30 { width: 30%; }
.mockup-line.w40 { width: 40%; }
.mockup-line.w60 { width: 60%; }
.mockup-chart-area {
    flex: 1;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}
.mockup-chart-svg { width: 100%; height: auto; }
.mockup-table { display: flex; flex-direction: column; gap: 0; }
.mockup-table-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.mockup-table-row.header { background: var(--mockup-line-light); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.mockup-badge {
    width: 40px; height: 8px;
    border-radius: 4px;
}
.mockup-badge.success { background: #10B981; opacity: 0.6; }
.mockup-badge.warning { background: #F59E0B; opacity: 0.6; }
.mockup-glow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 120px;
    background: radial-gradient(ellipse, rgba(14,165,233,0.15), transparent 70%);
    pointer-events: none;
}


/* ============================================================
   SECTIONS — Common
   ============================================================ */
.section {
    padding: 5rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(14,165,233,0.08);
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    overflow-wrap: break-word;
    word-break: break-word;
}
.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { background: var(--bg-body); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    transition: all var(--transition-base);
    overflow: hidden;
}
.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    color: var(--accent);
}
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   AI SECTION
   ============================================================ */
.ai-section { background: var(--section-alt-bg); }
.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.ai-content .section-title { text-align: left; }
.ai-content .section-desc { text-align: left; margin: 0 0 2rem; max-width: none; }
.ai-features-list { display: flex; flex-direction: column; gap: 1.25rem; }
.ai-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.ai-feature-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: rgba(14,165,233,0.1);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}
.ai-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.ai-feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* AI Chat Demo */
.ai-chat-demo {
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-elevated);
}
.ai-avatar {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    background: var(--brand-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.ai-chat-name {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}
.ai-chat-status {
    font-size: 0.75rem;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}
.online-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.ai-chat-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 400px;
}
.ai-msg {
    max-width: 90%;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    line-height: 1.5;
}
.ai-msg.user {
    align-self: flex-end;
    background: var(--brand-primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.ai-msg.bot {
    align-self: flex-start;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}
.ai-result-card {
    margin: 0.75rem 0;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(14,165,233,0.06);
    border: 1px solid rgba(14,165,233,0.12);
}
.ai-result-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.8rem;
}
.ai-result-row + .ai-result-row { border-top: 1px solid rgba(14,165,233,0.08); }
.ai-result-row strong { color: var(--brand-primary); }
.ai-insight {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.5rem 0.75rem;
    background: rgba(16,185,129,0.06);
    border-radius: var(--radius-sm);
    border-left: 3px solid #10B981;
}
.ai-insight i { color: #F59E0B; margin-right: 4px; }
.ai-msg.typing { padding: 1rem; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
    width: 8px; height: 8px;
    background: var(--text-tertiary);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   E-INVOICE SECTION
   ============================================================ */
.einvoice-section { background: var(--bg-body); }
.einvoice-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}
.flow-step {
    text-align: center;
    padding: 2rem 1.5rem;
    flex: 0 0 200px;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}
.flow-step-number {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(14,165,233,0.1);
    color: var(--brand-primary);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-step-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-xl);
    background: rgba(14,165,233,0.08);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    transition: all var(--transition-base);
}
.flow-step:hover .flow-step-icon {
    background: var(--brand-gradient);
    color: white;
    transform: scale(1.1);
}
.flow-step h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.flow-step p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.flow-arrow {
    display: flex;
    align-items: center;
    padding-top: 3.5rem;
    color: var(--text-tertiary);
    font-size: 1.25rem;
}
.provider-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.provider-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}
.provider-card:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}
.provider-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(14,165,233,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 0.9rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--bg-body); }
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    overflow: hidden;
    transition: all var(--transition-base);
}
.faq-item.open {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px rgba(14,165,233,0.1);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    transition: color var(--transition-fast);
}
.faq-question:hover { color: var(--brand-primary); }
.faq-question i {
    transition: transform var(--transition-base);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--brand-primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section { padding: 0 0 5rem; }
.cta-card {
    position: relative;
    padding: 4.5rem 3rem;
    border-radius: var(--radius-2xl);
    background: var(--brand-gradient);
    color: white;
    text-align: center;
    overflow: hidden;
    word-break: break-word;
}

/* Reduce gap between FAQ and CTA */
.faq-section + .cta-section { margin-top: -2rem; }
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.cta-orb-1 {
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.15);
    top: -100px; right: -50px;
}
.cta-orb-2 {
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.1);
    bottom: -80px; left: -30px;
}
.cta-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.875rem;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}
.cta-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1rem 0;
    max-width: 280px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--footer-heading);
}
.footer-logo img {
    object-fit: contain;
    flex-shrink: 0;
}
.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-text);
    transition: all var(--transition-fast);
}
.footer-social a:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(14,165,233,0.1);
}
.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--footer-heading);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-links a {
    display: block;
    font-size: 0.875rem;
    padding: 0.35rem 0;
    color: var(--footer-text);
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: white; }
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .section-title { font-size: 2.25rem; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }

    /* Navbar: hide links + CTA buttons at tablet, show hamburger */
    .navbar-links { display: none; }
    .navbar-actions .btn { display: none; }
    .navbar-actions { margin-left: auto; }
    .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
    /* ─── Navbar Mobile ─────────────────────────────────── */
    .navbar-inner { gap: 0.5rem; }
    .navbar-actions .btn { display: none; }

    .mobile-menu-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 0.25rem;
    }

    .mobile-link {
        padding: 1rem 0.5rem;
        font-size: 1rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-menu-actions {
        gap: 0.75rem;
        margin-top: 1.25rem;
    }
    .mobile-menu-actions .btn {
        min-height: 48px;
        font-size: 1rem;
    }

    /* ─── Hero Mobile ───────────────────────────────────── */
    .hero { padding: 7rem 0 3rem; }
    .hero-title { font-size: 2rem; line-height: 1.15; }
    .hero-desc { font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.75rem; padding: 0 0.25rem; }
    .hero-badge { font-size: 0.78rem; padding: 0.4rem 1rem; margin-bottom: 1.5rem; }
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        padding: 0 0.5rem;
    }
    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
        justify-content: center;
    }
    .hero-orb-1 { width: 300px; height: 300px; }
    .hero-orb-2 { width: 200px; height: 200px; }
    .hero-orb-3 { width: 150px; height: 150px; }

    /* ─── Hero Mockup Mobile ────────────────────────────── */
    .hero-mockup-wrapper { margin: 2rem -0.5rem 0; }
    .hero-mockup { border-radius: var(--radius-lg); }
    .mockup-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .mockup-kpi { padding: 0.5rem; gap: 0.35rem; }
    .mockup-kpi-icon { width: 22px; height: 22px; }
    .mockup-screen { min-height: auto; }
    .mockup-sidebar { width: 40px; padding: 0.75rem 0.25rem; }
    .mockup-main { padding: 0.75rem; gap: 0.75rem; }
    .mockup-chart-area { min-height: 100px; }
    .mockup-glow { display: none; }

    /* ─── Sections Mobile ───────────────────────────────── */
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: 1.75rem; }
    .section-desc { font-size: 0.95rem; line-height: 1.65; }
    .section-badge { font-size: 0.75rem; padding: 0.3rem 0.875rem; }

    /* ─── Features Mobile ───────────────────────────────── */
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .feature-card {
        padding: 1.5rem;
        display: grid !important;
        grid-template-columns: 52px 1fr;
        grid-template-rows: auto auto;
        gap: 0.25rem 1rem;
        overflow: visible;
    }
    .feature-card .feature-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        margin-bottom: 0;
        align-self: start;
        flex-shrink: 0;
    }
    .feature-card h3 {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        align-self: end;
    }
    .feature-card p {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
    }
    .feature-card:hover { transform: none; }

    /* ─── AI Section Mobile ─────────────────────────────── */
    .ai-content .section-badge,
    .ai-content .section-title,
    .ai-content .section-desc { text-align: center; }
    .ai-content .section-desc { margin-left: auto; margin-right: auto; }
    .ai-features-list { gap: 1rem; }
    .ai-feature-item { gap: 0.875rem; }
    .ai-chat-demo { margin-top: 0.5rem; }
    .ai-chat-body { padding: 1rem; gap: 0.75rem; max-height: none; }
    .ai-msg { max-width: 95%; font-size: 0.85rem; }
    .ai-result-row { font-size: 0.78rem; }

    /* ─── E-Invoice Flow Mobile ─────────────────────────── */
    .flow-arrow { display: none; }
    .einvoice-flow {
        gap: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .flow-step {
        flex: none;
        max-width: none;
        padding: 1.5rem 1rem;
    }
    .flow-step-icon { width: 52px; height: 52px; font-size: 1.25rem; }
    .flow-step h4 { font-size: 0.9rem; }
    .flow-step p { font-size: 0.78rem; }
    .provider-logos { gap: 0.75rem; justify-content: center; }
    .provider-card {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 0;
        justify-content: center;
    }

    /* ─── FAQ Mobile ────────────────────────────────────── */
    .faq-section { padding-bottom: 2rem; }
    .faq-question {
        padding: 1.125rem 1.25rem;
        font-size: 0.925rem;
        min-height: 48px;
    }
    .faq-answer p { padding: 0 1.25rem 1.125rem; font-size: 0.875rem; }

    /* ─── CTA Mobile ────────────────────────────────────── */
    .faq-section + .cta-section { margin-top: 0; }
    .cta-section { padding-bottom: 3rem; }
    .cta-card { padding: 2.5rem 1.25rem; }
    .cta-card h2 { font-size: 1.5rem; }
    .cta-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .cta-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    /* ─── Footer Mobile ─────────────────────────────────── */
    .footer { padding: 3rem 0 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand p { max-width: none; }
    .footer-social { gap: 0.5rem; }
    .footer-social a { width: 42px; height: 42px; }
    .footer-links { display: flex; flex-direction: column; gap: 0; }
    .footer-links h4 { margin-bottom: 0.625rem; }
    .footer-links a {
        padding: 0.5rem 0;
        min-height: 40px;
        display: flex;
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-top: 1.5rem;
    }

    /* Disable hover transforms on touch */
    .feature-card:hover,
    .flow-step:hover .flow-step-icon,
    .provider-card:hover,
    .faq-item:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .container.navbar-inner { padding: 0 0.75rem; }
    .navbar-actions { gap: 0.25rem; }
    .navbar-actions .lang-switch { transform: scale(0.9); }
    .navbar-actions .theme-toggle-btn { width: 34px; height: 34px; font-size: 0.85rem; }
    .hero { padding: 6.5rem 0 2.5rem; }
    .hero-title { font-size: 1.625rem; }
    .hero-desc { font-size: 0.9rem; }

    .hero-mockup-wrapper { margin: 1.5rem -0.75rem 0; }
    .mockup-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 0.375rem; }
    .mockup-kpi { padding: 0.375rem; gap: 0.25rem; }
    .mockup-kpi-icon { width: 18px; height: 18px; border-radius: 4px; }
    .mockup-sidebar { width: 32px; padding: 0.5rem 0.25rem; }
    .mockup-main { padding: 0.5rem; gap: 0.5rem; }
    .mockup-bar { padding: 0.5rem 0.75rem; gap: 0.5rem; }
    .mockup-dots span { width: 8px; height: 8px; }
    .mockup-url { font-size: 0.65rem; padding: 0.25rem 0.5rem; }
    .mockup-table-row { gap: 0.5rem; padding: 0.375rem 0.5rem; }
    .mockup-line { height: 5px; }
    .mockup-badge { width: 30px; height: 6px; }
    .section { padding: 3rem 0; }
    .section-title { font-size: 1.5rem; }
    .section-desc { font-size: 0.875rem; }

    .einvoice-flow { grid-template-columns: 1fr; }
    .flow-step { padding: 1.25rem 1rem; max-width: none; }

    .provider-logos { flex-direction: column; align-items: center; }
    .provider-card { flex: none; width: 100%; max-width: 320px; justify-content: center; }

    .ai-chat-body { padding: 0.75rem; }
    .ai-msg { max-width: 100%; }

    .cta-card { padding: 2rem 1rem; }
    .cta-card h2 { font-size: 1.375rem; }

    .feature-card {
        padding: 1.25rem;
        grid-template-columns: 44px 1fr;
        gap: 0.2rem 0.75rem;
    }
    .feature-card .feature-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .feature-card h3 { font-size: 1rem; }
    .feature-card p { font-size: 0.82rem; line-height: 1.5; }
}

/* ─── Touch device improvements ─────────────────────────── */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover { transform: none; box-shadow: none; }
    .feature-card:active {
        transform: scale(0.98);
        transition-duration: 100ms;
    }
    .btn:active { transform: scale(0.97); }
    .faq-question:active { background: var(--bg-input); }
    .nav-link:active,
    .mobile-link:active {
        background: rgba(14,165,233,0.1);
    }
    .provider-card:hover { border-color: var(--border-color); color: var(--text-secondary); box-shadow: none; }
    .provider-card:active {
        border-color: var(--brand-primary);
        color: var(--brand-primary);
    }
}

/* ═══════════════════════════════════════════════════════════
   FEEDBACK / REVIEWS SECTION
   ═══════════════════════════════════════════════════════════ */

.feedback-section {
    background: var(--bg-primary);
}

/* ── Stats Bar ─────────────────────────────────────────── */
.feedback-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.feedback-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feedback-stat-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.feedback-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(14,165,233,0.12), rgba(99,102,241,0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-primary);
    flex-shrink: 0;
}

.feedback-stat-info {
    display: flex;
    flex-direction: column;
}

.feedback-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.feedback-stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* ── Layout: Chart + Reviews ───────────────────────────── */
.feedback-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.feedback-chart-panel,
.feedback-reviews-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 16px);
    padding: 1.75rem;
}

.feedback-chart-panel h3,
.feedback-reviews-panel h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

/* ── Rating Bars ───────────────────────────────────────── */
.feedback-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 2rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rating-bar-label {
    width: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: right;
}

.rating-bar-label i {
    color: var(--brand-warning, #f59e0b);
    font-size: 0.7rem;
}

.rating-bar-track {
    flex: 1;
    height: 10px;
    background: var(--bg-input, var(--bg-primary));
    border-radius: 5px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--brand-primary), #6366f1);
    transition: width 0.8s ease;
    min-width: 0;
}

.rating-bar-count {
    width: 28px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
}

/* ── Top Suggestions ───────────────────────────────────── */
.feedback-top-suggestions h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg-input, var(--bg-primary));
    border-radius: 10px;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: rgba(14, 165, 233, 0.06);
}

.suggestion-rank {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-primary), #6366f1);
    color: #fff;
    flex-shrink: 0;
}

.suggestion-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.suggestion-votes {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
    white-space: nowrap;
}

.suggestion-votes i {
    margin-right: 3px;
}

/* ── Reviews Panel ─────────────────────────────────────── */
.feedback-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.feedback-reviews-header h3 {
    margin-bottom: 0;
}

.feedback-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.feedback-reviews-list::-webkit-scrollbar {
    width: 5px;
}

.feedback-reviews-list::-webkit-scrollbar-track {
    background: transparent;
}

.feedback-reviews-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

/* ── Review Card ───────────────────────────────────────── */
.feedback-review-card {
    background: var(--bg-input, var(--bg-primary));
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feedback-review-card:hover {
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.06);
}

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

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.review-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.review-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.review-stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.review-stars i {
    font-size: 0.75rem;
    color: var(--border-color);
}

.review-stars i.filled {
    color: var(--brand-warning, #f59e0b);
}

.review-comment {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.review-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: rgba(14,165,233,0.08);
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.review-suggestion i {
    color: var(--brand-warning, #f59e0b);
}

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

.review-date {
    font-size: 0.75rem;
    color: var(--text-tertiary, var(--text-secondary));
}

.review-date i {
    margin-right: 4px;
}

.review-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background: transparent;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.review-like-btn:hover,
.review-like-btn.liked {
    background: rgba(14,165,233,0.08);
    color: var(--brand-primary);
}

/* ── Empty States ──────────────────────────────────────── */
.feedback-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    min-height: 280px;
}

.feedback-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(14,165,233,0.1), rgba(99,102,241,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feedback-empty-icon i {
    font-size: 1.75rem;
    color: var(--brand-primary);
    opacity: 0.7;
}

.feedback-empty-state h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feedback-empty-state p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    max-width: 300px;
    line-height: 1.6;
}

.feedback-empty-inline {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem;
    background: var(--bg-input, var(--bg-primary));
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.feedback-empty-inline i {
    color: var(--brand-primary);
    opacity: 0.5;
    font-size: 1rem;
}

/* ── Feedback Modal ────────────────────────────────────── */
.feedback-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.feedback-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.feedback-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.feedback-modal::-webkit-scrollbar {
    width: 6px;
}
.feedback-modal::-webkit-scrollbar-track {
    background: transparent;
}
.feedback-modal::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.feedback-modal-overlay.active .feedback-modal {
    transform: translateY(0) scale(1);
}

/* Top gradient accent bar */
.feedback-modal-top-accent {
    height: 4px;
    background: linear-gradient(135deg, var(--brand-primary), #a855f7, #f59e0b);
    border-radius: 20px 20px 0 0;
}

.feedback-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.75rem 2rem 0 2rem;
}

.feedback-modal-header-text h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
}

.feedback-modal-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.feedback-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.feedback-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
    transform: rotate(90deg);
}

/* ── Feedback Form ─────────────────────────────────────── */
.feedback-modal-form {
    padding: 1.5rem 2rem 2rem 2rem;
}

.feedback-modal-form .feedback-form-group {
    margin-bottom: 1.25rem;
}

.feedback-modal-form label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feedback-modal-form label i {
    font-size: 0.8rem;
    color: var(--brand-primary);
    opacity: 0.8;
}

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

.feedback-modal-form input[type="text"],
.feedback-modal-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-primary);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.feedback-modal-form input[type="text"]::placeholder,
.feedback-modal-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.feedback-modal-form input[type="text"]:focus,
.feedback-modal-form textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.12);
    background: var(--bg-secondary);
}

.feedback-modal-form textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.feedback-modal-form small {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    opacity: 0.8;
}

/* ── Star Rating ───────────────────────────────────────── */
.feedback-rating-group {
    background: linear-gradient(135deg, rgba(14,165,233,0.04), rgba(168,85,247,0.04));
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
}

.feedback-rating-group label {
    justify-content: center;
    margin-bottom: 0.75rem;
}

.feedback-star-input {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.feedback-star-input i {
    font-size: 2rem;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-star-input i.active {
    color: #f59e0b;
}

.feedback-star-input i.hover {
    color: #fbbf24;
}

.feedback-star-input i:hover {
    transform: scale(1.25);
}

.feedback-star-input i.active {
    animation: starPop 0.3s ease;
}

@keyframes starPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.feedback-rating-text {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-primary);
    min-height: 1.2em;
    transition: color 0.2s;
}

/* ── Submit Button ─────────────────────────────────────── */
.feedback-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.95rem 1.5rem;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--brand-primary), #0284c7);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(14,165,233,0.25);
    position: relative;
    overflow: hidden;
}

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

.feedback-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(14,165,233,0.35);
}

.feedback-submit-btn:hover::before {
    left: 100%;
}

.feedback-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(14,165,233,0.2);
}

.feedback-submit-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.feedback-submit-btn:hover i {
    transform: translateX(2px) translateY(-2px);
}

/* ── Toast ─────────────────────────────────────────────── */
.feedback-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand-primary);
    color: #fff;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 8px 24px rgba(14,165,233,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Responsive ─ Feedback ─────────────────────────────── */
@media (max-width: 1024px) {
    .feedback-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .feedback-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .feedback-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .feedback-stat-card {
        padding: 1rem 1.25rem;
    }
    .feedback-stat-value {
        font-size: 1.4rem;
    }
    .feedback-chart-panel,
    .feedback-reviews-panel {
        padding: 1.25rem;
    }
    .feedback-reviews-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .feedback-modal {
        width: 95%;
        max-width: none;
        border-radius: 16px;
    }
    .feedback-modal-header {
        padding: 1.25rem 1.25rem 0 1.25rem;
    }
    .feedback-modal-form {
        padding: 1.25rem;
    }
    .feedback-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .feedback-rating-group {
        padding: 1rem;
    }
    .feedback-star-input i {
        font-size: 1.75rem;
    }
    .feedback-review-card {
        padding: 1rem;
    }
    .review-card-header {
        flex-wrap: wrap;
    }
    .review-stars {
        order: 3;
        width: 100%;
        margin-top: 0.25rem;
    }
}
