 :root { --primary: #6366f1; --primary-dark: #4f46e5; --primary-light: #818cf8; --secondary: #06b6d4; --accent: #8b5cf6; --bg-primary: #0a0c10; --bg-secondary: #0f1117; --bg-card: #161922; --bg-hover: #1e212b; --text-primary: #f0f1f5; --text-secondary: #8b92a8; --text-muted: #5a6078; --border-color: #1e212b; --border-light: #2a2e3b; --success: #22c55e; --warning: #f59e0b; --danger: #ef4444; --info: #06b6d4; --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.4); --shadow: 0 4px 6px -1px rgba(0,0,0,0.5), 0 2px 4px -1px rgba(0,0,0,0.3); --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.6), 0 10px 10px -5px rgba(0,0,0,0.4); --shadow-glow: 0 0 30px rgba(99,102,241,0.15); --radius-sm: 6px; --radius: 10px; --radius-lg: 14px; --radius-xl: 20px; --font-sans: 'Inter',-apple-system,BlinkMacSystemFont,sans-serif; --font-mono: 'JetBrains Mono','Fira Code',monospace; --transition: all 0.25s cubic-bezier(0.4,0,0.2,1); }
    body.light-theme { --bg-primary: #fafafa; --bg-secondary: #ffffff; --bg-card: #ffffff; --bg-hover: #f4f5f7; --text-primary: #111827; --text-secondary: #4b5563; --text-muted: #9ca3af; --border-color: #e5e7eb; --border-light: #d1d5db; --shadow-glow: 0 0 30px rgba(99,102,241,0.1); }
    * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; }
    body { font-family: var(--font-sans); background-color: var(--bg-primary); color: var(--text-primary); min-height: 100vh; line-height: 1.6; -webkit-tap-highlight-color: transparent; transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; }
    body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(circle at 20% 50%, rgba(99,102,241,0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(139,92,246,0.03) 0%, transparent 50%); pointer-events: none; z-index: 0; }
    .d-none { display: none !important; }
    #loading-screen { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-primary); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease; }
    .loading-spinner-large { width: 48px; height: 48px; border: 2px solid var(--border-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 20px; position: relative; }
    .loading-spinner-large::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); animation: spin 1.2s linear infinite reverse; }
    .loading-text { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(10,12,16,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); padding: 0.75rem 1rem; transition: var(--transition); }
    body.light-theme .navbar { background: rgba(255,255,255,0.85); }
    .navbar-container { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
    .brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text-primary); text-decoration: none; letter-spacing: -0.02em; flex-shrink: 0; }
    .brand-icon { width: 32px; height: 32px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
    .navbar-right { display: flex; align-items: center; gap: 8px; }
    #themeToggle { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); font-size: 0.9rem; flex-shrink: 0; }
    #themeToggle:hover { background: var(--bg-hover); color: var(--primary); transform: translateY(-1px); }
    .container { position: relative; z-index: 1; max-width: 1400px; width: 100%; margin: 0 auto; padding: 90px 1rem 2rem; }
    .hero { margin-bottom: 2.5rem; width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-header { text-align: center; margin-bottom: 1.5rem; width: 100%; max-width: 700px; }
    .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: var(--primary); padding: 5px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
    .hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    .hero h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; letter-spacing: -0.02em; }
    .hero p { font-size: 1rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; line-height: 1.7; }
    .terminal-container { max-width: 720px; width: 100%; margin: 0 auto 2.5rem; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), var(--shadow-glow); background: #0c0e12; border: 1px solid var(--border-light); }
    .terminal-header { background: linear-gradient(180deg, #1a1d24 0%, #13151a 100%); padding: 10px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #252830; }
    .terminal-dots { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
    .terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
    .terminal-dot.red { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
    .terminal-dot.yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.4); }
    .terminal-dot.green { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.4); }
    .terminal-title { margin-left: 10px; font-size: 0.75rem; color: #5a6078; font-family: var(--font-mono); font-weight: 500; flex: 1; }
    .terminal-widgets { display: flex; align-items: center; gap: 12px; margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; color: #5a6078; }
    .terminal-widget { display: flex; align-items: center; gap: 4px; }
    .terminal-widget i { font-size: 0.65rem; color: var(--primary-light); }
    .terminal-widget-value { color: #8b92a8; font-weight: 500; }
    .terminal-body { background: #0c0e12; padding: 16px; min-height: 220px; max-height: 280px; overflow-y: auto; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; width: 100%; }
    .terminal-body::-webkit-scrollbar { width: 6px; height: 6px; }
    .terminal-body::-webkit-scrollbar-track { background: #0c0e12; }
    .terminal-body::-webkit-scrollbar-thumb { background: #2a2e3b; border-radius: 3px; }
    .terminal-line { opacity: 0; animation: fadeIn 0.3s ease forwards; display: flex; align-items: flex-start; gap: 8px; word-break: break-word; margin-bottom: 2px; }
    .terminal-line .prompt { color: #22c55e; flex-shrink: 0; font-weight: 500; user-select: none; }
    .terminal-line .command { color: #a78bfa; } .terminal-line .string { color: #fbbf24; } .terminal-line .number { color: #60a5fa; } .terminal-line .path { color: #34d399; } .terminal-line .success-text { color: #22c55e; } .terminal-line .info-text { color: #60a5fa; } .terminal-line .bracket { color: #c084fc; } .terminal-line .method-get { color: #22c55e; font-weight: 600; } .terminal-line .method-post { color: #f59e0b; font-weight: 600; }
    .terminal-cursor { display: inline-block; width: 8px; height: 16px; background: #22c55e; animation: blink 1s infinite; margin-left: 4px; vertical-align: middle; }
    @keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
    @keyframes fadeIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
    .search-container { max-width: 560px; margin: 0 auto 2.5rem; position: relative; }
    .search-input-wrapper { position: relative; display: flex; align-items: center; }
    .search-icon { position: absolute; left: 18px; color: var(--text-muted); font-size: 1rem; z-index: 2; }
    #searchInput { width: 100%; padding: 14px 18px 14px 48px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-sans); transition: var(--transition); outline: none; }
    #searchInput:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1), var(--shadow); }
    #searchInput::placeholder { color: var(--text-muted); }
    .content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
    .content h2 { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
    .content h2 i { color: var(--primary); font-size: 1.1rem; }
    .endpoint-count { background: var(--bg-card); border: 1px solid var(--border-light); padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; color: var(--text-secondary); font-weight: 500; font-family: var(--font-mono); }
    .tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 1.25rem; padding-bottom: 4px; scrollbar-width: none; }
    .tabs::-webkit-scrollbar { display: none; }
    .tab { background: var(--bg-card); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 8px 16px; border-radius: var(--radius); font-weight: 500; font-size: 0.85rem; cursor: pointer; white-space: nowrap; transition: var(--transition); font-family: var(--font-sans); }
    .tab:hover { background: var(--bg-hover); color: var(--text-primary); transform: translateY(-1px); }
    .tab.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 4px 12px rgba(99,102,241,0.25); }
    .api-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0.875rem; margin-bottom: 3rem; }
    .api-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1.125rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; transition: var(--transition); cursor: pointer; opacity: 0; transform: translateY(20px); animation: cardEntrance 0.5s ease forwards; position: relative; overflow: hidden; }
    .api-card::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: linear-gradient(180deg, var(--primary), var(--accent)); opacity: 0; transition: opacity 0.3s ease; }
    .api-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
    .api-card:hover::before { opacity: 1; }
    @keyframes cardEntrance { to { opacity: 1; transform: translateY(0); } }
    .api-info { flex: 1; min-width: 0; }
    .api-info h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
    .api-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .method-badge { font-size: 0.65rem; font-weight: 700; padding: 3px 7px; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }
    .method-get { background: rgba(34,197,94,0.12); color: #22c55e; } .method-post { background: rgba(245,158,11,0.12); color: #f59e0b; } .method-put { background: rgba(6,182,212,0.12); color: #06b6d4; } .method-delete { background: rgba(239,68,68,0.12); color: #ef4444; }
    .play-button { width: 36px; height: 36px; border-radius: var(--radius); background: var(--bg-hover); border: 1px solid var(--border-light); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
    .play-button:hover { background: var(--primary); border-color: var(--primary); color: white; transform: scale(1.05); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
    .modal { position: fixed; top: 0; left: 0; z-index: 2000; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
    .modal.active { opacity: 1; pointer-events: all; }
    .modal-dialog { width: 100%; max-width: 640px; max-height: 90vh; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); }
    .modal.active .modal-dialog { transform: scale(1); }
    .modal-header { padding: 1.25rem; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; background: var(--bg-secondary); }
    .modal-title-section h5 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
    .modal-title-section span { font-size: 0.8rem; color: var(--text-secondary); }
    .btn-close { width: 32px; height: 32px; border-radius: var(--radius); border: 1px solid var(--border-light); background: var(--bg-hover); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.1rem; transition: var(--transition); flex-shrink: 0; }
    .btn-close:hover { background: var(--danger); border-color: var(--danger); color: white; }
    .modal-body { padding: 1.25rem; overflow-y: auto; flex: 1; }
    .copy-section { display: none; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 1.25rem; gap: 10px; align-items: center; }
    .copy-section.active { display: flex; }
    #copyEndpointText { flex: 1; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-secondary); overflow-x: auto; white-space: nowrap; }
    #copyBtn { padding: 6px 14px; background: var(--primary); border: none; border-radius: var(--radius-sm); color: white; font-size: 0.75rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 5px; transition: var(--transition); flex-shrink: 0; }
    #copyBtn:hover { background: var(--primary-dark); }
    #copyResponseBtn { padding: 6px 12px; background: var(--bg-hover); border: 1px solid var(--border-light); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.75rem; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: var(--transition); }
    #copyResponseBtn:hover { background: var(--primary); border-color: var(--primary); color: white; }
    #paramForm { display: grid; gap: 0.875rem; margin-bottom: 1.25rem; }
    .form-group { display: flex; flex-direction: column; gap: 5px; }
    .form-group label { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); text-transform: capitalize; }
    .form-group input, .form-group textarea { padding: 10px 14px; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius); color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-sans); transition: var(--transition); resize: vertical; }
    .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
    #submitParamBtn { width: 100%; padding: 12px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); border: none; border-radius: var(--radius); color: white; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 6px; }
    #submitParamBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
    .loading-spinner { width: 36px; height: 36px; border: 2px solid var(--border-light); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 1.5rem auto; }
    .loading-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; background: var(--bg-primary); border-radius: var(--radius); margin-top: 0.875rem; }
    .loading-text-small { color: var(--text-secondary); font-size: 0.8rem; margin-top: 0.5rem; font-family: var(--font-mono); }
    #apiResponseContent { background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 1rem; font-family: var(--font-mono); font-size: 0.8rem; max-height: 360px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; color: var(--text-primary); margin-top: 0.875rem; line-height: 1.6; }
    .image-response, .video-response { max-width: 100%; border-radius: var(--radius); }
    .audio-response { width: 100%; margin-top: 10px; }
    .response-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; margin-top: 0.875rem; }
    .response-header span { font-size: 0.8rem; color: var(--text-secondary); font-family: var(--font-mono); font-weight: 600; }
    footer { border-top: 1px solid var(--border-color); padding: 2.5rem 1rem; margin-top: 4rem; text-align: center; background: var(--bg-secondary); }
    .footer-content { max-width: 1400px; margin: 0 auto; }
    .contact { display: flex; justify-content: center; gap: 0.875rem; margin-bottom: 1.25rem; }
    .contact a { width: 42px; height: 42px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border-light); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 1.1rem; transition: var(--transition); }
    .contact a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
    footer p { color: var(--text-muted); font-size: 0.8rem; }
    .modal-body.hide-form-elements #paramForm, .modal-body.hide-form-elements #submitParamBtn { display: none; }
    @media (max-width: 640px) { .api-list { grid-template-columns: 1fr; } .navbar { padding: 0.5rem; } .brand { font-size: 1rem; gap: 8px; } .brand-icon { width: 28px; height: 28px; font-size: 0.8rem; } .hero h2 { font-size: 1.6rem; } .hero p { font-size: 0.9rem; } .terminal-container { margin: 0 0 2rem; border-radius: var(--radius); } .terminal-body { padding: 12px; font-size: 0.75rem; min-height: 180px; } .modal-dialog { max-height: 95vh; margin: 0.5rem; } .modal-header, .modal-body { padding: 1rem; } .terminal-widget span:not(.terminal-widget-value) { display: none; } }
    @media (max-width: 480px) { .hero h2 { font-size: 1.4rem; } .terminal-body { padding: 10px; font-size: 0.7rem; } .search-container { margin-bottom: 2rem; } #searchInput { padding: 12px 16px 12px 44px; font-size: 0.85rem; } .terminal-widget i { display: none; } }