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

:root {
  --navy: #0f1624;
  --navy2: #1a2540;
  --navy3: #232f4b;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: #9a7a32;
  --text: #e8eaf0;
  --text-dim: #8a94aa;
  --border: #2e3d5c;
  --green: #27ae60;
  --red: #e74c3c;
  --orange: #e67e22;
  --blue: #2980b9;
  --purple: #8e44ad;
  --teal: #16a085;
  --card: #1e2d47;
  --input-bg: #151f33;
  --hover: #263550;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  display: flex;
  flex-direction: column;
}

/* ── LOGIN ── */
body.login-page {
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2540 60%, #0d1829 100%);
}

a.back-btn { text-decoration: none; }
a.menu-card { text-decoration: none; color: inherit; }

.login-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  padding: 48px 48px 40px;
  width: 380px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.login-logo h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.login-logo p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select option { background: var(--navy2); }

.form-group textarea { resize: vertical; min-height: 80px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gold);
  color: #0a0f1e;
  width: 100%;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: var(--navy3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--hover); border-color: var(--gold-dim); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #219a52; }

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

.btn-warning { background: var(--orange); color: #fff; }
.btn-warning:hover { background: #d35400; }

.btn-info { background: var(--blue); color: #fff; }
.btn-info:hover { background: #2471a3; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--hover); color: var(--text); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

.login-error {
  background: rgba(231,76,60,0.15);
  border: 1px solid rgba(231,76,60,0.4);
  color: #e74c3c;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy2);
  border-bottom: 2px solid var(--gold);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

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

.topbar-brand .brand-icon { font-size: 26px; }

.topbar-brand .brand-text h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.topbar-brand .brand-text p {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
}

.user-badge .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.user-badge .user-info p { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-badge .user-info span { font-size: 11px; color: var(--text-dim); }

.datetime-display { text-align: right; }
.datetime-display .time { font-size: 18px; font-weight: 700; color: var(--gold); line-height: 1; }
.datetime-display .date { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── TABS ── */
.tabs {
  display: flex;
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.tab {
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-dim);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab:hover:not(.disabled) { color: var(--text); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tab .tab-badge {
  background: var(--border);
  color: var(--text-dim);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* ── CONTENT AREA ── */
.content {
  flex: 1;
  padding: 28px 28px;
  overflow-y: auto;
}

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

.page-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-btn {
  background: var(--navy3);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}

.back-btn:hover { background: var(--hover); color: var(--text); border-color: var(--gold-dim); }

.page-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.page-title p {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ── MENU GRID ── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.menu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  gap: 14px;
}

.menu-card:hover {
  border-color: var(--gold);
  background: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.12);
}

.menu-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.menu-card .menu-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── CARD / PANEL ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-auto { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

table thead th {
  background: var(--navy3);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

table tbody tr:hover { background: var(--hover); }
table tbody tr:last-child { border-bottom: none; }

table tbody td {
  padding: 12px 16px;
  color: var(--text);
  font-size: 13px;
  vertical-align: middle;
}

/* ── BADGES ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-green { background: rgba(39,174,96,0.15); color: #2ecc71; }
.badge-red { background: rgba(231,76,60,0.15); color: #e74c3c; }
.badge-orange { background: rgba(230,126,34,0.15); color: #e67e22; }
.badge-blue { background: rgba(41,128,185,0.15); color: #3498db; }
.badge-gold { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-purple { background: rgba(142,68,173,0.15); color: #9b59b6; }
.badge-teal { background: rgba(22,160,133,0.15); color: #1abc9c; }
.badge-gray { background: rgba(100,116,139,0.15); color: #94a3b8; }

/* ── STAT CARD ── */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-info .stat-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-info .stat-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}

/* ── MEMBER LOOKUP ── */
.lookup-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lookup-bar input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.lookup-bar input:focus { border-color: var(--gold); }

/* ── MEMBER INFO CARD ── */
.member-info-bar {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.member-info-bar .member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.member-field { text-align: center; }
.member-field .mf-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 3px; }
.member-field .mf-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ── PROGRESS BAR ── */
.progress-bar-wrap { background: var(--navy); border-radius: 6px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 6px; }

/* ── RANK BADGE ── */
.rank-1 { background: linear-gradient(135deg, #f6d365, #fda085); color: #6b3a00; font-weight: 800; }
.rank-2 { background: linear-gradient(135deg, #d0d0d0, #a8a8a8); color: #333; font-weight: 800; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #a05a2c); color: #fff; font-weight: 800; }

.rank-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--navy3);
  color: var(--text-dim);
}

/* ── SECTION TITLE ── */
.section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ── FORM ROW ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.full-width { grid-column: 1 / -1; }

/* ── ALERT ── */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-warning { background: rgba(230,126,34,0.15); border: 1px solid rgba(230,126,34,0.35); color: #e67e22; }
.alert-info { background: rgba(41,128,185,0.15); border: 1px solid rgba(41,128,185,0.35); color: #3498db; }
.alert-danger { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.35); color: #e74c3c; }
.alert-success { background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.35); color: #27ae60; }

/* ── ACK ITEM ── */
.ack-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
}

.ack-item:hover { border-color: var(--gold-dim); }
.ack-item.acknowledged { opacity: 0.6; }

.ack-item .ack-icon { font-size: 22px; flex-shrink: 0; }
.ack-item .ack-content { flex: 1; }
.ack-item .ack-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ack-item .ack-meta { font-size: 12px; color: var(--text-dim); }

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

.toggle {
  position: relative;
  width: 42px;
  height: 22px;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle input:checked + .toggle-slider { background: var(--green); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── CAMPAIGN ── */
.campaign-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}

.campaign-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.campaign-card-header h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.campaign-card-header p { font-size: 12px; color: var(--text-dim); }

.campaign-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.campaign-metric { text-align: center; }
.campaign-metric .cm-value { font-size: 20px; font-weight: 700; }
.campaign-metric .cm-label { font-size: 10px; color: var(--text-dim); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--navy2);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 10px;
  width: 480px;
  max-width: 95vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { cursor: pointer; color: var(--text-dim); font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.pagination-btns { display: flex; gap: 6px; }
.page-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--navy3);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.page-btn:hover { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #0a0f1e; border-color: var(--gold); font-weight: 700; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ── UTILITIES ── */
.text-gold { color: var(--gold); }
.text-dim { color: var(--text-dim); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.fw-700 { font-weight: 700; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.ml-auto { margin-left: auto; }

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
}

.filter-bar input:focus, .filter-bar select:focus { border-color: var(--gold); }
.filter-bar input { width: 220px; }

/* ═══════════════════════════════════════════════════════════════
   FLOOR MAP
   ═══════════════════════════════════════════════════════════════ */
.floor-selector { display: flex; gap: 4px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.floor-btn { padding: 6px 14px; border: none; background: none; color: var(--text-dim); font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.floor-btn.active { background: var(--gold); color: #1a1a2e; }
.floor-btn:hover:not(.active) { color: var(--text); }

.map-legend { display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.legend-item { display: flex; align-items: center; gap: 6px; color: var(--text-dim); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.legend-separator { color: var(--border); }
.legend-count { color: var(--text); }

.floor-map-container { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; position: relative; }
.floor-map-viewport { width: 100%; height: 520px; overflow: auto; cursor: grab; position: relative; }
.floor-map-viewport:active { cursor: grabbing; }
.floor-map-canvas { position: relative; width: 920px; height: 500px; min-width: 920px; min-height: 500px; transition: transform 0.3s; transform-origin: 0 0; }

.map-zone { position: absolute; background: rgba(201,168,76,0.06); border: 1px solid var(--border); border-radius: 10px; padding: 10px; cursor: pointer; transition: all 0.2s; }
.map-zone:hover { border-color: var(--gold); box-shadow: 0 0 16px rgba(201,168,76,0.15); }
.map-zone-service { background: rgba(41,128,185,0.06); }
.zone-header { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.zone-tables { display: grid; grid-template-columns: repeat(auto-fill, 28px); gap: 4px; margin-bottom: 8px; }
.zone-footer { display: flex; gap: 12px; }
.zone-stat { font-size: 11px; color: var(--text-dim); }

.table-dot { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; cursor: pointer; position: relative; }
.table-dot.active { background: #27ae60; }
.table-dot.reserved { background: #f39c12; }
.table-dot.maintenance { background: #e74c3c; }
.table-dot.closed { background: #555; }
.table-dot:hover { transform: scale(1.15); z-index: 2; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, 10px); gap: 3px; }
.slot-dot { width: 10px; height: 10px; border-radius: 2px; background: #27ae60; }
.slot-dot.inactive { background: #555; }

.zone-detail-panel { position: fixed; right: -400px; top: 0; width: 380px; height: 100vh; background: var(--card-bg); border-left: 1px solid var(--border); z-index: 100; transition: right 0.3s; overflow-y: auto; padding: 20px; box-shadow: -4px 0 24px rgba(0,0,0,0.3); }
.zone-detail-panel.open { right: 0; }
.zone-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.zone-detail-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.zone-detail-stat { background: var(--bg); border-radius: 8px; padding: 10px; text-align: center; }
.zone-detail-stat .zd-value { font-size: 18px; font-weight: 700; color: var(--gold); }
.zone-detail-stat .zd-label { font-size: 11px; color: var(--text-dim); }
.zone-detail-table-list { display: flex; flex-direction: column; gap: 6px; }
.zone-detail-table-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; background: var(--bg); font-size: 13px; }

.map-tooltip { position: fixed; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text); z-index: 200; pointer-events: none; display: none; box-shadow: 0 4px 12px rgba(0,0,0,0.3); max-width: 200px; }

/* ═══════════════════════════════════════════════════════════════
   CONTEXT MENU
   ═══════════════════════════════════════════════════════════════ */
.context-menu { position: fixed; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; z-index: 300; display: none; min-width: 180px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.context-menu.show { display: block; }
.context-menu-item { padding: 8px 16px; font-size: 13px; color: var(--text); cursor: pointer; transition: background 0.15s; }
.context-menu-item:hover { background: rgba(201,168,76,0.1); }
.context-menu-danger { color: var(--red); }
.context-menu-danger:hover { background: rgba(231,76,60,0.1); }
.context-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════════
   AUDIT LOG
   ═══════════════════════════════════════════════════════════════ */
.date-range-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.date-range-picker { position: relative; }
.date-range-trigger { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.date-range-trigger:hover { border-color: var(--gold); }
.date-range-dropdown { position: absolute; top: calc(100% + 6px); left: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; z-index: 50; display: none; min-width: 240px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.date-range-dropdown.open { display: block; }
.date-range-presets { display: flex; flex-direction: column; gap: 4px; }
.date-preset { padding: 8px 12px; border: none; background: none; color: var(--text-dim); text-align: left; font-size: 13px; border-radius: 6px; cursor: pointer; }
.date-preset:hover { background: rgba(201,168,76,0.1); color: var(--text); }
.date-preset.active { background: rgba(201,168,76,0.15); color: var(--gold); font-weight: 600; }
.date-custom-range { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

.multi-select-filter { position: relative; }
.filter-chip-trigger { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; cursor: pointer; }
.filter-chip-trigger:hover { border-color: var(--gold); }
.chip-count { background: var(--gold); color: #1a1a2e; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; }
.filter-chip-dropdown { position: absolute; top: calc(100% + 6px); left: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px; z-index: 50; display: none; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.filter-chip-dropdown.open { display: block; }
.filter-chip-search { margin-bottom: 8px; }
.filter-chip-search input { width: 100%; padding: 6px 10px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; }
.filter-chip-options { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.filter-chip-option { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 13px; color: var(--text); border-radius: 4px; cursor: pointer; }
.filter-chip-option:hover { background: rgba(201,168,76,0.08); }
.filter-chip-option input[type="checkbox"] { accent-color: var(--gold); }
.filter-chip-actions { display: flex; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }

.severity-toggles { display: flex; gap: 4px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.severity-btn { padding: 6px 12px; border: none; background: none; color: var(--text-dim); font-size: 12px; border-radius: 6px; cursor: pointer; }
.severity-btn.active { background: rgba(201,168,76,0.15); color: var(--gold); font-weight: 600; }

.active-filters { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.active-filters-label { font-size: 12px; color: var(--text-dim); }
.filter-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tag { display: flex; align-items: center; gap: 4px; padding: 4px 10px; background: rgba(201,168,76,0.12); border-radius: 12px; font-size: 12px; color: var(--gold); }
.filter-tag-remove { cursor: pointer; font-size: 14px; line-height: 1; }

.audit-log-list { display: flex; flex-direction: column; }
.audit-entry { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.audit-entry:hover { background: rgba(201,168,76,0.04); }
.audit-entry-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.audit-entry-body { flex: 1; }
.audit-entry-action { font-size: 14px; font-weight: 600; color: var(--text); }
.audit-entry-detail { font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.audit-entry-meta { display: flex; gap: 12px; margin-top: 4px; font-size: 12px; color: var(--text-dim); }
.audit-severity-info .audit-entry-icon { background: rgba(41,128,185,0.15); }
.audit-severity-warning .audit-entry-icon { background: rgba(243,156,18,0.15); }
.audit-severity-critical .audit-entry-icon { background: rgba(231,76,60,0.15); }

.infinite-scroll-sentinel { padding: 20px; text-align: center; }
.loading-spinner { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-dim); font-size: 13px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.audit-log-end { text-align: center; padding: 20px; color: var(--text-dim); font-size: 13px; }

/* ═══════════════════════════════════════════════════════════════
   SHIFT HANDOVER / WIZARD
   ═══════════════════════════════════════════════════════════════ */
.wizard-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 24px; padding: 20px 0; }
.wizard-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wizard-step-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-dim); transition: all 0.3s; }
.wizard-step.active .wizard-step-circle { background: var(--gold); border-color: var(--gold); color: #1a1a2e; }
.wizard-step.completed .wizard-step-circle { background: #27ae60; border-color: #27ae60; color: #fff; }
.wizard-step-label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.wizard-step.active .wizard-step-label { color: var(--gold); }
.wizard-step.completed .wizard-step-label { color: #27ae60; }
.wizard-step-connector { width: 60px; height: 2px; background: var(--border); margin-bottom: 20px; }
.wizard-step.completed + .wizard-step-connector { background: #27ae60; }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; margin-top: 16px; }
.wizard-step-indicator { font-size: 13px; color: var(--text-dim); }

.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); transition: all 0.2s; }
.radio-label:has(input:checked) { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.radio-label input[type="radio"] { accent-color: var(--gold); }

.checklist { display: flex; flex-direction: column; gap: 6px; }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--border); font-size: 14px; }
.checklist-item input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }

.range-slider-group { padding: 8px 0; }
.range-slider { width: 100%; accent-color: var(--gold); }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.range-value { font-size: 18px; font-weight: 700; color: var(--gold); }

.incident-list { display: flex; flex-direction: column; gap: 10px; }
.incident-item { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); transition: all 0.2s; }
.incident-item:hover { border-color: var(--gold); }
.incident-item.dragging { opacity: 0.5; }
.incident-drag-handle { cursor: grab; color: var(--text-dim); font-size: 16px; user-select: none; display: flex; align-items: center; }
.incident-severity { flex-shrink: 0; }
.severity-select { padding: 4px 8px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; }
.incident-body { flex: 1; min-width: 0; }
.incident-title { font-size: 14px; font-weight: 600; color: var(--text); padding: 2px 4px; border-radius: 4px; outline: none; }
.incident-title:focus { background: rgba(201,168,76,0.08); }
.incident-description { font-size: 13px; color: var(--text-dim); margin-top: 4px; padding: 2px 4px; border-radius: 4px; outline: none; line-height: 1.5; }
.incident-description:focus { background: rgba(201,168,76,0.08); }
.incident-meta { display: flex; gap: 10px; margin-top: 6px; }
.incident-time { font-size: 11px; color: var(--text-dim); }
.incident-tag { font-size: 11px; background: rgba(201,168,76,0.12); color: var(--gold); padding: 2px 8px; border-radius: 10px; }

.rich-editor { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.rich-toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 10px; background: var(--bg); border-bottom: 1px solid var(--border); }
.rich-btn { width: 30px; height: 30px; border: none; background: none; color: var(--text); border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rich-btn:hover { background: rgba(201,168,76,0.12); }
.rich-btn.active { background: rgba(201,168,76,0.2); color: var(--gold); }
.rich-separator { color: var(--border); font-size: 18px; margin: 0 4px; }
.rich-content { min-height: 120px; padding: 12px 16px; color: var(--text); font-size: 14px; line-height: 1.7; outline: none; }
.rich-content:empty::before { content: attr(data-placeholder); color: var(--text-dim); }
.rich-content ul, .rich-content ol { padding-left: 20px; }

.file-upload-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 32px; text-align: center; color: var(--text-dim); transition: all 0.2s; }
.file-upload-zone:hover, .file-upload-zone.dragover { border-color: var(--gold); background: rgba(201,168,76,0.04); }
.file-upload-icon { font-size: 36px; margin-bottom: 8px; }
.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; }
.file-icon { font-size: 20px; }
.file-info { flex: 1; }
.file-name { font-size: 13px; font-weight: 600; color: var(--text); }
.file-size { font-size: 11px; color: var(--text-dim); }
.file-progress { width: 120px; }

.otp-input-group { display: flex; align-items: center; gap: 8px; }
.otp-input { width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; background: var(--input-bg); border: 2px solid var(--border); border-radius: 8px; color: var(--text); transition: border-color 0.2s; }
.otp-input:focus { border-color: var(--gold); outline: none; }
.otp-separator { font-size: 20px; color: var(--text-dim); }

.signature-wrapper { position: relative; }
.signature-wrapper canvas { width: 100%; border: 1px solid var(--border); border-radius: 8px; background: rgba(255,255,255,0.05); cursor: crosshair; display: block; }
.signature-wrapper .btn { position: absolute; top: 8px; right: 8px; }

.custom-checkbox { width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text); }
.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-label input[type="checkbox"]:checked + .custom-checkbox { background: var(--gold); border-color: var(--gold); }
.checkbox-label input[type="checkbox"]:checked + .custom-checkbox::after { content: '✓'; color: #1a1a2e; font-size: 12px; font-weight: 700; }

.handover-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-top: 16px; }
.handover-summary h4 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-dim); }
.summary-value { color: var(--text); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   TABLE MANAGEMENT
   ═══════════════════════════════════════════════════════════════ */
.game-type-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; width: fit-content; }
.game-tab { padding: 8px 16px; border: none; background: none; color: var(--text-dim); font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; }
.game-tab.active { background: var(--gold); color: #1a1a2e; }
.game-tab:hover:not(.active) { color: var(--text); }

.view-toggle { display: flex; gap: 2px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 6px; padding: 2px; }
.view-btn { padding: 5px 10px; border: none; background: none; color: var(--text-dim); font-size: 13px; border-radius: 4px; cursor: pointer; }
.view-btn.active { background: var(--gold); color: #1a1a2e; }

.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.table-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; transition: all 0.2s; position: relative; user-select: none; }
.table-card:hover { border-color: var(--gold); box-shadow: 0 4px 16px rgba(201,168,76,0.1); }
.table-card.dragging { opacity: 0.4; }
.table-card-id { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.table-card-game { font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.table-card-status { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.table-card-dot { width: 8px; height: 8px; border-radius: 50%; }
.table-card-dealer { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.table-card-revenue { font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 4px; }
.table-card-players { position: absolute; top: 10px; right: 10px; font-size: 11px; color: var(--text-dim); }

.bulk-actions { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(201,168,76,0.08); border-radius: 8px; margin-top: 12px; font-size: 13px; color: var(--text); }

.combobox { position: relative; }
.combobox-list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; z-index: 50; display: none; max-height: 200px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.combobox-list.open { display: block; }
.combobox-option { padding: 8px 12px; font-size: 13px; color: var(--text); cursor: pointer; }
.combobox-option:hover, .combobox-option.highlighted { background: rgba(201,168,76,0.1); }

.status-radio-cards { display: flex; gap: 8px; }
.status-card { cursor: pointer; }
.status-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.status-card-body { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text); transition: all 0.2s; }
.status-card input:checked + .status-card-body { border-color: var(--gold); background: rgba(201,168,76,0.08); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ═══════════════════════════════════════════════════════════════
   REPORTS & ANALYTICS
   ═══════════════════════════════════════════════════════════════ */
.report-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.segmented-control { display: flex; gap: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 3px; }
.segment { padding: 8px 16px; border: none; background: none; color: var(--text-dim); font-size: 13px; font-weight: 500; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.segment.active { background: var(--gold); color: #1a1a2e; }
.segment:hover:not(.active) { color: var(--text); }

.report-compare { display: flex; align-items: center; gap: 8px; }
.toggle-switch { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 22px; cursor: pointer; transition: 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.3s; }
.toggle-switch input:checked + .toggle-slider { background: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

.stat-trend { font-size: 12px; margin-top: 4px; }
.trend-up { color: #27ae60; }
.trend-down { color: #e74c3c; }

.sparkline { display: block; }

.report-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.chart-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.chart-header h3 { font-size: 15px; font-weight: 600; }
.chart-type-toggle { display: flex; gap: 2px; background: var(--bg); border-radius: 6px; padding: 2px; }
.chart-btn { padding: 4px 10px; border: none; background: none; color: var(--text-dim); font-size: 12px; border-radius: 4px; cursor: pointer; }
.chart-btn.active { background: var(--gold); color: #1a1a2e; }

.inline-sparkline { vertical-align: middle; }

.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px 0; z-index: 50; display: none; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.dropdown-menu.open { display: block; }
.dropdown-item { padding: 8px 16px; font-size: 13px; color: var(--text); cursor: pointer; position: relative; }
.dropdown-item:hover { background: rgba(201,168,76,0.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
.dropdown-has-sub { position: relative; }
.dropdown-submenu { position: absolute; left: 100%; top: -6px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 6px 0; min-width: 140px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.dropdown-has-sub:hover .dropdown-submenu { display: block; }

.table-search { padding: 6px 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 13px; width: 180px; }
.sort-icon { cursor: pointer; color: var(--text-dim); font-size: 12px; margin-left: 4px; }
.sort-icon:hover { color: var(--gold); }
.table-total td { border-top: 2px solid var(--border); background: rgba(201,168,76,0.04); }

.resizable { position: relative; }
.resizable::after { content: ''; position: absolute; right: 0; top: 25%; height: 50%; width: 3px; cursor: col-resize; }

/* ═══════════════════════════════════════════════════════════════
   SHADOW DOM — Zone Picker web component
   ═══════════════════════════════════════════════════════════════ */
zone-picker { display: block; }

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 400px;
  width: 100%;
}
.toast-container.top-right    { top: 20px; right: 20px; }
.toast-container.top-left     { top: 20px; left: 20px; }
.toast-container.bottom-right { bottom: 20px; right: 20px; }
.toast-container.bottom-left  { bottom: 20px; left: 20px; }
.toast-container.top-center   { top: 20px; left: 50%; transform: translateX(-50%); }
.toast-container.bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); }

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  min-width: 300px;
  max-width: 400px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  overflow: hidden;
}
.toast-container.top-left .toast,
.toast-container.bottom-left .toast {
  transform: translateX(-40px);
}
.toast-container.top-center .toast,
.toast-container.bottom-center .toast {
  transform: translateY(-20px);
}
.toast.toast-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}
.toast.toast-dismissing {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast-container.top-left .toast.toast-dismissing,
.toast-container.bottom-left .toast.toast-dismissing {
  transform: translateX(-40px);
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
}

.toast-message {
  font-size: 12px;
  color: var(--text-dim);
  word-wrap: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast-close:hover { color: var(--text); }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 10px 10px;
  transition: width linear;
}

/* Toast type accents */
.toast-success { border-left: 4px solid var(--green); }
.toast-success .toast-title { color: var(--green); }
.toast-success .toast-progress { background: var(--green); }

.toast-error { border-left: 4px solid var(--red); }
.toast-error .toast-title { color: var(--red); }
.toast-error .toast-progress { background: var(--red); }

.toast-warning { border-left: 4px solid var(--orange); }
.toast-warning .toast-title { color: var(--orange); }
.toast-warning .toast-progress { background: var(--orange); }

.toast-info { border-left: 4px solid var(--blue); }
.toast-info .toast-title { color: var(--blue); }
.toast-info .toast-progress { background: var(--blue); }

.toast-system { border-left: 4px solid var(--purple); }
.toast-system .toast-title { color: var(--purple); }
.toast-system .toast-progress { background: var(--purple); }

/* Toast action buttons */
.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.toast-actions .toast-btn {
  padding: 4px 12px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--navy3);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.toast-actions .toast-btn:hover {
  background: var(--hover);
  border-color: var(--gold-dim);
}
.toast-actions .toast-btn-primary {
  background: var(--gold);
  color: #1a1a2e;
  border-color: var(--gold);
}
.toast-actions .toast-btn-primary:hover {
  background: var(--gold-light);
}

/* Notification bell */
.notification-bell {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.notification-bell:hover { background: rgba(201,168,76,0.12); }
.notification-bell .bell-badge {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .campaign-metrics { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .report-charts { grid-template-columns: 1fr; }
  .form-row-2col { grid-template-columns: 1fr; }
}
