/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --green: #00A651;
  --green-dim: rgba(0,166,81,0.12);
  --green-glow: rgba(0,166,81,0.3);
  --bg: #07090e;
  --surface: #0d1117;
  --surface2: #111827;
  --surface3: #1a2236;
  --border: #1e2739;
  --border2: #16202f;
  --text: #f0f4f8;
  --text2: #94a3b8;
  --muted: #4a5568;
  --dimmer: #2d3748;
  --orange: #f97316;
  --blue: #60a5fa;
  --red: #f87171;
  --yellow: #fbbf24;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  overflow: hidden;
  height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

[data-lucide] { display: inline-block; vertical-align: middle; flex-shrink: 0; }
input, button, code, select { font-family: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
code { font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace; }

/* ── LOGIN ── */
.login-screen {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,166,81,0.08) 0%, var(--bg) 60%);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 44px;
  width: 380px;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,166,81,0.08);
}
.login-logo {
  width: 60px; height: 60px; border-radius: 18px;
  background: linear-gradient(135deg, var(--green), #008f45);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 32px var(--green-glow);
  color: white;
}
.login-title { font-size: 26px; font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -0.5px; }
.login-sub { font-size: 14px; color: var(--text2); margin-bottom: 32px; }
.login-input {
  width: 100%; background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  font-size: 15px; color: var(--text);
  margin-bottom: 14px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.login-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,166,81,0.1); }
.login-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--green), #008f45);
  border-radius: 12px; padding: 14px;
  font-size: 15px; font-weight: 700; color: white;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 20px var(--green-glow);
  transition: opacity 0.2s, transform 0.1s;
}
.login-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }
.login-error { color: var(--red); font-size: 13px; margin-top: 10px; }

/* ── APP LAYOUT ── */
.app { display: grid; grid-template-columns: 64px 1fr 300px; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ── */
.sidebar {
  background: #080b12;
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 0; gap: 4px;
}
.s-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--green), #008f45);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px var(--green-glow);
}
.s-item {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative;
  transition: background 0.15s, color 0.15s; color: #3a4a5c;
}
.s-item:hover { background: rgba(255,255,255,0.05); color: var(--text2); }
.s-item.active { background: rgba(0,166,81,0.12); color: var(--green); }
.s-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: var(--red); font-size: 9px; font-weight: 700;
  color: white; display: flex; align-items: center; justify-content: center;
  border: 2px solid #080b12; padding: 0 3px;
}
.s-divider { width: 28px; height: 1px; background: var(--border2); margin: 6px 0; }
.s-spacer { flex: 1; }
.s-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #ea580c);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white; margin-top: 8px;
}

/* ── MAIN CONTENT ── */
.main-content { display: flex; flex-direction: column; overflow: hidden; border-right: 1px solid var(--border2); }

/* TOPBAR */
.topbar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; background: var(--surface);
}
.tb-left { display: flex; align-items: center; gap: 12px; }
.tb-title { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.tb-sub { font-size: 13px; color: var(--text2); margin-top: 2px; }
.tb-right { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 12px; padding: 5px 12px; border-radius: 20px; font-weight: 600;
  border: 1px solid; display: flex; align-items: center; gap: 6px;
}
.chip.green { color: var(--green); border-color: rgba(0,166,81,0.3); background: var(--green-dim); }
.chip.dim { color: var(--text2); border-color: var(--border); background: rgba(255,255,255,0.03); }
.kbd-hint {
  font-size: 12px; color: var(--text2);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); padding: 5px 12px;
  border-radius: 8px; display: flex; align-items: center; gap: 6px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.kbd-hint:hover { border-color: var(--green); color: var(--green); }

/* VIEWS */
.view { display: none; flex: 1; overflow-y: auto; padding: 20px 22px; flex-direction: column; gap: 16px; }
.view.active { display: flex; }

/* STAT CARDS */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; flex-shrink: 0; }
.stat-card {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 18px;
  transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(0,166,81,0.3); }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sc-label { font-size: 12px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.sc-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.sc-icon.orange { background: rgba(249,115,22,0.15); color: var(--orange); }
.sc-icon.blue   { background: rgba(96,165,250,0.15); color: var(--blue); }
.sc-icon.green  { background: var(--green-dim); color: var(--green); }
.sc-icon.indigo { background: rgba(0,166,81,0.12); color: var(--green); }
.sc-val { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.sc-sub { font-size: 12px; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.sc-sub.orange { color: var(--orange); }
.sc-sub.blue   { color: var(--blue); }
.sc-sub.green  { color: var(--green); }
.sc-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 12px; overflow: hidden; }
.sc-fill { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.sc-fill.orange-fill { background: linear-gradient(90deg,#f97316,#fb923c); }
.sc-fill.blue-fill   { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.sc-fill.green-fill  { background: linear-gradient(90deg,var(--green),#33c472); }
.sc-fill.indigo-fill { background: linear-gradient(90deg,var(--green),#33c472); }

/* SECTION HEADER */
.section-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.section-action { font-size: 13px; color: var(--text2); cursor: pointer; }
.section-action:hover { color: var(--green); }

/* NOTIFICATIONS */
.notif-feed { display: flex; flex-direction: column; gap: 8px; }
.notif {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 14px;
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.notif:hover { border-color: rgba(0,166,81,0.35); background: var(--surface3); }
.notif.unread { border-left: 3px solid var(--green); }
.notif-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.notif-icon.chat   { background: var(--green-dim); color: var(--green); }
.notif-icon.ticket { background: rgba(249,115,22,0.15); color: var(--orange); }
.notif-icon.lead   { background: rgba(34,197,94,0.15); color: #4ade80; }
.notif-icon.whmcs  { background: rgba(96,165,250,0.15); color: var(--blue); }
.notif-icon.server { background: rgba(239,68,68,0.12); color: var(--red); }
.notif-icon.webhook{ background: rgba(168,85,247,0.12); color: #c084fc; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); }
.notif-sub { font-size: 13px; color: var(--text2); margin-top: 3px; line-height: 1.45; }
.notif-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.notif-time { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.notif-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.notif-tag.new    { background: var(--green-dim); color: var(--green); }
.notif-tag.urgent { background: rgba(239,68,68,0.12); color: var(--red); }
.notif-tag.won    { background: rgba(34,197,94,0.12); color: #4ade80; }
.notif-action {
  font-size: 12px; font-weight: 600; color: var(--green);
  display: flex; align-items: center; gap: 5px;
  background: var(--green-dim); border: 1px solid rgba(0,166,81,0.25);
  padding: 6px 12px; border-radius: 9px; flex-shrink: 0; align-self: center; white-space: nowrap;
}

/* MINI PIPELINE */
.mini-pipeline { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pipe-col { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.pipe-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.pipe-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pipe-dot.new       { background: var(--green); }
.pipe-dot.contacted { background: var(--yellow); }
.pipe-dot.proposal  { background: #22c55e; }
.pipe-dot.won       { background: #4ade80; }
.pipe-dot.lost      { background: var(--red); }
.pipe-item {
  background: var(--surface3); border-radius: 9px;
  padding: 10px 12px; margin-bottom: 7px;
  border: 1px solid var(--border); cursor: pointer;
  transition: border-color 0.15s;
}
.pipe-item:hover { border-color: rgba(0,166,81,0.3); }
.pipe-item-name { font-size: 13px; color: var(--text); font-weight: 600; }
.pipe-item-biz  { font-size: 12px; color: var(--text2); margin-top: 3px; }

/* PIPELINE BOARD */
.view-toolbar { display: flex; gap: 10px; margin-bottom: 4px; flex-shrink: 0; }
.pipeline-board { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; flex: 1; overflow: hidden; }
.board-col { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; overflow: hidden; }
.board-col-header { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text2); padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 10px; display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.board-col-count { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 400; }
.board-col-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.board-card { background: var(--surface3); border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; transition: border-color 0.15s; }
.board-card:hover { border-color: rgba(0,166,81,0.4); }
.board-card-name { font-size: 13px; font-weight: 600; color: var(--text); }
.board-card-biz  { font-size: 12px; color: var(--text2); margin-top: 3px; }
.board-card-tag  { font-size: 11px; color: var(--green); background: var(--green-dim); padding: 2px 8px; border-radius: 5px; margin-top: 8px; display: inline-block; }

/* CHAT */
.chat-messages { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.chat-welcome { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; color: var(--text2); text-align: center; }
.welcome-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--green-dim); display: flex; align-items: center; justify-content: center; color: var(--green); box-shadow: 0 0 32px var(--green-glow); }
.welcome-title { font-size: 20px; font-weight: 700; color: var(--text); }
.welcome-sub { font-size: 14px; color: var(--text2); max-width: 300px; line-height: 1.5; }
.chat-bubble-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-bubble-row.user { flex-direction: row-reverse; }
.chat-av { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.chat-av.nova { background: linear-gradient(135deg,var(--green),#008f45); color: white; box-shadow: 0 0 12px var(--green-glow); }
.chat-av.user { background: linear-gradient(135deg,var(--orange),#ea580c); color: white; }
.chat-bubble { max-width: 70%; padding: 12px 16px; border-radius: 18px; font-size: 14px; line-height: 1.6; }
.chat-bubble-row.nova .chat-bubble { background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-bubble-row.user .chat-bubble { background: linear-gradient(135deg,var(--green),#008f45); color: white; border-bottom-right-radius: 4px; box-shadow: 0 4px 16px var(--green-glow); }
.chat-input-row { padding: 16px 22px; border-top: 1px solid var(--border2); flex-shrink: 0; background: var(--surface); }
.chat-input-wrap { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; transition: border-color 0.2s; }
.chat-input-wrap:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,166,81,0.08); }
.chat-input-icon { color: var(--green); flex-shrink: 0; }
.chat-input { flex: 1; background: transparent; border: none; outline: none; font-size: 14px; color: var(--text); }
.chat-input::placeholder { color: var(--muted); }
.chat-send { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,var(--green),#008f45); display: flex; align-items: center; justify-content: center; color: white; box-shadow: 0 0 12px var(--green-glow); flex-shrink: 0; transition: transform 0.1s; }
.chat-send:hover { transform: scale(1.05); }
.chat-typing { font-size: 13px; color: var(--text2); font-style: italic; display: flex; align-items: center; gap: 8px; }

/* CMD BAR */
.cmd-bar { padding: 14px 22px; border-top: 1px solid var(--border2); flex-shrink: 0; background: var(--surface); }
.cmd-inner { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: border-color 0.2s; }
.cmd-inner:hover { border-color: var(--green); }
.cmd-icon { color: var(--green); }
.cmd-text { flex: 1; font-size: 14px; color: var(--muted); }
.cmd-right { display: flex; align-items: center; gap: 10px; }
.cmd-k { font-size: 12px; color: var(--text2); background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 3px 10px; border-radius: 7px; }
.cmd-send { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,var(--green),#008f45); display: flex; align-items: center; justify-content: center; color: white; }

/* ── RIGHT PANEL ── */
.right-panel { display: flex; flex-direction: column; background: #080b12; overflow: hidden; }

/* PALETTE SECTION */
.palette-section { border-bottom: 1px solid var(--border2); flex-shrink: 0; padding: 16px; }
.palette-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.palette-box { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.p-search-row { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--border2); }
.p-search-icon { color: var(--muted); flex-shrink: 0; }
.p-input { flex: 1; background: transparent; border: none; outline: none; font-size: 14px; color: var(--text); }
.p-input::placeholder { color: var(--muted); }
.p-input-lg { font-size: 16px; }
.p-esc { font-size: 11px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px; cursor: pointer; flex-shrink: 0; }
.p-results { display: flex; flex-direction: column; }
.p-group { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); padding: 9px 14px 4px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; cursor: pointer; transition: background 0.1s; }
.p-row.active, .p-row:hover { background: rgba(0,166,81,0.08); }
.p-row.active .p-rtitle { color: var(--green); }
.p-ri { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-ri.green  { background: rgba(34,197,94,0.12); color: #4ade80; }
.p-ri.brand  { background: var(--green-dim); color: var(--green); }
.p-ri.orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.p-ri.blue   { background: rgba(96,165,250,0.12); color: var(--blue); }
.p-ri.red    { background: rgba(239,68,68,0.1); color: var(--red); }
.p-ri.purple { background: rgba(168,85,247,0.12); color: #c084fc; }
.p-text { flex: 1; min-width: 0; }
.p-rtitle { font-size: 13px; color: #cbd5e1; font-weight: 500; }
.p-rsub   { font-size: 12px; color: var(--text2); margin-top: 2px; }
.p-enter { font-size: 10px; color: var(--green); background: var(--green-dim); border: 1px solid rgba(0,166,81,0.2); padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.p-divider { height: 1px; background: var(--border2); margin: 4px 0; }
.p-footer { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--border2); }
.p-hint { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.p-hint kbd { background: rgba(255,255,255,0.05); border: 1px solid var(--border); padding: 2px 5px; border-radius: 4px; font-size: 10px; color: var(--text2); font-family: inherit; }

/* WEBHOOK PANEL */
.wh-panel { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wh-panel-header { display: flex; align-items: center; justify-content: space-between; }
.wh-panel-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.wh-add-btn { font-size: 12px; color: var(--green); font-weight: 600; display: flex; align-items: center; gap: 5px; background: var(--green-dim); border: 1px solid rgba(0,166,81,0.2); padding: 5px 11px; border-radius: 8px; }
.wh-url-mini { background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.wh-url-mini-label { font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.wh-url-row-mini { display: flex; align-items: center; gap: 8px; }
.wh-url-mini-val { font-size: 11px; color: var(--green); font-family: monospace; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-copy-btn { font-size: 11px; color: var(--green); background: var(--green-dim); border: 1px solid rgba(0,166,81,0.2); padding: 4px 10px; border-radius: 6px; display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
.wh-panel-list { display: flex; flex-direction: column; gap: 8px; }
.wh-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; transition: border-color 0.15s; }
.wh-card:hover { border-color: rgba(0,166,81,0.25); }
.wh-ci { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wh-ci.chat   { background: var(--green-dim); color: var(--green); }
.wh-ci.sales  { background: rgba(34,197,94,0.12); color: #4ade80; }
.wh-ci.whmcs  { background: rgba(96,165,250,0.12); color: var(--blue); }
.wh-ci.zapier { background: rgba(249,115,22,0.12); color: var(--orange); }
.wh-ci.make   { background: rgba(168,85,247,0.12); color: #c084fc; }
.wh-ci.default{ background: rgba(255,255,255,0.05); color: var(--muted); }
.wh-cb { flex: 1; min-width: 0; }
.wh-cn { font-size: 13px; font-weight: 600; color: var(--text); }
.wh-cs { font-size: 12px; color: var(--text2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wh-tog { width: 34px; height: 19px; border-radius: 10px; position: relative; cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.wh-tog.on  { background: var(--green); }
.wh-tog.off { background: var(--dimmer); }
.wh-tog::after { content: ''; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: white; top: 3px; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.wh-tog.on::after  { left: 18px; }
.wh-tog.off::after { left: 3px; }

/* SERVER STATS */
.server-stats { display: flex; flex-direction: column; gap: 16px; }
.server-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.server-card-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.server-metric { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.server-metric-label { font-size: 14px; color: var(--text); font-weight: 500; }
.server-metric-val { font-size: 14px; font-weight: 700; color: var(--text); }
.server-metric-pct { font-size: 13px; color: var(--text2); font-weight: 400; margin-left: 4px; }
.server-bar-wrap { height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 16px; overflow: hidden; }
.server-bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }

/* WEBHOOKS FULL PAGE */
.wh-page { display: flex; flex-direction: column; gap: 16px; }
.wh-page-header { display: flex; align-items: flex-start; justify-content: space-between; }
.wh-page-title { font-size: 18px; font-weight: 700; color: var(--text); }
.wh-page-sub { font-size: 13px; color: var(--text2); margin-top: 4px; }
.wh-url-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.wh-url-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--muted); margin-bottom: 10px; }
.wh-url-row { display: flex; align-items: center; gap: 12px; }
.wh-url-code { font-size: 13px; color: var(--green); flex: 1; }
.btn-copy { font-size: 12px; color: var(--green); background: var(--green-dim); border: 1px solid rgba(0,166,81,0.2); padding: 7px 14px; border-radius: 9px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.wh-list { display: flex; flex-direction: column; gap: 10px; }
.wh-list .wh-card { border-radius: 14px; padding: 14px 16px; }
.wh-list .wh-ci { width: 42px; height: 42px; border-radius: 12px; }
.wh-list .wh-cn { font-size: 14px; }
.wh-last { font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 5px; margin-top: 4px; }

/* PALETTE MODAL */
.palette-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
  display: none; align-items: flex-start; justify-content: center;
  z-index: 500; padding-top: 100px;
}
.palette-modal.open { display: flex; }
.palette-modal-box {
  width: 580px; background: var(--surface);
  border: 1px solid rgba(0,166,81,0.2);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,166,81,0.08);
}
.palette-modal-box .p-search-row { padding: 16px 18px; border-bottom: 1px solid var(--border2); }
.palette-modal-box .p-results { max-height: 340px; overflow-y: auto; }
.palette-modal-box .p-footer { padding: 11px 18px; }
.palette-modal-box .p-row { padding: 10px 18px; }
.palette-modal-box .p-ri { width: 34px; height: 34px; border-radius: 10px; }
.palette-modal-box .p-rtitle { font-size: 14px; }
.palette-modal-box .p-rsub   { font-size: 13px; }

/* BUTTONS */
.btn-primary {
  background: linear-gradient(135deg,var(--green),#008f45);
  color: white; padding: 9px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 0 16px var(--green-glow);
  transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface2); color: var(--text2);
  border: 1px solid var(--border); padding: 9px 18px;
  border-radius: 10px; font-size: 13px; font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text2); }

/* MODALS */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 600; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px; width: 400px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 32px 80px rgba(0,0,0,0.6); }
.modal-title { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-input { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--text); outline: none; transition: border-color 0.2s; }
.modal-input:focus { border-color: var(--green); }
.modal-hint { font-size: 12px; color: var(--text2); line-height: 1.5; }
.modal-hint code { color: var(--green); font-size: 12px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }

/* EMPTY / PLACEHOLDER */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); padding: 40px 0; font-size: 14px; }
.coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; color: var(--muted); text-align: center; font-size: 15px; }
.coming-soon span { font-size: 13px; color: var(--muted); }

/* SCROLLBARS */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* TOAST */
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }
.toast { animation: slideUp 0.2s ease; }
