/* ================================================================
   PUBLIYERRY ADMIN — STYLES v4
   Pure black dark theme — Professional SaaS Admin Panel
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@600;700;800&display=swap');

/* ── VARIABLES ──────────────────────────────────────────────────── */
:root {
  --sidebar-w: 250px;
  --sidebar-col: 64px;
  --topbar-h: 60px;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 12px;
  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* DARK THEME */
[data-theme="dark"] {
  --bg-body:        #0c0c0c;
  --bg-sidebar:     #111111;
  --bg-topbar:      #111111;
  --bg-card:        #181818;
  --bg-card-hover:  #1e1e1e;
  --bg-input:       #131313;
  --bg-modal:       #191919;
  --bg-overlay:     rgba(0,0,0,0.78);
  --bg-table-hover: #1c1c1c;

  --border:         #242424;
  --border-l:       #2e2e2e;
  --border-focus:   #4a4a4a;

  --text:           #f0f0f0;
  --text-sub:       #a0a0a0;
  --text-muted:     #606060;
  --text-dim:       #333333;

  --accent:         #3b82f6;
  --accent-hover:   #2563eb;
  --accent-glow:    rgba(59,130,246,0.18);
  --accent-soft:    rgba(59,130,246,0.1);

  --green:          #22c55e;
  --green-soft:     rgba(34,197,94,0.12);
  --red:            #ef4444;
  --red-soft:       rgba(239,68,68,0.12);
  --orange:         #f59e0b;
  --orange-soft:    rgba(245,158,11,0.12);
  --cyan:           #06b6d4;
  --cyan-soft:      rgba(6,182,212,0.12);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow:     0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.7);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.85);

  --scrollbar-track: #0e0e0e;
  --scrollbar-thumb: #282828;

  --brand:        #F0A500;
  --brand-dark:   #D4900A;
}

/* LIGHT THEME */
[data-theme="light"] {
  --bg-body:        #f3f4f6;
  --bg-sidebar:     #111827;
  --bg-topbar:      #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f9fafb;
  --bg-input:       #f1f3f6;
  --bg-modal:       #ffffff;
  --bg-overlay:     rgba(0,0,0,0.5);
  --bg-table-hover: #f8f9fc;

  --border:         #e5e7eb;
  --border-l:       #d1d5db;
  --border-focus:   #93c5fd;

  --text:           #111827;
  --text-sub:       #374151;
  --text-muted:     #9ca3af;
  --text-dim:       #d1d5db;

  --accent:         #2563eb;
  --accent-hover:   #1d4ed8;
  --accent-glow:    rgba(37,99,235,0.12);
  --accent-soft:    rgba(37,99,235,0.08);

  --green:          #16a34a;
  --green-soft:     rgba(22,163,74,0.1);
  --red:            #dc2626;
  --red-soft:       rgba(220,38,38,0.1);
  --orange:         #d97706;
  --orange-soft:    rgba(217,119,6,0.1);
  --cyan:           #0891b2;
  --cyan-soft:      rgba(8,145,178,0.1);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.07);
  --shadow:     0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.15);

  --scrollbar-track: #f0f0f0;
  --scrollbar-thumb: #d0d0d0;

  --brand:        #F0A500;
  --brand-dark:   #D4900A;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── ACCESSIBILITY ─────────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 99px; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition);
  z-index: 100;
  overflow: hidden;
}

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-left var(--transition);
  display: flex;
  flex-direction: column;
}

/* ── SIDEBAR COLLAPSED ──────────────────────────────────────────── */
.sidebar.collapsed { width: var(--sidebar-col); }

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-section-label,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .admin-name,
.sidebar.collapsed .admin-role { display: none !important; }

.sidebar.collapsed .sidebar-header { justify-content: center; padding: 0 12px; }
.sidebar.collapsed .logo { justify-content: center; }
.sidebar.collapsed .sidebar-toggle { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 11px 0; }
.sidebar.collapsed .nav-icon { margin: 0; }
.sidebar.collapsed .admin-info { justify-content: center; }

.main.expanded { margin-left: var(--sidebar-col); }

/* ── SIDEBAR HEADER ─────────────────────────────────────────────── */
.sidebar-header {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo { display: flex; align-items: center; gap: 10px; overflow: hidden; }

.logo-icon {
  width: 34px; height: 34px;
  background: var(--brand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.logo-name {
  font-family: 'Poppins', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  display: block; line-height: 1.2;
}
.logo-sub {
  font-size: 10px; color: var(--text-muted);
  white-space: nowrap; display: block;
  letter-spacing: 0.06em; text-transform: uppercase;
}

.sidebar-toggle {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}
.sidebar-toggle:hover { background: rgba(255,255,255,0.07); color: var(--text); }

/* ── SIDEBAR NAV ────────────────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto; overflow-x: hidden;
  padding: 10px 8px;
}

.nav-section-label {
  display: block;
  font-size: 10px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 10px 6px;
  white-space: nowrap; overflow: hidden;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--text-sub);
  font-size: 13.5px; font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  margin-bottom: 1px;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; }

.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; flex-shrink: 0;
}
.nav-label { flex: 1; overflow: hidden; }

.nav-badge {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0;
}

/* ── SIDEBAR FOOTER ─────────────────────────────────────────────── */
.sidebar-footer { border-top: 1px solid var(--border); padding: 10px 8px; flex-shrink: 0; }

.admin-info {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  cursor: pointer; transition: background 0.18s; overflow: hidden;
}
.admin-info:hover { background: rgba(255,255,255,0.06); }

.admin-avatar {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.admin-name { display: block; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.admin-role { display: block; font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Light mode sidebar overrides */
[data-theme="light"] .sidebar { border-right-color: rgba(0,0,0,0.1); }
[data-theme="light"] .sidebar .nav-section-label { color: rgba(255,255,255,0.3); }
[data-theme="light"] .sidebar .nav-item { color: rgba(255,255,255,0.55); }
[data-theme="light"] .sidebar .nav-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
[data-theme="light"] .sidebar .nav-item.active { background: var(--accent); color: #fff; }
[data-theme="light"] .sidebar .admin-name { color: rgba(255,255,255,0.9); }
[data-theme="light"] .sidebar .admin-role { color: rgba(255,255,255,0.4); }
[data-theme="light"] .sidebar .admin-info:hover { background: rgba(255,255,255,0.07); }
[data-theme="light"] .sidebar .logo-name { color: rgba(255,255,255,0.95); }
[data-theme="light"] .sidebar .logo-sub  { color: rgba(255,255,255,0.4); }
[data-theme="light"] .sidebar-toggle { color: rgba(255,255,255,0.4); }
[data-theme="light"] .sidebar-toggle:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
[data-theme="light"] .sidebar-header { border-bottom-color: rgba(255,255,255,0.07); }
[data-theme="light"] .sidebar-footer { border-top-color: rgba(255,255,255,0.07); }

/* ── TOPBAR ─────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-topbar);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50; flex-shrink: 0;
}
.topbar-left  { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 4px; }

.menu-btn {
  width: 36px; height: 36px;
  display: none; align-items: center; justify-content: center;
  border-radius: 7px; color: var(--text-muted); transition: all 0.18s;
}
.menu-btn:hover { background: var(--border); color: var(--text); }

.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px;
  height: 36px; width: 280px;
  transition: border-color 0.2s; color: var(--text-muted);
}
.topbar-search:focus-within { border-color: var(--border-focus); }
.topbar-search input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%;
}
.topbar-search input::placeholder { color: var(--text-muted); }

.topbar-date { font-size: 12px; color: var(--text-muted); white-space: nowrap; padding: 0 8px; }

.icon-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--text-sub);
  transition: all 0.18s; position: relative;
}
.icon-btn:hover { background: var(--border); color: var(--text); }

.notif-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--bg-topbar);
}

.topbar-sep { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px; border-radius: 8px;
  cursor: pointer; transition: background 0.18s;
}
.topbar-user:hover { background: var(--border); }

.user-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-role { font-size: 11px; color: var(--text-muted); display: block; }

/* ── CONTENT ────────────────────────────────────────────────────── */
.content { flex: 1; padding: 28px 28px 48px; }

.section { display: none; }
.section.active { display: block; animation: sectionIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes sectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.2;
}
.page-header p { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ── CARD ───────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-header h2 { font-size: 14px; font-weight: 700; color: var(--text); }
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.card-more {
  color: var(--text-muted); width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: all 0.18s;
}
.card-more:hover { background: var(--border); color: var(--text); }

.link-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  padding: 5px 10px; border-radius: 6px; transition: background 0.18s;
}
.link-btn:hover { background: var(--accent-soft); }

/* ── STAT CARDS ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 11.5px; font-weight: 500;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.07em;
}

.stat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--accent-soft); color: var(--accent); }
.stat-icon.green  { background: var(--green-soft);  color: var(--green); }
.stat-icon.orange { background: var(--orange-soft); color: var(--orange); }
.stat-icon.red    { background: var(--red-soft);    color: var(--red); }
.stat-icon.cyan   { background: var(--cyan-soft);   color: var(--cyan); }

.stat-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 30px; font-weight: 800;
  color: var(--text); line-height: 1.1;
  margin-bottom: 5px; letter-spacing: -0.5px;
}

.stat-trend {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
}
.stat-trend.up      { color: var(--green); }
.stat-trend.down    { color: var(--red); }
.stat-trend.neutral { color: var(--text-muted); }

.sparkline-wrap {
  margin-top: 14px; height: 44px;
}
.sparkline-wrap canvas { width: 100% !important; height: 44px !important; }

/* ── CHARTS ROW ─────────────────────────────────────────────────── */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 14px; margin-bottom: 18px;
}

.chart-wrap { padding: 0 18px 18px; }

.donut-center {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 0 0;
}

.legend-list { padding: 0 16px 16px; }
.legend-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.legend-row:last-child { border-bottom: none; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.legend-lbl { flex: 1; font-size: 12px; color: var(--text-sub); }
.legend-val { font-size: 12px; font-weight: 700; color: var(--text); }

/* ── TABLES ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.data-table thead tr { border-bottom: 1px solid var(--border); }
.data-table th {
  padding: 12px 16px; text-align: left;
  font-size: 10.5px; font-weight: 600;
  color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.08em; white-space: nowrap;
}
.data-table td {
  padding: 13px 16px; color: var(--text-sub);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg-table-hover); }

.folio {
  font-family: 'Poppins', monospace;
  font-size: 11.5px; font-weight: 600; color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 5px; padding: 3px 8px;
  letter-spacing: 0.02em;
}

.client-cell { display: flex; align-items: center; gap: 10px; }
.client-avatar {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #2a2a3a, #1a1a28);
  color: #7a7a9a; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
[data-theme="light"] .client-avatar { background: #e5e7eb; color: #6b7280; }
.client-name { font-weight: 600; color: var(--text); font-size: 13px; }
.client-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.progress-wrap { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.progress-bar  { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.5s ease;
}
.progress-pct { font-size: 10px; font-weight: 700; color: var(--text-muted); white-space: nowrap; min-width: 28px; }

/* ── BADGES ─────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 99px;
  white-space: nowrap; letter-spacing: 0.02em;
}
.badge-revision   { background: rgba(245,158,11,0.14); color: #f59e0b; border: 1px solid rgba(245,158,11,0.28); }
.badge-aprobada   { background: rgba(6,182,212,0.12);  color: #06b6d4; border: 1px solid rgba(6,182,212,0.25); }
.badge-instalada  { background: rgba(34,197,94,0.1);   color: var(--green); border: 1px solid rgba(34,197,94,0.22); }
.badge-activa     { background: var(--accent-soft);    color: var(--accent); border: 1px solid rgba(59,130,246,0.22); }
.badge-finalizada { background: rgba(107,114,128,0.1); color: #9ca3af; border: 1px solid rgba(107,114,128,0.22); }
.badge-rechazada  { background: var(--red-soft);       color: var(--red); border: 1px solid rgba(239,68,68,0.22); }
.badge-disponible  { background: rgba(34,197,94,0.1);  color: var(--green); border: 1px solid rgba(34,197,94,0.22); }
.badge-ocupado     { background: var(--red-soft);      color: var(--red); border: 1px solid rgba(239,68,68,0.22); }
.badge-proxima     { background: var(--orange-soft);   color: var(--orange); border: 1px solid rgba(245,158,11,0.28); }
.badge-mantenimiento { background: rgba(107,114,128,0.1); color: #9ca3af; border: 1px solid rgba(107,114,128,0.22); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: var(--radius-sm); transition: all 0.18s;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
}
.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(59,130,246,0.4); }

.btn-ghost { background: var(--bg-input); color: var(--text-sub); border-color: var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--text); }

.btn-red   { background: var(--red-soft); color: var(--red); border-color: rgba(239,68,68,0.2); }
.btn-red:hover   { background: var(--red); color: #fff; }

.btn-green { background: var(--green-soft); color: var(--green); border-color: rgba(34,197,94,0.2); }
.btn-green:hover { background: var(--green); color: #fff; }

.btn-orange { background: var(--orange-soft); color: var(--orange); border-color: rgba(245,158,11,0.2); }
.btn-orange:hover { background: var(--orange); color: #fff; }

.btn-whatsapp { background: #0d1f13; color: #25D366; border-color: rgba(37,211,102,0.2); }
.btn-whatsapp:hover { background: #25D366; color: #fff; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }

.btn-icon { padding: 7px; }
.btn-lg   { padding: 10px 18px; font-size: 13.5px; }
.btn-sm   { padding: 5px 10px; font-size: 11px; }

.action-btns { display: flex; align-items: center; gap: 6px; }

/* ── FILTERS ────────────────────────────────────────────────────── */
.filters-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 16px;
}

.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0 12px; height: 36px;
  flex: 0 0 280px; color: var(--text-muted); transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--border-focus); color: var(--text-sub); }
.search-box input {
  background: none; border: none; outline: none;
  color: var(--text); font-size: 13px; width: 100%;
}
.search-box input::placeholder { color: var(--text-muted); }

.filter-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 5px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: all 0.18s; cursor: pointer;
}
.pill:hover { border-color: var(--border-l); color: var(--text-sub); }
.pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── SPEC CARDS ─────────────────────────────────────────────────── */
.spec-control-header {
  display: flex; align-items: flex-start; gap: 14px;
  flex-wrap: wrap; margin-bottom: 20px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px; margin-bottom: 20px;
}

.spec-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.spec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-l); }

.spec-img-area {
  height: 130px; background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); position: relative; overflow: hidden;
}
.spec-img-area img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.spec-avail { position: absolute; top: 10px; right: 10px; }

.spec-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; gap: 8px;
}
.spec-card:hover .spec-overlay { display: flex; }

.spec-body { padding: 14px 16px; }
.spec-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.spec-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px; margin-bottom: 3px;
}
.spec-dims { font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }

.spec-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px;
}
.spec-price {
  font-family: 'Poppins', sans-serif;
  font-size: 18px; font-weight: 800; color: var(--text);
}
.spec-price span { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.spec-camps { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.spec-card-add {
  background: var(--bg-card); border: 2px dashed var(--border-l);
  border-radius: var(--radius-lg); min-height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; color: var(--text-dim); transition: all 0.2s;
}
.spec-card-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.spec-card-add .add-label { font-size: 13px; font-weight: 600; }
.spec-card-add .add-hint  { font-size: 11px; color: var(--text-muted); }

.view-toggle {
  display: flex; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden; height: 36px;
}
.view-btn {
  padding: 0 12px; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.18s; cursor: pointer;
}
.view-btn.active { background: var(--accent); color: #fff; }
.view-btn:not(.active):hover { background: var(--border); color: var(--text-sub); }

/* Spec strip */
.spec-strip { padding: 6px 0; }
.spec-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 8px;
  cursor: pointer; transition: background 0.18s;
}
.spec-mini:hover { background: var(--bg-table-hover); }
.spec-mini-icon {
  width: 36px; height: 36px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); flex-shrink: 0;
}
.spec-mini-name { font-size: 13px; font-weight: 600; color: var(--text); }
.spec-mini-sub  { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── EVIDENCIAS ─────────────────────────────────────────────────── */
.evidencias-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px;
}

.evidencia-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.2s;
}
.evidencia-card:hover { box-shadow: var(--shadow); }

.evid-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.evid-folio { font-weight: 700; font-size: 13px; color: var(--text); }
.evid-cliente { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

.foto-zone {
  height: 160px; background: var(--bg-input);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--text-dim); transition: all 0.2s;
  border: 2px dashed transparent; position: relative; overflow: hidden;
}
.foto-zone:hover { border-color: var(--accent); color: var(--accent); }
.foto-zone.has-image { border: none; }
.foto-zone img { width: 100%; height: 100%; object-fit: cover; }
.foto-zone-text { font-size: 12px; text-align: center; max-width: 200px; line-height: 1.4; }

.evid-meta { padding: 12px 16px; font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.evid-actions { display: flex; gap: 8px; padding: 0 16px 14px; }

/* ── PIPELINE ───────────────────────────────────────────────────── */
.pipeline-section {
  margin-top: 20px; background: var(--bg-input);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
}
.pipeline-title {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center;
}
.pipeline-pct {
  font-size: 13px; font-weight: 800; color: var(--accent);
}

.stepper {
  position: relative; display: flex; align-items: flex-start;
  justify-content: space-between; padding-bottom: 4px;
}
.stepper-track {
  position: absolute; left: 28px; right: 28px; top: 18px;
  height: 2px; background: var(--border-l); z-index: 0;
}
.stepper-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 99px; transition: width 0.6s ease;
}
.stepper-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; position: relative; z-index: 1; flex: 1;
}
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border-l);
  background: var(--bg-input); color: var(--text-dim); transition: all 0.3s;
}
.step-circle.done    { background: var(--green); border-color: var(--green); color: #fff; }
.step-circle.current { background: var(--accent); border-color: var(--accent); color: #fff; animation: stepPulse 2s infinite; }

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow); }
  50%       { box-shadow: 0 0 0 8px transparent; }
}

.step-label { font-size: 11px; font-weight: 500; color: var(--text-muted); text-align: center; line-height: 1.3; }
.step-label.active { color: var(--accent); font-weight: 700; }
.step-label.done   { color: var(--green); }

.next-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border);
}
.pipeline-actions {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; flex-wrap: wrap;
}

.step-log { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.log-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; background: var(--bg-card);
  border-radius: 7px; font-size: 12px; border: 1px solid var(--border);
}
.log-icon { color: var(--text-muted); flex-shrink: 0; padding-top: 1px; }
.log-text { flex: 1; color: var(--text-sub); }
.log-date { color: var(--text-muted); white-space: nowrap; font-size: 11px; }

/* ── MODALS ─────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: var(--bg-overlay); backdrop-filter: blur(4px);
  z-index: 200; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; animation: overlayIn 0.2s ease; }

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-modal); border: 1px solid var(--border-l);
  border-radius: var(--radius-lg); width: 100%; max-width: 620px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: var(--shadow-xl);
}
.modal-xl { max-width: 780px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(14px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-modal); z-index: 2;
}
.modal-header h2 { font-size: 16px; font-weight: 700; color: var(--text); }

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px; color: var(--text-muted); transition: all 0.18s;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.modal-body   { padding: 20px 22px 22px; }
.modal-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-top: 1px solid var(--border); flex-wrap: wrap;
}

/* ── DETAIL GRID ────────────────────────────────────────────────── */
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 18px;
}
.detail-group { padding: 14px 16px; border-right: 1px solid var(--border); }
.detail-group:last-child { border-right: none; }

.detail-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row label { font-size: 11px; color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.detail-row span  { font-size: 13px; color: var(--text); font-weight: 600; text-align: right; }

.amount {
  font-family: 'Poppins', sans-serif;
  font-size: 16px !important; font-weight: 800 !important;
  color: var(--green) !important;
}

.info-box {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px;
}
.info-box-title {
  font-size: 10.5px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px;
}
.info-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 12px; gap: 12px;
}
.info-row:last-child { border-bottom: none; }
.info-row label { color: var(--text-muted); }
.info-row span  { color: var(--text); font-weight: 600; text-align: right; }

/* ── FORMS ──────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.span-2 { grid-column: span 2; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form-control {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 13px; color: var(--text); outline: none;
  transition: border-color 0.2s; width: 100%;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.upload-zone {
  height: 160px; background: var(--bg-input);
  border: 2px dashed var(--border-l); border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; color: var(--text-dim); transition: all 0.2s;
  overflow: hidden; position: relative; margin-bottom: 14px;
}
.upload-zone:hover { border-color: var(--accent); color: var(--accent); }
.upload-zone.has-image { border-style: solid; border-color: var(--border); }
.upload-zone img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.upload-title { font-size: 13px; font-weight: 600; }
.upload-hint  { font-size: 11px; color: var(--text-muted); }

.wa-preview {
  background: #091510; border: 1px solid rgba(37,211,102,0.15);
  border-radius: var(--radius-sm); padding: 12px 14px;
  margin-bottom: 14px; font-size: 12px; color: #c8c8c8;
  line-height: 1.7; white-space: pre-line;
}
.wa-preview-label {
  font-size: 10px; font-weight: 700; color: #25D366;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}

/* ── TOAST ──────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card); border: 1px solid var(--border-l);
  border-radius: 10px; padding: 12px 18px;
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-xl); z-index: 9999;
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ── EMPTY STATE ────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state-icon  { margin-bottom: 14px; opacity: 0.25; }
.empty-state-title { font-size: 15px; font-weight: 700; color: var(--text-sub); margin-bottom: 6px; }
.empty-state-sub   { font-size: 13px; }

/* ── MOBILE ─────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .charts-row  { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: var(--sidebar-w) !important; transition: transform var(--transition); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main { margin-left: 0 !important; }
  .menu-btn { display: flex; }
  .topbar-search { width: 160px; }
  .topbar-date, .topbar-sep { display: none; }
  .user-name, .user-role { display: none; }
  .content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid  { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
}

.modal-divider { border: none; border-top: 1px solid var(--border); margin: 14px 0; }

/* ── SIDEBAR FOOTER (hidden now) ────────────────────────────────── */
.sidebar-footer { display: none; }

/* ── DROPDOWNS ──────────────────────────────────────────────────── */
.dropdown-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-modal);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 300;
  min-width: 280px;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Notif dropdown */
.notif-dropdown { min-width: 320px; }

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.dropdown-clear {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.dropdown-clear:hover { opacity: 0.7; }

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-table-hover); }
.notif-item.unread { background: var(--accent-soft); }
.notif-item.unread:hover { background: rgba(59,130,246,0.14); }

.notif-dot-item {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.notif-dot-item.blue   { background: var(--accent); }
.notif-dot-item.green  { background: var(--green); }
.notif-dot-item.orange { background: var(--orange); }
.notif-dot-item.red    { background: var(--red); }

.notif-text  { font-size: 12.5px; color: var(--text-sub); line-height: 1.45; flex: 1; }
.notif-time  { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; margin-top: 2px; }

.notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* User dropdown */
.user-dropdown { min-width: 220px; }

.user-drop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  transition: all 0.15s;
  text-align: left;
  border-radius: 0;
}
.drop-item:hover { background: var(--bg-table-hover); color: var(--text); }
.drop-item-danger { color: var(--red) !important; }
.drop-item-danger:hover { background: var(--red-soft) !important; color: var(--red) !important; }

/* Global search results overlay */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 400px;
  background: var(--bg-modal);
  border: 1px solid var(--border-l);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 300;
  overflow: hidden;
  display: none;
}
.search-results.open { display: block; }

.sr-section-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 10px 14px 6px;
}
.sr-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.sr-item:hover { background: var(--bg-table-hover); }
.sr-item-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 12px; font-weight: 700;
}
.sr-item-icon.order { background: var(--accent-soft); color: var(--accent); }
.sr-item-icon.client { background: var(--green-soft); color: var(--green); }
.sr-title  { font-size: 13px; font-weight: 600; color: var(--text); }
.sr-sub    { font-size: 11px; color: var(--text-muted); }
.sr-empty  { padding: 20px 14px; font-size: 13px; color: var(--text-muted); text-align: center; }
.sr-footer { padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); text-align: center; }

/* ── PANEL ANIMATIONS ─────────────────────────────────────────── */

/* Stagger fade-in for child elements */
.anim-in {
  opacity: 0;
  transform: translateY(16px);
  animation: animSlideIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes animSlideIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Stat card enhanced hover */
.stat-card {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}
.stat-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* Card hover lift */
.card {
  transition: box-shadow 0.25s ease;
}
.card:hover {
  box-shadow: var(--shadow);
}

/* Nav item active indicator slide */
.nav-item {
  position: relative;
}
.nav-item::after {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transform: translateY(-50%);
  transition: height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item.active::after {
  height: 60%;
}

/* Button shine effect for primary actions */
.btn-primary, .pill.active {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .pill.active::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transition: none;
}
.btn-primary:hover::after, .pill.active:hover::after {
  animation: btnShine 0.6s ease forwards;
}

@keyframes btnShine {
  to { left: 200%; }
}

/* Page header slide-in */
.page-header {
  animation: headerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes headerIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Sparkline/chart container fade */
.chart-wrap, .donut-center {
  animation: chartFade 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes chartFade {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── VIEW TRANSITION THEME ANIMATION ──────────────────────────── */
::view-transition-group(root) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
::view-transition-new(root) {
  animation-name: reveal-theme;
}
::view-transition-old(root) {
  animation: none;
  z-index: -1;
}
@keyframes reveal-theme {
  from { clip-path: circle(0% at 50% 50%); }
  to   { clip-path: circle(150% at 50% 50%); }
}

/* ── BANNERS SECTION ─────────────────────────────────────────── */
.banners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.banner-card {
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.banner-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.banner-card .banner-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 800/260;
  background: var(--bg-hover);
  cursor: pointer;
  overflow: hidden;
}
.banner-card .banner-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.banner-card .banner-img-wrap .banner-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--text-muted); font-size: 14px; gap: 8px;
}
.banner-card .banner-link-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px 10px;
}
.banner-card .banner-link-row input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px;
  font-size: 12px; color: var(--text); outline: none;
  transition: border-color .2s;
}
.banner-card .banner-link-row input:focus { border-color: var(--accent); }
.banner-card .banner-link-row input::placeholder { color: var(--text-muted); }
.banner-card .banner-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.banner-card .banner-actions .banner-order {
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}
