@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-color: #080710;
  --panel-bg: rgba(17, 18, 30, 0.45);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-glow: radial-gradient(circle at 50% 0%, rgba(253, 76, 50, 0.15), transparent 70%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --hawk-crimson: #fd4c32;
  --hawk-crimson-glow: rgba(253, 76, 50, 0.45);
  --tech-blue: #3b82f6;
  --tech-cyan: #06b6d4;
  --neon-green: #10b981;
  --card-hover-border: rgba(253, 76, 50, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-color);
  background-image: 
    var(--accent-glow),
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05), transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
}

header {
  margin-top: 5rem;
  margin-bottom: 3.5rem;
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
}

.logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background: radial-gradient(circle, var(--hawk-crimson-glow) 0%, transparent 70%);
  filter: blur(15px);
  animation: logoPulse 4s infinite ease-in-out;
  z-index: 1;
}

.logo-image {
  position: relative;
  z-index: 2;
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 24px;
  border: 1px solid var(--panel-border);
  background: rgba(13, 14, 24, 0.8);
  padding: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  animation: float 6s ease-in-out infinite;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--neon-green);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--neon-green);
  animation: pulseGreen 2s infinite;
}

h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, var(--hawk-crimson) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.version-badge {
  font-family: 'Fira Code', monospace;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  vertical-align: middle;
  height: fit-content;
  align-self: center;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.25rem;
  max-width: 600px;
  font-weight: 400;
  margin-top: 0.5rem;
}

main {
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem 5rem 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 10;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }
  header {
    margin-top: 3rem;
  }
}

.card {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: var(--card-hover-border);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 40px -10px rgba(253, 76, 50, 0.15);
}

.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-title svg {
  color: var(--hawk-crimson);
}

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tool-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}

.tool-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.tool-name {
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  color: var(--hawk-crimson);
  font-size: 1.05rem;
}

.tool-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-radius: 4px;
  font-weight: 500;
}

.tool-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.step {
  position: relative;
}

.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--hawk-crimson);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.step-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.code-block-container {
  position: relative;
  margin-top: 0.5rem;
}

pre {
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem 3.5rem 1rem 1.25rem;
  overflow-x: auto;
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  color: #cbd5e1;
}

code {
  font-family: 'Fira Code', monospace;
}

.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--hawk-crimson);
  color: white;
  border-color: var(--hawk-crimson);
}

.copy-btn.copied {
  background: var(--neon-green);
  color: white;
  border-color: var(--neon-green);
}

.info-note {
  margin-top: 2rem;
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid var(--tech-blue);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.info-note strong {
  color: var(--text-primary);
}

footer {
  margin-top: auto;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  width: 100%;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--hawk-crimson);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Force-refresh control (inside the `refresh` tool-item) ───────────── */

.refresh-panel {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.refresh-token-input {
  width: 100%;
  padding: 8px 12px;
  font-family: 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease;
}

.refresh-token-input:focus {
  border-color: var(--hawk-crimson);
}

.refresh-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(253, 76, 50, 0.12);
  border: 1px solid rgba(253, 76, 50, 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.refresh-btn:hover:not(:disabled) {
  background: rgba(253, 76, 50, 0.22);
  border-color: var(--hawk-crimson);
}

.refresh-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.refresh-btn.is-busy .refresh-icon {
  animation: refresh-spin 0.9s linear infinite;
}

@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

.refresh-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.78rem;
  line-height: 1.5;
}

.refresh-row.ok    { color: var(--neon-green); }
.refresh-row.fail  { color: var(--hawk-crimson); }
.refresh-row.error { color: var(--hawk-crimson); }
