@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
    --bg-primary: #06060a;
    --bg-secondary: #0c0c12;
    --bg-tertiary: #131320;
    --bg-card: rgba(19, 19, 32, 0.95);
    --bg-hover: rgba(255, 255, 255, 0.03);
    
    --border-primary: rgba(255, 255, 255, 0.06);
    --border-secondary: rgba(255, 255, 255, 0.1);
    --border-active: rgba(99, 102, 241, 0.5);
    
    --text-primary: #f8f8fc;
    --text-secondary: #a8a8b8;
    --text-muted: #606070;
    
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-dim: rgba(99, 102, 241, 0.1);
    --accent-glow: rgba(99, 102, 241, 0.4);
    
    --success: #10b981;
    --success-dim: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --error-dim: rgba(239, 68, 68, 0.1);
    
    --code-bg: #08080c;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    --shadow-glow: 0 0 60px -10px var(--accent-glow);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

html {
    scroll-behavior: smooth;
}

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

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Floating Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; top: 80%; animation-delay: -5s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -10s; animation-duration: 30s; }
.particle:nth-child(4) { left: 50%; top: 60%; animation-delay: -15s; animation-duration: 22s; }
.particle:nth-child(5) { left: 70%; top: 30%; animation-delay: -7s; animation-duration: 28s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: -12s; animation-duration: 24s; }
.particle:nth-child(7) { left: 90%; top: 50%; animation-delay: -3s; animation-duration: 26s; }
.particle:nth-child(8) { left: 15%; top: 90%; animation-delay: -8s; animation-duration: 21s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-100px) translateX(50px) scale(1.5); 
        opacity: 0.6;
    }
    50% { 
        transform: translateY(-50px) translateX(-30px) scale(1); 
        opacity: 0.2;
    }
    75% { 
        transform: translateY(-150px) translateX(20px) scale(2); 
        opacity: 0.5;
    }
}

/* Grid Lines Animation */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 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: 80px 80px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 70%);
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 72px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(12, 12, 18, 0.95) 100%);
    border-right: 1px solid var(--border-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
    margin-bottom: 28px;
    letter-spacing: -0.5px;
    font-family: var(--font-display);
    box-shadow: var(--shadow-glow);
    animation: logoPulse 4s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s var(--transition-smooth);
}

.sidebar-logo:hover {
    transform: scale(1.08);
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 20px -5px var(--accent-glow); }
    50% { box-shadow: 0 0 40px -5px var(--accent-glow); }
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 0 12px;
}

.nav-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s var(--transition-smooth);
    overflow: hidden;
}

.nav-item::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-secondary);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.2s var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-item:hover {
    color: var(--text-secondary);
    background: var(--bg-hover);
}

.nav-item:hover::after {
    opacity: 0.1;
}

.nav-item.active {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-item.active::after {
    opacity: 0.15;
}

.nav-item i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s var(--transition-smooth);
}

.nav-item:hover i {
    transform: scale(1.1);
}

/* Active Indicator */
.nav-item.active .nav-indicator {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 72px;
}

/* Header */
.hero-header {
    padding: 40px 56px;
    border-bottom: 1px solid var(--border-primary);
    background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
    position: relative;
    overflow: hidden;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
    animation: headerGlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes headerGlow {
    0%, 100% { transform: translate(0, 0); opacity: 0.5; }
    50% { transform: translate(10%, 10%); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-dim);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShimmer 8s ease-in-out infinite;
    background-size: 200% auto;
}

@keyframes titleShimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    position: relative;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value .accent {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.status-bar {
    position: absolute;
    top: 40px;
    right: 56px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    font-family: var(--font-mono);
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.status-dot.offline {
    background: var(--error);
    animation: none;
}

/* Content Area */
.content-area {
    padding: 40px 56px;
    max-width: 100%;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--accent) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.category-card:hover {
    border-color: var(--border-secondary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

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

.category-card:hover::after {
    opacity: 0.05;
}

.category-card.active {
    border-color: var(--accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.category-card:hover .card-icon {
    color: var(--accent);
    background: var(--accent-dim);
    transform: scale(1.05);
    box-shadow: 0 0 30px -5px var(--accent-glow);
}

.card-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.6;
    flex: 1;
    position: relative;
    z-index: 1;
}

.card-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: 8px 14px;
    border-radius: 100px;
    width: fit-content;
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title i {
    color: var(--accent);
    font-size: 20px;
}

.section-back {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
}

.section-back:hover {
    background: var(--bg-hover);
    border-color: var(--border-secondary);
    color: var(--text-secondary);
    transform: translateX(-4px);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeSlideIn 0.4s var(--transition-smooth);
}

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

/* Endpoint Card */
.endpoint {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 16px;
    transition: all 0.2s var(--transition-smooth);
    position: relative;
}

.endpoint::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), #8b5cf6);
    border-radius: 3px 0 0 3px;
    opacity: 0;
    transition: opacity 0.2s;
}

.endpoint:hover {
    border-color: var(--border-secondary);
    transform: translateX(4px);
}

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

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

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

.method {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono);
}

.method.post {
    background: var(--success-dim);
    color: var(--success);
}

.method.get {
    background: var(--accent-dim);
    color: var(--accent);
}

.method.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.path {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 8px 14px;
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
}

.price {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.price.dynamic {
    background: linear-gradient(135deg, var(--accent-dim), rgba(139, 92, 246, 0.1));
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.endpoint-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Info Blocks */
.info-block {
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 18px;
    border: 1px solid var(--border-primary);
}

.info-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-title i {
    color: var(--accent);
}

.methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.method-tag {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-family: var(--font-mono);
    text-align: center;
    color: var(--text-secondary);
    transition: all 0.2s var(--transition-smooth);
    cursor: default;
    white-space: nowrap;
}

.method-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    transform: translateY(-2px);
}

.method-tag.action {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
}

.method-tag.action:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
}

.checkbox-item.fun-method {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.checkbox-item.fun-method label {
    color: #ec4899;
}

.param-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.param-item {
    font-size: 13px;
    color: var(--text-muted);
    padding: 12px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    line-height: 1.5;
}

.param-item code {
    font-family: var(--font-mono);
    color: var(--accent);
    background: var(--code-bg);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 10px;
}

/* Code Blocks */
.code-block {
    margin-top: 18px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--code-bg);
}

.code-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-primary);
}

.code-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-primary);
}

.code-tab {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    position: relative;
}

.code-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.2s var(--transition-smooth);
}

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

.code-tab.active {
    color: var(--accent);
}

.code-tab.active::after {
    transform: scaleX(1);
}

.code-content {
    display: none;
}

.code-content.active {
    display: block;
}

.code-block pre {
    background: transparent;
    padding: 18px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Buttons */
.btn-test {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px -5px var(--accent-glow);
}

.btn-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -5px var(--accent-glow);
}

.btn-test:active {
    transform: translateY(0);
}

.btn-primary {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #8b5cf6 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px -5px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -5px var(--accent-glow);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-link {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    animation: overlayIn 0.3s var(--transition-smooth);
}

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

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), var(--shadow-glow);
    animation: modalIn 0.4s var(--transition-smooth);
}

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

.modal-large {
    max-width: 840px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.modal-header i {
    color: var(--accent);
    margin-right: 12px;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--transition-smooth);
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.modal-close:hover {
    background: var(--error-dim);
    color: var(--error);
}

.modal-body {
    padding: 24px 28px 28px;
}

/* Response Section */
#response-container,
#combined-response {
    padding-top: 20px;
    border-top: 1px solid var(--border-primary);
    margin-top: 20px;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.form-group {
    margin-bottom: 18px;
    flex: 1;
}

.form-group-half {
    flex: 1;
    min-width: 0;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group label i {
    color: var(--text-muted);
    font-size: 13px;
}

.form-group small {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 4px;
    font-weight: 400;
}

.form-group small.required-hint {
    color: var(--accent);
    opacity: 0.8;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-mono);
    transition: all 0.2s var(--transition-smooth);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: var(--code-bg);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 12px;
}

.form-group input[readonly] {
    color: var(--text-muted);
    cursor: not-allowed;
    background: var(--bg-tertiary);
}

/* Cookie Input - Special styling */
.cookie-input {
    font-size: 11px !important;
    line-height: 1.5;
    word-break: break-all;
}

/* Extra Fields Section */
.extra-fields-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.extra-fields-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.extra-fields-title small {
    font-weight: 400;
    opacity: 0.7;
}

.extra-fields-section .form-group {
    margin-bottom: 12px;
}

.extra-fields-section .form-row:last-child .form-group {
    margin-bottom: 0;
}

.extra-fields-section label {
    font-size: 11px;
    margin-bottom: 6px;
}

.extra-fields-section input {
    padding: 10px 12px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px;
    background: var(--code-bg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
}

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

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    min-width: 0;
    overflow: hidden;
}

.checkbox-item:hover {
    border-color: var(--border-secondary);
    background: var(--bg-secondary);
}

.checkbox-item input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-item label {
    font-size: 11px;
    font-family: var(--font-mono);
    cursor: pointer;
    margin: 0;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--transition-smooth);
}

.checkbox-label:hover {
    border-color: var(--border-secondary);
    background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

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

/* Response Status */
#response-status,
#combined-status {
    border-radius: var(--radius-md);
    margin-bottom: 14px;
}

#response-status.success,
#combined-status.success {
    background: var(--success-dim);
    border: 1px solid var(--success);
}

#response-status.error,
#combined-status.error {
    background: var(--error-dim);
    border: 1px solid var(--error);
}

#response-body,
#combined-body {
    background: var(--code-bg);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 18px;
    overflow-x: auto;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.response-meta {
    display: flex;
    gap: 14px;
    align-items: center;
}

#response-time,
#combined-time {
    font-size: 12px;
    color: var(--accent);
    font-family: var(--font-mono);
}

.copy-btn {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
    color: var(--accent);
}

.success-icon { color: var(--success); }
.error-icon { color: var(--error); }

/* Loading */
.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-secondary);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 0.7s linear infinite;
}

.loader-large {
    width: 48px;
    height: 48px;
    border-width: 3px;
}

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

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 40px;
    background: linear-gradient(180deg, var(--accent-dim) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

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

.loading-timer {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.progress-bar-container {
    width: 100%;
    max-width: 320px;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-details {
    display: flex;
    gap: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.loading-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-detail-item i {
    color: var(--accent);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
    font-size: 14px;
    backdrop-filter: blur(20px);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-color: var(--success);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(16, 185, 129, 0.3);
}

.notification-success i { color: var(--success); }

.notification-error {
    border-color: var(--error);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(239, 68, 68, 0.3);
}

.notification-error i { color: var(--error); }

.notification-info {
    border-color: var(--accent);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), 0 0 30px -10px var(--accent-glow);
}

.notification-info i { color: var(--accent); }

/* Hidden elements */
.promo-banner, .header, .container > .tabs {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: 64px;
        flex-direction: row;
        padding: 0 12px;
        border-right: none;
        border-top: 1px solid var(--border-primary);
    }
    
    .sidebar-logo {
        display: none;
    }
    
    .sidebar-nav {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        padding: 0;
        gap: 0;
    }
    
    .nav-item {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .nav-item::before {
        display: none;
    }
    
    .nav-item.active .nav-indicator {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-bottom: 64px;
    }
    
    .hero-header {
        padding: 28px 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .content-area {
        padding: 24px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .status-bar {
        position: static;
        margin-top: 24px;
    }
    
    .notification {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }
    
    .particles, .grid-lines {
        display: none;
    }
}

@media (min-width: 1600px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .content-area {
        padding: 48px 72px;
    }
    
    .hero-header {
        padding: 48px 72px;
    }
    
    .status-bar {
        right: 72px;
        top: 48px;
    }
}
