/* ═══════════════════════════════════════════
   SKOLDERN Admin Dashboard — Premium CSS
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --adm-bg: #0d1117;
  --adm-surface: #161b22;
  --adm-surface2: #1c2128;
  --adm-border: rgba(255,255,255,0.08);
  --adm-border-strong: rgba(255,255,255,0.14);
  --adm-teal: #00cea6;
  --adm-teal-dim: rgba(0,206,166,0.14);
  --adm-blue: #3b82f6;
  --adm-gold: #f59e0b;
  --adm-red: #ef4444;
  --adm-green: #22c55e;
  --adm-text: #e6edf3;
  --adm-muted: #7d8590;
  --adm-muted2: #58636d;
  --adm-font: 'Inter', sans-serif;
  --adm-heading: 'Space Grotesk', sans-serif;
  --adm-mono: 'JetBrains Mono', monospace;
  --adm-sidebar-w: 260px;
  --adm-radius: 10px;
  --adm-transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body.admin-body {
  font-family: var(--adm-font);
  background: var(--adm-bg);
  color: var(--adm-text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════ LOGIN ══════════════════════ */
.login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.login-glow {
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,206,166,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-strong);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
}

.login-logo {
  margin-bottom: 28px;
}

.login-logo img {
  height: 32px;
  filter: brightness(0) invert(1);
}

.login-badge {
  display: inline-block;
  font-family: var(--adm-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--adm-teal);
  border: 1px solid rgba(0,206,166,0.3);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.login-title {
  font-family: var(--adm-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.login-desc {
  color: var(--adm-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.login-form { display: grid; gap: 16px; }

.field-group { display: grid; gap: 6px; }

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--adm-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-input {
  width: 100%;
  background: var(--adm-bg);
  border: 1px solid var(--adm-border-strong);
  border-radius: var(--adm-radius);
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
  outline: none;
}

.field-input:focus {
  border-color: var(--adm-teal);
  box-shadow: 0 0 0 3px rgba(0,206,166,0.15);
}

.field-input::placeholder { color: var(--adm-muted2); }

textarea.field-input { resize: vertical; min-height: 100px; }

.field-hint {
  font-size: 11px;
  color: var(--adm-muted2);
  margin-top: 2px;
}

.pass-wrap { position: relative; }

.pass-wrap .field-input { padding-right: 44px; }

.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--adm-muted);
  padding: 4px;
  display: flex;
}

.pass-toggle svg { width: 18px; height: 18px; }
.pass-toggle:hover { color: var(--adm-text); }

.login-error {
  color: var(--adm-red);
  font-size: 13px;
  min-height: 18px;
}

.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--adm-teal);
  border: none;
  border-radius: var(--adm-radius);
  color: #0d1117;
  font-family: var(--adm-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  margin-top: 4px;
  transition: background var(--adm-transition), transform var(--adm-transition), box-shadow var(--adm-transition);
}

.btn-login:hover {
  background: #00b898;
  box-shadow: 0 8px 24px rgba(0,206,166,0.35);
  transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

.btn-arrow { width: 18px; height: 18px; }

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--adm-muted);
}

.login-footer a {
  color: var(--adm-muted);
  text-decoration: none;
  transition: color var(--adm-transition);
}

.login-footer a:hover { color: var(--adm-teal); }

/* ══════════════════════ SHELL LAYOUT ══════════════════════ */
.admin-shell {
  display: grid;
  grid-template-columns: var(--adm-sidebar-w) 1fr;
  min-height: 100vh;
}

/* ══════════════════════ SIDEBAR ══════════════════════ */
.adm-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--adm-sidebar-w);
  height: 100vh;
  background: var(--adm-surface);
  border-right: 1px solid var(--adm-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  transition: transform var(--adm-transition);
}

.adm-sidebar-top {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  display: block;
  margin-bottom: 16px;
}

.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--adm-teal), #00a98c);
  color: #0d1117;
  font-family: var(--adm-heading);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-username {
  font-weight: 600;
  font-size: 14px;
  color: var(--adm-text);
}

.adm-role {
  font-size: 11px;
  color: var(--adm-teal);
  font-weight: 500;
}

.adm-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--adm-border) transparent;
}

.adm-nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--adm-muted2);
  padding: 12px 8px 6px;
}

.adm-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--adm-muted);
  font-family: var(--adm-font);
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
  transition: background var(--adm-transition), color var(--adm-transition);
  position: relative;
}

.adm-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adm-tab:hover {
  background: rgba(255,255,255,0.05);
  color: var(--adm-text);
}

.adm-tab.active {
  background: var(--adm-teal-dim);
  color: var(--adm-teal);
  font-weight: 600;
}

.adm-badge {
  margin-left: auto;
  background: var(--adm-teal);
  color: #0d1117;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.adm-badge:empty { display: none; }

.adm-sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--adm-border);
  display: grid;
  gap: 6px;
  flex-shrink: 0;
}

.adm-view-site {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--adm-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background var(--adm-transition), color var(--adm-transition);
}

.adm-view-site svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.adm-view-site:hover {
  background: rgba(255,255,255,0.05);
  color: var(--adm-text);
}

.adm-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(239,68,68,0.2);
  background: rgba(239,68,68,0.06);
  color: #ef6666;
  font-family: var(--adm-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background var(--adm-transition), border-color var(--adm-transition), color var(--adm-transition);
}

.adm-logout svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.adm-logout:hover {
  background: rgba(239,68,68,0.12);
  border-color: rgba(239,68,68,0.4);
  color: #ff7070;
}

/* ══════════════════════ MAIN ══════════════════════ */
.adm-main {
  margin-left: var(--adm-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════ TOPBAR ══════════════════════ */
.adm-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 60px;
  background: rgba(13,17,23,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--adm-border);
  flex-shrink: 0;
}

.adm-topbar-left { display: flex; align-items: center; gap: 12px; }

.adm-menu-toggle {
  background: none;
  border: none;
  color: var(--adm-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: none;
  transition: color var(--adm-transition);
}

.adm-menu-toggle:hover { color: var(--adm-text); }

.adm-menu-toggle svg { width: 20px; height: 20px; }

.adm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.adm-bc-site {
  font-family: var(--adm-heading);
  font-weight: 700;
  color: var(--adm-teal);
}

.adm-breadcrumb svg {
  width: 14px;
  height: 14px;
  stroke: var(--adm-muted2);
  fill: none;
  stroke-width: 2;
}

.adm-bc-page { color: var(--adm-text); font-weight: 500; }

.adm-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.adm-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.adm-search-icon {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: var(--adm-muted);
  fill: none;
}

.adm-search {
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 13px;
  padding: 7px 12px 7px 32px;
  width: 220px;
  outline: none;
  transition: border-color var(--adm-transition);
}

.adm-search:focus { border-color: var(--adm-teal); }
.adm-search::placeholder { color: var(--adm-muted2); }

.adm-clock {
  font-family: var(--adm-mono);
  font-size: 12px;
  color: var(--adm-muted);
  white-space: nowrap;
}

.adm-notif {
  position: relative;
  background: none;
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-muted);
  cursor: pointer;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  transition: border-color var(--adm-transition), color var(--adm-transition);
}

.adm-notif svg { width: 16px; height: 16px; }
.adm-notif:hover { border-color: var(--adm-teal); color: var(--adm-text); }

.adm-notif-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--adm-red);
  border: 2px solid var(--adm-bg);
}

.adm-logout-sm {
  background: none;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 8px;
  color: #ef6666;
  cursor: pointer;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  transition: background var(--adm-transition), border-color var(--adm-transition);
}

.adm-logout-sm svg { width: 16px; height: 16px; }
.adm-logout-sm:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.4); }

/* ══════════════════════ PANELS ══════════════════════ */
.adm-panel {
  display: none;
  padding: 28px 24px;
  flex: 1;
  transform-origin: top center;
}

.adm-panel.active {
  display: block;
  animation: admPanelIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.adm-panel.active.panel-enter {
  animation: admPanelIn 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.adm-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.adm-panel-title {
  font-family: var(--adm-heading);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}

.adm-panel-sub {
  font-size: 13px;
  color: var(--adm-muted);
}

.adm-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ══════════════════════ BUTTONS ══════════════════════ */
.adm-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  font-family: var(--adm-font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--adm-transition);
  text-decoration: none;
  white-space: nowrap;
}

.adm-btn svg { width: 15px; height: 15px; }

.adm-btn-primary {
  background: var(--adm-teal);
  color: #0d1117;
  border-color: var(--adm-teal);
}

.adm-btn-primary:hover {
  background: #00b898;
  box-shadow: 0 4px 14px rgba(0,206,166,0.35);
  transform: translateY(-1px);
}

.adm-btn-ghost {
  background: transparent;
  color: var(--adm-text);
  border-color: var(--adm-border-strong);
}

.adm-btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

.adm-btn-danger {
  background: var(--adm-red);
  color: #fff;
  border-color: var(--adm-red);
}

.adm-btn-danger:hover { background: #dc2626; }

.adm-select {
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border-strong);
  border-radius: 8px;
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 13px;
  padding: 8px 12px;
  cursor: pointer;
  outline: none;
}

/* ══════════════════════ KPI GRID ══════════════════════ */
.adm-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.adm-kpi {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: border-color var(--adm-transition), transform var(--adm-transition);
}

.adm-kpi:hover {
  border-color: var(--adm-teal);
  transform: translateY(-2px);
}

.adm-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.adm-kpi-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.adm-kpi-icon.teal { background: var(--adm-teal-dim); color: var(--adm-teal); }
.adm-kpi-icon.blue { background: rgba(59,130,246,0.12); color: var(--adm-blue); }
.adm-kpi-icon.gold { background: rgba(245,158,11,0.12); color: var(--adm-gold); }
.adm-kpi-icon.green { background: rgba(34,197,94,0.12); color: var(--adm-green); }

.adm-kpi-val {
  font-family: var(--adm-heading);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.adm-kpi-label { font-size: 12px; color: var(--adm-muted); }

.adm-kpi-trend {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0,206,166,0.12);
  color: var(--adm-teal);
  flex-shrink: 0;
}

.adm-kpi-trend.up { background: rgba(34,197,94,0.12); color: var(--adm-green); }

/* ══════════════════════ LAYOUT HELPERS ══════════════════════ */
.adm-row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

.adm-col { display: grid; gap: 16px; }

/* ══════════════════════ CARDS ══════════════════════ */
.adm-card {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 20px;
}

.adm-card-wide { /* takes up full width */ }

.adm-card-scroll { max-height: 480px; overflow-y: auto; }

.adm-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.adm-card-head h3 {
  font-family: var(--adm-heading);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.adm-link {
  background: none;
  border: none;
  color: var(--adm-teal);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.adm-link:hover { text-decoration: underline; }

/* ══════════════════════ TABLE ══════════════════════ */
.adm-table {
  width: 100%;
  border-collapse: collapse;
}

.adm-table-full { table-layout: auto; }

.adm-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--adm-muted);
  padding: 0 10px 10px;
  text-align: left;
  border-bottom: 1px solid var(--adm-border);
}

.adm-table td {
  padding: 11px 10px;
  font-size: 13px;
  color: var(--adm-text);
  border-bottom: 1px solid var(--adm-border);
  vertical-align: top;
}

.adm-table tr:last-child td { border-bottom: none; }

.adm-table tr:hover td { background: rgba(255,255,255,0.02); }
.adm-table tr {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.adm-table tbody tr:hover {
  transform: translateY(-1px);
  box-shadow: inset 3px 0 0 rgba(0,206,166,0.48);
}

.adm-empty {
  color: var(--adm-muted);
  font-style: italic;
  text-align: center;
  padding: 28px !important;
}

/* Stage Pills */
.stage-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stage-new { background: rgba(59,130,246,0.12); color: #60a5fa; }
.stage-qualified { background: rgba(245,158,11,0.12); color: #fbbf24; }
.stage-demo { background: rgba(168,85,247,0.12); color: #c084fc; }
.stage-proposal { background: rgba(0,206,166,0.12); color: var(--adm-teal); }
.stage-customer { background: rgba(34,197,94,0.12); color: #4ade80; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.status-published { background: rgba(34,197,94,0.12); color: #4ade80; }
.status-draft { background: rgba(255,255,255,0.06); color: var(--adm-muted); }

/* ══════════════════════ ACTION BUTTONS ══════════════════════ */
.adm-actions-list {
  display: grid;
  gap: 6px;
}

.adm-action-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  color: var(--adm-text);
  font-family: var(--adm-font);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--adm-transition), border-color var(--adm-transition), color var(--adm-transition);
  text-align: left;
}

.adm-action-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.adm-action-btn:hover {
  background: var(--adm-teal-dim);
  border-color: rgba(0,206,166,0.3);
  color: var(--adm-teal);
}

.adm-mini-list {
  list-style: none;
  display: grid;
  gap: 4px;
}

.adm-mini-list li {
  font-size: 13px;
  color: var(--adm-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--adm-border);
}

.adm-mini-list li:last-child { border-bottom: none; }

.adm-mini-list li strong { color: var(--adm-text); display: block; }

/* ══════════════════════ FORMS ══════════════════════ */
.adm-form { display: grid; gap: 14px; }

.adm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.adm-form-footer {
  display: flex;
  gap: 8px;
  padding-top: 4px;
}

.adm-success {
  color: var(--adm-green);
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
}

/* ══════════════════════ CRM BOARD ══════════════════════ */
.adm-crm-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.adm-crm-lane {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border);
  border-radius: 12px;
  padding: 14px;
  min-height: 300px;
}

.adm-crm-lane-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--adm-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adm-crm-lane-count {
  background: rgba(255,255,255,0.08);
  border-radius: 9px;
  padding: 1px 6px;
  font-size: 10px;
}

.adm-crm-card {
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: grab;
  transition: border-color var(--adm-transition), box-shadow var(--adm-transition);
}

.adm-crm-card:hover {
  border-color: var(--adm-teal);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.adm-crm-card:active { cursor: grabbing; }

.adm-crm-card strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 3px;
}

.adm-crm-card span {
  display: block;
  font-size: 11px;
  color: var(--adm-muted);
  line-height: 1.5;
}

.adm-crm-empty {
  font-size: 12px;
  color: var(--adm-muted2);
  text-align: center;
  padding: 20px 0;
  font-style: italic;
}

.adm-crm-lane.drag-over {
  border-color: var(--adm-teal);
  background: var(--adm-teal-dim);
}

/* ══════════════════════ MEDIA ══════════════════════ */
.adm-media-drop {
  border: 2px dashed var(--adm-border-strong);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--adm-muted);
  margin-bottom: 20px;
  transition: border-color var(--adm-transition), background var(--adm-transition);
  cursor: pointer;
}

.adm-media-drop svg {
  width: 40px;
  height: 40px;
  stroke: var(--adm-muted);
  fill: none;
  margin-bottom: 12px;
}

.adm-media-drop strong { display: block; color: var(--adm-text); font-size: 16px; margin-bottom: 4px; }
.adm-media-drop span { font-size: 13px; }
.adm-media-drop:hover { border-color: var(--adm-teal); background: var(--adm-teal-dim); }

.adm-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.adm-media-item {
  background: var(--adm-surface2);
  border: 1px solid var(--adm-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--adm-transition);
}

.adm-media-item:hover { border-color: var(--adm-teal); }

.adm-media-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.adm-media-item-info {
  padding: 8px 10px;
}

.adm-media-item-info span {
  display: block;
  font-size: 11px;
  color: var(--adm-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════════════ SEO ══════════════════════ */
.adm-seo-score {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 16px;
}

.adm-seo-ring {
  position: relative;
  width: 110px;
  height: 110px;
}

.adm-seo-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.seo-bg {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 8;
}

.seo-fill {
  fill: none;
  stroke: var(--adm-teal);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.adm-seo-ring span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--adm-heading);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.adm-seo-tips { list-style: none; display: grid; gap: 6px; }
.adm-seo-tips li { font-size: 12px; padding-left: 18px; position: relative; }
.adm-seo-tips li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; }
.tip-ok { color: var(--adm-green); }
.tip-ok::before { background: var(--adm-green); }
.tip-warn { color: var(--adm-gold); }
.tip-warn::before { background: var(--adm-gold); }

/* ══════════════════════ BADGE STATUS ══════════════════════ */
.adm-badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.configured { background: rgba(0,206,166,0.12); color: var(--adm-teal); }
.ready { background: rgba(34,197,94,0.12); color: var(--adm-green); }
.local { background: rgba(245,158,11,0.12); color: var(--adm-gold); }

/* ══════════════════════ TABLE ROW ACTIONS ══════════════════════ */
.adm-row-actions { display: flex; gap: 5px; }

.adm-row-btn {
  background: none;
  border: 1px solid var(--adm-border);
  border-radius: 6px;
  color: var(--adm-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
  transition: all var(--adm-transition);
}

.adm-row-btn:hover { border-color: var(--adm-teal); color: var(--adm-teal); }
.adm-row-btn.danger:hover { border-color: var(--adm-red); color: var(--adm-red); }
.adm-row-btn.pub:hover { border-color: var(--adm-green); color: var(--adm-green); }

/* ══════════════════════ TOAST ══════════════════════ */
.adm-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-strong);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--adm-text);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  max-width: 320px;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.adm-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.adm-toast.success { border-color: rgba(34,197,94,0.4); }
.adm-toast.error { border-color: rgba(239,68,68,0.4); }

/* ══════════════════════ CONFIRM MODAL ══════════════════════ */
.adm-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.adm-modal {
  background: var(--adm-surface);
  border: 1px solid var(--adm-border-strong);
  border-radius: 14px;
  padding: 28px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  animation: admModalIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.adm-modal h3 {
  font-family: var(--adm-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.adm-modal p { font-size: 14px; color: var(--adm-muted); margin-bottom: 20px; }

.adm-modal-btns { display: flex; gap: 8px; justify-content: flex-end; }

@keyframes admPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes admModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .adm-panel.active,
  .adm-panel.active.panel-enter,
  .adm-modal {
    animation: none;
  }

  .adm-table tr,
  .adm-table tbody tr:hover {
    transform: none;
    box-shadow: none;
  }
}

/* ══════════════════════ RESPONSIVE ══════════════════════ */
@media (max-width: 1100px) {
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-row { grid-template-columns: 1fr; }
  .adm-crm-board { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --adm-sidebar-w: 0px; }

  .adm-sidebar {
    transform: translateX(-100%);
    width: 260px;
  }

  .adm-sidebar.open {
    transform: translateX(0);
  }

  .adm-menu-toggle { display: flex; }
  .adm-main { margin-left: 0; }
  .adm-kpis { grid-template-columns: repeat(2, 1fr); }
  .adm-form-row { grid-template-columns: 1fr; }
  .adm-crm-board { grid-template-columns: repeat(2, 1fr); }
  .adm-search { width: 140px; }
  .adm-clock { display: none; }
}
