/**
 * BIGG AI Theme - Tidio Clone
 * Exact copy of tidio.com design
 */

/* ============================================
   CSS VARIABLES - TIDIO COLORS
============================================ */
:root {
    /* Primary Colors */
    --tidio-blue: #0057FF;
    --tidio-blue-hover: #0047CC;
    --tidio-blue-light: #E8F0FE;
    --tidio-dark: #0B1B2B;
    --tidio-dark-hover: #132942;
    
    /* Text Colors */
    --text-primary: #0B1B2B;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-white: #FFFFFF;
    
    /* Background Colors */
    --bg-white: #FFFFFF;
    --bg-light: #F7F8FA;
    --bg-dark: #0B1B2B;
    --bg-card: #FFFFFF;
    
    /* Border Colors */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E0;
    
    /* Accent Colors */
    --accent-green: #48BB78;
    --accent-yellow: #ECC94B;
    --accent-red: #F56565;
    --accent-purple: #9F7AEA;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-card: 0 0 0 1px rgba(0,0,0,0.05), 0 10px 40px -10px rgba(0,0,0,0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 24px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Font Family - Tidio uses custom fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   RESET & BASE STYLES
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(20px, 3vw, 28px);
}

h4 {
    font-size: 20px;
}

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

.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }

/* ============================================
   LAYOUT
============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: 80px 0;
}

.section-lg {
    padding: 120px 0;
}

/* ============================================
   HEADER - TIDIO STYLE (Dark)
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--tidio-dark);
    height: 72px;
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
    background: rgba(11, 27, 43, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-white);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--tidio-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
}

.nav-link .chevron {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 280px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-light);
}

.dropdown-icon {
    width: 40px;
    height: 40px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dropdown-item strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.dropdown-item span {
    font-size: 13px;
    color: var(--text-muted);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ============================================
   BUTTONS - TIDIO STYLE
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--border-medium);
}

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

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

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

.btn-ghost-dark:hover {
    background: var(--bg-light);
}

.btn-white {
    background: var(--bg-white);
    color: var(--tidio-blue);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-1px);
}

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

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

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   HERO SECTION - TIDIO STYLE
============================================ */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--bg-white);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--tidio-blue);
    margin-bottom: 24px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    background: var(--tidio-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--tidio-blue) 0%, #00C2FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Media */
.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: visible;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 63px;
    left: -40px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: calc(40% - 15px);
    right: 176px;
    animation-delay: 0.5s;
}

.floating-card.card-3 {
    bottom: calc(10% + 20px);
    right: 176px;
    animation-delay: 1s;
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.floating-card strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.floating-card span {
    font-size: 12px;
    color: var(--text-muted);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hide floating cards on mobile */
@media (max-width: 768px) {
    .floating-card {
        display: none !important;
    }
}


/* ============================================
   TRUSTED BY SECTION
============================================ */
.trusted-by {
    padding: 60px 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.trusted-label {
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.logo-carousel {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: scroll 30s linear infinite;
}

.logo-track img {
    height: 32px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.logo-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/* ============================================
   FEATURES SECTION - TIDIO STYLE
============================================ */
.features-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
}

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

.feature-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
    background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
    border: none;
}

.feature-card-large:hover {
    transform: none;
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--tidio-blue);
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: 10px;
}

.feature-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.feature-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   STATS SECTION
============================================ */
.stats-section {
    padding: 80px 0;
    background: var(--tidio-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

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

.stat-number {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #a0d8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

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

.testimonial-rating {
    margin-bottom: 16px;
    font-size: 18px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--tidio-blue-light);
    color: var(--tidio-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.cta-card {
    position: relative;
    background: var(--tidio-dark);
    border-radius: var(--radius-2xl);
    padding: 80px;
    text-align: center;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-card h2 {
    color: var(--text-white);
    margin-bottom: 16px;
}

.cta-card p {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn-ghost-white {
    background: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-ghost-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* CTA Decoration */
.cta-decoration {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--tidio-blue);
    opacity: 0.1;
}

.decoration-circle.circle-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.decoration-circle.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -50px;
}

/* ============================================
   PRICING SECTION - TIDIO STYLE
============================================ */
.pricing-section {
    padding: 100px 0;
    background: var(--bg-white);
}

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

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

.pricing-toggle-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.pricing-toggle-btn.active {
    background: var(--bg-white);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.pricing-badge {
    background: var(--accent-green);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--tidio-blue);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--tidio-blue);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured:hover {
    transform: scale(1.05);
}

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

.pricing-card-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-card-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-card-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 48px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
}

.price-currency {
    font-size: 24px;
    vertical-align: super;
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.price-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

.pricing-card-features {
    margin-bottom: 24px;
}

.pricing-card-features-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-feature svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: var(--accent-green);
}

.pricing-card-cta {
    margin-top: auto;
}

.pricing-card-cta .btn {
    width: 100%;
}
/* ============================================
   FOOTER - TIDIO STYLE
============================================ */
.site-footer {
    background: var(--tidio-dark);
    color: var(--text-white);
    padding-top: 80px;
}

.footer-top {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--tidio-blue);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--text-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

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

.footer-column a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.footer-badges {
    display: flex;
    gap: 16px;
}

.footer-badges .badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

/* ============================================
   LOGIN PAGE
============================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    border: 1px solid var(--border-light);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header .logo {
    justify-content: center;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 15px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-white);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--tidio-blue);
    box-shadow: 0 0 0 3px var(--tidio-blue-light);
}

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

.form-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.form-error.show {
    display: block;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    font-size: 14px;
    color: var(--text-muted);
}

.login-footer a {
    color: var(--tidio-blue);
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   DASHBOARD - TIDIO PANEL STYLE
============================================ */
.dashboard-page {
    min-height: 100vh;
    background: var(--bg-light);
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    width: 260px;
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

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

.sidebar-header .logo {
    color: var(--text-primary);
}

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

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

.nav-section-label {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
    margin-left: -3px;
}

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

.nav-item-link.active {
    background: var(--tidio-blue-light);
    color: var(--tidio-blue);
    border-left-color: var(--tidio-blue);
}

.nav-item-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-md);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--tidio-blue-light);
    color: var(--tidio-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Content */
.dashboard-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

.dashboard-topbar {
    height: 64px;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-content {
    flex: 1;
    padding: 32px;
}

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

.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-light);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Content Cards */
.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    margin-bottom: 24px;
    overflow: hidden;
}

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

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-light);
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--tidio-blue);
    background: var(--tidio-blue-light);
}

.upload-zone-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-md);
}

.upload-zone-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.upload-zone-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.upload-zone-hint {
    font-size: 12px;
    color: var(--text-muted);
}

/* Progress Bar */
.progress-container {
    padding: 24px;
    display: none;
}

.progress-bar {
    height: 6px;
    background: var(--bg-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--tidio-blue);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Document List */
.doc-list {
    display: flex;
    flex-direction: column;
}

.doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}

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

.doc-item:hover {
    background: var(--bg-light);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.doc-icon {
    width: 44px;
    height: 44px;
    background: var(--tidio-blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.doc-icon.pdf { background: #FEE2E2; }
.doc-icon.docx { background: #DBEAFE; }
.doc-icon.txt { background: #D1FAE5; }
.doc-icon.csv { background: #FEF3C7; }

.doc-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.doc-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.doc-empty {
    padding: 48px 24px;
    text-align: center;
}

.doc-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.doc-empty p {
    color: var(--text-muted);
}

/* Search */
.search-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    border-color: var(--tidio-blue);
    box-shadow: 0 0 0 3px var(--tidio-blue-light);
}

.search-results {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.result-item {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
}

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

.result-score {
    display: inline-block;
    background: var(--tidio-blue-light);
    color: var(--tidio-blue);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.result-source {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.alert.show {
    display: block;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
}

/* Tab Navigation */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card-large {
        grid-column: span 2;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Dashboard responsive */
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-main {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 24px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text-white);
        transition: all var(--transition-fast);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cta-card {
        padding: 48px 24px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}
