/* ============================================================
   Innovnet – Globales Stylesheet (White Mode / Enterprise)
   Inspiriert von Langdock.com – Clean, Professionell, Modern
   ============================================================ */

/* Custom Properties – Light Theme */
:root {
    --header-height: 72px;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fb;
    --bg-card: #ffffff;
    --border-subtle: #e5e7eb;
    --border-card: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent-1: #111827;
    --accent-2: #2563eb;
    --accent-cta: #2563eb;
    --color-success: #16a34a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.04);
    --transition: 0.2s ease;
    --max-width: 1200px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
    line-height: 1.6;
}

::selection {
    background: rgba(37, 99, 235, 0.15);
    color: #111827;
}

/* Remove dark gradient background */
.gradient-bg {
    display: none;
}

/* ============================================================
   Fixed Header / Navigation
   ============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition), box-shadow var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 32px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: width var(--transition);
}

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

nav a:hover::after {
    width: 100%;
}

/* Navigation CTA Button */
nav a.nav-cta {
    background: var(--text-primary);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

nav a.nav-cta::after {
    display: none;
}

nav a.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 8px;
    transition: background var(--transition);
}

.hamburger:hover {
    background: var(--bg-secondary);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    min-height: calc(90vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 60px;
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(36px, 5vw, 64px);
    max-width: 840px;
    color: var(--text-primary);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero p {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: clamp(16px, 1.4vw, 19px);
    max-width: 600px;
    line-height: 1.7;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-sub {
    margin-top: 24px;
    color: var(--text-secondary);
    font-size: clamp(16px, 1.4vw, 19px);
    max-width: 640px;
    line-height: 1.7;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

/* Hero Model Tags */
.hero-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
}

.model-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: border-color var(--transition), background var(--transition);
}

.model-tag:hover {
    border-color: var(--text-muted);
    background: #f1f3f5;
}

/* ============================================================
   Buttons
   ============================================================ */
.button, button.button {
    display: inline-block;
    margin-top: 0;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    background: var(--text-primary);
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.button:hover, button.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.9;
}

.button:active, button.button:active {
    transform: translateY(0);
}

.button-outline {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.button-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ============================================================
   Sections
   ============================================================ */
section {
    padding: 100px 8%;
    position: relative;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header-centered {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header-centered .section-subtitle {
    margin-bottom: 0;
}

.title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 56px;
    max-width: 600px;
    line-height: 1.7;
}

/* ============================================================
   Feature Cards (Platform)
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 28px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   Highlights (All-in-One)
   ============================================================ */
.highlights-section {
    padding: 100px 8%;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 48px;
}

.highlight-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-primary);
}

.highlight-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.highlight-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================================
   Services
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #d1d5db;
}

.service-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    flex: 1;
}

.service-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}

.service-link:hover {
    color: #1d4ed8;
}

/* ============================================================
   Fade-in scroll animations
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .fade-in:nth-child(2) { transition-delay: 0.06s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.12s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.18s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.24s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.3s; }
.services-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.services-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.highlights-grid .fade-in:nth-child(2) { transition-delay: 0.05s; }
.highlights-grid .fade-in:nth-child(3) { transition-delay: 0.1s; }
.highlights-grid .fade-in:nth-child(4) { transition-delay: 0.15s; }
.highlights-grid .fade-in:nth-child(5) { transition-delay: 0.2s; }
.highlights-grid .fade-in:nth-child(6) { transition-delay: 0.25s; }
.testimonials-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.case-studies-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.case-studies-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
    padding: 0 8% 100px;
}

.cta-box {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--text-primary);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.cta-box .button {
    background: #fff;
    color: var(--text-primary);
}

.cta-box .button:hover {
    background: #f3f4f6;
}

.cta-box .button-outline {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.cta-box .button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

/* ============================================================
   Testimonials
   ============================================================ */
#testimonials {
    background: var(--bg-secondary);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}

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

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

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.faq-item.open {
    border-color: #d1d5db;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 16px;
    transition: background var(--transition);
    letter-spacing: -0.01em;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* ============================================================
   Case Studies
   ============================================================ */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.case-study-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.case-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    padding: 5px 14px;
    border-radius: 20px;
    width: fit-content;
}

.case-study-card h3 {
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
}

.case-study-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    flex: 1;
}

.case-results {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-item strong {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
}

.result-item span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================================
   Contact Form (landing page)
   ============================================================ */
.contact-compact {
    background: var(--bg-secondary);
}

.contact-wrapper {
    max-width: 520px;
}

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

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    resize: vertical;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.contact-form input.error,
.contact-form textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.field-error {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #ef4444;
    min-height: 18px;
}

.contact-submit {
    margin-top: 8px;
    width: 100%;
    text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
footer {
    padding: 0 8%;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 14px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding: 56px 0 40px;
}

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

.footer-brand .logo {
    display: block;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}

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

.footer-location {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* ============================================================
   Trust / Security Section
   ============================================================ */
.trust-section {
    padding: 80px 8%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.trust-item {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.trust-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-primary);
}

.trust-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.trust-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trust-link {
    text-align: center;
    margin-top: 32px;
}

.trust-link a {
    color: var(--accent-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color var(--transition);
}

.trust-link a:hover {
    color: #1d4ed8;
}

/* ============================================================
   Auth Forms (Login / Register)
   ============================================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-secondary);
}

.auth-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.auth-box h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-box .subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.6;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.form-group input:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.form-group input.error {
    border-color: #ef4444;
}

.auth-box .button {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
    border-radius: var(--radius-sm);
}

.auth-footer {
    margin-top: 28px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-footer a {
    color: var(--accent-2);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.auth-footer a:hover {
    color: #1d4ed8;
}

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ============================================================
   Chat Interface
   ============================================================ */
.chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    height: 100vh;
    overflow: hidden;
}

.chat-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
}

.sidebar-top {
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.chat-sidebar .logo {
    font-size: 22px;
    margin-bottom: 16px;
    display: block;
}

.new-chat-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px dashed #d1d5db;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.new-chat-btn:hover {
    background: var(--bg-primary);
    border-color: var(--text-muted);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.chat-history h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding: 0 20px;
    font-weight: 600;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
}

.chat-list-empty {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    padding: 24px 12px;
}

.chat-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.chat-list-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.chat-list-item.active {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.chat-list-item-content {
    flex: 1;
    min-width: 0;
}

.chat-item-title {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.chat-item-date {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chat-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chat-list-item:hover .chat-delete-btn {
    opacity: 1;
}

.chat-delete-btn:hover {
    color: #ef4444;
    background: #fef2f2;
}

.sidebar-bottom {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.sidebar-bottom h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.free-badge {
    font-size: 12px;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 16px;
    font-weight: 500;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 101;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.sidebar-toggle:hover {
    background: var(--bg-secondary);
}

.model-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    margin-bottom: 24px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.model-select:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.model-select option {
    background: #fff;
    color: var(--text-primary);
}

.chat-model-badge {
    font-size: 12px;
    color: var(--accent-2);
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.12);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    margin: auto;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.chat-welcome h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.chat-welcome p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 420px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.welcome-models {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.welcome-model-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
}

.file-upload-btn {
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-upload-btn:hover {
    color: var(--accent-2);
    background: rgba(37, 99, 235, 0.06);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: 8px;
    flex-shrink: 0;
}

.file-preview img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.file-preview-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.file-preview-remove:hover {
    color: #ef4444;
    background: #fef2f2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--border-subtle);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    color: #fff;
}

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

.user-info a {
    color: var(--text-muted);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.user-info a:hover {
    color: var(--text-primary);
}

.chat-main {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-primary);
}

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

.chat-header h1 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.chat-messages:empty::after {
    content: 'Schreibe eine Nachricht, um das Gespräch zu beginnen.';
    color: var(--text-muted);
    font-size: 15px;
    text-align: center;
    margin: auto;
    padding: 20px;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 820px;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
    color: #fff;
}

.message.user-message .message-avatar {
    background: var(--text-primary);
}

.message.ai-message .message-avatar {
    background: var(--accent-2);
}

.message-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 680px;
}

.message.user-message .message-content {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: #fff;
}

.message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.message.user-message .message-time {
    text-align: left;
}

.thinking .message-content {
    color: var(--text-muted);
    font-style: italic;
}

.thinking .dots::after {
    content: '';
    animation: dots 1.4s infinite;
}

@keyframes dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}

.chat-input-area {
    padding: 16px 32px 24px;
    border-top: 1px solid var(--border-subtle);
}

.chat-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 12px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.06);
}

#messageInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 160px;
    min-height: 24px;
    line-height: 1.5;
    overflow-y: auto;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#messageInput::placeholder {
    color: var(--text-muted);
}

#sendBtn {
    background: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--transition), transform 0.15s ease;
}

#sendBtn:hover:not(:disabled) {
    opacity: 0.85;
    transform: scale(1.05);
}

#sendBtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.input-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
}

.btn-clear {
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    font-weight: 500;
}

.btn-clear:hover {
    border-color: #fecaca;
    color: #ef4444;
    background: #fef2f2;
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid,
    .highlights-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    header {
        padding: 0 5%;
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-subtle);
        flex-direction: column;
        padding: 16px 6%;
        gap: 0;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin-left: 0;
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--border-subtle);
    }

    nav a::after {
        display: none;
    }

    nav a:last-child {
        border-bottom: none;
    }

    .hero {
        min-height: calc(80vh - var(--header-height));
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }

    section {
        padding: 60px 5%;
    }

    .highlights-section {
        padding: 60px 5%;
    }

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

    .cta-section {
        padding: 0 5% 40px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-trust {
        flex-direction: column;
        gap: 8px;
    }

    .title {
        font-size: 26px;
    }

    .faq-question {
        font-size: 15px;
        padding: 16px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.open .faq-answer {
        padding: 0 20px 16px;
    }

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

    .footer-links {
        flex-wrap: wrap;
        gap: 32px;
    }

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

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-section {
        padding: 60px 5%;
    }

    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        width: 280px;
        height: 100vh;
        z-index: 200;
        background: var(--bg-secondary);
        transition: left 0.3s ease;
    }

    .chat-sidebar.open {
        left: 0;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
    }

    .sidebar-toggle {
        display: flex;
    }

    .chat-messages {
        padding: 16px;
    }

    .chat-input-area {
        padding: 12px 16px 20px;
    }

    .chat-header {
        padding: 16px;
        padding-left: 64px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .auth-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }

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

    .testimonials-grid,
    .case-studies-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .service-card,
    .testimonial-card,
    .case-study-card {
        padding: 24px;
    }
}

/* ── Legal Pages (Impressum, Datenschutz) ── */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 24px 60px;
}

.legal-page .title {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 36px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 24px 0 8px;
}

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

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 8px 0 16px 24px;
}

.legal-content ul li {
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-content a:hover {
    color: #1d4ed8;
}

/* ============================================================
   Settings Page
   ============================================================ */
.settings-container {
    min-height: 100vh;
    padding: 100px 20px 60px;
    background: var(--bg-secondary);
}

.settings-page {
    max-width: 640px;
    margin: 0 auto;
}

.settings-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

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

.settings-card h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-card-header h2 {
    margin-bottom: 0;
}

.settings-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    flex-shrink: 0;
}

.settings-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.settings-link {
    color: var(--accent-2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
}

.settings-link:hover {
    color: #1d4ed8;
}

.plan-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-free {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.plan-pro {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.api-key-display code {
    flex: 1;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-primary);
    word-break: break-all;
}

.btn-copy {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.button-sm {
    padding: 10px 24px;
    font-size: 14px;
    margin-top: 12px;
}

.upgrade-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-top: 16px;
}

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

.upgrade-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.upgrade-price .price-amount,
.upgrade-price-big .price-amount-big {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.upgrade-price .price-period,
.upgrade-price-big .price-period {
    font-size: 14px;
    color: var(--text-muted);
}

.upgrade-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.upgrade-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.upgrade-btn {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

.upgrade-card {
    text-align: center;
}

.upgrade-card-top {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.upgrade-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.upgrade-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px;
    margin: 16px auto 0;
}

.upgrade-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.upgrade-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--text-primary);
    font-size: 15px;
    border-bottom: 1px solid var(--border-subtle);
}

.feature-check {
    color: #16a34a;
    font-weight: 700;
    flex-shrink: 0;
}

.upgrade-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
    text-align: left;
}

.comparison-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px;
}

.comparison-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.comparison-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-item li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.comparison-pro {
    border-color: var(--accent-2);
    background: rgba(37, 99, 235, 0.03);
}

.upgrade-submit {
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 14px;
}

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

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
}

.sidebar-link-upgrade {
    color: var(--accent-2);
}

.sidebar-link-upgrade:hover {
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
}

.model-select optgroup {
    background: #fff;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 4px 0;
}

/* Settings responsive */
@media (max-width: 768px) {
    .settings-container {
        padding: 80px 16px 40px;
    }

    .settings-card {
        padding: 24px;
    }

    .upgrade-comparison {
        grid-template-columns: 1fr;
    }

    .api-key-display {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ============================================================
   Pricing (if needed)
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent-2);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
}

.featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 18px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-amount {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-primary);
}

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

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    flex: 1;
}

.feature-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

.feature-list li.disabled {
    color: var(--text-muted);
}

.feature-list li.disabled::before {
    content: '–';
    color: var(--text-muted);
}

.pricing-btn {
    width: 100%;
    text-align: center;
    margin-top: 0;
}

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

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
}
