
/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #16161f;
    --bg-card-hover: #1e1e2a;
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    
    --border-color: #27272a;
    --border-light: rgba(255, 255, 255, 0.1);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== DOCS - TIER BADGES ===== */
.tier-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-badge.free {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.2));
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.tier-badge.basic {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tier-badge.pro {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.tier-badge.enterprise {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* ===== DOCS - PROMO TYPE BADGES ===== */
.promo-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

.promo-type.credits {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.15));
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.promo-type.tier {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(124, 58, 237, 0.15));
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.promo-type.discount {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.15));
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.promo-type.trial {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.15));
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.promo-type i {
    font-size: 0.75rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== UTILITY CLASSES ===== */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.green { color: var(--green) !important; }
.red { color: var(--red) !important; }

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    min-width: 240px;
    transition: var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-box i {
    color: var(--text-muted);
    font-size: 14px;
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-shortcut {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

/* ===== LANGUAGE SWITCH BUTTON ===== */
.btn-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-lang:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
}

.footer-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-lang-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-login:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-signup {
    padding: 8px 20px;
    background: var(--accent-gradient);
    color: white;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-signup:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* ===== LOGOUT BUTTON ===== */
.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--red);
    color: var(--red);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-logout:hover {
    background: var(--red);
    color: white;
}

/* ===== AUTH BUTTONS CONTAINER ===== */
#authButtonsLoggedOut,
#authButtonsLoggedIn {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== PLAYGROUND NAV LINK ===== */
.nav-playground {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-primary) !important;
    font-weight: 500;
}

.nav-playground:hover {
    color: var(--accent-secondary) !important;
}

.nav-playground i {
    font-size: 12px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    left: -200px;
    opacity: 0.15;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -100px;
    right: -100px;
    opacity: 0.1;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

/* Text center utility */
.text-center {
    text-align: center;
}

.hero-content.text-center {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content.text-center .hero-description {
    max-width: 600px;
}

/* Page Hero (for inner pages) */
.page-hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-badge:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent-primary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.model-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.model-icons img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.hero-providers {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-providers > span {
    color: var(--text-muted);
    font-size: 14px;
}

.provider-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.provider-tag {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text-secondary);
}

.provider-more {
    color: var(--accent-primary);
    font-size: 13px;
    font-weight: 500;
}

.chat-preview {
    margin-top: 20px;
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 480px;
}

.chat-input-wrapper i {
    color: var(--text-muted);
}

.chat-input-wrapper input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.send-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    transition: var(--transition-fast);
}

.send-btn:hover {
    transform: scale(1.05);
}

/* ===== FEATURED MODELS ===== */
.hero-right {
    position: relative;
}

.featured-models {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 24px;
    position: relative;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.featured-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.view-trending {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--accent-primary);
    font-weight: 500;
}

.view-trending:hover {
    text-decoration: underline;
}

.model-card {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.model-card:last-of-type {
    margin-bottom: 0;
}

.model-card:hover {
    border-color: var(--text-muted);
    transform: translateX(4px);
}

.model-card.active {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.model-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.model-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.model-icon .provider-logo-small {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.model-icon.google {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
}

.model-icon.openai {
    background: linear-gradient(135deg, #10a37f, #1a7f64);
    color: white;
}

.model-icon.anthropic {
    background: linear-gradient(135deg, #d4a574, #c4956a);
    color: white;
}

.model-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.model-provider {
    font-size: 13px;
    color: var(--accent-primary);
}

.model-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.model-badge.thinking {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.model-badge.new {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.model-badge.hot {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.model-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-value.green {
    color: var(--green);
}

.stat-value.red {
    color: var(--red);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connection-line {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 150px;
    opacity: 0.6;
}

.connector {
    width: 100%;
    height: 100%;
}

/* ===== STATS SECTION ===== */
.stats {
    padding: 60px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

.stat-desc {
    font-size: 15px;
    color: var(--text-secondary);
}

/* ===== CODE SECTION ===== */
.code-section {
    padding: 120px 24px;
    background: var(--bg-primary);
}

.code-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.code-content h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.code-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.features-list {
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--green);
    font-size: 16px;
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-tabs {
    display: flex;
    gap: 4px;
}

.code-tab {
    padding: 6px 14px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.code-tab:hover {
    color: var(--text-primary);
}

.code-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
}

.copy-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.copy-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.7;
}

.code-body code {
    color: var(--text-secondary);
}

/* Syntax highlighting */
.keyword { color: #c678dd; }
.module { color: #e06c75; }
.class { color: #e5c07b; }
.variable { color: #61afef; }
.param { color: #e06c75; }
.string { color: #98c379; }
.method { color: #61afef; }
.function { color: #61afef; }
.property { color: #e5c07b; }
.number { color: #d19a66; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 120px 24px;
    background: var(--bg-secondary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    flex: 1;
    max-width: 320px;
    position: relative;
    transition: var(--transition-fast);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-primary);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    color: var(--text-muted);
    font-size: 20px;
}

/* ===== PRICING ===== */
.pricing-preview {
    padding: 120px 24px;
    background: var(--bg-primary);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    transition: var(--transition-fast);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--text-muted);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
}

.pricing-card.featured:hover {
    box-shadow: var(--shadow-glow);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 50px;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .amount {
    font-size: 42px;
    font-weight: 700;
}

.price .period {
    color: var(--text-secondary);
    font-size: 15px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
}

.pricing-features i {
    color: var(--green);
    font-size: 14px;
}

.btn-outline {
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 32px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-meta {
    display: flex;
    gap: 24px;
}

.footer-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.footer-meta span:hover {
    color: var(--text-primary);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.featured-models {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-right {
        display: flex;
        justify-content: center;
    }
    
    .featured-models {
        max-width: 420px;
    }
    
    .connection-line {
        display: none;
    }
    
    .code-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-connector {
        transform: rotate(90deg);
    }
    
    .step-card {
        max-width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }
    
    .search-box {
        display: none;
    }
    
    .nav-link {
        display: none;
    }
    
    .nav-divider {
        display: none;
    }
    
    .hero {
        padding: 100px 16px 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .code-content h2 {
        font-size: 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stats-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .model-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* ===== MODELS PAGE ===== */

/* Models Hero */
.models-hero {
    position: relative;
    padding: 140px 24px 80px;
    overflow: visible;
}

.models-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.models-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.models-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.models-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.models-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.models-stat {
    text-align: center;
}

.models-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.models-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Filters Section */
.models-filters {
    padding: 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.filter-sort {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.filter-sort label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.filter-sort select {
    padding: 8px 32px 8px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-sort select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Models Section */
.models-section {
    padding: 60px 24px;
    min-height: 60vh;
}

.models-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: var(--text-secondary);
}

.loading-spinner {
    font-size: 48px;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.loading-spinner i {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.error-state i {
    font-size: 48px;
    color: var(--red);
    margin-bottom: 20px;
}

.error-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Models Grid - Premium Design */
.models-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

/* Model Card - Premium Design */
.model-card-full {
    position: relative;
    z-index: 1;
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.model-card-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-card-full:hover {
    z-index: 2;
    border-color: var(--accent-primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.model-card-full:hover::before {
    opacity: 1;
}

.model-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.model-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.model-card-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.model-card-icon .provider-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.model-card-icon.openai {
    background: linear-gradient(135deg, #10a37f 0%, #0d8c6a 100%);
    color: white;
}

.model-card-icon.anthropic {
    background: linear-gradient(135deg, #d4a574 0%, #b8895c 100%);
    color: white;
}

.model-card-icon.google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
    color: white;
}

.model-card-icon.meta {
    background: linear-gradient(135deg, #0668E1 0%, #0553b8 100%);
    color: white;
}

.model-card-icon.mistral {
    background: linear-gradient(135deg, #F7D046 0%, #FF8C00 100%);
    color: #1a1a25;
}

.model-card-icon.mistral .provider-logo {
    filter: invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.model-card-icon.deepseek {
    background: linear-gradient(135deg, #0066FF 0%, #0044CC 100%);
    color: white;
}

.model-card-icon.qwen {
    background: linear-gradient(135deg, #FF6A00 0%, #FF4500 100%);
    color: white;
}

.model-card-icon.default {
    background: var(--accent-gradient);
    color: white;
}

.model-card-title-group {
    flex: 1;
    min-width: 0;
}

.model-card-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.02em;
}

.model-card-provider {
    font-size: 14px;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.model-card-provider::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.model-card-badges {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.model-badge-tag {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.model-badge-tag.chat {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.model-badge-tag.completion {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border-color: rgba(99, 102, 241, 0.3);
}

.model-badge-tag.embedding {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.3);
}

.model-badge-tag.image {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.3);
}

.model-badge-tag.thinking {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.3);
}

.model-badge-tag.new {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.model-card-body {
    margin-bottom: 24px;
}

.model-card-id {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.05) 100%);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-card-id::before {
    content: '>';
    color: var(--accent-primary);
    font-weight: bold;
}

.model-card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.model-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.spec-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.spec-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.model-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    gap: 16px;
}

.model-pricing {
    display: flex;
    gap: 20px;
}

.pricing-item-small {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-label-small {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-value-small {
    font-size: 14px;
    font-weight: 700;
    color: var(--green);
}

.model-card-action {
    padding: 12px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.model-card-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.model-card-action i {
    font-size: 12px;
}

/* Modal - Premium Design */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px 32px 24px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.modal-header .model-icon,
.modal-header .model-card-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.modal-header .model-icon.large {
    width: 72px;
    height: 72px;
}

.modal-header .model-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.modal-title {
    flex: 1;
}

.modal-title h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.modal-subtitle {
    font-size: 15px;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-subtitle::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.modal-body {
    padding: 28px 32px;
}

.modal-section {
    margin-bottom: 28px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-section h3::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.info-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    word-break: break-all;
}

/* Pricing Grid in Modal */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pricing-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(34, 197, 94, 0.05) 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.pricing-type {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.pricing-amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--green);
    margin-bottom: 4px;
}

.pricing-unit {
    font-size: 12px;
    color: var(--text-muted);
}

/* Code Block in Modal */
.modal-section .code-block {
    background: #0d0d12;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.modal-section .code-block pre {
    padding: 20px 24px;
    margin: 0;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.6;
}

.modal-section .code-block code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    color: #e2e8f0;
}

.modal-section .copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-section .copy-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 20px 32px 28px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, transparent 100%);
}

.modal-footer .btn-primary {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.modal-footer .btn-outline {
    padding: 14px 24px;
    font-size: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-footer .btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.modal-info-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
}

.info-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}

.modal-pricing {
    margin-bottom: 24px;
}

.modal-pricing h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.pricing-item {
    background: var(--bg-tertiary);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.pricing-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pricing-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
}

.modal-code h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.modal-code-block {
    margin-bottom: 0;
}

.modal-code-block .code-body {
    max-height: 200px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

/* Nav Link Active State */
.nav-link.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Responsive for Models Page */
@media (max-width: 992px) {
    .models-title {
        font-size: 40px;
    }
    
    .models-stats {
        gap: 40px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-sort {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .models-hero {
        padding: 120px 16px 60px;
    }
    
    .models-title {
        font-size: 32px;
    }
    
    .models-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .models-stat-number {
        font-size: 28px;
    }
    
    .filter-buttons {
        gap: 4px;
    }
    
    .filter-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* Demo Notice */
.demo-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.demo-notice i {
    color: var(--yellow);
    font-size: 16px;
}

.demo-notice span {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-notice button {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition-fast);
}

.demo-notice button:hover {
    color: var(--text-primary);
}

/* ===== ADVANCED ANIMATIONS & EFFECTS ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in-left {
    animation: fadeInLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Third Gradient Orb */
.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.08;
    animation: orbFloat3 15s ease-in-out infinite;
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-40%, -60%) scale(1.2); }
}

/* Enhanced Gradient Orbs Animation */
.orb-1 {
    animation: orbFloat1 12s ease-in-out infinite;
}

.orb-2 {
    animation: orbFloat2 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    50% { transform: translate(50px, 30px) scale(1.1); opacity: 0.2; }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.1; }
    50% { transform: translate(-30px, -20px) scale(1.15); opacity: 0.15; }
}

/* Particles */
.particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 8s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 1s; animation-duration: 10s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: 2s; animation-duration: 7s; }
.particle:nth-child(4) { left: 40%; top: 60%; animation-delay: 0.5s; animation-duration: 9s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: 1.5s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: 2.5s; animation-duration: 8s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: 0.8s; animation-duration: 10s; }
.particle:nth-child(8) { left: 80%; top: 25%; animation-delay: 1.8s; animation-duration: 9s; }
.particle:nth-child(9) { left: 90%; top: 85%; animation-delay: 3s; animation-duration: 7s; }
.particle:nth-child(10) { left: 15%; top: 55%; animation-delay: 0.3s; animation-duration: 12s; }
.particle:nth-child(11) { left: 25%; top: 15%; animation-delay: 1.2s; animation-duration: 8s; }
.particle:nth-child(12) { left: 35%; top: 90%; animation-delay: 2.2s; animation-duration: 10s; }
.particle:nth-child(13) { left: 45%; top: 45%; animation-delay: 0.7s; animation-duration: 9s; }
.particle:nth-child(14) { left: 55%; top: 75%; animation-delay: 1.7s; animation-duration: 11s; }
.particle:nth-child(15) { left: 65%; top: 35%; animation-delay: 2.7s; animation-duration: 8s; }
.particle:nth-child(16) { left: 75%; top: 65%; animation-delay: 0.4s; animation-duration: 10s; }
.particle:nth-child(17) { left: 85%; top: 10%; animation-delay: 1.4s; animation-duration: 9s; }
.particle:nth-child(18) { left: 5%; top: 70%; animation-delay: 2.4s; animation-duration: 7s; }
.particle:nth-child(19) { left: 95%; top: 50%; animation-delay: 0.9s; animation-duration: 12s; }
.particle:nth-child(20) { left: 50%; top: 95%; animation-delay: 1.9s; animation-duration: 8s; }

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(1px);
}

.shape-1 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    left: 5%;
    top: 30%;
    animation: floatShape1 20s ease-in-out infinite;
}

.shape-2 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    right: 10%;
    top: 20%;
    animation: floatShape2 15s ease-in-out infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    left: 15%;
    bottom: 20%;
    animation: floatShape3 18s ease-in-out infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-4 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f59e0b, #eab308);
    right: 20%;
    bottom: 30%;
    animation: floatShape4 22s ease-in-out infinite;
}

.shape-5 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    left: 50%;
    top: 10%;
    animation: floatShape5 16s ease-in-out infinite;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
}

@keyframes floatShape1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(60px, 20px) rotate(180deg); }
    75% { transform: translate(20px, 40px) rotate(270deg); }
}

@keyframes floatShape2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(-40px, 30px) rotate(120deg) scale(1.2); }
    66% { transform: translate(20px, -20px) rotate(240deg) scale(0.8); }
}

@keyframes floatShape3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, -50px) rotate(180deg); }
}

@keyframes floatShape4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-20px, -40px) scale(1.1); }
    50% { transform: translate(-40px, 10px) scale(0.9); }
    75% { transform: translate(-10px, 30px) scale(1.05); }
}

@keyframes floatShape5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, 20px) rotate(120deg); }
    66% { transform: translate(-30px, 40px) rotate(240deg); }
}

/* Aurora Effect */
.aurora-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.3;
}

.aurora {
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(99, 102, 241, 0.1) 20%,
        rgba(139, 92, 246, 0.15) 40%,
        rgba(168, 85, 247, 0.1) 60%,
        transparent 100%
    );
    filter: blur(60px);
    animation: aurora 15s ease-in-out infinite;
}

.aurora-1 {
    top: -50%;
    left: -50%;
    animation-delay: 0s;
}

.aurora-2 {
    top: -50%;
    left: 0;
    animation-delay: -5s;
    opacity: 0.7;
}

.aurora-3 {
    top: -50%;
    left: 50%;
    animation-delay: -10s;
    opacity: 0.5;
}

@keyframes aurora {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(30px) rotate(5deg);
    }
}

/* Glowing Lines */
.glow-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-primary) 50%,
        transparent 100%
    );
    opacity: 0.3;
    animation: glowLine 8s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    right: 0;
    animation-delay: 0s;
}

.line-2 {
    top: 50%;
    left: 0;
    right: 0;
    animation-delay: -2.5s;
    opacity: 0.2;
}

.line-3 {
    top: 70%;
    left: 0;
    right: 0;
    animation-delay: -5s;
    opacity: 0.15;
}

@keyframes glowLine {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 0.3;
        transform: scaleX(1);
    }
}

/* Animated Gradient Text */
.animated-gradient {
    background: linear-gradient(
        90deg,
        #6366f1 0%,
        #8b5cf6 25%,
        #a855f7 50%,
        #ec4899 75%,
        #6366f1 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Glass Effect */
.glass-effect {
    background: rgba(22, 22, 31, 0.6) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-card {
    background: rgba(22, 22, 31, 0.7) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Badge Glow */
.hero-badge {
    position: relative;
    overflow: hidden;
}

.badge-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.badge-arrow {
    transition: transform 0.3s ease;
}

.hero-badge:hover .badge-arrow {
    transform: translateX(4px);
}

/* Glow Button */
.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.glow-button:hover::before {
    opacity: 0.7;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

/* Float Animation */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 3D Card Effect */
.card-3d {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(5deg) translateZ(10px);
    box-shadow:
        -10px 10px 30px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.1);
}

/* Icon Pulse */
.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}

/* Pulse Icon */
.pulse-icon {
    animation: pulseIcon 2s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Ripple Button */
.ripple-btn {
    position: relative;
    overflow: hidden;
}

.ripple-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ripple-btn:hover::after {
    transform: scale(2);
    opacity: 1;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    margin-top: 10px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-10px); opacity: 1; }
}

/* Enhanced Hero Title */
.hero-title {
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: titleUnderline 2s ease-in-out infinite alternate;
}

@keyframes titleUnderline {
    0% { width: 100px; opacity: 0.5; }
    100% { width: 200px; opacity: 1; }
}

/* Enhanced Stats Section */
.stats {
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.stat-item {
    opacity: 0;
    animation: statFadeIn 0.8s ease forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes statFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    position: relative;
    display: inline-block;
}

.stat-item:hover .stat-number {
    animation: numberPop 0.3s ease;
}

@keyframes numberPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Enhanced Code Block */
.code-block {
    position: relative;
    overflow: hidden;
}

.code-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    animation: codeShine 5s ease-in-out infinite;
}

@keyframes codeShine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

/* Step Cards Animation */
.step-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.step-card:hover .step-icon {
    animation: stepIconBounce 0.6s ease;
}

@keyframes stepIconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* Pricing Card Animation */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured {
    animation: featuredPulse 3s ease-in-out infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2); }
    50% { box-shadow: 0 25px 50px rgba(99, 102, 241, 0.4); }
}

/* Footer Social Links Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.2);
    color: var(--accent-primary);
}

/* Scroll Indicator */
@keyframes scrollIndicator {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.5; }
}

/* Mouse Cursor Trail Effect (optional) */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    pointer-events: none;
    opacity: 0.3;
    z-index: 9999;
    transition: transform 0.1s ease;
    filter: blur(10px);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Text Gradient Animation for Special Elements */
.gradient-text-animated {
    background: linear-gradient(
        270deg,
        #6366f1,
        #8b5cf6,
        #a855f7,
        #ec4899,
        #f43f5e,
        #a855f7,
        #8b5cf6,
        #6366f1
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientTextFlow 8s ease infinite;
}

@keyframes gradientTextFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Morphing Background Shapes */
.morph-shape {
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

/* Loading Skeleton Animation */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Success/Error State Animations */
@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Focus Ring Animation */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
    animation: focusRing 0.3s ease;
}

@keyframes focusRing {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
    100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3); }
}

/* ===== PRICING PAGE ===== */

/* Pricing Hero */
.pricing-hero {
    position: relative;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.pricing-hero-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-hero-content {
    text-align: center;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 24px;
}

.pricing-badge i {
    color: #f59e0b;
}

.pricing-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pricing-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-highlights {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-secondary);
}

.highlight-item i {
    color: #22c55e;
}

/* Credit Calculator Section */
.credit-calculator-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.calculator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.calculator-header {
    margin-bottom: 32px;
}

.calculator-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-header h2 i {
    color: var(--accent-primary);
}

.calculator-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.amount-selector {
    margin-bottom: 32px;
}

.amount-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.amount-btn {
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
}

.amount-btn.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.custom-amount-input {
    margin-top: 16px;
}

.custom-amount-input input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.2s ease;
}

.custom-amount-input input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.custom-amount-input input::placeholder {
    color: var(--text-muted);
}

.calculator-result {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.result-row.highlight {
    background: rgba(99, 102, 241, 0.1);
    margin: 0 -24px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
}

.result-label {
    font-size: 15px;
    color: var(--text-secondary);
}

.result-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.result-row.highlight .result-value {
    font-size: 36px;
}

.result-arrow {
    text-align: center;
    padding: 8px 0;
    color: var(--text-muted);
}

.result-savings {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-md);
    text-align: center;
    color: #22c55e;
    font-size: 14px;
}

.result-savings i {
    margin-right: 8px;
}

.buy-credits-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
}

/* Value Comparison */
.value-comparison h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
}

.comparison-card.featured {
    border-color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.05);
}

.comparison-card .popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 16px;
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
}

.comparison-header {
    margin-bottom: 16px;
}

.comparison-badge {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-header h4 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.comparison-price {
    margin-bottom: 16px;
}

.comparison-price .price-amount {
    font-size: 36px;
    font-weight: 800;
}

.comparison-card.official .price-amount {
    text-decoration: line-through;
    color: var(--text-muted);
}

.comparison-price .price-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.comparison-features {
    list-style: none;
}

.comparison-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.comparison-card.official .comparison-features li i {
    color: var(--red);
}

.comparison-card.frost .comparison-features li i {
    color: var(--green);
}

.comparison-card .btn-primary {
    width: 100%;
    margin-top: 16px;
}

/* Credit Packages Section */
.credit-packages-section {
    padding: 100px 24px;
}

.packages-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.package-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, transparent 100%);
}

.package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    white-space: nowrap;
}

.package-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-primary);
}

.package-card.featured .package-icon {
    background: var(--accent-gradient);
    color: white;
}

.package-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.package-price {
    margin-bottom: 8px;
}

.package-price .price-currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.package-price .price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
}

.package-value {
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 24px;
    font-size: 14px;
    color: #22c55e;
}

.package-value .api-value {
    font-weight: 700;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--green);
    font-size: 12px;
}

.package-btn {
    width: 100%;
}

.custom-amount-section {
    text-align: center;
    margin-top: 40px;
    color: var(--text-secondary);
}

.custom-link {
    color: var(--accent-primary);
    font-weight: 600;
}

.custom-link:hover {
    text-decoration: underline;
}

/* Model Pricing Section */
.model-pricing-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.model-pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 24px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.pricing-table thead {
    background: var(--bg-tertiary);
}

.pricing-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.model-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.model-indicator.anthropic {
    background: #d4a574;
}

.model-indicator.openai {
    background: #10a37f;
}

.model-indicator.google {
    background: #4285f4;
}

.provider-tag {
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.provider-tag.anthropic {
    background: rgba(212, 165, 116, 0.2);
    color: #d4a574;
}

.provider-tag.openai {
    background: rgba(16, 163, 127, 0.2);
    color: #10a37f;
}

.provider-tag.google {
    background: rgba(66, 133, 244, 0.2);
    color: #4285f4;
}

.price-cell {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.pricing-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-muted);
}

.pricing-note i {
    color: var(--accent-primary);
}

/* FAQ Section */
.faq-section {
    padding: 100px 24px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-tertiary);
}

.faq-question span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing CTA Section */
.pricing-cta-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Responsive Pricing */
@media (max-width: 1024px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-title {
        font-size: 36px;
    }
    
    .pricing-highlights {
        flex-direction: column;
        gap: 16px;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-content h2 {
        font-size: 32px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons button {
        width: 100%;
    }
}

/* ===== DOCUMENTATION PAGE ===== */

/* Docs Layout */
.docs-layout {
    display: flex;
    min-height: calc(100vh - 64px);
    padding-top: 64px;
}

/* Docs Sidebar */
.docs-sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-content {
    padding: 24px;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 4px;
}

.sidebar-link {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.sidebar-link.active {
    color: var(--accent-primary);
    background: rgba(99, 102, 241, 0.1);
    font-weight: 500;
}

/* Docs Main Content */
.docs-main {
    flex: 1;
    margin-left: 280px;
    min-width: 0;
}

.docs-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 48px;
}

/* Docs Sections */
.docs-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.section-header-docs {
    margin-bottom: 32px;
}

.docs-section h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.docs-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.docs-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.docs-section p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.docs-section ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-section li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.docs-section code {
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-primary);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.info-box.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.info-box.success .info-icon {
    background: #22c55e;
}

.info-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-content p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-md);
    margin: 16px 0;
    font-size: 14px;
    color: #eab308;
}

.warning-box i {
    margin-top: 2px;
}

.warning-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.warning-box li {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Features Grid Docs */
.features-grid-docs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.feature-card-docs {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.feature-card-docs:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.feature-icon-docs {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-bottom: 16px;
}

.feature-card-docs h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card-docs p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Code Block Docs */
.code-block-docs {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 16px 0;
}

.code-header-docs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-header-docs span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.copy-btn-docs {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.copy-btn-docs:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.code-block-docs pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.code-block-docs code {
    font-family: 'Fira Code', 'Monaco', 'Menlo', monospace;
    font-size: 13px;
    line-height: 1.6;
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

/* Code Tabs Docs */
.code-tabs-docs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    margin-top: 24px;
}

.code-tab-docs {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.code-tab-docs:hover {
    color: var(--text-primary);
}

.code-tab-docs.active {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.code-tabs-docs + .code-block-docs {
    border-top-left-radius: 0;
    margin-top: 0;
}

/* Steps Docs */
.steps-docs {
    margin: 24px 0;
}

.step-docs {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.step-docs:last-child {
    border-bottom: none;
}

.step-number-docs {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content-docs h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
    color: var(--text-primary);
}

.step-content-docs p {
    margin-bottom: 12px;
}

/* Docs Table */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.docs-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.docs-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.docs-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.params-table td:first-child code {
    font-weight: 500;
}

/* Endpoint Box */
.endpoint-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 16px 0;
}

.method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.method.get {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.method.post {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.endpoint-box code {
    font-size: 15px;
    font-weight: 500;
}

/* Docs Footer */
.docs-footer {
    margin-left: 280px;
}

.docs-footer .footer-bottom {
    flex-direction: row;
}

.docs-footer .footer-meta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    margin-left: 20px;
    transition: color 0.2s ease;
}

.docs-footer .footer-meta a:hover {
    color: var(--accent-primary);
}

/* Search Highlight */
.search-highlight {
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .docs-sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .docs-main {
        margin-left: 0;
    }
    
    .docs-footer {
        margin-left: 0;
    }
    
    .docs-content {
        padding: 32px 24px;
    }
}

@media (max-width: 768px) {
    .features-grid-docs {
        grid-template-columns: 1fr;
    }
    
    .docs-section h1 {
        font-size: 28px;
    }
    
    .docs-section h2 {
        font-size: 20px;
    }
    
    .step-docs {
        flex-direction: column;
        gap: 12px;
    }
    
    .endpoint-box {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== AUTHENTICATION PAGES ===== */

/* Auth Page Base */
.auth-page {
    min-height: 100vh;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Auth Background */
.auth-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.auth-particles {
    position: absolute;
    inset: 0;
}

.auth-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: authParticleFloat 15s ease-in-out infinite;
}

.auth-particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.auth-particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; }
.auth-particle:nth-child(3) { left: 70%; top: 30%; animation-delay: 4s; }
.auth-particle:nth-child(4) { left: 80%; top: 70%; animation-delay: 1s; }
.auth-particle:nth-child(5) { left: 40%; top: 80%; animation-delay: 3s; }
.auth-particle:nth-child(6) { left: 90%; top: 40%; animation-delay: 5s; }
.auth-particle:nth-child(7) { left: 30%; top: 10%; animation-delay: 2.5s; }
.auth-particle:nth-child(8) { left: 60%; top: 90%; animation-delay: 3.5s; }

@keyframes authParticleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-10px, -50px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.5;
    }
}

.auth-glow-lines {
    position: absolute;
    inset: 0;
}

.auth-glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.2;
    animation: authGlowLine 10s ease-in-out infinite;
}

.auth-glow-line:nth-child(1) { top: 25%; animation-delay: 0s; }
.auth-glow-line:nth-child(2) { top: 50%; animation-delay: 3s; }
.auth-glow-line:nth-child(3) { top: 75%; animation-delay: 6s; }

@keyframes authGlowLine {
    0%, 100% { left: -100%; right: 100%; opacity: 0; }
    50% { left: 0; right: 0; opacity: 0.2; }
}

/* Auth Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Auth Branding (Left Side) */
.auth-branding {
    flex: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
    padding: 48px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 60px;
}

.auth-logo-img {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.auth-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.auth-branding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
}

.auth-branding-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.auth-branding-desc {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Auth Features */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.auth-feature-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-feature-text p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Auth Stats */
.auth-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.auth-stat {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.auth-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.auth-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Auth Testimonial */
.auth-testimonial {
    margin-top: auto;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.testimonial-content p {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
}

.testimonial-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* Auth Form Section (Right Side) */
.auth-form-section {
    width: 520px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-form-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-form-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* Social Login Buttons */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.social-btn img {
    width: 20px;
    height: 20px;
}

.social-btn.google:hover {
    border-color: #4285f4;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
}

.social-btn.github:hover {
    border-color: #fff;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.social-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.half {
    flex: 1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i:first-child {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 16px;
    z-index: 1;
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.2s ease;
}

/* Password input with toggle button */
.input-wrapper input[type="password"],
.input-wrapper input.password-input {
    padding-right: 48px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-card);
}

.input-wrapper.focused i:first-child {
    color: var(--accent-primary);
}

.input-wrapper.error {
    animation: shake 0.5s ease;
}

.input-wrapper.error input {
    border-color: var(--red);
}

.input-wrapper.error i:first-child {
    color: var(--red);
}

.input-wrapper.success input {
    border-color: var(--green);
}

.input-wrapper.success i:first-child {
    color: var(--green);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
    20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* Input Focus Effect */
.input-focus-effect {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.input-wrapper input:focus ~ .input-focus-effect {
    width: 100%;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.password-toggle i {
    font-size: 16px;
    position: static;
    color: inherit;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Error Message */
.error-message {
    font-size: 13px;
    color: var(--red);
    display: none;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-fill.weak { background: var(--red); }
.strength-fill.fair { background: var(--yellow); }
.strength-fill.good { background: #22d3ee; }
.strength-fill.strong { background: var(--green); }

.strength-text {
    font-size: 12px;
    color: var(--text-muted);
}

.strength-text.weak { color: var(--red); }
.strength-text.fair { color: var(--yellow); }
.strength-text.good { color: #22d3ee; }
.strength-text.strong { color: var(--green); }

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

/* Checkbox */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.checkbox-wrapper a {
    color: var(--accent-primary);
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: var(--accent-primary);
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Auth Submit Button */
.auth-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

.auth-submit .btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Auth Footer */
.auth-form-section .auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Success Message */
.auth-success {
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 0.6s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPulse 2s ease infinite;
}

.success-icon i {
    font-size: 40px;
    color: var(--green);
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
}

.auth-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-success p {
    font-size: 15px;
    color: var(--text-secondary);
}

.success-bonus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50px;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
}

/* Security Badge */
.security-badge {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.security-badge i {
    color: var(--green);
}

/* Auth Modal */
.auth-modal {
    max-width: 420px;
}

.auth-modal .modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-modal .modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.auth-modal .modal-icon.success {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.auth-modal h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-modal .modal-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-modal .modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-modal .modal-footer a {
    color: var(--accent-primary);
    font-size: 14px;
}

.auth-modal .modal-footer a:hover {
    text-decoration: underline;
}

/* Reset Success */
.reset-success {
    text-align: center;
    padding: 20px 0;
}

.reset-success i {
    font-size: 48px;
    color: var(--green);
    margin-bottom: 16px;
}

.reset-success h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.reset-success p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Verification Email */
.verification-email {
    text-align: center;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.verification-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.verification-actions button {
    width: 100%;
}

/* Modal Active State */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* Responsive Auth */
@media (max-width: 1024px) {
    .auth-branding {
        display: none;
    }
    
    .auth-form-section {
        width: 100%;
        max-width: 100%;
        border-left: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 40px 24px;
    }
    
    .auth-form-container {
        width: 100%;
        max-width: 480px;
    }
    
    .auth-background {
        display: block;
    }
    
    /* Add logo on mobile/tablet */
    .auth-form-section::before {
        content: '';
        display: block;
        width: 60px;
        height: 60px;
        background: url('logo.jpg') center/cover no-repeat;
        border-radius: 12px;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .auth-form-section {
        padding: 32px 20px;
    }
    
    .auth-form-header h2 {
        font-size: 26px;
    }
    
    .auth-form-header p {
        font-size: 14px;
    }
    
    .social-btn {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .input-wrapper input {
        padding: 14px 16px 14px 44px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .auth-form-section {
        padding: 24px 16px;
    }
    
    .auth-form-section::before {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    
    .auth-form-header h2 {
        font-size: 24px;
    }
    
    .auth-form-container {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .security-badge {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        justify-content: center;
        margin-top: 24px;
    }
    
    .social-login {
        gap: 10px;
    }
    
    .social-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .social-btn img {
        width: 18px;
        height: 18px;
    }
    
    .auth-divider {
        margin: 20px 0;
    }
    
    .auth-submit {
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .auth-footer {
        margin-top: 20px;
    }
    
    .auth-footer p {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .auth-form-section {
        padding: 20px 12px;
    }
    
    .auth-form-header h2 {
        font-size: 22px;
    }
    
    .input-wrapper input {
        padding: 12px 14px 12px 40px;
        font-size: 14px;
    }
    
    .input-wrapper i {
        left: 12px;
        font-size: 14px;
    }
}

/* ===== LEGAL PAGES (Terms & Privacy) ===== */
.legal-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--bg-primary);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    font-size: 14px;
    color: var(--text-muted);
}

.legal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 12px;
}

.legal-section p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-section ul {
    list-style: none;
    margin: 16px 0;
    padding-left: 0;
}

.legal-section ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.legal-footer {
    margin-top: 48px;
    text-align: center;
}

.legal-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .legal-header h1 {
        font-size: 32px;
    }
    
    .legal-content {
        padding: 32px 24px;
    }
    
    .legal-section h2 {
        font-size: 20px;
    }
    
    .legal-section p,
    .legal-section ul li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .legal-container {
        padding: 0 16px;
    }
    
    .legal-header h1 {
        font-size: 28px;
    }
    
    .legal-content {
        padding: 24px 20px;
    }
    
    .legal-section h2 {
        font-size: 18px;
    }
}

/* ===== DASHBOARD STYLES ===== */

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-menu-btn i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-fullname {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-email {
    font-size: 13px;
    color: var(--text-muted);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 16px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.user-dropdown-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.user-dropdown-item.active {
    color: var(--accent-primary);
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.user-dropdown-item.logout {
    color: var(--red);
}

.user-dropdown-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Dashboard Page */
.dashboard-page {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--bg-primary);
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.welcome-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.welcome-section p {
    font-size: 16px;
    color: var(--text-secondary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.credits {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
}

.stat-icon.usage {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.stat-icon.models {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
}

.stat-icon.status {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.status-online {
    font-size: 20px;
    color: var(--green);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.stat-trend.up {
    color: var(--green);
}

.stat-trend.down {
    color: var(--red);
}

.stat-action {
    margin-top: auto;
}

.stat-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: auto;
    animation: pulse 2s infinite;
}

.stat-indicator.online {
    background: var(--green);
}

/* Dashboard Sections */
.dashboard-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: var(--accent-primary);
}

.view-all-link {
    font-size: 14px;
    color: var(--accent-primary);
    transition: color 0.2s ease;
}

.view-all-link:hover {
    color: var(--accent-secondary);
}

/* API Keys */
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.api-key-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.api-key-info {
    flex: 1;
}

.api-key-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-value code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.copy-btn, .toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s ease;
}

.copy-btn:hover, .toggle-btn:hover {
    color: var(--accent-primary);
}

.api-key-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.api-key-created {
    font-size: 12px;
    color: var(--text-muted);
}

.api-key-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.api-key-status.active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.api-key-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.btn-icon.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-color: var(--red);
}

/* Quick Start */
.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.quickstart-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.quickstart-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 12px;
}

.quickstart-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.quickstart-card pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 12px;
    max-height: 250px;
    overflow-y: auto;
}

.quickstart-card code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre;
    word-break: break-all;
}

.copy-code-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-code-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.copy-code-btn.copied {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border-color: var(--green);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.activity-item:hover {
    background: var(--bg-card-hover);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.activity-icon.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.activity-icon.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
}

.activity-icon.info {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
}

.activity-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.activity-tokens {
    font-size: 13px;
    color: var(--text-secondary);
}

.activity-cost {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
}

.activity-status {
    font-size: 13px;
    color: var(--text-muted);
}

.activity-bonus {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--text-primary);
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    border-color: var(--green);
}

.toast-success i {
    color: var(--green);
}

.toast-error {
    border-color: var(--red);
}

.toast-error i {
    color: var(--red);
}

.toast-info i {
    color: var(--accent-primary);
}

/* Dashboard Footer */
.dashboard-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Dashboard Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quickstart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-page {
        padding-top: 80px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .welcome-section h1 {
        font-size: 26px;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .header-actions .btn-primary,
    .header-actions .btn-secondary {
        flex: 1;
    }
    
    .api-key-item {
        flex-wrap: wrap;
    }
    
    .api-key-meta {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .api-key-actions {
        margin-left: auto;
    }
    
    .activity-item {
        flex-wrap: wrap;
    }
    
    .activity-meta {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        gap: 16px;
        margin-top: 8px;
    }
    
    .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .dashboard-container {
        padding: 0 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: row;
        align-items: center;
        padding: 16px;
    }
    
    .stat-content {
        flex: 1;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-action, .stat-trend, .stat-indicator {
        margin-top: 0;
    }
    
    .dashboard-section {
        padding: 16px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ===== ADMIN DASHBOARD STYLES ===== */

/* Admin Navbar */
.admin-navbar {
    border-bottom-color: rgba(239, 68, 68, 0.3);
}

.admin-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-left: 8px;
}

.user-menu-btn.admin {
    border-color: rgba(239, 68, 68, 0.3);
}

.user-avatar.admin,
.user-avatar-large.admin {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Admin Dashboard */
.admin-dashboard .dashboard-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-dashboard .dashboard-header h1 i {
    color: #ef4444;
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.admin-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.admin-stat-icon.users {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
}

.admin-stat-icon.revenue {
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
}

.admin-stat-icon.requests {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
}

.admin-stat-icon.models {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
}

.admin-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.admin-stat-change {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-top: auto;
}

.admin-stat-change.up {
    color: var(--green);
}

.admin-stat-change.down {
    color: var(--red);
}

.admin-stat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.online {
    background: var(--green);
}

/* Admin Grid Layout */
.admin-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

/* Users Table */
.users-table {
    overflow-x: auto;
}

.users-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th,
.users-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.users-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.users-table tr:hover {
    background: var(--bg-tertiary);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.plan-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.plan-badge.free {
    background: rgba(113, 113, 122, 0.2);
    color: var(--text-secondary);
}

.plan-badge.pro {
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
}

.plan-badge.enterprise {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-secondary);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.2);
    color: var(--yellow);
}

.status-badge.online {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.status-badge.success {
    background: rgba(34, 197, 94, 0.2);
    color: var(--green);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

/* System Status */
.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.system-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.system-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.system-uptime {
    font-size: 12px;
    color: var(--text-muted);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.system-status.online {
    color: var(--green);
}

.system-status .status-dot {
    width: 8px;
    height: 8px;
}

/* Admin Select */
.admin-select {
    padding: 8px 32px 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.admin-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Model Usage */
.model-usage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.model-usage-item {
    display: grid;
    grid-template-columns: 180px 1fr 150px;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.model-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.model-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.model-provider {
    font-size: 12px;
    color: var(--text-muted);
}

.usage-bar-container {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

.usage-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.usage-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.usage-revenue {
    font-size: 15px;
    font-weight: 600;
    color: var(--green);
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 24px;
    color: var(--accent-primary);
}

.quick-action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Admin Dashboard Responsive */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .model-usage-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .usage-stats {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .users-table {
        font-size: 13px;
    }
    
    .users-table th,
    .users-table td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-action-btn {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px;
    }
    
    .admin-stat-card {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .admin-stat-icon {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    
    .admin-stat-content {
        flex: 1;
    }
    
    .admin-stat-value {
        font-size: 26px;
    }
    
    .admin-stat-change,
    .admin-stat-status {
        width: 100%;
        margin-top: 0;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
}

/* ===== PLAYGROUND STYLES ===== */
.playground-page {
    min-height: 100vh;
    padding-top: 64px;
    background: var(--bg-primary);
}

.playground-container {
    display: flex;
    height: calc(100vh - 64px);
}

/* Playground Sidebar */
.playground-sidebar {
    width: 320px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.sidebar-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-section h3 i {
    color: var(--accent-primary);
}

.setting-group {
    margin-bottom: 16px;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.setting-select {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.setting-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.setting-range {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

/* ===== NEWS PAGE STYLES ===== */

/* News Section */
.news-section {
    padding: 60px 0 100px;
}

/* News Filters */
.news-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn i {
    font-size: 14px;
}

.filter-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* News Container */
.news-container {
    max-width: 900px;
    margin: 0 auto;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* News Card */
.news-card {
    background: linear-gradient(145deg, var(--bg-card), rgba(22, 22, 31, 0.8));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.news-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-card:hover::before {
    opacity: 1;
}

/* Pinned News Card */
.news-card.pinned {
    border-color: rgba(234, 179, 8, 0.3);
    background: linear-gradient(145deg, rgba(234, 179, 8, 0.05), var(--bg-card));
}

.news-card.pinned::before {
    background: linear-gradient(90deg, #eab308, #facc15);
    opacity: 1;
}

/* News Card Header */
.news-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.news-pinned-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(250, 204, 21, 0.1));
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #facc15;
}

.news-pinned-badge i {
    font-size: 10px;
}

.news-category {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: color-mix(in srgb, var(--category-color, var(--accent-primary)) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--category-color, var(--accent-primary)) 30%, transparent);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--category-color, var(--accent-primary));
}

.news-category i {
    font-size: 10px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-left: auto;
}

.news-date i {
    font-size: 12px;
}

.updated-badge {
    color: var(--yellow);
    font-size: 11px;
    font-style: italic;
}

/* News Title */
.news-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* News Content */
.news-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.news-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.news-content em {
    font-style: italic;
    color: var(--text-primary);
}

.news-content code {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--accent-secondary);
}

.news-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.news-content a:hover {
    color: var(--accent-secondary);
}

.news-content ul {
    list-style: none;
    margin: 12px 0;
    padding-left: 20px;
}

.news-content li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.news-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Loading & Empty States */
.news-section .loading-state,
.news-section .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.news-section .loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.news-section .empty-state i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.news-section .empty-state h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.news-section .empty-state p {
    color: var(--text-secondary);
}

/* Responsive News */
@media (max-width: 768px) {
    .news-filters {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .news-card {
        padding: 20px 24px;
    }
    
    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-date {
        margin-left: 0;
    }
    
    .news-title {
        font-size: 18px;
    }
    
    .news-content {
        font-size: 14px;
    }
}

/* ===== ADMIN NEWS MANAGEMENT ===== */

.admin-news-section {
    margin-bottom: 30px;
}

.news-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
}

.news-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.news-form-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.news-form-grid {
    display: grid;
    gap: 16px;
}

.news-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.news-form-row.full-width {
    grid-template-columns: 1fr;
}

.news-textarea {
    min-height: 150px;
    resize: vertical;
}

.news-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* News Admin Table */
.news-admin-table {
    width: 100%;
    border-collapse: collapse;
}

.news-admin-table th,
.news-admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.news-admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
}

/* ===== DASHBOARD - ACTIVITY EMPTY STATE ===== */
.activity-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}

.activity-empty i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.activity-empty p {
    font-size: 14px;
    margin: 0;
}

/* ===== DASHBOARD - USAGE SUMMARY ===== */
.usage-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: 10px;
}

.usage-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.usage-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.usage-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== DASHBOARD - SUPPORT LINKS ===== */
.support-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    padding: 20px;
}

.support-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.support-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.support-link i {
    font-size: 28px;
}

.support-link span {
    font-size: 14px;
    font-weight: 500;
}

/* ===== DASHBOARD - API URL/KEY PLACEHOLDERS ===== */
.api-url-placeholder,
.api-key-placeholder {
    color: var(--accent-primary);
    font-weight: 500;
}

.news-admin-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.news-admin-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.news-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.news-status.published {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
}

.news-status.draft {
    background: rgba(113, 113, 122, 0.15);
    color: var(--text-muted);
}

.news-actions {
    display: flex;
    gap: 8px;
}

.news-actions button {
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    transition: all var(--transition-fast);
}

.news-edit-btn {
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-primary);
}

.news-edit-btn:hover {
    background: rgba(99, 102, 241, 0.25);
}

.news-delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
}

.news-delete-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}

.news-toggle-btn {
    background: rgba(234, 179, 8, 0.15);
    color: var(--yellow);
}

.news-toggle-btn:hover {
    background: rgba(234, 179, 8, 0.25);
}

.setting-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
}

.setting-textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    resize: vertical;
}

.setting-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.setting-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.setting-checkbox input {
    display: none;
}

.setting-checkbox .checkmark {
    width: 18px;
    height: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.setting-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.setting-checkbox input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
}

.usage-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usage-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
}

.usage-row.cost {
    font-weight: 600;
    color: var(--accent-primary);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.clear-chat-btn {
    margin-top: auto;
}

/* Playground Chat */
.playground-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.chat-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h2 i {
    color: var(--accent-primary);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.chat-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.chat-status .status-dot.online {
    background: var(--green);
}

.chat-status .status-dot.generating {
    background: var(--yellow);
    animation: pulse 1s infinite;
}

.chat-status .status-dot.error {
    background: var(--red);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.welcome-message {
    text-align: center;
    padding: 60px 20px;
}

.welcome-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
}

.welcome-message h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.welcome-message p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.suggestion-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.suggestion-btn i {
    color: var(--accent-primary);
}

/* Chat Message */
.chat-message {
    display: flex;
    gap: 16px;
    max-width: 900px;
}

.chat-message.user {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.message-avatar.user {
    background: var(--accent-gradient);
    color: white;
}

.message-avatar.assistant {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
}

.message-content {
    flex: 1;
    max-width: 700px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.message-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.message-time {
    font-size: 12px;
    color: var(--text-muted);
}

.message-text {
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.chat-message.user .message-text {
    background: var(--accent-primary);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 var(--radius-md);
}

.chat-message.assistant .message-text {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

.message-text code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.message-text pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 12px 0;
}

.message-text pre code {
    background: none;
    padding: 0;
}

.error-text {
    color: var(--red);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* Chat Input - Modern Design */
.chat-input-container {
    padding: 20px 24px 28px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 20%);
    border-top: none;
    position: relative;
}

.chat-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.chat-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.2), 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.chat-input-wrapper textarea {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    max-height: 200px;
    min-height: 24px;
    font-family: inherit;
}

.chat-input-wrapper textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.send-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.send-btn:active {
    transform: scale(0.95);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.send-btn i {
    color: white;
}

.chat-input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 0 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.char-count {
    display: flex;
    align-items: center;
    gap: 6px;
}

.keyboard-hint {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.keyboard-hint:hover {
    opacity: 1;
}

/* Thinking Block Styles */
.thinking-block {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}

.thinking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(139, 92, 246, 0.15);
    cursor: pointer;
    transition: background 0.2s;
}

.thinking-header:hover {
    background: rgba(139, 92, 246, 0.2);
}

/* ===== IMAGE RESPONSE STYLES ===== */
.image-response {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.generated-image {
    max-width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generated-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.3);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.image-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-modal.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-actions {
    display: flex;
    gap: 1rem;
}

.image-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.image-modal-actions .btn-primary {
    background: var(--accent-gradient);
    color: white;
}

.image-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.image-modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.image-modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Image Generating Animation */
.image-generating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    color: var(--text-secondary);
}

.image-generating i {
    font-size: 3rem;
    color: var(--accent-primary);
    animation: pulse 1.5s ease-in-out infinite;
}

.image-generating span {
    font-size: 1rem;
    color: var(--text-secondary);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* API Key Warning */
.api-key-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(234, 88, 12, 0.15));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.api-key-warning .warning-icon {
    font-size: 2rem;
    color: #f59e0b;
}

.api-key-warning .warning-text {
    flex: 1;
}

.api-key-warning .warning-text p {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.api-key-warning .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .generated-image {
        max-height: 300px;
    }
    
    .api-key-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .api-key-warning .warning-icon {
        margin-bottom: 0.5rem;
    }
    
    .image-modal-content img {
        max-height: 70vh;
    }
    
    .image-modal-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .image-modal-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.thinking-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #a78bfa;
    font-size: 14px;
}

.thinking-title i {
    font-size: 16px;
    animation: pulse-thinking 2s infinite;
}

@keyframes pulse-thinking {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.thinking-toggle {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform 0.3s;
}

.thinking-toggle.collapsed {
    transform: rotate(-90deg);
}

.thinking-content {
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.thinking-content.collapsed {
    display: none;
}

.thinking-content pre {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

/* Response Block (after thinking) */
.response-block {
    padding-top: 8px;
}

.response-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--green);
    margin-bottom: 8px;
    font-weight: 500;
}

.response-label i {
    font-size: 14px;
}

/* ===== API KEYS PAGE STYLES ===== */

/* Warning Banner */
.warning-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.warning-banner i {
    font-size: 24px;
    color: var(--yellow);
    flex-shrink: 0;
}

.warning-content strong {
    display: block;
    color: var(--yellow);
    margin-bottom: 4px;
}

.warning-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* API Key Card */
.api-key-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.api-key-card:hover {
    border-color: var(--accent-primary);
}

.api-key-card.disabled {
    opacity: 0.6;
}

.key-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.key-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.key-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.key-value-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.key-display {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.key-actions {
    display: flex;
    gap: 8px;
}

.key-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--accent-primary);
}

.key-footer {
    display: flex;
    gap: 12px;
}

/* Button Danger */
.btn-danger {
    background: var(--red);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Guide Content */
.guide-content {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.guide-step {
    flex: 1;
    display: flex;
    gap: 16px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.code-example {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.code-example h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-example h4 i {
    color: var(--accent-primary);
}

.code-example pre {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 0;
}

.code-example code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.code-example .copy-code-btn {
    position: absolute;
    top: 16px;
    right: 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 32px;
    margin-bottom: 12px;
}

/* New Key Display */
.new-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.new-key-display code {
    flex: 1;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    color: var(--accent-primary);
    word-break: break-all;
}

/* Delete Key Info */
.delete-key-info {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
}

.modal-actions .btn-secondary {
    flex: 1;
}

.modal-actions .btn-danger {
    flex: 1;
}

/* Full Width Button */
.full-width {
    width: 100%;
}

/* Modal Icon Danger */
.modal-icon.danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Playground Responsive */
@media (max-width: 1024px) {
    .playground-container {
        flex-direction: column;
    }
    
    .playground-sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 768px) {
    .playground-sidebar {
        display: none;
    }
    
    .chat-message {
        flex-direction: column;
        gap: 8px;
    }
    
    .chat-message.user {
        flex-direction: column;
    }
    
    .message-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .welcome-suggestions {
        flex-direction: column;
    }
    
    .guide-content {
        flex-direction: column;
    }
    
    .key-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .key-footer {
        flex-direction: column;
    }
}

/* ===== TOKEN MANAGEMENT STYLES ===== */

/* Token Stats */
.token-stats {
    grid-template-columns: repeat(3, 1fr);
}

/* Tokens List */
.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Token Card */
.token-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: all 0.2s ease;
}

.token-card:hover {
    border-color: var(--accent-primary);
}

.token-card.disabled {
    opacity: 0.6;
}

.token-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.token-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.token-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.token-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.token-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.token-row:last-child {
    margin-bottom: 0;
}

.token-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    min-width: 100px;
}

.token-value {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 4px;
}

.token-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.token-footer {
    display: flex;
    gap: 12px;
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 12px;
}

/* Modal Wide */
.modal-content.wide {
    max-width: 600px;
}

/* Modal Form */
.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Monaco', 'Consolas', monospace;
    resize: vertical;
}

.modal-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.modal-form input[type="text"],
.modal-form input[type="number"] {
    width: 100%;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group.half {
    flex: 1;
}

/* Nav Link Active */
.nav-link.active {
    color: var(--accent-primary);
}

/* Token Management Responsive */
@media (max-width: 768px) {
    .token-stats {
        grid-template-columns: 1fr;
    }
    
    .token-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .token-label {
        min-width: auto;
    }
    
    .token-footer {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .modal-content.wide {
        max-width: 100%;
        margin: 20px;
    }
}

/* ===== TOGGLE SWITCH STYLES ===== */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(113, 113, 122, 0.4);
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--accent-primary);
}

/* Toggle Switch Disabled State */
.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toggle Switch Sizes */
.toggle-switch.sm {
    width: 42px;
    height: 24px;
}

.toggle-switch.sm .toggle-slider:before {
    height: 16px;
    width: 16px;
}

.toggle-switch.sm input:checked + .toggle-slider:before {
    transform: translateX(18px);
}

/* Whitelist User Cards */
.whitelist-user-card {
    background: rgba(30, 30, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.whitelist-user-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.whitelist-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whitelist-user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.whitelist-user-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.whitelist-user-details p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

.whitelist-user-actions {
    display: flex;
    gap: 8px;
}

/* Pending Badge Animation */
.pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #f59e0b;
    animation: pendingPulse 2s ease-in-out infinite;
}

@keyframes pendingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Approved Badge */
.approved-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #22c55e;
}

/* Action Buttons for Whitelist */
.btn-approve {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-approve:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-revoke {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 6px 14px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-revoke:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* ===== PENDING APPROVAL STYLES ===== */
.pending-approval-container {
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 0.6s ease forwards;
}

.pending-approval-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pendingPulse 2s ease-in-out infinite;
}

.pending-approval-icon i {
    font-size: 40px;
    color: white;
    animation: hourglassRotate 3s ease-in-out infinite;
}

@keyframes hourglassRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(360deg); }
}

.pending-approval-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.pending-approval-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.pending-approval-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.pending-approval-email i {
    color: var(--accent-primary);
}

.pending-approval-email span {
    color: var(--text-primary);
    font-weight: 500;
}

.pending-approval-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
}

.pending-approval-info .info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pending-approval-info .info-item i {
    color: #f59e0b;
    width: 20px;
    text-align: center;
}

.pending-approval-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pending-approval-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pending-approval-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pending-approval-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.pending-approval-actions .btn-primary {
    background: var(--accent-gradient);
    color: white;
    border: none;
}

.pending-approval-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .pending-approval-container {
        padding: 1rem;
    }
    
    .pending-approval-icon {
        width: 80px;
        height: 80px;
    }
    
    .pending-approval-icon i {
        font-size: 32px;
    }
    
    .pending-approval-title {
        font-size: 1.5rem;
    }
    
    .pending-approval-actions {
        flex-direction: column;
    }
    
    .pending-approval-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== PROMO CODE SECTION ===== */
.promo-code-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.promo-code-section .promo-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.promo-code-section .promo-input {
    flex: 1;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.promo-code-section .promo-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}

.promo-code-section .promo-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.promo-code-section .promo-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-code-section .promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.promo-code-section .promo-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.promo-code-section .promo-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.promo-code-section .promo-hint i {
    color: rgba(99, 102, 241, 0.7);
}

.promo-result {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.promo-result.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.promo-result.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.promo-result .result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.promo-result.success .result-icon {
    color: #10b981;
}

.promo-result.error .result-icon {
    color: #ef4444;
}

.promo-result .result-content {
    flex: 1;
}

.promo-result .result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.promo-result.success .result-title {
    color: #10b981;
}

.promo-result.error .result-title {
    color: #ef4444;
}

.promo-result .result-message {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== DASHBOARD FORM INPUT FIX ===== */
.dashboard-section .form-input,
.dashboard-section input[type="text"],
.dashboard-section input[type="email"],
.dashboard-section input[type="password"],
.dashboard-section input[type="number"] {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.dashboard-section .form-input::placeholder,
.dashboard-section input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dashboard-section .form-input:focus,
.dashboard-section input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ===== QUICKSTART IMPROVEMENTS ===== */
.quickstart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.quickstart-card {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.8) 0%, rgba(20, 20, 35, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quickstart-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quickstart-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quickstart-card:hover::before {
    opacity: 1;
}

.quickstart-card .quickstart-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quickstart-card .quickstart-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.quickstart-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.quickstart-card pre {
    background: rgba(10, 10, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0 0 1rem 0;
    overflow-x: auto;
    max-height: 220px;
    overflow-y: auto;
}

.quickstart-card pre::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.quickstart-card pre::-webkit-scrollbar-track {
    background: transparent;
}

.quickstart-card pre::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}

.quickstart-card code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    white-space: pre;
}

.quickstart-card .copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quickstart-card .copy-code-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--accent-primary);
    color: #fff;
}

.quickstart-card .copy-code-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    color: #10b981;
}

@media (max-width: 768px) {
    .promo-code-section .promo-input-wrapper {
        flex-direction: column;
    }
    
    .promo-code-section .promo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quickstart-grid {
        grid-template-columns: 1fr;
    }
}