/* ============================================
   SwalloX API Platform - Main Stylesheet
   Professional API Dashboard & Marketplace
   ============================================ */

/* ---- Google Fonts Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables / Design Tokens ---- */
:root {
    /* Primary palette - Deep tech aesthetic */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: #15152250;
    --bg-card-solid: #151522;
    --bg-hover: #1e1e35;
    --bg-input: #0d0d18;

    /* Accent colors */
    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%);
    --accent-glow: rgba(108, 92, 231, 0.4);
    --accent-cyan: #00cec9;
    --accent-green: #00b894;
    --accent-red: #ff6b6b;
    --accent-orange: #fdcb6e;
    --accent-pink: #fd79a8;

    /* Text */
    --text-primary: #e8e8f0;
    --text-secondary: #8b8ba7;
    --text-muted: #5a5a7a;
    --text-accent: #a29bfe;

    /* Borders */
    --border-color: rgba(108, 92, 231, 0.15);
    --border-hover: rgba(108, 92, 231, 0.35);
    --border-active: rgba(108, 92, 231, 0.6);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.2);
    --shadow-glow-strong: 0 0 60px rgba(108, 92, 231, 0.3);

    /* Spacing */
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Font families */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--accent-secondary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--accent-primary); }

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

::selection {
    background: var(--accent-primary);
    color: #fff;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-secondary); }

/* ============================================
   LOADER / SPLASH SCREEN
   ============================================ */
.swallox-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.swallox-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--accent-primary);
    animation: loaderSpin 1.2s linear infinite;
}

.loader-ring:nth-child(2) {
    inset: 10px;
    border-right-color: var(--accent-secondary);
    animation: loaderSpin 1.5s linear infinite reverse;
}

.loader-ring:nth-child(3) {
    inset: 20px;
    border-bottom-color: var(--accent-cyan);
    animation: loaderSpin 1s linear infinite;
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-family: var(--font-display);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: loaderFade 2s ease-in-out infinite;
}

.loader-bar-wrapper {
    width: 200px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    margin-top: 20px;
    overflow: hidden;
}

.loader-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
}

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

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes loaderFade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   LANDING PAGE
   ============================================ */
.landing-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Animated background */
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.landing-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.15), transparent 70%);
    top: -200px;
    right: -200px;
    animation: bgFloat 15s ease-in-out infinite;
}

.landing-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 206, 201, 0.1), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: bgFloat 20s ease-in-out infinite reverse;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 30s linear infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes gridMove {
    to { transform: translate(60px, 60px); }
}

/* Landing nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.landing-nav.scrolled {
    padding: 12px 40px;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

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

.nav-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.nav-brand-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
}

.nav-brand-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    position: relative;
}

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

.nav-links a.active {
    color: #fff;
    background: var(--accent-primary);
}

/* Hero section */
.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
}

.hero-content {
    max-width: 800px;
    animation: heroFadeUp 1s ease-out 0.5s both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-secondary);
    margin-bottom: 30px;
    animation: heroFadeUp 1s ease-out 0.3s both;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 184, 148, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #fff;
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: heroFadeUp 1s ease-out 0.7s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: heroFadeUp 1s ease-out 0.9s both;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108, 92, 231, 0.5);
    color: #fff;
}

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

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

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

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.btn-danger:hover {
    background: rgba(255, 107, 107, 0.25);
    color: var(--accent-red);
}

.btn-success {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    animation: heroFadeUp 1s ease-out 1.1s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.hero-stat-value .accent {
    color: var(--accent-secondary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Features section */
.features-section {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-primary);
    padding: 4px 14px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

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

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    background: rgba(108, 92, 231, 0.1);
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

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

/* ============================================
   AUTH PAGES (Login / Register)
   ============================================ */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

.auth-bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bg-effects .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.auth-bg-effects .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation: orbFloat 12s ease-in-out infinite;
}

.auth-bg-effects .orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    bottom: -80px;
    left: -80px;
    animation: orbFloat 16s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(21, 21, 34, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
    animation: authSlideUp 0.6s ease-out;
}

@keyframes authSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.auth-logo {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    box-shadow: var(--shadow-glow-strong);
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

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

/* Form styles */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-input-wrapper {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-base);
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.form-input:focus ~ .form-input-icon,
.form-input:focus + .form-input-icon {
    color: var(--accent-primary);
}

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

.form-input-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition-fast);
}

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

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group { flex: 1; }

.form-error {
    font-size: 12px;
    color: var(--accent-red);
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.form-error.active { display: flex; }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    font-size: 13px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

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

.form-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    font-size: 11px;
    color: transparent;
}

.form-checkbox input:checked + .checkmark {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

.form-link {
    font-size: 13px;
    color: var(--accent-secondary);
    font-weight: 500;
}

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

.auth-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.auth-submit:hover {
    box-shadow: 0 4px 25px rgba(108, 92, 231, 0.5);
    transform: translateY(-1px);
}

.auth-submit:active { transform: translateY(0); }

.auth-submit.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-submit .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: loaderSpin 0.6s linear infinite;
    margin: 0 auto;
}

.auth-submit.loading .btn-text { display: none; }
.auth-submit.loading .spinner { display: block; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

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

.auth-footer a {
    font-weight: 600;
    color: var(--accent-secondary);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: var(--transition-base);
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-brand-info {
    overflow: hidden;
}

.sidebar-brand-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand-version {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

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

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

.sidebar-section-title {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    text-decoration: none;
    margin-bottom: 2px;
}

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

.sidebar-item.active {
    color: #fff;
    background: rgba(108, 92, 231, 0.15);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--accent-primary);
    border-radius: 0 3px 3px 0;
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sidebar-item .badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
}

.badge-primary {
    background: rgba(108, 92, 231, 0.2);
    color: var(--accent-secondary);
}

.badge-green {
    background: rgba(0, 184, 148, 0.15);
    color: var(--accent-green);
}

.badge-red {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-red);
}

.badge-orange {
    background: rgba(253, 203, 110, 0.15);
    color: var(--accent-orange);
}

/* Categories in sidebar */
.sidebar-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.sidebar-category:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.sidebar-category .arrow {
    transition: var(--transition-fast);
    font-size: 12px;
}

.sidebar-category.open .arrow {
    transform: rotate(90deg);
}

.sidebar-subcategories {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.sidebar-subcategories.open {
    max-height: 500px;
}

.sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.sidebar-subitem:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* Sidebar user */
.sidebar-user {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

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

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

.sidebar-user-plan {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-secondary);
}

/* Main content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--topbar-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.topbar-search {
    position: relative;
    width: 280px;
}

.topbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.topbar-search input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: var(--transition-base);
}

.topbar-search input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

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

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

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    font-size: 16px;
}

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

.topbar-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.topbar-coins {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(253, 203, 110, 0.08);
    border: 1px solid rgba(253, 203, 110, 0.15);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
}

.topbar-coins-icon {
    font-size: 16px;
}

/* Dashboard content */
.page-content {
    flex: 1;
    padding: 32px;
}

.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

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

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 0 0 0 80px;
    opacity: 0.06;
}

.stat-card.purple::after { background: var(--accent-primary); }
.stat-card.cyan::after { background: var(--accent-cyan); }
.stat-card.green::after { background: var(--accent-green); }
.stat-card.orange::after { background: var(--accent-orange); }
.stat-card.red::after { background: var(--accent-red); }
.stat-card.pink::after { background: var(--accent-pink); }

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

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

.stat-icon.purple { background: rgba(108, 92, 231, 0.12); color: var(--accent-primary); }
.stat-icon.cyan { background: rgba(0, 206, 201, 0.12); color: var(--accent-cyan); }
.stat-icon.green { background: rgba(0, 184, 148, 0.12); color: var(--accent-green); }
.stat-icon.orange { background: rgba(253, 203, 110, 0.12); color: var(--accent-orange); }
.stat-icon.red { background: rgba(255, 107, 107, 0.12); color: var(--accent-red); }
.stat-icon.pink { background: rgba(253, 121, 168, 0.12); color: var(--accent-pink); }

.stat-trend {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.stat-trend.up {
    color: var(--accent-green);
    background: rgba(0, 184, 148, 0.1);
}

.stat-trend.down {
    color: var(--accent-red);
    background: rgba(255, 107, 107, 0.1);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Dashboard cards */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.dash-grid-3 {
    grid-template-columns: 2fr 1fr;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.dash-card:hover {
    border-color: var(--border-hover);
}

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

.dash-card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.dash-card-body {
    padding: 24px;
}

/* API Key display */
.api-key-display {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.api-key-text {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-secondary);
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-copy {
    background: rgba(108, 92, 231, 0.15);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--accent-secondary);
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.api-key-copy:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Charts placeholder */
.chart-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 160px;
    padding: 0 20px;
    width: 100%;
}

.chart-bar {
    flex: 1;
    border-radius: 6px 6px 0 0;
    background: var(--accent-gradient);
    opacity: 0.7;
    transition: var(--transition-base);
    position: relative;
    min-height: 10px;
}

.chart-bar:hover {
    opacity: 1;
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* Top users */
.top-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-user-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

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

.top-user-rank {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    width: 28px;
    text-align: center;
}

.top-user-rank.gold { color: #ffd700; }
.top-user-rank.silver { color: #c0c0c0; }
.top-user-rank.bronze { color: #cd7f32; }

.top-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    color: var(--text-secondary);
}

.top-user-info { flex: 1; }

.top-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.top-user-requests {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.top-user-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-secondary);
}

/* Notifications panel */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
    transition: var(--transition-fast);
}

.notification-item.warning { border-left-color: var(--accent-orange); }
.notification-item.danger { border-left-color: var(--accent-red); }
.notification-item.success { border-left-color: var(--accent-green); }
.notification-item.info { border-left-color: var(--accent-cyan); }

.notification-icon {
    font-size: 18px;
    margin-top: 2px;
}

.notification-content { flex: 1; }

.notification-text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.notification-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Endpoint/API cards */
.endpoint-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.endpoint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.endpoint-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.endpoint-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.endpoint-method {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.method-get {
    background: rgba(0, 184, 148, 0.12);
    color: var(--accent-green);
}

.method-post {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-primary);
}

.endpoint-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.on {
    background: var(--accent-green);
    box-shadow: 0 0 8px rgba(0, 184, 148, 0.5);
}

.status-dot.off {
    background: var(--accent-red);
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.status-text.on { color: var(--accent-green); }
.status-text.off { color: var(--accent-red); }

.endpoint-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.endpoint-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.endpoint-url {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-cyan);
    padding: 10px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    overflow-x: auto;
    white-space: nowrap;
}

.endpoint-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

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

.endpoint-meta-item .icon { font-size: 14px; }

.endpoint-cost {
    font-family: var(--font-mono);
    color: var(--accent-orange);
    font-weight: 600;
}

.endpoint-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

/* JSON preview */
.json-preview {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.json-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(108, 92, 231, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.json-preview-title {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.json-preview-actions {
    display: flex;
    gap: 6px;
}

.json-preview-body {
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.json-preview-body pre {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
}

/* JSON syntax highlighting */
.json-key { color: var(--accent-secondary); }
.json-string { color: var(--accent-green); }
.json-number { color: var(--accent-orange); }
.json-bool { color: var(--accent-cyan); }
.json-null { color: var(--accent-red); }

/* Tienda / Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
}

.plan-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.plan-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow-strong);
}

.plan-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.plan-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.plan-price {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}

.plan-price .currency {
    font-size: 18px;
    color: var(--text-muted);
    vertical-align: super;
}

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

.plan-credits {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-orange);
    margin-bottom: 24px;
}

.plan-features {
    text-align: left;
    margin-bottom: 28px;
}

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

.plan-feature-check {
    color: var(--accent-green);
    font-size: 16px;
}

/* Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr {
    transition: var(--transition-fast);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

/* Tags / pills */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
}

.tag-on {
    background: rgba(0, 184, 148, 0.12);
    color: var(--accent-green);
}

.tag-off {
    background: rgba(255, 107, 107, 0.12);
    color: var(--accent-red);
}

.tag-pending {
    background: rgba(253, 203, 110, 0.12);
    color: var(--accent-orange);
}

.tag-admin {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-primary);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.pagination-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-base);
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

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

.modal-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-red);
    border-color: rgba(255, 107, 107, 0.3);
}

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    color: var(--text-primary);
    min-width: 300px;
    animation: toastIn 0.3s ease-out;
    border-left: 3px solid var(--accent-primary);
}

.toast.success { border-left-color: var(--accent-green); }
.toast.error { border-left-color: var(--accent-red); }
.toast.warning { border-left-color: var(--accent-orange); }

.toast.hiding {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* Uptime counter */
.uptime-display {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 2px;
}

.uptime-label {
    display: inline-block;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    padding: 2px 8px;
    margin: 0 2px;
    min-width: 32px;
    text-align: center;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    width: fit-content;
}

.tab-btn {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

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

.tab-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

/* Code block tabs */
.code-tabs {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    overflow: hidden;
}

.code-tab {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.code-tab:hover { color: var(--text-primary); }

.code-tab.active {
    background: var(--bg-input);
    color: var(--accent-secondary);
}

/* ============================================
   ANIMATIONS - Stagger reveals
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }
.fade-in:nth-child(6) { animation-delay: 0.3s; }
.fade-in:nth-child(7) { animation-delay: 0.35s; }
.fade-in:nth-child(8) { animation-delay: 0.4s; }

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.4s ease-out forwards;
}

@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}

/* Glow hover effect */
.glow-hover {
    position: relative;
}

.glow-hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--accent-gradient);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-base);
    filter: blur(8px);
}

.glow-hover:hover::after { opacity: 0.3; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .dash-grid, .dash-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 199;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .sidebar-backdrop.visible {
        opacity: 1;
        visibility: visible;
    }

    .main-content {
        margin-left: 0;
    }

    .topbar-hamburger {
        display: flex;
    }

    .topbar-search {
        width: 160px;
    }

    .page-content {
        padding: 20px 16px;
    }

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

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

    .landing-nav {
        padding: 16px 20px;
    }

    .nav-links { display: none; }

    .hero-section {
        padding: 100px 20px 60px;
    }

    .features-section {
        padding: 60px 20px;
    }

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

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

    .form-row {
        flex-direction: column;
    }

    .auth-card {
        padding: 36px 24px;
    }
}

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

    .topbar-search {
        display: none;
    }

    .topbar-coins {
        display: none;
    }

    .hero-title {
        letter-spacing: -1px;
    }
}

/* ============================================
   ADMIN PANEL SPECIFIC
   ============================================ */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

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

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

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    border: 1px solid var(--border-color);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text-muted);
    top: 2px;
    left: 2px;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    background: #fff;
    transform: translateX(20px);
}

/* Support form */
.support-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: var(--transition-base);
}

.support-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* File upload area */
.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-base);
}

.file-upload-area:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.03);
}

.file-upload-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.file-upload-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.file-upload-text span {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* Profile section */
.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: #fff;
    box-shadow: var(--shadow-glow-strong);
}

/* Email verification badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(0, 184, 148, 0.12);
    color: var(--accent-green);
}

.unverified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 107, 107, 0.12);
    color: var(--accent-red);
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-hover) 50%, var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Glowing card edge */
.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-base);
}

.card-glow:hover::before {
    opacity: 0.5;
}

/* Animated counter */
.counter-animate {
    display: inline-block;
    transition: var(--transition-base);
}

/* Info grid items */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.info-item {
    padding: 16px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.info-item-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-item-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

/* Utility: full-width */
.full-width { grid-column: 1 / -1; }

/* Utility: text alignment */
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Utility: flex utils */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

/* Utility: margin/padding */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Lucide icons fallback using unicode/emoji */
.ico { display: inline-block; width: 1em; height: 1em; line-height: 1; }

/* ============================================
   ADMIN PANEL - Professional Styles
   ============================================ */

/* Admin Stats Row */
.admin-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

/* Admin Overview Grid */
.admin-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .admin-overview-grid { grid-template-columns: 1fr; }
}

/* Admin Stat Cards with icons */
.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-base);
}
.admin-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.admin-stat-card .stat-icon-lg {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.admin-stat-card .stat-icon-lg.purple { background: rgba(108, 92, 231, 0.15); }
.admin-stat-card .stat-icon-lg.green { background: rgba(0, 184, 148, 0.15); }
.admin-stat-card .stat-icon-lg.cyan { background: rgba(0, 206, 201, 0.15); }
.admin-stat-card .stat-icon-lg.orange { background: rgba(253, 203, 110, 0.15); }
.admin-stat-card .stat-icon-lg.red { background: rgba(255, 107, 107, 0.15); }
.admin-stat-card .stat-icon-lg.pink { background: rgba(253, 121, 168, 0.15); }
.admin-stat-card .stat-info .stat-value { font-size: 22px; font-weight: 800; color: #fff; font-family: var(--font-mono); }
.admin-stat-card .stat-info .stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Admin Tab Icons */
.admin-tab-icon {
    margin-right: 6px;
    font-size: 14px;
}

/* Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}
.role-badge.owner {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.2), rgba(255, 165, 0, 0.2));
    color: #fdcb6e;
    border: 1px solid rgba(253, 203, 110, 0.3);
}
.role-badge.admin {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent-secondary);
    border: 1px solid rgba(108, 92, 231, 0.3);
}
.role-badge.premium, .role-badge.vip {
    background: rgba(0, 206, 201, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 206, 201, 0.25);
}
.role-badge.user {
    background: rgba(139, 139, 167, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(139, 139, 167, 0.2);
}

/* Method Badges */
.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}
.method-badge.get { background: rgba(0, 184, 148, 0.15); color: var(--accent-green); }
.method-badge.post { background: rgba(108, 92, 231, 0.15); color: var(--accent-secondary); }
.method-badge.put { background: rgba(253, 203, 110, 0.15); color: var(--accent-orange); }
.method-badge.delete { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }

/* Pagination Controls */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.pagination-controls .page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: var(--transition-fast);
}
.pagination-controls .page-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
    background: rgba(108, 92, 231, 0.08);
}
.pagination-controls .page-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}
.pagination-controls .page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.pagination-controls .page-info {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 8px;
    font-family: var(--font-mono);
}

/* Backup Section */
.backup-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .backup-section { grid-template-columns: 1fr; }
}
.backup-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.backup-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.backup-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* System Info Cards */
.system-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.system-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}
.system-card .system-card-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.system-card .system-card-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
}

/* Disk Usage Bar */
.disk-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}
.disk-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--accent-gradient);
    transition: width 0.5s ease;
}

/* SMTP Test Result */
.smtp-test-result {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-top: 10px;
    display: none;
}
.smtp-test-result.success {
    display: block;
    background: rgba(0, 184, 148, 0.1);
    border: 1px solid rgba(0, 184, 148, 0.3);
    color: var(--accent-green);
}
.smtp-test-result.error {
    display: block;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--accent-red);
}

/* Log Entries */
.log-entry {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    transition: var(--transition-fast);
}
.log-entry:hover {
    background: var(--bg-hover);
}
.log-entry .log-time {
    color: var(--text-muted);
}
.log-entry .log-level {
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    text-transform: uppercase;
}
.log-entry .log-level.error { background: rgba(255, 107, 107, 0.15); color: var(--accent-red); }
.log-entry .log-level.warn { background: rgba(253, 203, 110, 0.15); color: var(--accent-orange); }
.log-entry .log-level.info { background: rgba(0, 206, 201, 0.1); color: var(--accent-cyan); }
.log-entry .log-level.debug { background: rgba(139, 139, 167, 0.1); color: var(--text-muted); }

/* Admin Quick Actions */
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}
.admin-quick-actions .btn {
    justify-content: center;
    font-size: 13px;
}

/* Log Level Filter Buttons */
.log-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.log-filter-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}
.log-filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}
.log-filter-btn.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Sub-tabs */
.sub-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}
.sub-tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition-fast);
    font-family: var(--font-body);
}
.sub-tab-btn:hover {
    color: var(--text-primary);
}
.sub-tab-btn.active {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-primary);
}

/* Import Settings Area */
.import-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: var(--transition-fast);
}
.import-area:hover {
    border-color: var(--accent-primary);
}
.import-area textarea {
    width: 100%;
    min-height: 120px;
    margin-top: 12px;
    resize: vertical;
}

/* Password toggle in settings */
.password-wrapper {
    position: relative;
}
.password-wrapper .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}
.password-wrapper .password-toggle:hover {
    color: var(--text-primary);
}

/* ===== DOCUMENTATION LAYOUT ===== */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    min-height: 600px;
}
.docs-sidebar {
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
}
.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.docs-sidebar-category { margin-bottom: 20px; }
.docs-sidebar-category-title {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.docs-sidebar-item:hover {
    background: rgba(108, 92, 231, 0.08);
    color: var(--accent-secondary);
}
.docs-sidebar-item.active {
    background: rgba(108, 92, 231, 0.12);
    color: var(--accent-secondary);
    font-weight: 600;
}
.docs-sidebar-item .method-sm {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}
.docs-sidebar-item .method-sm.get { background: rgba(34,197,94,0.15); color: var(--accent-green); }
.docs-sidebar-item .method-sm.post { background: rgba(59,130,246,0.15); color: #3b82f6; }

.docs-main { min-width: 0; }
.docs-main h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.docs-endpoint-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.docs-endpoint-header h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.endpoint-method {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.endpoint-method.get { background: rgba(34,197,94,0.15); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.3); }
.endpoint-method.post { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }

.docs-code-block {
    position: relative;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 8px;
}
.docs-code-block .code-header,
.docs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}
.docs-code-block .code-copy-btn,
.docs-copy-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition-fast);
}
.docs-code-block .code-copy-btn:hover,
.docs-copy-btn:hover { border-color: var(--accent-primary); color: var(--accent-secondary); }
.docs-code-block .code-copy-btn.copied,
.docs-copy-btn.copied { border-color: var(--accent-green); color: var(--accent-green); }
.docs-code-block pre {
    padding: 16px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--accent-cyan);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.docs-param-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.docs-param-table th {
    text-align: left;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}
.docs-param-table td {
    padding: 10px 12px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ===== ERROR LOGS ===== */
.error-log-entry {
    border-left: 3px solid var(--accent-red);
    padding: 12px 16px;
    margin-bottom: 10px;
    background: rgba(239, 68, 68, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.error-log-entry .log-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.error-log-entry .log-message {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.error-context {
    margin-top: 8px;
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ===== REQUEST STATUS TAGS ===== */
.status-pending { color: var(--accent-orange); }
.status-approved { color: var(--accent-green); }
.status-rejected { color: var(--accent-red); }
.status-implemented { color: var(--accent-cyan); }
.status-open { color: var(--accent-orange); }
.status-investigating { color: #f59e0b; }
.status-resolved { color: var(--accent-green); }

@media (max-width: 768px) {
    .docs-layout { grid-template-columns: 1fr; }
    .docs-sidebar { position: relative; max-height: 300px; top: 0; }
}
