:root {
  --bg-color: #0d1322;
  --card-bg: #162036;
  --card-border: #233354;
  --card-hover: #1e2c4a;
  --accent-color: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --code-bg: #0b101d;
  --method-get: #ea580c;
  --method-get-bg: rgba(234, 88, 12, 0.15);
  --ready-color: #10b981;
  --ready-bg: rgba(16, 185, 129, 0.15);
  --soon-color: #64748b;
  --soon-bg: rgba(100, 116, 139, 0.15);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
}

.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-title .icon {
  font-size: 2.2rem;
}

.logo-title h1 {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.status-bar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.status-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.status-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10b981;
}

.status-badge.pulse {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.base-url-tag code {
  font-family: 'Fira Code', monospace;
  background: var(--code-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: #38bdf8;
}

.rate-limit-tag {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* VIP Notice Banner */
.vip-notice-banner {
  max-width: 800px;
  margin: 1rem auto 0 auto;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.vip-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.vip-info p {
  color: #cbd5e1;
  margin: 0;
}

.vip-link {
  color: #fb923c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.vip-link:hover {
  color: #fdba74;
  text-decoration: underline;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease-in-out;
  position: relative;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  box-shadow: 0 10px 25px -5px var(--accent-glow);
}

.card.active-card {
  border-left: 4px solid var(--method-get);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.status-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.status-chip.ready {
  background: var(--ready-bg);
  color: var(--ready-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-chip.soon {
  background: var(--soon-bg);
  color: var(--soon-color);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Endpoint Box */
.endpoint-box {
  display: flex;
  align-items: center;
  background: var(--code-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
}

.method {
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.75rem;
}

.method.get {
  background: var(--method-get-bg);
  color: var(--method-get);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.url {
  flex-grow: 1;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.copy-btn:hover {
  opacity: 1;
}

.description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.description .example {
  display: block;
  margin-top: 0.4rem;
  color: #64748b;
  font-family: 'Fira Code', monospace;
}

/* Buttons */
.actions {
  display: flex;
  gap: 0.5rem;
}

.btn {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

.btn-secondary {
  background: #1e293b;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: #334155;
  color: var(--text-main);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.2s;
}

.modal.hidden {
  display: none;
  opacity: 0;
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

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

.modal-header h3 {
  font-size: 1.1rem;
  color: var(--text-main);
}

.close-btn {
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.response-meta {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.tag {
  background: var(--ready-bg);
  color: var(--ready-color);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tag.time {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

pre {
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Footer */
.footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

@media (max-width: 640px) {
  .vip-notice-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
