:root {
  --primary: #a162f7; /* BTS Purple */
  --secondary: #ff8fb4; /* Pink */
  --accent: #f5d042; /* Gold */
  --background: #0f0f14; /* Darker background */
  --surface: #1a1a24; /* Slightly lighter surface */
  --text: #ffffff;
  --text-secondary: #d9d9d9;

  --black: #242424;
  --black2: #393e46;
  --green: #50fa7b;
  --white: var(--text);

  --success: #50fa7b;
  --warning: #f5d042; /* Gold */
  --error: #ff5555;

  --get-method: #50fa7b;
  --post-method: #a162f7; /* BTS Purple */
  --put-method: #ff8fb4; /* Pink */
  --delete-method: #ff5555;

  --telegram: #0088cc;

  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Starry Night Animation */
@keyframes animateStars {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -4000px, 0);
  }
}

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

html {
  font-size: 15px;
}

body {
  font-family: "Poppins", "Inter", sans-serif; /* Updated font */
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative; /* Needed for pseudo-elements */
}

/* Star layers - Brighter & Denser */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4000px; /* Taller than viewport for animation */
  z-index: -1;
  background-repeat: repeat;
  will-change: transform;
}

/* Layer 1: Smaller, faster stars */
body::before {
  background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 150px 250px, #fff, transparent),
    radial-gradient(1px 1px at 300px 400px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 500px 100px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 600px 350px, #fff, transparent);
  background-size: 650px 650px;
  animation: animateStars 50s linear infinite;
  opacity: 1; /* Increased brightness */
}

/* Layer 2: Larger, slower stars */
body::after {
  background-image: radial-gradient(2px 2px at 50px 150px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 200px 50px, #fff, transparent),
    radial-gradient(2.5px 2.5px at 400px 400px, #fff, transparent),
    radial-gradient(3px 3px at 550px 250px, #fff, transparent),
    radial-gradient(2px 2px at 700px 500px, #fff, transparent);
  background-size: 750px 750px;
  animation: animateStars 100s linear infinite;
  opacity: 0.8; /* Increased brightness */
}

button,
input,
select,
textarea {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

a {
  -webkit-tap-highlight-color: transparent;
}

/* Scrollbar Styling with Neon Glow */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(161, 98, 247, 0.4); /* BTS Purple */
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(161, 98, 247, 0.5); /* Neon Glow */
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(161, 98, 247, 0.6); /* BTS Purple */
  box-shadow: 0 0 12px rgba(161, 98, 247, 0.8); /* Brighter Glow on hover */
}

/* --- Transparency & Frosted Glass --- */
.header-gradient,
.footer-gradient,
.endpoint-card,
.dialog-container,
.search-input,
.parameter-input,
.parameter-select,
.no-results {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Gradient Backgrounds */
.header-gradient {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.6) 0%, rgba(26, 26, 36, 0.4) 100%); /* More transparent */
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
}

.footer-gradient {
  background: linear-gradient(135deg, rgba(26, 26, 36, 0.6) 0%, rgba(26, 26, 36, 0.4) 100%); /* More transparent */
  border-top: 1px solid rgba(161, 98, 247, 0.1);
}

.content-gradient {
  background: radial-gradient(circle at top right, rgba(161, 98, 247, 0.08), transparent 70%),
    radial-gradient(circle at bottom left, rgba(255, 143, 180, 0.08), transparent 70%);
}

/* Text Gradient with Neon Glow */
.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  text-shadow: 0 0 8px rgba(255, 143, 180, 0.5), 0 0 16px rgba(161, 98, 247, 0.5);
}

/* Header Styles */
.logo-container {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(161, 98, 247, 0.3), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

.api-version-badge {
  display: flex;
  align-items: center;
  background: rgba(161, 98, 247, 0.1);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-size: 0.875rem;
}

/* Base URL Container */
.base-url-container {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: inline-flex;
  align-items: center;
}

.copy-base-url-btn {
  color: var(--text-secondary);
  background: rgba(161, 98, 247, 0.15);
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--transition-bezier);
}

.copy-base-url-btn:hover {
  background: rgba(161, 98, 247, 0.25);
  color: var(--text);
}

/* Search Container */
.search-container {
  width: 100%;
}

.search-input {
  background: rgba(26, 26, 36, 0.3);
  border: 1px solid rgba(161, 98, 247, 0.2);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 16px;
  width: 100%;
  transition: all 0.3s var(--transition-bezier);
  font-size: 1rem;
}

.search-input:focus {
  border-color: var(--primary);
  background: rgba(26, 26, 36, 0.5);
  box-shadow: 0 0 8px rgba(161, 98, 247, 0.8), 0 0 16px rgba(161, 98, 247, 0.4);
}

/* Category Tabs */
.category-tabs-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(161, 98, 247, 0.15);
}

.category-tab {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(161, 98, 247, 0.2);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s var(--transition-bezier);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.category-tab:hover {
  background: rgba(161, 98, 247, 0.1);
  transform: translateY(-1px);
}

.category-tab.active {
  background: rgba(161, 98, 247, 0.15);
  border-color: rgba(161, 98, 247, 0.4);
  color: var(--primary);
  box-shadow: 0 0 8px rgba(161, 98, 247, 0.5);
}

.category-tab i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

/* Neon Buttons */
.gradient-btn,
.telegram-btn,
.execute-btn,
.dialog-confirm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s var(--transition-bezier);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 0 6px rgba(161, 98, 247, 0.7), 0 0 10px rgba(255, 143, 180, 0.5);
}

.gradient-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 8px rgba(161, 98, 247, 0.9), 0 0 20px rgba(161, 98, 247, 0.6), 0 0 15px rgba(255, 143, 180, 0.7);
}

.telegram-btn {
  background: var(--telegram);
  color: white;
  box-shadow: 0 0 8px rgba(0, 136, 204, 0.7);
}

.telegram-btn:hover {
  background: #0099e6;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 12px rgba(0, 136, 204, 0.8), 0 0 24px rgba(0, 136, 204, 0.5);
}

/* Markdown Content */
.markdown-content code {
  font-family: "Fira Code", monospace;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
}

.markdown-content pre {
  background: rgba(26, 26, 36, 0.4);
  padding: 1em;
  border-radius: 16px;
  overflow-x: auto;
  margin-bottom: 1em;
  border: 1px solid rgba(161, 98, 247, 0.15);
}

/* Endpoint Card Styles */
.endpoint-card {
  background: rgba(26, 26, 36, 0.45);
  border: 1px solid rgba(161, 98, 247, 0.15);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s var(--transition-bezier);
  box-shadow: var(--card-shadow);
  margin-bottom: 0.75rem;
}

.endpoint-card:hover {
  border-color: rgba(161, 98, 247, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 0 20px -5px rgba(161, 98, 247, 0.3);
}

.endpoint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
  transition: background 0.3s var(--transition-bezier);
}

.endpoint-card:hover .endpoint-header {
  background: rgba(161, 98, 247, 0.05);
}

.endpoint-summary {
  padding: 0.625rem 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
}

.method-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  margin-right: 0.75rem;
  text-transform: uppercase;
}

.method-tag.get {
  background: rgba(80, 250, 123, 0.15);
  color: var(--get-method);
  border: 1px solid rgba(80, 250, 123, 0.3);
}

.method-tag.post {
  background: rgba(161, 98, 247, 0.15);
  color: var(--post-method);
  border: 1px solid rgba(161, 98, 247, 0.3);
}

.method-tag.put {
  background: rgba(255, 143, 180, 0.15);
  color: var(--put-method);
  border: 1px solid rgba(255, 143, 180, 0.3);
}

.method-tag.delete {
  background: rgba(255, 85, 85, 0.15);
  color: var(--delete-method);
  border: 1px solid rgba(255, 85, 85, 0.3);
}

.endpoint-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(161, 98, 247, 0.1);
  color: var(--text-secondary);
  transition: all 0.2s var(--transition-bezier);
}

.endpoint-card.expanded .endpoint-toggle-btn i {
  transform: rotate(180deg);
}

.endpoint-content {
  padding: 1rem;
  display: none;
}

.endpoint-card.expanded .endpoint-content {
  display: block;
}

/* Tabs Styles */
.endpoint-tabs {
  border: 1px solid rgba(161, 98, 247, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.tabs-header {
  display: flex;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
}

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

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

/* Parameters Table */
.parameters-table-container {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(161, 98, 247, 0.1);
}

/* Response Examples */
.response-example {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(161, 98, 247, 0.1);
}

.response-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
}

/* Code Block Container */
.code-block-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(161, 98, 247, 0.1);
  background: rgba(0, 0, 0, 0.1);
}

.code-copy-btn {
  position: absolute;
  top: 0.375rem;
  right: 0.375rem;
  padding: 0.25rem 0.375rem;
  background: rgba(161, 98, 247, 0.15);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.6875rem;
}

/* Swagger-like Try It Out */
.parameter-row {
  margin-bottom: 0.875rem;
  border: 1px solid rgba(161, 98, 247, 0.1);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(26, 26, 36, 0.2);
}

.parameter-type {
  font-family: "Fira Code", monospace;
  font-size: 0.6875rem;
  color: var(--primary);
  background: rgba(161, 98, 247, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 8px;
  margin-left: 0.5rem;
}

.parameter-input,
.parameter-select {
  width: 100%;
  background: rgba(26, 26, 36, 0.3);
  border: 1px solid rgba(161, 98, 247, 0.15);
  color: var(--text);
  padding: 0.5rem 0.625rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  transition: all 0.2s var(--transition-bezier);
}

.parameter-input:focus,
.parameter-select:focus {
  border-color: var(--primary);
  background: rgba(26, 26, 36, 0.5);
  box-shadow: 0 0 8px rgba(161, 98, 247, 0.7), 0 0 12px rgba(161, 98, 247, 0.3);
}

.execute-btn {
  font-weight: 500;
  width: 100%;
  max-width: 180px;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.try-it-response {
  border: 1px solid rgba(161, 98, 247, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(26, 26, 36, 0.3);
  border-radius: 20px;
  border: 1px solid rgba(161, 98, 247, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Loading Overlay */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

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

/* Selection Dialog */
.dialog-container {
  background: rgba(26, 26, 36, 0.5);
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 30px rgba(161, 98, 247, 0.2);
  width: 90%;
  max-width: 500px;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(161, 98, 247, 0.2);
  overflow: hidden;
}

@keyframes dialogEnter {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.dialog-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(161, 98, 247, 0.1);
}

.dialog-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(161, 98, 247, 0.1);
  cursor: pointer;
  transition: all 0.2s var(--transition-bezier);
}

.dialog-option:hover {
  background: rgba(161, 98, 247, 0.08);
  transform: translateY(-1px);
}

.dialog-option.selected {
  background: rgba(161, 98, 247, 0.1);
  border-color: rgba(161, 98, 247, 0.3);
}

.dialog-cancel-btn {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s var(--transition-bezier);
}

.dialog-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

.dialog-confirm-btn {
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.dialog-confirm-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.input-select-btn {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 36px;
  background: rgba(161, 98, 247, 0.1);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  transition: all 0.2s var(--transition-bezier);
}

/* ---
   The following includes the less-modified original classes
   to ensure the full file is present and functional.
   --- */

/* Base Styles (continued) */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: var(--text);
}
.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child,
.markdown-content h4:first-child,
.markdown-content h5:first-child,
.markdown-content h6:first-child {
  margin-top: 0;
}
.markdown-content p { margin-bottom: 1em; }
.markdown-content a { color: var(--primary); text-decoration: none; }
.markdown-content a:hover { text-decoration: underline; }
.markdown-content ul, .markdown-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.markdown-content li { margin-bottom: 0.5em; }
.markdown-content pre code { background: transparent; padding: 0; border-radius: 0; }
.markdown-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1em;
  margin-left: 0;
  margin-bottom: 1em;
  color: var(--text-secondary);
}

/* Endpoint Card (continued) */
.endpoint-path-container { flex: 1; min-width: 0; }
.endpoint-path {
  font-family: "Fira Code", monospace;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  width: 100%;
}
.endpoint-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.75rem;
  flex-shrink: 0;
}
.endpoint-toggle-btn:hover { background: rgba(161, 98, 247, 0.2); color: var(--text); }
.endpoint-toggle-btn i { transition: transform 0.3s var(--transition-bezier); font-size: 0.75rem; }

/* Tabs (continued) */
.tab-btn {
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.2s var(--transition-bezier);
  position: relative;
  font-size: 0.875rem;
}
.tab-btn:hover { color: var(--text); }
.tabs-content { padding: 1rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s var(--transition-bezier); }

/* Section Titles */
.section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.section-title::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background: rgba(161, 98, 247, 0.15);
  margin-left: 0.75rem;
}

/* Parameters Table (continued) */
.parameters-table { width: 100%; border-collapse: collapse; }
.parameters-table th,
.parameters-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid rgba(161, 98, 247, 0.1); }
.parameters-table th { background: rgba(0, 0, 0, 0.1); color: var(--text-secondary); font-weight: 500; font-size: 0.75rem; }
.parameters-table tr:last-child td { border-bottom: none; }
.parameters-table td { font-size: 0.8125rem; }
.parameters-table td:nth-child(2) { color: var(--primary); font-family: "Fira Code", monospace; font-size: 0.75rem; }
.parameters-table td:nth-child(3) { color: var(--accent); }

/* Response Examples (continued) */
.response-examples { display: flex; flex-direction: column; gap: 0.875rem; }
.response-example-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
}
.response-status-badge.success { background: rgba(80, 250, 123, 0.15); color: var(--success); }
.response-status-badge.error { background: rgba(255, 85, 85, 0.15); color: var(--error); }
.response-status-badge.warning { background: rgba(245, 208, 66, 0.15); color: var(--warning); }
.response-example-body { padding: 0.75rem; background: rgba(0, 0, 0, 0.1); overflow-x: auto; }
.code-block { font-family: "Fira Code", monospace; font-size: 0.8125rem; line-height: 1.5; white-space: pre; }
.code-block-container pre { padding: 0.75rem; margin: 0; overflow-x: auto; }
.code-copy-btn:hover { background: rgba(161, 98, 247, 0.25); color: var(--text); }
.code-copy-btn.copied { background: rgba(80, 250, 123, 0.2); color: var(--success); }

/* Swagger-like Try It Out (continued) */
.try-it-container { display: flex; flex-direction: column; }
.swagger-try-it { width: 100%; }
.try-it-params { margin-bottom: 1.25rem; }
.parameter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
}
.parameter-name { font-weight: 500; display: flex; align-items: center; font-size: 0.8125rem; }
.parameter-required { color: var(--error); margin-left: 0.25rem; }
.parameter-body { padding: 0.75rem; background: rgba(0, 0, 0, 0.05); }
.parameter-description { margin-bottom: 0.625rem; font-size: 0.8125rem; color: var(--text-secondary); }
.parameter-input.error { border-color: var(--error); box-shadow: 0 0 0 2px rgba(255, 85, 85, 0.15); }
.parameter-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23aaaaaa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}
.execute-btn:active { transform: translateY(0); box-shadow: none; }
.execute-btn.loading { pointer-events: none; opacity: 0.8; }
.response-title {
  display: flex;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: rgba(0, 0, 0, 0.15);
  margin-bottom: 0;
  border-bottom: 1px solid rgba(161, 98, 247, 0.1);
  font-size: 0.875rem;
}
.response-title::after { content: none; }
.response-status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  margin-left: auto;
  margin-right: 0.5rem;
}
.response-status.success { background: rgba(80, 250, 123, 0.15); color: var(--success); }
.response-status.error { background: rgba(255, 85, 85, 0.15); color: var(--error); }
.response-time { font-size: 0.6875rem; color: var(--text-secondary); font-weight: normal; }
.copy-response-btn, .copy-curl-btn {
  /* These classes are not used in the HTML but are kept for completeness */
}

/* Footer & Other Styles */
.footer-link { display: inline-flex; align-items: center; color: var(--text-secondary); font-size: 0.8125rem; transition: all 0.2s var(--transition-bezier); }
.footer-link:hover { color: var(--primary); }
.response-viewer { max-height: 300px; overflow-y: auto; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.endpoint-card.expanded .endpoint-content { animation: slideDown 0.3s var(--transition-bezier); }

/* Loading Overlay (continued) */
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--background); display: flex; justify-content: center; align-items: center; z-index: 9999; opacity: 1; transition: opacity 0.3s ease-out, visibility 0.3s ease-out; }
.loading-overlay.hidden { opacity: 0; visibility: hidden; }
.loading-container { display: flex; flex-direction: column; align-items: center; }
.loading-text { color: var(--text); font-size: 1.1rem; font-weight: 500; }

/* Dialog (continued) */
.selection-dialog { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; }
.selection-dialog.hidden { display: none; }
.dialog-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.dialog-container { animation: dialogEnter 0.3s var(--transition-bezier); }
.dialog-header { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(161, 98, 247, 0.1); display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.2); }
.dialog-title { font-size: 1.1rem; font-weight: 600; color: var(--text); margin: 0; }
.dialog-close-btn:hover { background: rgba(161, 98, 247, 0.2); color: var(--text); }
.dialog-content { padding: 1.5rem; max-height: 60vh; overflow-y: auto; }
.dialog-description { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.dialog-options { display: flex; flex-direction: column; gap: 0.75rem; }
.dialog-option-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.3); margin-right: 12px; position: relative; flex-shrink: 0; }
.dialog-option.selected .dialog-option-radio { border-color: var(--primary); }
.dialog-option.selected .dialog-option-radio::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.dialog-option-label { font-weight: 500; }
.dialog-option-description { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.25rem; }
.dialog-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(161, 98, 247, 0.1); display: flex; justify-content: flex-end; gap: 0.75rem; background: rgba(0, 0, 0, 0.1); }
.parameter-input-container { position: relative; }
.input-select-btn:hover { background: rgba(161, 98, 247, 0.2); color: var(--text); }

/* Responsive Styles */
@media (max-width: 768px) {
  html { font-size: 14px; }
  .endpoint-header, .endpoint-content, .tabs-content { padding: 0.75rem; }
  .parameters-table th, .parameters-table td { padding: 0.375rem 0.5rem; }
  .tab-btn { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
  .execute-btn { padding: 0.875rem 1.5rem; font-size: 1rem; max-width: 100%; margin-top: 0.5rem; }
}

@media (max-width: 480px) {
  html { font-size: 13px; }
  .gradient-btn, .telegram-btn { width: 100%; justify-content: center; margin-bottom: 0.5rem; }
  .base-url-container { width: 100%; }
}
