/* ArcadiaZ Admin Panel Styles */

:root {
  --admin-sidebar-w: 220px;
  --admin-navbar-h: 54px;
}

.admin-body {
  background: #0a0a0a;
  color: var(--text, #e0e0e0);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Navbar */
.admin-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--admin-navbar-h);
  background: #111;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
}

.admin-brand-icon {
  font-size: 1.2rem;
}

.admin-nav-link {
  color: #aaa;
  text-decoration: none;
  font-size: .8rem;
  padding: 6px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  transition: all .15s;
}

.admin-nav-link:hover {
  color: #fff;
  border-color: #444;
}

/* Layout */
.admin-layout {
  display: flex;
  padding-top: var(--admin-navbar-h);
  min-height: 100vh;
}

/* Sidebar */
.admin-sidebar {
  width: var(--admin-sidebar-w);
  background: #111;
  border-right: 1px solid #1e1e1e;
  position: fixed;
  top: var(--admin-navbar-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 0;
}

.admin-sidenav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.admin-sidenav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #888;
  text-decoration: none;
  font-size: .83rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
}

.admin-sidenav-item:hover {
  background: rgba(255,255,255,.05);
  color: #ddd;
}

.admin-sidenav-item.active {
  background: rgba(192,57,43,.15);
  color: #e74c3c;
  font-weight: 600;
}

.sidenav-icon {
  font-size: 1rem;
}

/* Main */
.admin-main {
  margin-left: var(--admin-sidebar-w);
  flex: 1;
  padding: 28px 32px;
  min-height: calc(100vh - var(--admin-navbar-h));
}

/* Page */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-page-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.admin-section-title {
  font-size: .78rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 24px 0 12px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: #151515;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 20px 22px;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #e74c3c;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: .75rem;
  color: #666;
  font-weight: 500;
}

/* Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  background: #131313;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1e1e1e;
}

.admin-table thead tr {
  background: #0e0e0e;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: .72rem;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid #1e1e1e;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #1a1a1a;
  color: #ccc;
  vertical-align: middle;
}

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

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,.02);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}

.badge-ok   { background: rgba(46,204,113,.12); color: #2ecc71; }
.badge-warn { background: rgba(243,156,18,.12);  color: #f39c12; }
.badge-off  { background: rgba(180,180,180,.08); color: #666; }

/* Action buttons */
.action-btns {
  display: flex;
  gap: 8px;
}

.btn-edit, .btn-del {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: #aaa;
  transition: all .15s;
}

.btn-edit:hover { background: rgba(52,152,219,.12); color: #3498db; border-color: #3498db40; }
.btn-del:hover  { background: rgba(231,76,60,.12);  color: #e74c3c; border-color: #e74c3c40; }

/* Buttons */
.btn-admin-primary {
  padding: 10px 20px;
  background: #c0392b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.btn-admin-primary:hover { background: #a93226; }

.btn-admin-secondary {
  padding: 10px 20px;
  background: transparent;
  color: #aaa;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.btn-admin-secondary:hover { border-color: #555; color: #fff; }

.btn-admin-danger-sm {
  padding: 4px 10px;
  background: transparent;
  color: #e74c3c;
  border: 1px solid #e74c3c44;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.btn-admin-danger-sm:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* Modal */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal.open {
  display: flex;
}

.admin-modal-box {
  background: #141414;
  border: 1px solid #252525;
  border-radius: 14px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.admin-modal-sm {
  max-width: 420px;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-modal-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.admin-modal-header button {
  background: none;
  border: none;
  color: #666;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
}

.admin-modal-header button:hover { color: #fff; }

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  color: #e0e0e0;
  font-size: .83rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #c0392b;
}

.form-group input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}

.form-group textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #1e1e1e;
}

/* Code tags */
code {
  background: #1a1a1a;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: .78rem;
  color: #aaa;
}

/* ─── Dashboard v2 ─────────────────────────────────────────────────────────── */
.dash-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.dash-stat {
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.dash-stat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--stat-color, #e74c3c);
  border-radius: 12px 12px 0 0;
}

.dash-stat-label {
  font-size: .72rem;
  color: #555;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.dash-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.dash-stat-sub {
  font-size: .72rem;
  color: #444;
}

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.dash-panel {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px;
}

.dash-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dash-panel-title {
  font-size: .85rem;
  font-weight: 700;
  color: #ddd;
}

.dash-panel-badge {
  font-size: .68rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 3px 10px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dash-chart-wrap {
  height: 200px;
  position: relative;
}

.dash-period-btns {
  display: flex;
  gap: 4px;
}

.dash-period-btn {
  padding: 4px 10px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: #666;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}

.dash-period-btn.active,
.dash-period-btn:hover {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.dash-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #1a1a1a;
}

.dash-list-item:last-child { border-bottom: none; }

.dash-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  flex-shrink: 0;
}

.dash-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}

.dash-item-name {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item-sub {
  font-size: .72rem;
  color: #555;
}

.dash-item-value {
  font-size: .82rem;
  font-weight: 700;
  color: #3fb950;
  white-space: nowrap;
}

.dash-rank {
  width: 22px;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: #444;
}

.dash-rank.top1 { color: #f1c40f; }
.dash-rank.top2 { color: #aaa; }
.dash-rank.top3 { color: #cd6133; }

.dash-promo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #0e0e0e;
  border-radius: 8px;
  margin-bottom: 6px;
}

.dash-promo-code {
  font-family: 'Cascadia Code', monospace;
  font-size: .82rem;
  font-weight: 700;
  color: #e74c3c;
}

.dash-server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb950;
  flex-shrink: 0;
}

.dash-server-dot.offline { background: #555; }

/* ─── Rareté page ──────────────────────────────────────────────────────────── */
.rarete-add-card {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rarete-add-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rarete-add-title {
  font-size: .88rem;
  font-weight: 700;
  color: #ddd;
}

.rarete-add-badge {
  font-size: .65rem;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 2px 8px;
  color: #555;
  font-weight: 700;
}

.rarete-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.color-swatch-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 2px solid #2a2a2a;
  cursor: pointer;
  flex-shrink: 0;
}

.color-hex-input {
  flex: 1;
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px;
  color: #e0e0e0;
  font-family: 'Cascadia Code', monospace;
  font-size: .88rem;
  outline: none;
}

.color-hex-input:focus { border-color: #c0392b; }

.color-rgb-label {
  font-size: .72rem;
  color: #555;
  margin-top: 4px;
}

.rarete-list-card {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px 24px;
}

.rarete-list-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.rarete-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #0e0e0e;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: grab;
  border: 1px solid #1a1a1a;
  transition: border-color .15s;
}

.rarete-row:hover { border-color: #2a2a2a; }
.rarete-row.dragging { opacity: .5; border-color: #c0392b; }

.drag-handle {
  color: #333;
  cursor: grab;
  font-size: .9rem;
  padding: 0 4px;
  line-height: 1;
}

.drag-handle:hover { color: #666; }

.rarete-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.rarete-row-name {
  flex: 1;
  font-size: .88rem;
  font-weight: 700;
  color: #ddd;
}

.rarete-row-meta {
  font-size: .72rem;
  color: #555;
}

/* ─── Category card (upgraded) ─────────────────────────────────────────────── */
.cat-table-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #2a2a2a;
}

.cat-img-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #1a1a1a;
  border: 1px dashed #2a2a2a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #333;
}

.cat-badge-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

/* ─── Utilisateurs enhanced ────────────────────────────────────────────────── */
.user-search-wrap {
  margin-bottom: 16px;
}

.user-search-input {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 14px 10px 36px;
  color: #e0e0e0;
  font-size: .83rem;
  outline: none;
  width: 320px;
  transition: border-color .15s;
}

.user-search-input:focus { border-color: #c0392b; }

.user-search-wrap-inner {
  position: relative;
  display: inline-block;
}

.user-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-size: .9rem;
}

/* User detail modal */
.user-detail-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.user-detail-avatar-wrap {
  text-align: center;
}

.user-detail-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #2a2a2a;
  object-fit: cover;
  display: block;
  margin: 0 auto 10px;
}

.user-detail-avatar-ph {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #2a2a2a;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 10px;
}

.user-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.user-detail-stat {
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  padding: 12px 14px;
}

.user-detail-stat-label {
  font-size: .68rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 600;
}

.user-detail-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.user-detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid #1e1e1e;
  padding-bottom: 0;
}

.user-detail-tab {
  padding: 8px 14px;
  background: none;
  border: none;
  color: #555;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}

.user-detail-tab.active,
.user-detail-tab:hover {
  color: #e74c3c;
  border-bottom-color: #e74c3c;
}

.user-detail-tab-content { display: none; }
.user-detail-tab-content.active { display: block; }

/* ─── Toggle switch ────────────────────────────────────────────────────────── */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #2a2a2a;
  border-radius: 24px;
  transition: .2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #666;
  border-radius: 50%;
  transition: .2s;
}

.toggle-switch input:checked + .toggle-slider { background: rgba(231,76,60,.3); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: #e74c3c; }

/* ─── Servers admin ────────────────────────────────────────────────────────── */
.server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.server-status-dot.online { background: #3fb950; box-shadow: 0 0 6px #3fb95066; }
.server-status-dot.offline { background: #444; }

/* ─── Coin bonus tiers ─────────────────────────────────────────────────────── */
.bonus-tier-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0e0e0e;
  border: 1px solid #1e1e1e;
  border-radius: 8px;
  margin-bottom: 8px;
}

.bonus-tier-row input {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 6px 10px;
  color: #e0e0e0;
  font-size: .82rem;
  outline: none;
  width: 100px;
}

.bonus-tier-row input:focus { border-color: #c0392b; }

/* ─── History tables ────────────────────────────────────────────────────────── */
.history-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.history-filter-bar input,
.history-filter-bar select {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 8px 12px;
  color: #e0e0e0;
  font-size: .82rem;
  outline: none;
}

/* ─── Analytics charts ─────────────────────────────────────────────────────── */
.analytics-chart-card {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.analytics-chart-title {
  font-size: .85rem;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 16px;
}

.analytics-chart-wrap {
  height: 240px;
  position: relative;
}

/* ─── Parrainage config ─────────────────────────────────────────────────────── */
.config-card {
  background: #131313;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.config-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 16px;
}

/* ─── Misc ──────────────────────────────────────────────────────────────────── */
.badge-admin { background: rgba(52,152,219,.15); color: #3498db; }
.badge-blocked { background: rgba(231,76,60,.15); color: #e74c3c; }

.btn-icon {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: .75rem;
  cursor: pointer;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
  color: #aaa;
  transition: all .15s;
}

.btn-icon:hover { border-color: #555; color: #fff; }
.btn-icon.blue:hover { background: rgba(52,152,219,.12); color: #3498db; border-color: #3498db40; }
.btn-icon.red:hover  { background: rgba(231,76,60,.12);  color: #e74c3c; border-color: #e74c3c40; }
.btn-icon.green:hover { background: rgba(46,204,113,.12); color: #2ecc71; border-color: #2ecc7140; }

.text-dim { color: #555; }
.text-muted { color: #888; }
.text-green { color: #3fb950; }
.text-red { color: #e74c3c; }
.text-gold { color: #f1c40f; }
.font-mono { font-family: 'Cascadia Code', 'Fira Code', monospace; }
.fw700 { font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #444;
  font-size: .85rem;
}

.token-display {
  background: #0e0e0e;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Cascadia Code', monospace;
  font-size: .78rem;
  color: #3fb950;
  word-break: break-all;
  margin: 12px 0;
}

/* Sidebar separator */
.sidebar-sep {
  height: 1px;
  background: #1e1e1e;
  margin: 8px 10px;
}

/* ─── Zone Map ────────────────────────────────── */
#zoneMap {
  height: 500px;
  border-radius: 8px;
  border: 1px solid #1e1e1e;
  background: #0a160a;
  /* subtle grid */
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.zone-map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.zone-map-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: .72rem;
  color: #444;
  font-family: 'Courier New', monospace;
}

.zone-map-select {
  background: #0d1117;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .78rem;
  outline: none;
}

.zone-map-img-input {
  background: #0d1117;
  border: 1px solid #2a2a2a;
  color: #e0e0e0;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .78rem;
  outline: none;
  width: 240px;
}

/* Leaflet override for dark theme */
.leaflet-container { background: #0a160a !important; }
.leaflet-control-zoom a { background: #161b22 !important; color: #aaa !important; border-color: #2a2a2a !important; }
.leaflet-control-zoom a:hover { background: #1c2333 !important; color: #fff !important; }

/* Zone markers */
.zone-map-marker {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  pointer-events: all;
}
.zone-map-marker span {
  font-size: 1.4rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8));
}
.zone-map-label {
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.75);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  border: 1px solid rgba(255,255,255,.1);
}
.zone-map-marker.inactive { opacity: 0.4; }
