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

:root {
    --primary: #002FFF;
    --primary-dark: #0029D9;
    --secondary: #6A00FF;
    --accent: #EC4899;
    
    /* Modern background colors */
    --background: #0A0A0F;
    --background-lighter: #0F0F17;
    --foreground: #FFFFFF;
    
    /* Modern text colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Modern effects */
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(106, 0, 255, 0.2);
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--background);
    color: var(--foreground);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Modern-style Interactive elements styling */
button, a, input, textarea, select {
    pointer-events: auto;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced global transitions removed - merged with main * selector */

/* Screen reader only - for SEO h1 tags that should be hidden visually */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Account Management Styles */
.account-management {
    padding: 1.5rem;
}

.account-management h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.account-management h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
}

.linked-accounts {
    margin-bottom: 2rem;
}

.linked-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    backdrop-filter: blur(10px);
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.account-info .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.account-info .details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-info .details strong {
    color: var(--text-primary);
    font-size: 1rem;
}

.account-info .provider {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.primary-badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.unlink-btn {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.unlink-btn:hover {
    background: var(--accent);
    color: white;
}

.unlink-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.primary-note {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.available-providers {
    margin-top: 1rem;
}

.link-provider-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.link-provider-btn:hover {
    background: var(--primary-dark);
}

.link-provider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text wrapping rules - prevent breaking words */
p, h1, h2, h3, h4, h5, h6, span, a, li, td, th, div {
    word-wrap: normal;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
}
/* Modern Exact Navigation Replica */
.floating-nav {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    z-index: 9999;
    padding: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-nav.scrolled {
    width: 75%;
}


/* Hide Supervisor text at 840px, keep nav links centered */
@media (max-width: 840px) {
    .nav-logo span {
        display: none !important;  /* Hide "Supervisor" text first to save space */
    }
    
    .nav-container {
        justify-content: space-between;
    }

    .nav-logo {
        position: static;
    }
    
    /* Logo positioning will be handled by more specific rules below */
}

/* More specific rule for the problematic range where button is visible */
@media (max-width: 768px) {
    .floating-nav.dashboard-mode .nav-logo {
        margin-left: 12px; /* Small gap between menu button and logo */
    }
}

/* Hide navigation links below 670px */
@media (max-width: 670px) {
    .floating-nav,
    .floating-nav.scrolled {
        width: calc(100% - 20px);
        max-width: none;
    }
    
    .nav-links-container {
        display: none !important;  /* Hide navigation links on very small screens */
    }
}

@media (min-width: 768px) {
    .floating-nav {
        width: 95%;
        max-width: 900px;
    }

    .floating-nav.scrolled {
        width: 90%;
        max-width: 750px;
    }
}

@media (min-width: 1024px) {
    .floating-nav {
        width: 85%;
        max-width: 1000px;
    }

    .floating-nav.scrolled {
        width: 70%;
        max-width: 800px;
    }
}


.dashboard-user-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    width: 280px;
    background: rgba(8, 8, 12, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;
    overflow-y: auto;
    padding: 24px 0;
}

.sidebar-nav {
    padding: 0 24px;
}

.sidebar-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-nav-item.active {
    background: rgba(0, 47, 255, 0.15);
    color: #4A9FFF;
    border: 1px solid rgba(0, 47, 255, 0.2);
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #002FFF;
    border-radius: 0 2px 2px 0;
}

.sidebar-nav-text {
    flex: 1;
}

/* Dashboard Page Content */
.dashboard-page {
    margin-left: 300px;
    margin-top: 56px;
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    background: var(--background);
    padding: 44px 20px 40px;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Dashboard section styling */
.dashboard-section {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Dashboard section header styles moved to unified location below */

/* Glass card effects for dashboard content */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* API Keys specific styling */
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.api-key-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
}

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

.api-key-header h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.api-key-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.api-key-status.active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.api-key-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Simple dashboard sidebar styles - card appearance */
.simple-dashboard-sidebar {
    width: 260px;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    background: #0A0A0F;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 50;
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.simple-sidebar-nav {
    flex: 1;
    padding: 24px;
}

.simple-sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.simple-sidebar-nav li {
    margin: 0;
}

.simple-sidebar-link {
    display: block;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.simple-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

.simple-sidebar-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

/* Dashboard navigation user info styles */
.dashboard-user-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.nav-user-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Far left positioning for mobile responsiveness */
.sidebar-toggle-btn.far-left {
    margin-right: 0px;
    margin-left: 0;
    order: -1;
}

/* Dashboard navigation styling for better scroll behavior */
.floating-nav {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When on dashboard pages, ensure proper docking behavior */
.floating-nav.dashboard-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    border-radius: 0;
    z-index: 1000;
    transform: none !important;
    padding: 0px !important;
    pointer-events: none;
}

.floating-nav.dashboard-mode .nav-container {
    pointer-events: auto;
}

.floating-nav.dashboard-mode .nav-container {
    background: #0A0A0F;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
}

.floating-nav.dashboard-mode.scrolled {
    top: 0;
    left: 0;
    right: 0;
    width: auto !important;
}

.floating-nav.dashboard-mode.scrolled .nav-container {
    background: #0A0A0F;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
}

/* Dashboard sidebar for desktop */
@media (min-width: 769px) {
    .simple-dashboard-sidebar {
        transform: translateX(0);
        box-shadow: none;
    }
}

/* Responsive Dashboard Layout */
@media (max-width: 768px) {
    .floating-nav.dashboard-mode .nav-container {
        padding: 0 16px;
    }
    
    .user-name {
        display: none;
    }
    
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .simple-dashboard-sidebar {
        width: 260px;
        height: calc(100vh - 56px);
        height: calc(100dvh - 56px);
        top: 56px;
        left: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        background: #0A0A0F;
        border: none;
        border-radius: 0;
    }
    
    .simple-dashboard-sidebar.open {
        transform: translateX(0);
    }
    
    .dashboard-page {
        margin-left: 0;
        margin-top: 56px;
        padding: 44px 16px 20px;
    }
    
    .sidebar-toggle-btn {
        display: block;
    }
}

/* Override: Hide sidebar toggle when nav-links are visible (at 769px+) */
@media (min-width: 769px) {
    .sidebar-toggle-btn {
        display: none !important;
    }
}

/* Continue dashboard mobile layout */
@media (max-width: 768px) {    
    .api-key-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-user-name {
        display: none;
    }
    
    .floating-nav.dashboard-mode {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        top: 10px !important;
        transform: none !important;
        padding: 0px !important;
    }
}

@keyframes navFloat {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Modern Navigation Container */
.nav-container {
    display: flex;
    height: 56px;
    align-items: center;
    padding: 0 20px;
    /* No background when docked */
    background: rgba(10, 10, 15, 0);
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 0px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: space-between;
}

/* When scrolled - show background and floating style */
.floating-nav.scrolled .nav-container {
    margin: 0 auto;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.03);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    transition-duration: 150ms;
    flex-shrink: 0;
}

.nav-links-container {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex: 1;
}

@media (min-width: 769px) {
    .nav-links-container {
        display: flex;
    }
}


/* Modern Navigation Selector */
.nav-selector {
    position: relative;
    user-select: none;
}

.nav-selector-bg {
    position: absolute;
    height: 35px;
    transition: all 200ms ease-out;
    background: rgba(14, 15, 17, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    opacity: 0;
}

.nav-selector-underline {
    display: none;
}

.nav-links-inner {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.nav-link-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    cursor: pointer;
    transition: all 300ms ease;
    height: 35px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: relative;
    margin: 0 2px;
}

.nav-link.active {
    color: var(--text-primary);
    background: rgba(14, 15, 17, 0.12);
}

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

.nav-link.active:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
}

.nav-link-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Modern Navigation Actions */
.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-shrink: 0;
}

/* Modern Exact CTA Button */

/* Modern Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 150ms ease, color 150ms ease;
    outline: none;
    pointer-events: auto;
    opacity: 1;
    height: 40px;
    width: 40px;
    border-radius: 9999px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 150ms ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.sun-icon {
    height: 1.2rem;
    width: 1.2rem;
    rotate: 0deg;
    scale: 1;
    transition: all 150ms ease;
}

/* Modern-style Pill Button */
.cta-button {
    position: relative;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border: 3px solid rgba(255, 255, 255, 0.75);
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    text-transform: none;
}

.cta-button.large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: 40px;
    border-width: 4px;
}


.glow-button {
    position: relative;
    isolation: isolate;
}

.glow-border {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary) 90deg,
        var(--secondary) 180deg,
        var(--primary) 270deg,
        transparent 360deg
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: rotateBorder 3s linear infinite;
}

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

.glow-button:hover .glow-border {
    opacity: 1;
}

.button-text {
    position: relative;
    z-index: 1;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(106, 0, 255, 0.5),
                0 4px 16px rgba(106, 0, 255, 0.3);
    border-color: rgba(106, 0, 255, 0.6);
}

.secondary-button {
    background: transparent;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(106, 0, 255, 0.3);
    border-radius: 9999px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.secondary-button:hover {
    background: rgba(106, 0, 255, 0.1);
    border-color: rgba(106, 0, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(106, 0, 255, 0.2);
}

/* Modern-style Hero Section */
.hero-section {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    margin-bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 1rem 2rem; /* Add top padding to account for fixed nav */
    box-sizing: border-box;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.5rem;
    max-width: 50rem;
    margin: 0 auto;
    padding: 1rem 0;
}

/* Responsive adjustments for low viewport heights */
@media (max-height: 800px) {
    .hero-section {
        min-height: auto;
        padding: 100px 1rem 2rem;
    }
    
    .hero-content {
        gap: 0.25rem;
    }
    
    .hero-title {
        margin-bottom: 0.75rem !important;
    }
    
    .hero-subtitle {
        margin-bottom: 1.5rem !important;
    }
    
    .hero-actions {
        gap: 0.75rem !important;
    }
}

@media (max-height: 600px) {
    .hero-section {
        padding: 90px 1rem 1rem;
    }
    
    .hero-badge {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-features {
        padding: 0.5rem 1rem !important;
        margin-bottom: 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    .hero-btn-primary {
        padding: 0.625rem 1.5rem !important;
        font-size: 0.9375rem !important;
    }
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* Hero Features Badge */
.hero-features {
    backdrop-filter: blur(12px);
}

/* Modern-style buttons with proper hover effects */
.hero-btn-primary:hover {
    filter: brightness(0.9);
}

/* Text color utilities */
.text-muted-foreground {
    color: rgba(255, 255, 255, 0.7);
}

/* Tailwind-like utilities removed - unused in codebase */

/* Additional unused utility classes removed */

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* Unused gradient utilities removed */

.cursor-pointer {
    cursor: pointer;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-150 {
    transition-duration: 150ms;
}

.group-hover\\:translate-x-1:hover {
    transform: translateX(0.25rem);
}




.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Unused responsive utility classes removed */

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

/* Modern hero animation */
.hero-section [style*="opacity:0"] {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Modern Hero Badge - Clean */
.hero-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #8A33FF;
    border-radius: 9999px;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* Modern Hero Title - Clean Match */
.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Modern Hero Subtitle - Very Compact */
.hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    max-width: 42rem;
    opacity: 0.85;
}

/* Hero Features Badge */
.hero-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    backdrop-filter: blur(16px);
    margin-bottom: 0.75rem;
}

.feature-dot {
    font-size: 1.25rem;
    color: #ffffff;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

/* Hero Buttons */
.hero-btn-primary {
    --btn-bg: white;
    --btn-lightness: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: 600;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    border-radius: 9999px;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    height: 42px;
    background-color: var(--btn-bg);
    font-size: 0.875rem;
    color: black;
    border: 3px solid #b3b3b3;
    text-decoration: none;
}

/* Pale green variant for secondary actions */
.hero-btn-primary.btn-pale-green {
    --btn-bg: #a8d5a8;
}

/* Modern browsers: automatically calculate text and border colors based on background lightness */
@supports (color: oklch(from white l c h)) {
    .hero-btn-primary {
        /* Text color: pure black for light backgrounds (>60% lightness), pure white for dark backgrounds */
        color: oklch(from var(--btn-bg) calc(sign(0.6 - l) * 100%) 0 h);

        /* Border: darken light colors by 30%, lighten dark colors by 30% */
        border-color: oklch(from var(--btn-bg) calc(l - 0.3 * sign(l - 0.5)) c h);
    }
}

/* Responsive adjustments - Matching Modern exactly */
@media (min-width: 640px) {
    .hero-badge {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        line-height: 1.6rem;
    }

    .hero-btn-primary {
        font-size: 1rem;
    }
}

@media (min-width: 768px) {
    .hero-badge {
        font-size: 0.875rem;
    }
    
    .hero-features {
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
}

@media (min-width: 640px) {
    .big-heading {
        font-size: 3rem;
    }
    
    .subtext {
        font-size: 1.125rem;
        line-height: 1.6rem;
    }
    
    .section-title {
        font-size: 3rem !important;
    }
    
    .section-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6rem !important;
    }
}

@media (min-width: 768px) {
    .big-heading {
        font-size: 3.75rem;
    }
    
    .subtext {
        font-size: 1.25rem;
        line-height: 1.75rem;
    }
    
    .section-title {
        font-size: 3.75rem !important;
    }
    
    .section-subtitle {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
}

@media (min-width: 1070px) {
    .big-heading {
        font-size: 4.5rem;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 4.5rem !important;
    }
}

/* Force section subtitle to match hero subtitle exactly */
.features .section-subtitle,
.integrations .section-subtitle, 
.pricing-section .section-subtitle,
section .section-subtitle {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: var(--text-secondary) !important;
    opacity: 0.85 !important;
    font-weight: 400 !important;
    max-width: 42rem !important;
    text-align: center !important;
    margin: 0 auto 24px auto !important;
}

@media (min-width: 640px) {
    .features .section-subtitle,
    .integrations .section-subtitle, 
    .pricing-section .section-subtitle,
    section .section-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6rem !important;
    }
}

@media (min-width: 768px) {
    .features .section-subtitle,
    .integrations .section-subtitle, 
    .pricing-section .section-subtitle,
    section .section-subtitle {
        font-size: 1.25rem !important;
        line-height: 1.75rem !important;
    }
}

/* Standardized Typography System */
.big-heading {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.subtext {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0.85;
    font-weight: 400;
}

/* Force section titles to match hero title exactly */
section .section-title,
.features .section-title,
.integrations .section-title,
.pricing-section .section-title {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    color: var(--text-primary) !important;
}

@media (min-width: 640px) {
    section .section-title,
    .features .section-title,
    .integrations .section-title,
    .pricing-section .section-title {
        font-size: 3rem !important;
    }
}

@media (min-width: 768px) {
    section .section-title,
    .features .section-title,
    .integrations .section-title,
    .pricing-section .section-title {
        font-size: 3.75rem !important;
    }
}

@media (min-width: 1070px) {
    section .section-title,
    .features .section-title,
    .integrations .section-title,
    .pricing-section .section-title {
        font-size: 4.5rem !important;
    }
}

/* Removed old hero CSS - now using Modern-style structure with Tailwind classes */


/* Removed duplicate audience and guarantee CSS - not needed in new Modern structure */

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(106, 0, 255, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    position: relative;
}

.badge-pulse {
    position: absolute;
    left: 12px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Old hero-title removed - using Modern compact version above */

.gradient-text {
    background: linear-gradient(
        90deg,
        #cc6666,  /* Desaturated Red */
        #cc9966,  /* Desaturated Orange */
        #cccc66,  /* Desaturated Yellow */
        #66cc66,  /* Desaturated Green */
        #6666cc,  /* Desaturated Blue */
        #6d5a7a,  /* Desaturated Indigo */
        #9966b8,  /* Desaturated Violet */
        #cc6666   /* Desaturated Red (loop back) */
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow-shift 8s linear infinite;
}

@keyframes rainbow-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 400% 50%;
    }
}

.plain-text {
    color: var(--text-primary);
    text-shadow: none;
}

/* Duplicate hero-subtitle removed - using the one above */

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

/* Modern Frosted Glass Cards */
.glass-card {
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    position: relative;
    overflow: hidden;
    transition: all 150ms ease;
}

/* Allow overflow for pricing cards specifically */
.pricing-card.glass-card {
    overflow: visible;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 50%, 
        transparent 100%);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(106, 0, 255, 0.1),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}


.hero-card {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.1) 0%, transparent 70%);
    animation: glowRotate 10s linear infinite;
}

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

.code-preview {
    font-family: 'Courier New', monospace;
    text-align: left;
    font-size: 14px;
    line-height: 1.8;
}

.code-line {
    opacity: 0;
    animation: fadeInCode 0.5s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.1s; }
.code-line:nth-child(2) { animation-delay: 0.2s; }
.code-line:nth-child(3) { animation-delay: 0.3s; }
.code-line:nth-child(4) { animation-delay: 0.4s; }
.code-line:nth-child(5) { animation-delay: 0.5s; }
.code-line:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInCode {
    to {
        opacity: 1;
    }
}

.code-line.indent {
    padding-left: 24px;
}

.code-keyword { color: #C084FC; }
.code-var { color: #60A5FA; }
.code-func { color: #34D399; }
.code-prop { color: #F87171; }
.code-string { color: #FDE68A; }

/* Features Section */
.features {
    padding: 40px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin-bottom: 32px;
    word-break: keep-all;
    hyphens: none;
    white-space: normal;
    letter-spacing: -0.025em !important;
    color: var(--text-primary) !important;
}

.section-subtitle {
    font-size: 1rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    margin-bottom: 24px;
    opacity: 0.85 !important;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
    max-width: 1000px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 20px 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
}


.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    inset: -12px;
    background: radial-gradient(circle, rgba(106, 0, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(16px);
    opacity: 0.8;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: auto;
    line-height: 1.4;
    font-size: 14px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.feature-stats {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.stat {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #a8d5a8;
    background: rgba(168, 213, 168, 0.1);
    border: 1px solid rgba(168, 213, 168, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Trust & Social Proof Section */
.trust-section {
    padding: 100px 32px;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 80px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.trust-badge {
    text-align: center;
    padding: 32px 20px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.trust-badge h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.trust-badge p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Stats Section */
.stats-section {
    text-align: center;
    margin-bottom: 80px;
}

.stats-section h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--text-primary);
}

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

@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.stat-item {
    text-align: center;
    padding: 24px;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonials section removed - unused in codebase */

/* Pricing Section */
.pricing-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 60px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 4px;
    background: rgba(20, 20, 23, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    white-space: nowrap;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 9999px;
    position: relative;
}

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

.toggle-btn.active {
    background: #b8a8d5;
    color: black;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(184, 168, 213, 0.25);
}

.save-badge {
    font-size: 12px;
    padding: 2px 6px;
    background: rgba(106, 0, 255, 0.2);
    border-radius: 4px;
    margin-left: 4px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 40px;
    padding-top: 20px; /* Add padding to prevent badge cutoff */
    overflow: visible; /* Allow overflow for badges */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.pricing-card {
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: visible; /* Allow badge to extend outside */
    min-height: 280px;
}


.pricing-card.popular {
    border: 2px solid #b8a8d5;
    transform: scale(1.08);
    margin-top: 16px; /* Add space for badge */
}


.popular-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #b8a8d5;
    color: black;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10; /* Ensure badge is above other elements */
    white-space: nowrap; /* Prevent text wrapping */
}

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

.pricing-header p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

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

.price-amount {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.price-period {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    opacity: 0.7;
}

.pricing-features {
    text-align: left;
    margin-bottom: auto;
    flex-grow: 1;
    margin-top: 8px;
}

.pricing-features .feature-item {
    margin-bottom: 8px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.pricing-features .feature-item::before {
    content: "•";
    color: var(--text-secondary);
    font-weight: bold;
    flex-shrink: 0;
}


/* Pricing FAQ */
.pricing-faq h3 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.faq-item {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
}

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

/* Modern-style FAQ Section */
.faq-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-accordion-container {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(20, 20, 23, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-item {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.faq-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.faq-toggle {
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
}

@media (min-width: 768px) {
    .faq-toggle {
        font-size: 18px;
    }
}

.faq-toggle:hover span {
    text-decoration: underline;
}

.faq-toggle span {
    flex: 1;
    line-height: 1;
    transition: text-decoration 0.15s ease;
}

.faq-icon {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding: 0;
}

.faq-content p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.75;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

@media (max-width: 1024px) {
    .faq-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.faq-category h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    padding: 20px 0;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

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

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-accordion.active .faq-question svg {
    transform: rotate(180deg);
}

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

.faq-accordion.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

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

/* FAQ CTA */
.faq-cta {
    text-align: center;
    padding: 48px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-cta h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 18px;
}

/* Integrations Section */
.integrations {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 60px 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

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

.integration-card {
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    align-items: center;
}



.integration-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.integration-icon svg {
    width: 48px;
    height: 48px;
}

.integration-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-card p {
    color: var(--text-secondary);
    margin-bottom: auto;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 8px;
}

/* Standardized Badge Styles */

/* Integration CTAs */

/* CTA Section */
.cta-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 60px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 48px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.cta-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
}

.cta-features {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 80px 24px 32px;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 16px;
}

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

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 14px;
}

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

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

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

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

#page-wrapper {
    position: relative;
    width: 100%;
}

/* INSANE ANIMATION STYLES */
.char {
    display: inline-block;
    will-change: transform, opacity, color;
    transform-style: preserve-3d;
}

.split-text {
    perspective: 2000px;
    transform-style: preserve-3d;
    position: relative;
}

[data-animate] {
    will-change: transform, opacity, filter;
}

/* 3D Card Effects */
.glass-card {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: none !important;
}

.glass-card::before {
    will-change: transform;
}

/* Particle explosion effects */
.particle-container {
    overflow: visible !important;
}

.explosion-particle {
    will-change: transform, opacity;
}

/* Enhanced hover states */

/* Magnetic attraction effect */
.magnetic {
    cursor: none;
}

/* Trail dots enhancement */
.trail-dot {
    filter: blur(0.5px);
    mix-blend-mode: screen;
}

/* Enhanced glass morphism */
.glass-card::after {
    transition: opacity 0.3s ease, transform 0.3s ease;
}


/* Hero depth layers removed - conflicts with compact hero-title above */

/* Glitch text effects already handled in JS */

/* Scroll animations optimization */
.glass-card {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}


/* Optimize animations during scroll */
.scrolling .glass-card {
    will-change: auto;
    pointer-events: none;
}

.scrolling .glass-card::after {
    opacity: 0 !important;
}

/* All elements visible by default */
.fade-in,
.fade-in-up,
.split-text .char,
[data-animate="fade-up"],
[data-animate="fade-scale"],
[data-animate="fade-up-stagger"] > *,
.glass-card {
    opacity: 1;
    transform: none;
}

/* Smooth section transitions */
section {
    position: relative;
    z-index: 1;
}

/* Enhanced parallax layers */
[data-parallax] {
    will-change: transform;
    transform: translateZ(0);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform-origin: left;
    transform: scaleX(0);
    z-index: 10000;
    transition: transform 0.1s ease;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .integrations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Hero title size controlled by compact version above */
}

@media (max-width: 768px) {
    .floating-nav {
        width: calc(100% - 24px);
        max-width: none;
        padding: 8px;
        top: 12px;
    }
    
    .floating-nav.scrolled {
        width: calc(100% - 24px);
        max-width: none;
    }
    
    .nav-container {
        gap: 12px;
        padding: 8px 12px;
    }
    
    .nav-actions {
        gap: 8px;
    }

    /* Fix pricing toggle on mobile - allow clean wrapping */
    .pricing-toggle {
        flex-wrap: wrap;
        max-width: calc(100% - 1rem);
        padding: 3px;
        gap: 4px;
        justify-content: center;
        border-radius: 16px; /* Reduce from 9999px to accommodate wrapped buttons */
    }
    
    .toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 0 1 auto;
        min-width: 100px;
        white-space: nowrap;
        border-radius: 12px; /* Reduce button rounding to match container */
    }

    /* Mobile-specific hero improvements */
    .audience-toggle {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .audience-btn {
        width: 100%;
        padding: 16px;
        text-align: center;
    }

    .hero-guarantee {
        margin-top: 24px;
    }

    .hero-guarantee p {
        font-size: 12px;
    }

    /* Mobile trust badges */
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-badge {
        padding: 24px 16px;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
    }

    /* Mobile testimonials removed */

    /* Mobile pricing improvements */
    .pricing-card {
        padding: 32px 20px;
    }

    .price-amount {
        font-size: 42px;
    }

    .pricing-features {
        text-align: center;
    }

    .feature-item {
        justify-content: center;
        font-size: 14px;
    }

    /* Mobile FAQ improvements */
    .faq-question {
        font-size: 14px;
        padding: 16px 0;
    }

    .faq-answer p {
        font-size: 13px;
    }

    .faq-cta {
        padding: 32px 20px;
    }

    .faq-cta h3 {
        font-size: 24px;
    }

    .faq-cta p {
        font-size: 16px;
    }

    
    .hero {
        padding: 140px 20px 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 42px;
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 16px;
        margin-bottom: 48px;
    }
    
    .hero-actions button {
        width: 100%;
    }
    
    .features,
    .integrations {
        padding: 80px 20px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    
    
    .integrations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card,
    .integration-card {
        min-height: auto;
        padding: 32px 24px;
    }
    
    .feature-card h3,
    .integration-card h3 {
        font-size: 20px;
    }
    
    .feature-card p,
    .integration-card p {
        font-size: 14px;
    }
    
    .cta-section {
        padding: 80px 20px;
    }
    
    .cta-card {
        padding: 48px 24px;
    }
    
    
    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    
    .footer {
        padding: 48px 20px 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .glass-card {
        padding: 24px;
        border-radius: 16px;
    }
    
    .code-preview {
        font-size: 12px;
    }
}

/* Intermediate breakpoint for 2x2 grid */
@media (max-width: 550px) and (min-width: 441px) {
    .pricing-toggle {
        width: fit-content;
        max-width: calc(100% - 1rem);
    }
    
    .toggle-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 130px;
    }
}

@media (max-width: 440px) {
    /* Single column layout for pricing toggle */
    .pricing-toggle {
        gap: 3px;
        padding: 3px;
        width: 200px; /* Fixed width for single column */
        max-width: calc(100% - 1rem);
    }
    
    .toggle-btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        flex: 1 1 100%; /* Full width - single column */
        border-radius: 10px;
    }
}

/* Very narrow screens - below 300px */
@media (max-width: 300px) {
    /* Navigation adjustments */
    .floating-nav,
    .floating-nav.scrolled {
        width: calc(100% - 10px);
        padding: 5px;
        top: 5px;
    }
    
    .nav-container {
        padding: 6px 8px;
        min-width: 0;
        gap: 8px;
    }
    
    .nav-logo svg {
        width: 24px;
        height: 24px;
    }

    /* Container width */
    .container {
        padding: 0 8px;
        min-width: 0;
    }
    
    /* Pricing toggle */
    .pricing-toggle {
        width: 100%;
        max-width: calc(100% - 10px);
        padding: 2px;
    }
    
    .toggle-btn {
        padding: 6px 10px;
        font-size: 11px;
        min-width: 0;
    }
    
    /* Hero adjustments */
    .hero-section {
        padding: 80px 8px 1rem;
    }
    
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 12px !important;
    }
    
    .hero-btn-primary {
        padding: 8px 16px !important;
        font-size: 13px !important;
        min-width: 0 !important;
    }
    
    .hero-badge {
        font-size: 10px !important;
        padding: 4px 8px !important;
    }
    
    .hero-features {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    /* Section containers */
    .features-section,
    .pricing-section,
    .integrations-section,
    .faq-section,
    .cta-section {
        padding: 40px 8px;
        min-width: 0;
        overflow-x: hidden;
    }
    
    /* Footer */
    .footer {
        padding: 20px 8px;
        min-width: 0;
    }
    
    .footer-content {
        padding: 0 8px;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        min-width: 0;
    }
    
    #page-wrapper {
        overflow-x: hidden;
        min-width: 0;
    }
    
    /* Cards and grids */
    .feature-card,
    .pricing-card,
    .integration-card {
        padding: 12px;
        min-width: 0;
    }
    
    /* Text sizes */
    h2 {
        font-size: 24px !important;
    }
    
    h3 {
        font-size: 18px !important;
    }
    
    p {
        font-size: 12px !important;
    }
}
    
@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    
    .feature-card,
    .integration-card {
        padding: 24px 16px;
    }
    
    .stat {
        font-size: 10px;
        padding: 4px 10px;
    }
}

/* Demo Page Styles */
/* ChatGPT-style Demo Page */
body:has(.demo-page-wrapper) {
    overflow: hidden;
}

body:has(.demo-page-wrapper) #page-wrapper {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.demo-page-wrapper {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0a0a0f;
}

.demo-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #0a0a0f;
    backdrop-filter: blur(20px);
    border-bottom: none;
    height: 60px;
    flex-shrink: 0;
}

.demo-nav-left,
.demo-nav-center,
.demo-nav-right {
    display: flex;
    align-items: center;
}

.demo-nav-left,
.demo-nav-right {
    flex: 1;
    min-width: 0;
}

.demo-nav-center {
    justify-content: center;
    flex: 0 0 auto; /* Don't grow or shrink, size to content */
}

.demo-nav-right {
    justify-content: flex-end;
}

.demo-nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
}

/* Override pricing-toggle margin when in demo nav */
.demo-nav .pricing-toggle {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0; /* Never allow this container to shrink */
    min-width: fit-content; /* Always maintain natural width */
}

/* Hide dropdown by default, show buttons */
.pricing-toggle-dropdown {
    display: none;
}

.pricing-toggle-buttons {
    display: flex;
}

/* Style dropdown to match button container design */
.pricing-toggle-dropdown {
    padding: 12px 24px;
    background: rgba(20, 20, 23, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.pricing-toggle-dropdown:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.pricing-toggle-dropdown:focus {
    border-color: #b8a8d5;
    box-shadow: 0 0 0 2px rgba(184, 168, 213, 0.15);
}

.pricing-toggle-dropdown option {
    background: #1a1a1f;
    color: var(--text-primary);
}

/* Responsive breakpoints for demo nav */
@media (max-width: 1000px) {
    .demo-nav-logo span {
        display: none;
    }
}

@media (max-width: 920px) {
    .pricing-toggle-buttons {
        display: none;
    }

    .pricing-toggle-dropdown {
        display: block;
    }
}

@media (max-width: 530px) {
    /* Allow classification results to expand to fill available space */
    .classification-results {
        min-width: 0;
    }

    .assistant-message .message-content {
        max-width: 95%; /* Allow results to span wider on small screens */
    }
}

@media (max-width: 600px) {
    .demo-nav-right {
        display: none;
    }
}

@media (max-width: 400px) {
    /* Further optimize classification results for very small screens */
    .message-content {
        padding: 8px 12px; /* Reduce padding to maximize content space */
    }

    .classification-results {
        min-width: 0;
    }

    .result-row {
        padding: 8px 0;
    }

    .result-label {
        font-size: 13px;
        margin-right: 8px;
    }

    .result-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Chat Container */
.demo-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.demo-chat-messages {
    flex: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 24px;
    min-height: 0;
}

.demo-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    text-align: center;
    color: var(--text-secondary);
}

.demo-empty-state h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.demo-empty-state p {
    font-size: 16px;
    max-width: 500px;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto 16px auto;
    width: 100%;
}

.chat-message.user-message {
    justify-content: flex-end;
}

.chat-message.assistant-message {
    justify-content: flex-start;
}

.message-content {
    padding: 10px 16px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
    box-sizing: border-box;
}

.user-message .message-content {
    background: rgba(168, 213, 168, 0.15);
    border: none;
    color: var(--text-primary);
}

.assistant-message .message-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Classification Results */
.classification-results {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.result-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    min-width: 0;
}

.result-label {
    color: var(--text-secondary);
    font-size: 14px;
    margin-right: 12px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    white-space: nowrap;
}

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

.result-badge.flagged {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.result-badge.safe {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-badge.needs-context {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
}

/* Error Results */
.error-results {
    min-width: 300px;
}

.error-text {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 12px;
}

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

.error-signup-btn {
    margin-top: 8px;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.demo-chat-input-container {
    padding: 16px 24px 24px;
    background: #0a0a0f;
    border-top: none;
}

.demo-chat-input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 10px 16px;
}

.demo-chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 120px; /* 5 lines at line-height 1.5 and font-size 16px = 5 * 24px */
    overflow-y: auto;
    line-height: 1.5;
    padding: 2px 0;
}

.demo-chat-input::placeholder {
    color: var(--text-muted);
    line-height: 1.5;
}

.demo-send-button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(168, 213, 168, 0.2);
    border: none;
    border-radius: 50%;
    color: #a8d5a8;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.demo-send-button:hover:not(:disabled) {
    background: rgba(168, 213, 168, 0.3);
}

.demo-send-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.demo-header {
    text-align: center;
    margin-bottom: 40px;
}

.demo-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

.demo-box {
    background: rgba(20, 20, 23, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.model-selector {
    margin-bottom: 24px;
}

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

.model-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.model-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.model-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.model-btn.active {
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 47, 255, 0.25);
}

.text-input-area {
    margin-bottom: 24px;
}

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

.text-input {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 16px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
}

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

.analyze-btn {
    width: 100%;
    padding: 14px 32px;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 47, 255, 0.25);
}

.analyze-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0029D9, #5600CC);
    box-shadow: 0 4px 16px rgba(0, 47, 255, 0.4);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.results-area {
    margin-top: 24px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: none;
}

.results-area.show {
    display: block;
}

.result-header {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.result-label {
    color: var(--text-secondary);
}

.result-value {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.result-value.safe {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.result-value.warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.result-value.danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

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

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

.loading {
    display: none;
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
}

.loading.show {
    display: block;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* OAuth Error Message Styles */
.oauth-error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #dc3545;
    border: 1px solid #b02a37;
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    margin: 24px 0;
    font-size: 14px;
    line-height: 1.5;
    backdrop-filter: blur(10px);
}

.oauth-error-message svg {
    flex-shrink: 0;
    stroke: currentColor;
}

.oauth-error-message .error-dismiss {
    background: none;
    border: none;
    color: currentColor;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.oauth-error-message .error-dismiss:hover {
    opacity: 1;
}

/* Demo Page Responsive Styles */
@media (max-width: 480px) {
    .demo-section {
        padding: 80px 16px 40px;
    }
    
    .demo-header h1 {
        font-size: 36px;
    }
}

@media (max-width: 360px) {
    .demo-section {
        padding: 80px 12px 40px;
    }
    
    .demo-header h1 {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .demo-box {
        padding: 24px;
    }
}

@media (max-width: 330px) {
    .demo-section {
        padding: 80px 8px 40px;
    }
    
    .demo-header h1 {
        font-size: 28px;
        line-height: 1.1;
        word-break: break-word;
    }
    
    .demo-header p {
        font-size: 16px;
    }
    
    .demo-box {
        padding: 20px;
    }
    
    .demo-container {
        min-width: 0;
    }
}

/* Auth Modal Styles */
.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: fadeIn 0.2s ease-out;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.auth-modal {
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    position: relative;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow-y: auto;
    margin: 20px;
}

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

.auth-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.auth-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-modal-logo {
    margin: 0 auto 24px;
    display: block;
}

.auth-modal-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: white;
}

.auth-modal-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

.auth-modal-providers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-provider-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    border-radius: 9999px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.auth-provider-btn.discord {
    background: #5865F2;
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-provider-btn.discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.auth-provider-btn.github {
    background: #24292e;
    border-color: rgba(255, 255, 255, 0.1);
}

.auth-provider-btn.github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.auth-provider-btn.google {
    background: white;
    color: #3c4043;
    border-color: rgba(0, 0, 0, 0.1);
}

.auth-provider-btn.google:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.auth-modal-footer {
    margin-top: 32px;
    text-align: center;
}

.auth-modal-footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    margin: 0;
}




.dashboard-user-card {
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.dashboard-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.dashboard-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-user-info h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.dashboard-email {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.dashboard-provider {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.dashboard-logout-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.dashboard-content {
    padding: 24px;
    margin-top: 24px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 16px;
}

.empty-state svg {
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
}

.empty-state h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.empty-state p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

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

.dashboard-card {
    padding: 24px;
}

.dashboard-card h3 {
    margin: 0 0 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.dashboard-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.dashboard-stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.dashboard-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-empty-state svg {
    margin-bottom: 24px;
}

.dashboard-empty-state h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.dashboard-empty-state p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.6);
}

.dashboard-cta-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 47, 255, 0.4);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .auth-modal {
        padding: 32px 24px;
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }
    
    .auth-modal-backdrop {
        padding: 10px;
    }
    
    
    .dashboard-user-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* Dashboard Section Styles */
.dashboard-section {
    width: 100%;
}

.dashboard-section-header {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 0 8px;
}

.dashboard-section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    margin: 0;
}

.dashboard-section-header button {
    margin-top: 16px;
}

/* Dashboard Overview - now uses dashboard-section-header */

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

.dashboard-stat-card {
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 47, 255, 0.2), rgba(106, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9FFF;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
}

.stat-change.positive {
    color: #10B981;
}

.stat-change.negative {
    color: #EF4444;
}

.stat-change.neutral {
    color: rgba(255, 255, 255, 0.5);
}

/* Dashboard Activity */
.dashboard-activity {
    padding: 24px;
}

.dashboard-activity h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(0, 47, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9FFF;
    flex-shrink: 0;
}

.activity-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.activity-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.activity-time {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}


.feature-card {
    padding: 24px;
}

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

.feature-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.feature-toggle {
    position: relative;
}

.feature-toggle input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.feature-toggle input[type="checkbox"]:checked + .toggle-switch {
    background: linear-gradient(135deg, #002FFF, #6A00FF);
}

.feature-toggle input[type="checkbox"]:checked + .toggle-switch::after {
    transform: translateX(20px);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
}

.feature-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}


/* Dashboard integrations specific styles */
.dashboard-section .integrations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
    max-width: 100%;
}

.dashboard-section .integration-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    width: 100%;
}

.dashboard-section .integration-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.dashboard-section .integration-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-section .integration-icon.discord {
    background: rgba(88, 101, 242, 0.2);
    color: #5865F2;
}

.dashboard-section .integration-icon.telegram {
    background: rgba(34, 126, 188, 0.2);
    color: #229ED9;
}

.dashboard-section .integration-icon.api {
    background: rgba(0, 47, 255, 0.2);
    color: #4A9FFF;
}

.dashboard-section .integration-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.dashboard-section .integration-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-section .integration-status.connected {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.dashboard-section .integration-status.configured {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.dashboard-section .integration-status:not(.connected):not(.configured) {
    background: rgba(107, 114, 128, 0.2);
    color: #6B7280;
}

.dashboard-section .integration-card p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    flex-grow: 1;
}

.dashboard-section .integration-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
}

/* Dashboard Integrations Responsive Design */
@media (max-width: 1024px) {
    .dashboard-section .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-section .integrations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-section .integration-card {
        padding: 20px;
        min-height: 180px;
    }
    
    .dashboard-section .integration-icon {
        width: 40px;
        height: 40px;
    }
    
    .dashboard-section .integration-header h3 {
        font-size: 18px;
    }
    
    .dashboard-section .integration-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .dashboard-section .integration-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .dashboard-section .integration-card {
        padding: 16px;
        min-height: 160px;
    }
    
    .dashboard-section .integration-icon {
        width: 36px;
        height: 36px;
    }
    
    .dashboard-section .integration-header h3 {
        font-size: 16px;
    }
    
    .dashboard-section .integration-card p {
        font-size: 13px;
    }
    
    .dashboard-section .integration-status {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* API Keys Page */
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.api-key-item {
    padding: 24px;
}

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

.api-key-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.api-key-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-key-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.api-key-status:not(.active) {
    background: rgba(107, 114, 128, 0.2);
    color: #6B7280;
}

.api-key-details {
    margin-bottom: 20px;
}

.api-key-field {
    margin-bottom: 12px;
}

.api-key-field label {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    border-radius: 9999px;
}

.api-key-value code {
    color: #4A9FFF;
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 14px;
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

.api-key-meta {
    display: flex;
    gap: 24px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}

.api-key-actions {
    display: flex;
    gap: 12px;
}

/* API Keys Responsive Design */
@media (max-width: 768px) {
    .api-key-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .api-key-value {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .api-key-value code {
        font-size: 12px;
        word-break: break-all;
        text-align: center;
    }
    
    .api-key-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .api-key-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .api-key-actions button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .api-key-item {
        padding: 16px;
    }
    
    .api-key-value {
        padding: 8px 12px;
    }
    
    .api-key-value code {
        font-size: 11px;
    }
    
    .dashboard-section-header button {
        width: 100%;
        margin-top: 12px;
    }
    
    .credit-actions {
        margin-top: 16px;
    }
    
    .credit-actions button {
        width: 100%;
    }
}

.api-usage {
    padding: 24px;
}

.api-usage h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

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

.credit-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
}

.usage-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.usage-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.usage-value {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

/* Settings Page */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.settings-section {
    padding: 24px;
}

.settings-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.security-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.security-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.preferences-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.preference-info label {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
    display: block;
}

.preference-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

.preference-toggle {
    display: flex;
    align-items: center;
}

.danger-zone {
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.danger-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #EF4444;
    margin: 0 0 4px;
}

.danger-item p {
    color: rgba(239, 68, 68, 0.8);
    font-size: 14px;
    margin: 0;
}

/* Settings Page Responsive Design */
@media (max-width: 768px) {
    .settings-sections {
        gap: 24px;
    }
    
    .settings-section {
        padding: 20px;
    }
    
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        text-align: left;
    }
    
    .danger-item button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 16px;
    }
    
    .danger-item h4 {
        font-size: 14px;
    }
    
    .danger-item p {
        font-size: 13px;
    }
}

/* Billing Page */
.billing-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.current-plan {
    padding: 32px;
}

.current-plan h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 20px;
}

.plan-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.plan-badge {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.plan-badge.pro {
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    color: white;
}

.plan-price {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.plan-price .period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.plan-features li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    padding: 4px 0;
}

.plan-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.billing-info,
.billing-history,
.usage-overview {
    padding: 24px;
}

.billing-info h3,
.billing-history h3,
.usage-overview h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.billing-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.billing-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.billing-field label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
}

.address p {
    margin: 2px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.invoice-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.invoice-info {
    display: flex;
    gap: 24px;
}

.invoice-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.invoice-amount {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.view-all {
    align-self: flex-start;
}

/* Billing Page Responsive Design */
@media (max-width: 1024px) {
    .billing-sections {
        gap: 24px;
    }
    
    .plan-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .current-plan {
        padding: 24px;
    }
    
    .plan-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .plan-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .plan-actions button {
        width: 100%;
    }
    
    .payment-method {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .invoice-info {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .billing-info {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .current-plan {
        padding: 16px;
    }
    
    .billing-info {
        padding: 16px;
    }
    
    .plan-price {
        font-size: 24px;
    }
    
    .card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

.usage-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.usage-metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.metric-value {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Support Page */
.support-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quick-help {
    padding: 24px;
}

.quick-help h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.help-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

.help-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 47, 255, 0.3);
    transform: translateY(-2px);
}

.help-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 47, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4A9FFF;
    flex-shrink: 0;
}

.help-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px;
}

.help-content p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* Support Page Responsive Design */
@media (max-width: 1024px) {
    .help-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .quick-help {
        padding: 20px;
    }
    
    .help-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .help-item {
        padding: 12px;
    }
    
    .help-icon {
        width: 36px;
        height: 36px;
    }
    
    .help-content h4 {
        font-size: 15px;
    }
    
    .help-content p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .quick-help {
        padding: 16px;
    }
    
    .help-item {
        padding: 10px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .help-icon {
        width: 32px;
        height: 32px;
    }
    
    .help-content {
        width: 100%;
    }
    
    .help-content h4 {
        font-size: 14px;
    }
    
    .help-content p {
        font-size: 12px;
    }
}

.faq-section {
    padding: 24px;
}

.faq-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 20px;
}

.faq-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px;
}

.faq-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.contact-support {
    padding: 24px;
}

.contact-support h3 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 0 8px;
}

.contact-support > p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.support-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.support-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 47, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    color: #EF4444;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-link {
    background: none;
    border: none;
    color: #4A9FFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-link:hover {
    color: #6AB7FF;
    text-decoration: underline;
}

/* Custom Checkbox Styling for Config Modal */
.config-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.config-checkbox:checked {
    background: #a8d5a8;
    border-color: #a8d5a8;
}

.config-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.config-checkbox:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.config-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Radio buttons */
.config-radio {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.config-radio:checked {
    background: #a8d5a8;
    border-color: #a8d5a8;
}

.config-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #000;
}

.config-radio:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.config-radio:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .integration-actions,
    .api-key-actions,
    .plan-actions {
        flex-direction: column;
    }

    .security-item,
    .preference-item,
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    
    .dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .plan-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Enhanced Credits Card Styles */
.credits-card {
    padding: 28px;
}

.credits-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

.credits-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

.credit-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.credit-stat:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(106, 0, 255, 0.3);
}

.credit-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    letter-spacing: -0.2px;
}

.credit-value {
    font-weight: 700;
    color: white;
    font-size: 18px;
    letter-spacing: -0.3px;
}

.credits-action {
    display: flex;
    justify-content: flex-end;
}

.buy-credits-btn {
    background: linear-gradient(135deg, #002FFF, #6A00FF);
    border: none;
    border-radius: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    box-shadow: 0 4px 12px rgba(106, 0, 255, 0.2);
}

.buy-credits-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106, 0, 255, 0.35);
    background: linear-gradient(135deg, #0035FF, #7300FF);
}

.buy-credits-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(106, 0, 255, 0.2);
}

/* Free tier upgrade section styles */
.free-tier-upgrade {
    padding: 32px;
    margin-bottom: 24px;
}

.upgrade-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.upgrade-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
}

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

.upgrade-features li {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
}

.upgrade-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #a8d5a8;
    font-weight: 700;
    font-size: 18px;
}

.free-tier-info {
    padding: 28px;
}

.free-tier-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0 0 24px;
    letter-spacing: -0.5px;
}

/* Mobile responsiveness for credits card */
@media (max-width: 768px) {
    .credits-stats {
        gap: 16px;
    }

    .credit-stat {
        padding: 14px 16px;
    }

    .credit-label {
        font-size: 14px;
    }
    
    .credit-value {
        font-size: 16px;
    }
    
    .credits-action {
        justify-content: stretch;
    }
    
    .buy-credits-btn {
        width: 100%;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/* Hide profile picture on very small screens */
@media (max-width: 269px) {
    .nav-user-avatar,
    .nav-user-avatar-placeholder {
        display: none;
    }
}

/* Generic Modal Styles */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: rgba(20, 20, 23, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: none !important;
    transform: none !important;
    transition: none !important;
}

.modal:hover {
    transform: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 16px;
}

.modal-header h3 {
    margin: 0;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-body {
    margin-bottom: 24px;
}

/* API Key Modal Specific Styles */
.api-key-created {
    text-align: center;
}

.warning-message {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.warning-message p {
    margin: 0;
    color: #ffc107;
    font-size: 14px;
}

.api-key-display {
    margin-bottom: 24px;
}

.api-key-display label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
    padding: 12px 16px;
}

.api-key-value .full-key {
    flex: 1;
    background: none;
    border: none;
    color: #00ff88;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    word-break: break-all;
    user-select: all;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 6px 12px;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(0, 255, 136, 0.2);
}

.api-key-info {
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 16px;
}

.api-key-info p {
    margin: 0 0 8px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.api-key-info p:last-child {
    margin-bottom: 0;
}

.api-key-info strong {
    color: white;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 9999px;
    color: white;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    padding: 12px 16px 12px;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-help {
    margin: 8px 0 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.error-message {
    background: #dc3545;
    border: 1px solid #b02a37;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #fff;
}

.error-message p {
    margin: 0;
    color: inherit;
    font-size: 14px;
}


/* Mobile Responsiveness for Modals */
@media (max-width: 768px) {
    .modal {
        padding: 24px 20px;
        width: 95%;
        max-width: none;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-backdrop {
        padding: 10px;
    }

    .form-actions {
        flex-direction: column;
    }
    
    .api-key-value {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        justify-content: center;
    }
}

/* Plan Selection Modal Responsive Styles */
.modal.plan-selection-modal {
    max-width: 1300px;
    width: 95vw;
    padding: 40px;
}

@media (max-width: 1024px) {
    .modal.plan-selection-modal {
        max-width: 90vw;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .modal.plan-selection-modal {
        max-width: 95vw;
        padding: 24px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .modal.plan-selection-modal {
        max-width: calc(100vw - 20px);
        padding: 20px;
        margin: 10px;
    }
}

/* Auto-renewal toggle button styles */
.auto-renewal-toggle {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    min-width: 120px;
    justify-content: center;
}

.auto-renewal-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auto-renewal-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auto-renewal-toggle.enabled {
    background: #10b981;
    border-color: #059669;
    color: white;
}

.auto-renewal-toggle.enabled:hover:not(:disabled) {
    background: #059669;
    border-color: #047857;
}

.auto-renewal-toggle.disabled {
    background: #ef4444;
    border-color: #dc2626;
    color: white;
}

.auto-renewal-toggle.disabled:hover:not(:disabled) {
    background: #dc2626;
    border-color: #b91c1c;
}

/* ============================================
   DOCUMENTATION PAGES STYLING
   ============================================ */

/* Main Docs Landing Page */
.docs-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 20px 60px;
    background: var(--bg-primary, #0a0a0a);
}

.docs-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.docs-header h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-header p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.6);
}

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

.docs-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.docs-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: #fff;
}

.docs-card-icon.discord {
    color: #5865F2;
}

.docs-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #fff;
}

.docs-card p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.docs-quick-links {
    margin-top: 60px;
}

.docs-quick-links h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #fff;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-link:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.quick-link svg {
    color: rgba(255,255,255,0.4);
}

/* Docs Content Pages */
.docs-content-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 20px 60px;
    background: var(--bg-primary, #0a0a0a);
}

.docs-content-container {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #fff;
}

.docs-article {
    color: #fff;
}

.docs-article h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, rgba(255,255,255,0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-article .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 48px;
}

.docs-section-content {
    margin-bottom: 48px;
}

.docs-section-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #fff;
}

.docs-section-content h3 {
    font-size: 1.5rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.docs-section-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
}

.docs-section-content ol,
.docs-section-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.7);
}

.docs-section-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.docs-section-content a {
    color: #a8d5a8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.docs-section-content a:hover {
    color: #c0e7c0;
    text-decoration: underline;
}

.code-block {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a8d5a8;
}

.docs-content-section .faq-item {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.docs-content-section .faq-item h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #fff;
}

.docs-content-section .faq-item p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

/* Legal Pages (Terms & Privacy) */
.legal-section {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 20px 60px;
    background: var(--bg-primary, #0a0a0a);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
}

.legal-article {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 48px;
    margin-top: 24px;
}

.legal-article h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-date {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-section-content {
    margin-bottom: 40px;
}

.legal-section-content h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
}

.legal-section-content h3 {
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.legal-section-content p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-section-content ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.legal-section-content ul li {
    position: relative;
    padding-left: 28px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-section-content ul li::before {
    content: "•";
    position: absolute;
    left: 12px;
    color: #a8d5a8;
    font-size: 1.2rem;
}

.legal-section-content a {
    color: #a8d5a8;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.legal-section-content a:hover {
    opacity: 0.8;
}

.legal-section-content strong {
    color: rgba(255,255,255,0.9);
}

/* Responsive Design for Docs */
@media (max-width: 768px) {
    .docs-header h1 {
        font-size: 2rem;
    }

    .docs-article h1 {
        font-size: 2rem;
    }

    .docs-section-content h2 {
        font-size: 1.5rem;
    }

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

    .code-block {
        padding: 16px;
    }

    .code-block pre {
        font-size: 0.85rem;
    }
}
/* Custom dropdown option hover effect */
.dropdown-option {
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Hide "Opted-in" text on small screens */
@media (max-width: 510px) {
    .opted-in-text {
        display: none;
    }
}

@media (max-width: 420px) {
    .server-selector-container {
        flex-wrap: wrap;
    }

    .add-server-btn {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .admin-avatar {
        display: none;
    }
}

/* Unsaved changes banner (Discord-style) */
.unsaved-changes-banner {
    position: fixed;
    bottom: 2rem;
    left: 280px; /* Sidebar width (260px) + some spacing */
    right: 2rem;
    max-width: 900px;
    margin: 0 auto;

    /* Nav bar glass effect */
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.03);

    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 10000;
    transition: background 0.3s, border-color 0.3s;
    color: white;
}

.unsaved-changes-banner.navigation-blocked {
    background: rgba(239, 68, 68, 0.6);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake-screen {
    animation: shake 0.5s;
}

/* Responsive banner */
@media (max-width: 768px) {
    .unsaved-changes-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 420px) {
    .unsaved-changes-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 1rem;
    }

    .unsaved-changes-banner > div {
        width: 100%;
    }

    .unsaved-changes-banner > div:last-child {
        justify-content: stretch;
    }

    .unsaved-changes-banner button {
        flex: 1;
    }
}

/* Earn Credits Page Styles */
.earn-credits-section {
    max-width: 900px;
    margin: 0 auto;
}

.earn-credits-section h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.earn-credits-section .section-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.referral-code-card {
    margin-bottom: 24px;
}

.referral-code-card .api-key-field {
    margin: 16px 0;
}

.referral-code-card .code-help-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
}

.multiplier-card {
    margin-bottom: 24px;
}

.multiplier-display {
    text-align: center;
    padding: 24px 0;
    margin-bottom: 20px;
}

.multiplier-value {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88, #6A00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

.how-it-works-card {
    margin-bottom: 24px;
}

.referrals-list-card {
    margin-bottom: 24px;
}

.referrals-table {
    margin-top: 16px;
}

.referrals-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.referral-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.referral-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(106, 0, 255, 0.3);
}

.referral-col-date,
.referral-col-tier,
.referral-col-status,
.referral-col-bonus {
    display: flex;
    align-items: center;
}

.tier-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.tier-badge.basic {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-badge.standard {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tier-badge.premium {
    background: rgba(236, 72, 153, 0.2);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge:not(.active) {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

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

.empty-referrals-card .empty-state {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
}

/* Responsive styles for earn credits */
@media (max-width: 768px) {
    .earn-credits-section h2 {
        font-size: 24px;
    }
    
    .multiplier-value {
        font-size: 36px;
    }
    
    .referrals-table-header,
    .referral-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .referrals-table-header {
        display: none;
    }
    
    .referral-row {
        padding: 12px;
    }
    
    .referral-col-date::before {
        content: "Date: ";
        font-weight: 600;
        margin-right: 8px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .referral-col-tier::before {
        content: "Tier: ";
        font-weight: 600;
        margin-right: 8px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .referral-col-status::before {
        content: "Status: ";
        font-weight: 600;
        margin-right: 8px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .referral-col-bonus::before {
        content: "Bonus: ";
        font-weight: 600;
        margin-right: 8px;
        color: rgba(255, 255, 255, 0.7);
    }
}
