@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(15,23,42,.06);
}
[data-theme="dark"] {
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #3b82f6;
  --accent-light: #1e3a8a55;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
}
* { box-sizing: border-box }
html,body { height: 100% }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
button { font-family: inherit }

.app {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--bg);
}

.sidebar {
  width: 272px;
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  box-sizing: border-box;
  overflow: hidden;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.brand b { font-weight: 700; letter-spacing: .2px; }
.brand small { color: var(--text-muted); font-weight: 600; margin-left: 4px; }

.sidebar .nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.sidebar .nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar .nav::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.nav-section {
  margin-bottom: 12px;
}
.nav-section:last-child {
  margin-bottom: 4px;
}
.nav-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: 6px 10px 4px;
  margin-bottom: 2px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.nav-btn:hover {
  background: var(--bg);
  color: var(--text);
}
.nav-btn.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.2);
  font-weight: 600;
}
.nav-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.sidebar-foot {
  flex-shrink: 0;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--card);
  box-sizing: border-box;
}

.main, .main-wrapper {
  flex: 1;
  min-width: 0;
  margin-left: 272px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  box-sizing: border-box;
  transition: margin-left .25s ease;
}

.topbar {
  height: 64px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 28px;
  box-sizing: border-box;
  backdrop-filter: blur(12px);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s ease;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--bg);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  min-width: 260px;
  flex: 1;
  max-width: 440px;
  position: relative;
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-family: inherit;
  font-size: 13px;
}

.chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
}

.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #22c55e);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
}

.content, .main-content {
  padding: 24px 28px 48px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  box-sizing: border-box;
}
.page { display:none }
.page.active { display:block; animation:fade .25s ease }
@keyframes fade { from { opacity:0; transform:translateY(4px) } to { opacity:1; transform:none } }

.h1 { font-size:24px; font-weight:700; margin:4px 0 18px }
.h2 { font-size:16px; font-weight:600; margin:0 0 12px }
.muted { color: var(--text-muted) }

.grid { display:grid; gap:12px }
.grid-6 { grid-template-columns: repeat(6,1fr) }
.grid-3 { grid-template-columns: repeat(3,1fr) }
.grid-2 { grid-template-columns: repeat(2,1fr) }
@media (max-width:1200px){ .grid-6{grid-template-columns:repeat(3,1fr)} }
@media (max-width:900px){ .grid-3,.grid-2{grid-template-columns:1fr} .grid-6{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .grid-6{grid-template-columns:1fr} }

.card {
  background: var(--card); border:1px solid var(--border); border-radius:16px; box-shadow: var(--shadow); padding:18px;
}
.card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px }

.kpi { display:flex; gap:14px; align-items:center }
.kpi-icon { width:44px; height:44px; border-radius:12px; display:grid; place-items:center; background:var(--accent-light); color:var(--accent) }
.kpi-label { font-size:12px; color:var(--text-muted); font-weight:500 }
.kpi-value { font-size:26px; font-weight:700; line-height:1.1 }
.kpi-trend { font-size:12px; font-weight:600 }
.kpi-trend.up { color: var(--success) }
.kpi-trend.down { color: var(--danger) }

.list { display:flex; flex-direction:column }
.list-item { display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px dashed var(--border) }
.list-item:last-child { border-bottom:0 }
.dot { width:8px; height:8px; border-radius:50%; background:var(--accent) }

.bar { height:8px; background:var(--bg); border-radius:999px; overflow:hidden; border:1px solid var(--border) }
.bar > i { display:block; height:100%; background:linear-gradient(90deg,var(--accent),#22c55e); width:0%; transition:width .8s ease }

.table-wrap { overflow:auto; border:1px solid var(--border); border-radius:14px }
table { width:100%; border-collapse:separate; border-spacing:0; font-size:14px }
th,td { padding:12px 14px; text-align:left; white-space:nowrap }
thead th { position:sticky; top:0; background:var(--card); border-bottom:1px solid var(--border); font-size:12px; text-transform:uppercase; letter-spacing:.04em; color:var(--text-muted) }
tbody tr { border-top:1px solid var(--border) }
tbody tr:hover { background: var(--bg) }

.badge { padding:4px 8px; border-radius:999px; font-size:12px; font-weight:600; border:1px solid var(--border); background:var(--bg) }
.badge.green { background:#ecfdf5; color:#047857; border-color:#a7f3d0 }
.badge.amber { background:#fffbeb; color:#b45309; border-color:#fde68a }
.badge.red { background:#fef2f2; color:#b91c1c; border-color:#fecaca }
.badge.blue { background:var(--accent-light); color:var(--accent); border-color:#bfdbfe }
[data-theme="dark"] .badge.green{ background:#052e1f; color:#6ee7b7; border-color:#064e3b }
[data-theme="dark"] .badge.amber{ background:#3b2603; color:#fcd34d; border-color:#92400e }
[data-theme="dark"] .badge.red{ background:#3b0a0a; color:#fca5a5; border-color:#7f1d1d }
[data-theme="dark"] .badge.blue{ background:#0b1a3a; color:#93c5fd; border-color:#1e3a8a }

.btn { padding:9px 12px; border-radius:10px; border:1px solid var(--border); background:var(--card); cursor:pointer; font-weight:600; font-size:13px }
.btn:hover { background:var(--bg) }
.btn.primary { background:var(--accent); color:white; border-color:var(--accent) }
.btn.primary:hover { filter:brightness(1.05) }
.btn.ghost { background:transparent }
.btn.small { padding:6px 9px; font-size:12px }

.tabs { display:flex; gap:6px; background:var(--bg); padding:4px; border-radius:12px; border:1px solid var(--border); width:fit-content }
.tab { padding:8px 12px; border-radius:8px; font-weight:600; font-size:13px; color:var(--text-muted); cursor:pointer; border:0; background:transparent }
.tab.active { background:var(--card); color:var(--text); box-shadow:var(--shadow) }

.kanban { display:grid; grid-template-columns:repeat(3,1fr); gap:12px }
@media(max-width:900px){ .kanban{grid-template-columns:1fr} }
.kanban-col { background:var(--bg); border:1px dashed var(--border); border-radius:14px; padding:10px; min-height:220px }
.kanban-col h4 { margin:4px 6px 10px; font-size:13px; color:var(--text-muted) }
.kanban-card { background:var(--card); border:1px solid var(--border); border-radius:12px; padding:10px; margin:8px 4px; cursor:grab; box-shadow:var(--shadow) }
.kanban-card:active { cursor:grabbing }

.map { position:relative; background: radial-gradient( at 30% 20%, #dbeafe 0, transparent 40%), radial-gradient( at 80% 80%, #dcfce7 0, transparent 40%), var(--bg); border:1px solid var(--border); border-radius:14px; height:280px; overflow:hidden }
[data-theme="dark"] .map { background: radial-gradient( at 30% 20%, #1e3a8a33 0, transparent 40%), radial-gradient( at 80% 80%, #064e3b33 0, transparent 40%), var(--bg); }
.map-radar-sweep { position:absolute; inset:-50%; background: conic-gradient(from 0deg at 50% 50%, rgba(37, 99, 235, 0.12) 0deg, transparent 60deg, transparent 360deg); animation: radar-spin 6s linear infinite; pointer-events:none; }
@keyframes radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.map-dot { position:absolute; width:12px; height:12px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px #3b82f644; transform:translate(-50%,-50%); cursor:pointer; transition: transform 0.15s ease; z-index: 10; }
.map-dot:hover { transform: translate(-50%,-50%) scale(1.35); z-index: 20; }
.map-dot::after { content:attr(data-label); position:absolute; top:-24px; left:50%; transform:translateX(-50%); font-size:11px; font-weight:600; background:var(--card); color:var(--text); border:1px solid var(--border); padding:2px 8px; border-radius:6px; white-space:nowrap; box-shadow:0 2px 8px rgba(0,0,0,0.1); pointer-events:none; }

.progress { height:8px; background:var(--bg); border-radius:999px; border:1px solid var(--border); overflow:hidden }
.progress > span { display:block; height:100%; background:var(--accent); width:0; transition:width .6s }

.form { display:grid; gap:10px }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:10px }
@media(max-width:700px){ .form-row{grid-template-columns:1fr} }
.input, select, textarea { width:100%; padding:10px 12px; border-radius:10px; border:1px solid var(--border); background:var(--card); color:var(--text); font:inherit }
.input:focus, select:focus, textarea:focus { outline:2px solid #3b82f488; border-color:var(--accent) }
label { font-size:12px; color:var(--text-muted); font-weight:600 }

.checklist { display:flex; flex-direction:column; gap:8px }
.check { display:flex; align-items:center; gap:10px; padding:8px; border:1px solid var(--border); border-radius:10px; background:var(--card) }
.check input { width:18px; height:18px }

.split { display:grid; grid-template-columns:1fr 1fr; gap:10px }
.split .box { border:1px solid var(--border); border-radius:12px; background:var(--card); padding:10px; min-height:180px }
.pill { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; border:1px solid var(--border); border-radius:999px; background:var(--bg); font-size:12px; margin:4px 6px 0 0; cursor:pointer }

.toast-wrap { position:fixed; right:18px; bottom:18px; display:flex; flex-direction:column; gap:8px; z-index:99 }
.toast { background:var(--card); border:1px solid var(--border); box-shadow:var(--shadow); padding:10px 12px; border-radius:12px; font-weight:600; font-size:13px; display:flex; gap:8px; align-items:center }

.footer { padding:18px 24px; color:var(--text-muted); font-size:12px; border-top:1px solid var(--border); background:var(--card) }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  z-index: 45;
}
.sidebar-backdrop.active {
  display: block;
}

.hamburger { display: none; }
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    z-index: 50;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main, .main-wrapper {
    margin-left: 0 !important;
    width: 100%;
  }
  .hamburger {
    display: grid !important;
  }
  .search {
    display: none;
  }
  .topbar {
    padding: 0 16px;
  }
  .content, .main-content {
    padding: 16px 16px 80px;
  }
}
.empty { text-align:center; padding:30px; color:var(--text-muted) }
.empty svg { width:80px; height:80px; opacity:.7; margin-bottom:10px }

/* Mobile-first breakpoints: 320px (base), 768px (tablet), 1024px (desktop) */

.site-header { position: sticky; top: 0; z-index: 1000; height: 56px; display: flex;
  align-items: center; padding: 0 16px; backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.hamburger-btn { display: flex; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: none; color: var(--text); }
.hamburger-btn span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: .25s; }
@media (min-width: 1024px) { .hamburger-btn { display: none; } }

.nav-drawer { position: fixed; top: 0; left: -100%; width: min(280px, 80vw); height: 100vh;
  z-index: 2000; background: var(--bg-elevated); border-right: 1px solid var(--border);
  overflow-y: auto; padding: 16px; transition: left .3s ease; }
.nav-drawer.open { left: 0; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1999; }
.nav-overlay.show { display: block; }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; height: 60px;
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; color: var(--text-muted); text-decoration: none; padding: 4px 10px; min-height: 44px; justify-content: center; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .bottom-nav { display: none; } }

.card-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }

.modal-overlay { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.65);
  display: flex; align-items: flex-end; justify-content: center; }
.modal-box { width: 100%; max-height: 90vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; background: var(--bg-elevated); padding: 24px; }
.modal-drag-handle { width: 40px; height: 4px; background: var(--border);
  border-radius: 4px; margin: 0 auto 16px; }
@media (min-width: 768px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal-box { max-width: 560px; border-radius: 16px; max-height: 80vh; }
  .modal-drag-handle { display: none; }
}

@media (max-width: 767px) {
  .data-table { display: none; }
  .table-card-view { display: block; }
  .table-card { background: var(--bg-card); border-radius: 12px; padding: 14px;
    margin-bottom: 10px; border: 1px solid var(--border); }
  .table-card-label { font-size: 11px; color: var(--text-muted); margin-bottom: 2px; }
  .table-card-value { font-size: 14px; font-weight: 500; }
}
@media (min-width: 768px) { .data-table { display: table; width: 100%; } .table-card-view { display: none; } }

btn, button, .btn, a.btn { min-height: 44px; }

.site-footer { padding: 48px 16px 80px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

body { font-family: 'Inter', -apple-system, sans-serif; }

/* --- FieldControl UI Polish: Motion, Shimmer Skeletons, Modals & Touch --- */
@keyframes fc-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-row, .skeleton-card, .skeleton-pill, .skeleton-val {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: fc-shimmer 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  border-radius: 8px;
}
.skeleton-row { height: 48px; margin-bottom: 8px; width: 100%; }
.skeleton-pill { height: 28px; width: 90px; border-radius: 999px; }
.skeleton-card { height: 110px; width: 100%; border-radius: 14px; }
.skeleton-val { height: 32px; width: 80px; }

/* Empty States with Informative CTAs */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin: 12px 0;
}
.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.empty-state-text {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 420px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* Eskom Load Shedding Header Indicator */
.loadshed-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-size: 12px;
  font-weight: 600;
}
[data-theme="dark"] .loadshed-pill {
  background: #291804;
  color: #fcd34d;
  border-color: #78350f;
}
.loadshed-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

/* Top-Sliding Modal Dialogs */
.fc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.fc-modal-backdrop.open,
.fc-modal-backdrop.active {
  display: flex;
  opacity: 1;
}
.fc-modal-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  transform: translateY(-20px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fc-modal-backdrop.open .fc-modal-window,
.fc-modal-backdrop.active .fc-modal-window {
  transform: translateY(0);
}
.fc-modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fc-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.fc-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.fc-modal-close:hover { background: var(--bg); color: var(--text); }
.fc-modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fc-modal-foot {
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg);
  border-radius: 0 0 18px 18px;
}

/* Glass Signature Pad */
.signature-wrap {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: #fafafa;
  overflow: hidden;
  position: relative;
}
[data-theme="dark"] .signature-wrap { background: #0b1220; }
.signature-canvas {
  width: 100%;
  height: 160px;
  cursor: crosshair;
  display: block;
}
.signature-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

/* Star Rating Selector */
.star-rating {
  display: inline-flex;
  gap: 6px;
}
.star-rating-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #cbd5e1;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-rating-btn.active { color: #f59e0b; }
.star-rating-btn:hover { transform: scale(1.15); }

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast-msg {
  pointer-events: auto;
  padding: 12px 18px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* =========================================================================
   ENTERPRISE SIDEBAR: SECTION HEADERS & UPGRADE CARD WIDGET
   ========================================================================= */
.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
}
.nav-section:first-child {
  margin-top: 2px;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 6px 12px 2px;
  user-select: none;
}

.sidebar-upgrade-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  padding: 12px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
[data-theme="dark"] .sidebar-upgrade-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(16, 185, 129, 0.12));
  border-color: rgba(59, 130, 246, 0.3);
}
.sidebar-upgrade-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-plan-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
}
.upgrade-meter-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.upgrade-meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.upgrade-meter-bar {
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.upgrade-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #10b981);
  border-radius: 999px;
  transition: width 0.6s ease;
}
.btn-upgrade-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-upgrade-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* =========================================================================
   MULTI-VIEW TOGGLES & HIGH-DENSITY DATA TABLE
   ========================================================================= */
.view-toggle {
  display: inline-flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 12px;
}
.view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.view-toggle-btn.active {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.table-filter-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-pill:hover, .filter-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.dense-table th {
  padding: 10px 12px;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.dense-table td {
  padding: 10px 12px;
  font-size: 13px;
  vertical-align: middle;
}
.dense-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}
.dense-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

/* =========================================================================
   WORK ORDER SLIDE-OUT DETAIL DRAWER
   ========================================================================= */
.detail-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 6000;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.detail-drawer-backdrop.open {
  display: block;
  opacity: 1;
}
.detail-drawer {
  position: fixed;
  top: 0;
  right: -720px;
  width: min(700px, 94vw);
  height: 100vh;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -10px 0 35px rgba(0,0,0,0.18);
  z-index: 6001;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.detail-drawer-backdrop.open .detail-drawer {
  right: 0;
}
.detail-drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}
.detail-drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-drawer-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* Stepper Timeline */
.timeline-stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 10px 0 16px;
}
.timeline-stepper::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.timeline-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}
.timeline-step.completed .timeline-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.timeline-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
.timeline-step.completed .timeline-step-label {
  color: var(--text);
}

/* Photo Comparison Box */
.photo-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .photo-compare-grid { grid-template-columns: 1fr; }
}
.photo-slot {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}
.photo-slot img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* =========================================================================
   FLEET CARDS GRID VIEW
   ========================================================================= */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.fleet-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.fleet-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.fleet-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fleet-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
}
.fleet-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

/* =========================================================================
   SITES & TELECOM ASSETS GRID
   ========================================================================= */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.site-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.site-telemetry-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* =========================================================================
   ANALYTICS & SLA METRICS
   ========================================================================= */
.analytics-metric-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sla-radial-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sla-target-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* =========================================================================
   SUBSCRIPTION & PRICING CARDS
   ========================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 16px 0;
}
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pricing-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin: 12px 0 6px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================================
   OPERATIONS SETTINGS
   ========================================================================= */
.settings-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.settings-tab-btn {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.settings-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.settings-panel {
  display: none;
}
.settings-panel.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fade 0.2s ease;
}

/* =========================================================================
   SEARCH DROPDOWN PALETTE
   ========================================================================= */
.search {
  position: relative;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  min-width: 380px;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
  max-height: 480px;
  overflow-y: auto;
  z-index: 1000;
  padding: 6px;
  display: none;
}

.search-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 8px 10px 4px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-result-item:hover,
.search-result-item.active {
  background: var(--hover-bg, rgba(37, 99, 235, 0.08));
}

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-sub {
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  gap: 6px;
}

.search-empty-state span {
  font-size: 13px;
  color: var(--text);
}

.search-empty-state small {
  font-size: 11px;
}

/* =========================================================================
   NOTIFICATION CENTER & BELL TRAY
   ========================================================================= */
.notif-wrapper {
  position: relative;
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--card);
  animation: pulse 2s infinite;
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  z-index: 1001;
  overflow: hidden;
  display: none;
}

.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notif-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all 0.15s ease;
}

.notif-item:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.notif-item.unread {
  background: rgba(37, 99, 235, 0.04);
  border-left: 3px solid var(--accent);
}

.notif-item.notif-prio-emergency {
  border-left: 3px solid var(--danger);
  background: rgba(239, 68, 68, 0.05);
}

.notif-item.notif-prio-high {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.notif-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.notif-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* =========================================================================
   EMERGENCY BROADCAST IN-APP BANNER
   ========================================================================= */
.fcm-emergency-banner {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.28);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  animation: slideDown 0.3s ease;
}

.fcm-pulse-icon {
  font-size: 20px;
  animation: pulse 1s infinite;
}

/* =========================================================================
   BOX CONTENT UI POLISH & REFINED CONTAINERS
   ========================================================================= */
.box-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  transition: all 0.2s ease;
}

.box-content:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.box-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.broadcast-template-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.btn-chip {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-chip:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ==========================================================================
   Global Network Loading Progress Bar & Pulse Indicator
   ========================================================================== */
#fcNetworkBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999999;
  pointer-events: none;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#fcNetworkBar.active {
  opacity: 1;
}
#fcNetworkBarInner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #22c55e);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 0 5px rgba(37, 99, 235, 0.6);
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.network-pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  transition: all 0.2s ease;
}
.network-pulse-indicator .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 0 rgba(2, 132, 199, 0.7);
  animation: netPulseDot 1.2s infinite;
}
@keyframes netPulseDot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(2, 132, 199, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: btnSpin 0.7s infinite linear;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Topbar User Dropdown Dialogue Card
   ========================================================================== */
.fc-user-menu-wrap {
  position: relative;
  display: inline-block;
}

.fc-user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
}
.fc-user-pill:hover,
.fc-user-pill.active {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.fc-user-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
  flex-shrink: 0;
}
.fc-user-pill.active .fc-user-chevron {
  transform: rotate(180deg);
}

.fc-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 290px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  display: none;
  flex-direction: column;
  z-index: 4500;
  overflow: hidden;
  animation: fcDropdownSlideDown 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes fcDropdownSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fc-user-dropdown.open {
  display: flex;
}

.fc-user-dropdown-header {
  padding: 16px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-user-dropdown-body {
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fc-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.fc-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.fc-dropdown-item:hover {
  background: var(--bg);
  color: var(--accent);
}
.fc-dropdown-item.danger {
  color: var(--danger);
}
.fc-dropdown-item.danger:hover {
  background: #fef2f2;
  color: #dc2626;
}
[data-theme="dark"] .fc-dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

.fc-user-plan-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  margin-top: 4px;
}



