/* ============================================================
   LimeHub — flat premium theme (Linear / Vercel style)
   Accent: #5BDDA8 (jade)  ·  bg: deep slate-black
   Restyles existing classes only — no markup/JS changes needed.
   Design: flat solid surfaces, thin borders, restrained jade,
   no glassmorphism, no neon glow, no gradient fills.
   ============================================================ */

:root {
  --jade: #5BDDA8;
  --jade-hi: #6fe6b8;
  --jade-dim: #46c896;
  --bg: #080b11;
  --surface: #0d1119;
  --surface-2: #11161f;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --jade-line: rgba(91, 221, 168, 0.22);
  --text: #e7ecf3;
  --muted: #7f8a9b;
  --faint: #5b6473;
}

html, body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

/* flat — no ambient glow field */

/* ---- scrollbar (neutral, subtle) ---- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }

::selection { background: rgba(91, 221, 168, 0.25); color: #fff; }

/* ============================================================
   Panels — flat solid surfaces, thin border, no blur/glow
   ============================================================ */
.bg-panel { background: var(--surface) !important; }
.bg-panel2 { background: var(--surface-2) !important; }
[class*="rounded-2xl"].bg-panel,
[class*="rounded-xl"].bg-panel,
[class*="rounded-3xl"].bg-panel {
  box-shadow: none;
  transition: border-color .18s ease;
}
[class*="rounded-2xl"].bg-panel:hover,
[class*="rounded-xl"].bg-panel:hover {
  border-color: var(--line-strong) !important;
}

.border-line { border-color: var(--line) !important; }
.bg-bg { background: #0a0e15 !important; }

/* ============================================================
   Toggle — solid jade when on (no glow)
   ============================================================ */
.toggle {
  position: relative; width: 42px; height: 24px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 999px; background: #6b7585;
  transition: left .2s cubic-bezier(.4, 0, .2, 1), background .2s ease;
}
.toggle.on { background: var(--jade); border-color: transparent; }
.toggle.on::after { left: 21px; background: #06231a; }

/* ============================================================
   Badges — flat, subtle
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: .02em; border: 1px solid transparent; }
.badge-active { background: rgba(91, 221, 168, 0.10); color: var(--jade); border-color: rgba(91, 221, 168, 0.22); }
.badge-free { background: rgba(148, 163, 184, 0.10); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.18); }
.badge-paid { background: rgba(251, 191, 36, 0.10); color: #f4c560; border-color: rgba(251, 191, 36, 0.22); }
.badge-blacklist { background: rgba(226, 86, 74, 0.10); color: #f0a59c; border-color: rgba(226, 86, 74, 0.26); }
.badge-whitelist { background: rgba(91, 221, 168, 0.10); color: var(--jade); border-color: rgba(91, 221, 168, 0.22); }

/* ============================================================
   Buttons — flat solid, subtle hover (no gradient/glow)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 8px; font-weight: 500; font-size: 13px;
  transition: background .15s ease, border-color .15s ease, filter .15s ease, transform .1s ease;
  cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: scale(.985); }

.btn-blue,
.btn-green {
  background: var(--jade); color: #06231a; font-weight: 600;
}
.btn-blue:hover,
.btn-green:hover { background: var(--jade-hi); }

.btn-red { background: #e2564a; color: #fff; }
.btn-red:hover { background: #ec6358; }

.btn-outline-green { background: transparent; color: var(--jade); border: 1px solid var(--jade-line); }
.btn-outline-green:hover { background: rgba(91, 221, 168, 0.08); border-color: var(--jade); }

.btn-outline-blue { background: transparent; color: #7dd3fc; border: 1px solid rgba(56, 130, 246, 0.3); }
.btn-outline-blue:hover { background: rgba(56, 130, 246, 0.10); border-color: #38bdf8; }

.btn-icon { padding: 8px 11px; border-radius: 8px; background: transparent; color: #aab4c2; border: 1px solid var(--line); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.btn-icon:hover { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: var(--line-strong); }

/* ============================================================
   Inputs — flat wells, subtle jade focus ring
   ============================================================ */
input, select, textarea {
  background: #0a0e15 !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 8px; padding: 9px 12px; outline: none; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #586273; }
input:focus, select:focus, textarea:focus {
  border-color: #5a6575 !important;
  box-shadow: none !important;
}
textarea { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace; font-size: 12px; line-height: 1.6; }

/* ============================================================
   Modals — flat surface, neutral depth shadow
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(3, 5, 10, 0.6);
  z-index: 50; display: none; align-items: center; justify-content: center;
}
.modal-bg.show { display: flex; animation: modalFade .15s ease; }
.modal {
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 14px; width: 540px; max-width: 92vw; max-height: 90vh; overflow: auto;
  box-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.8);
  animation: modalRise .18s cubic-bezier(.2, .7, .3, 1);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   Table rows
   ============================================================ */
.row-hover { transition: background .12s ease; }
.row-hover:hover { background: rgba(255, 255, 255, 0.025); }

.text-accent { color: var(--jade) !important; }

main { animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
