/* ArbiScan API — visual parity with arbiscan.pl main site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;

  --color-bg-dark: #050507;
  --color-bg-card: #0e0e12;
  --color-bg-card-hover: #13131a;
  --color-code: #0a0a0e;

  --color-primary: #8b5cf6;
  --color-secondary: #ec4899;
  --color-accent: #06b6d4;
  --color-success: #34d399;
  --color-warn: #fbbf24;
  --color-error: #f87171;

  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(14, 14, 18, 0.6);
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(139, 92, 246, 0.10), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABERERmZmYzMzOZmZlVVVU5OTl2aJ1DAAAAB3RSTlMABDQzMzMzM7x4+qgAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfmBwoXLS0O/H3dAAAAhklEQVQ4y6XTwQ3AIAwE0Qc0QAZo/wWzB5rQe+0vY4E4f0hZ0Z8+B6sN2Ag7YqewJ3YKe2KnsCd2Cntip7Andgp7YqewJ3YKe2KnsCd2Cntip7Andgp7YqewJ3YKe2KnsCd2Cntip7Andgp7YqewJ3YKe2KnsCd2CnsB4bM/0Ww0i1YAAAAASUVORK5CYII=");
  opacity: 0.03;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: overlay;
}

main, .page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 0.6em;
  line-height: 1.2;
}

a { color: var(--color-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #67e8f9; }

p { color: var(--text-secondary); margin: 0 0 1em; }

code, pre {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}
code {
  background: var(--color-code);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}
pre {
  background: var(--color-code);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 14px 18px;
  overflow-x: auto;
  margin: 0 0 1em;
}
pre code { background: transparent; padding: 0; border: 0; }

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc 0%, #f472b6 50%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}
.brand .badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: #fff; }

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero .lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
}
.hero .cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  transition: all .15s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(139, 92, 246, 0.35); color: #fff; }
.btn-secondary {
  background: var(--color-bg-card);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--color-bg-card-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: #fff; }
.btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.btn-danger:hover { background: rgba(248, 113, 113, 0.18); color: #fff; }
.btn-success {
  background: rgba(52, 211, 153, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.btn-success:hover { background: rgba(52, 211, 153, 0.22); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature-card:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}
.feature-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}
.feature-card p { font-size: 0.9rem; margin: 0; }
.feature-card .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Forms */
.form { display: grid; gap: 1rem; }
.form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.form .req { color: var(--color-error); margin-left: 2px; }
.form input, .form textarea, .form select {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color .15s, background .15s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-card-hover);
}
.form textarea { min-height: 96px; resize: vertical; font-family: inherit; }
.form .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; }
.form .row-inline { display: flex; gap: 0.75rem; align-items: stretch; }
.form .row-inline > * { flex: 1; }

/* Status pills */
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.pill-approved { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }
.pill-rejected { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.pill-active { background: rgba(6, 182, 212, 0.15); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.3); }
.pill-inactive { background: rgba(113, 113, 122, 0.15); color: #a1a1aa; border: 1px solid rgba(113, 113, 122, 0.3); }
.pill-beta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Tables */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tbl th, .tbl td {
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}
.tbl th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat-card {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
}
.stat-card .label {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.stat-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
}
.stat-card .sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.bar { height: 6px; background: rgba(255, 255, 255, 0.06); border-radius: 3px; overflow: hidden; margin-top: 0.6rem; }
.bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0%;
  transition: width .4s ease;
}

/* Notices */
.notice {
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  border: 1px solid;
}
.notice-info    { background: rgba(6, 182, 212, 0.08); border-color: rgba(6, 182, 212, 0.3); color: #a5f3fc; }
.notice-warn    { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.3); color: #fde68a; }
.notice-error   { background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.3); color: #fecaca; }
.notice-success { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); color: #a7f3d0; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}
.site-footer a { color: var(--text-secondary); }

/* Docs sidebar */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 2rem 1.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 800px) {
  .docs-layout { grid-template-columns: 1fr; gap: 1rem; }
  .docs-sidebar { position: static !important; height: auto !important; max-height: none !important; }
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
}
.docs-sidebar h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-sans);
  font-weight: 600;
}
.docs-sidebar a {
  display: block;
  color: var(--text-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.88rem;
}
.docs-sidebar a:hover { background: rgba(139, 92, 246, 0.08); color: #fff; }

.docs-content h2 {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}
.docs-content h2:first-of-type { border-top: 0; padding-top: 0; }

.endpoint {
  background: var(--color-bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 0.75rem 0;
}
.method {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 8px;
  letter-spacing: 0.06em;
}
.method-GET    { background: rgba(52, 211, 153, 0.18); color: #6ee7b7; }
.method-POST   { background: rgba(251, 191, 36, 0.18); color: #fde68a; }
.method-PATCH  { background: rgba(139, 92, 246, 0.18); color: #c4b5fd; }
.method-DELETE { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }

/* Auth pages */
.auth-page {
  max-width: 460px;
  margin: 4rem auto;
  padding: 2.5rem;
}
.auth-page h1 { font-size: 1.8rem; margin-bottom: 0.5rem; }
.auth-page p.lead { margin-bottom: 1.5rem; }
.auth-page .switcher {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Helper */
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.flex-gap { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
