/* ===== CSS Variables ===== */
:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --secondary: #3b82f6;
    --accent: #0ea5e9;

    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #f8fafc;

    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

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

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.04), 0 10px 15px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 20px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.1);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.15);
    --primary-glow: rgba(59, 130, 246, 0.2);
    --secondary: #60a5fa;
    --accent: #38bdf8;

    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-card: #1e293b;
    --bg-dark: #020617;
    --bg-dark-secondary: #0f172a;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-white: #f8fafc;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.18);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25), 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3), 0 20px 48px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .trusted-logos {
    opacity: 0.3;
}

[data-theme="dark"] .trusted-logos span {
    color: var(--text-muted);
}

[data-theme="dark"] .toast {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.4s ease;
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

/* ===== Language Selector ===== */
.lang-selector-wrapper {
    position: relative;
}

.lang-selector-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.lang-selector-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
}

.lang-selector-btn .flag {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-selector-btn .lang-name {
    font-weight: 500;
}

.lang-selector-btn .chevron-icon {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.lang-selector-wrapper.open .chevron-icon {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.lang-selector-wrapper.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.lang-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.lang-option .flag {
    font-size: 1.2rem;
}

.lang-option .check-icon {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: var(--primary);
    display: none;
}

.lang-option.active .check-icon {
    display: block;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-inner {
    max-width: 1400px; /* Increased max-width for complex navigation */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}

.logo span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    white-space: nowrap; /* Prevent wrapping */
    display: block;
}

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

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

.nav-translate-btn {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-translate-btn:hover {
    background: var(--bg-tertiary);
    color: var(--primary);
}

.nav-auth-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 1400px) and (min-width: 1101px) {
    .nav-links a {
        padding: 8px 10px;
        font-size: 0.88rem;
    }
    .nav-auth-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .nav-links {
        gap: 0;
    }
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-cta {
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

@media (max-width: 1250px) and (min-width: 1101px) {
    .user-name-text, 
    .nav-links li:nth-child(2) { /* Hide 'Nasıl Çalışır' on medium screens to save space */
        display: none;
    }
}

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

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* ===== Upload Area ===== */
.upload-area {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.02);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--primary-glow);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    width: 56px;
    height: 56px;
    color: var(--primary);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.upload-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-upload {
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-upload:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-demo {
    padding: 12px 28px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-demo:hover {
    border-color: var(--border-hover);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

/* ===== Preview Section ===== */
.preview-section {
    max-width: 680px;
    margin: 24px auto 0;
}

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

.preview-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.preview-image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    display: block;
    border-radius: var(--radius-lg);
}

.remove-image-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.remove-image-btn:hover {
    background: var(--error);
    transform: scale(1.1);
}

.remove-image-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Loading Section ===== */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 48px 0;
}

.spinner {
    width: 44px;
    height: 44px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== Result Section ===== */
.result-section {
    max-width: 680px;
    margin: 24px auto 0;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.result-title {
    font-size: 1rem;
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 8px;
}

.result-content {
    padding: 20px;
}

#resultText {
    width: 100%;
    min-height: 180px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
}

#resultText:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ===== Error Section ===== */
.error-section {
    max-width: 500px;
    margin: 24px auto 0;
}

.error-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.error-icon {
    width: 48px;
    height: 48px;
    color: var(--error);
}

.error-message {
    color: var(--text-secondary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

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

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

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

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

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

/* ===== Trusted Section ===== */
.trusted-section {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-secondary);
}

.trusted-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 28px;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.4;
}

.trusted-logos span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: -0.5px;
}

/* ===== Features Section ===== */
.features-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

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

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition-normal);
}

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

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

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

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

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

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: 80px 0;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition-normal);
}

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

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    color: #fbbf24;
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--border-hover);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== Dark Footer ===== */
.site-footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 80px 0 40px;
}

.footer-cta {
    text-align: center;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.footer-cta h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.footer-cta .btn-cta {
    padding: 14px 36px;
    font-size: 1.05rem;
}

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

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

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

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

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

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
}

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

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===== API Page Styles ===== */
.api-docs-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.doc-section {
    margin-bottom: 60px;
}

.doc-title {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.doc-subtitle {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.doc-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.parameter-table th,
.parameter-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.parameter-table th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.parameter-table td {
    color: var(--text-secondary);
}

.badge-req {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.contact-box {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.api-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition-normal);
}

.api-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.method-badge {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.method-badge.post {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.method-badge.get {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.endpoint {
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.code-block {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-dark-secondary);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.code-block pre {
    padding: 16px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.875rem;
    color: var(--text-white);
    line-height: 1.6;
}

/* ===== Chat & Support ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble {
    max-width: 80%;
    padding: 16px 20px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.msg-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.msg-admin {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble .meta {
    display: block;
    font-size: 0.75rem;
    margin-top: 8px;
    opacity: 0.7;
}

/* ===== Support Widgets ===== */
.ticket-widget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.ticket-widget-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    transform: translateX(4px);
}

.ticket-status-pill {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-pill-open { background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.status-pill-replied { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.status-pill-closed { background: var(--bg-tertiary); color: var(--text-muted); }

/* ===== API Security Toggle ===== */
.api-security-toggle {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.security-settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s ease;
    opacity: 0;
}

.security-settings-content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

.config-textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-primary);
    resize: none;
    transition: all var(--transition-fast);
}

.config-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.footnote-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    display: block;
}

.footnote-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footnote-text a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
/* ===== Dashboard Layout ===== */
.dashboard-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 24px;
    animation: fadeInUp 0.6s ease;
}

.dashboard-title-area {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Ticket Detail Styles */
.ticket-detail-header { 
    background: var(--bg-card); 
    padding: 32px 40px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color); 
    margin-bottom: 32px; 
    box-shadow: var(--shadow-sm); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.back-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    color: var(--text-secondary); 
    text-decoration: none; 
    margin-bottom: 24px; 
    font-weight: 500; 
    transition: color 0.2s; 
}

.back-link:hover { 
    color: var(--primary); 
}

.reply-card { 
    background: var(--bg-card); 
    padding: 32px; 
    border-radius: var(--radius-lg); 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow-md); 
    margin-top: 40px; 
}

/* Common Card Styles */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* Visibility Helpers */
.mobile-only {
    display: none !important;
}

/* ===== Forms & Inputs ===== */
.auth-form-group {
    margin-bottom: 24px;
    text-align: left;
}

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

.auth-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

textarea.auth-input {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.desktop-only {
    display: flex !important;
}

/* Modals */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    backdrop-filter: blur(4px); 
}
.modal-content { 
    background: var(--bg-card); 
    margin: 10% auto; 
    padding: 32px; 
    border-radius: var(--radius-lg); 
    max-width: 500px; 
    width: 90%; 
    position: relative; 
    box-shadow: var(--shadow-xl); 
}
.close-modal { 
    position: absolute; 
    right: 24px; 
    top: 24px; 
    cursor: pointer; 
    font-size: 1.5rem; 
    color: var(--text-muted); 
}
.modal-content h2 {
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

/* ===== Responsive Fixes ===== */
@media (max-width: 1100px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    
    .dashboard-container {
        margin-top: 90px;
        padding: 0 16px;
    }
    
    .dashboard-title-area {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        padding: 40px 24px;
        flex-direction: column;
        gap: 12px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-xl);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        pointer-events: none;
        display: flex;
        text-align: center;
    }

    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px;
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-primary);
        border-radius: var(--radius-md);
    }

    .nav-links a:hover {
        background: var(--bg-tertiary);
        color: var(--primary);
    }

    .lang-selector {
        display: none;
    }

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

    .hero {
        padding-top: 110px;
        padding-bottom: 40px;
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .upload-area {
        padding: 32px 20px;
    }

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .trusted-logos {
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .result-header {
        flex-direction: column;
        text-align: center;
    }

    .result-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .features-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
