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

:root {
  --bg: #141720;
  --surface: #1e2130;
  --border: #2a2f45;
  --accent: #009975;
  --accent-hover: #007a5e;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --radius: 8px;
  --title-color: #e2e8f0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  height: 58px;
  width: auto;
  display: block;
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
}

.header-brand {
  font-size: 32px;
  font-weight: 700;
  color: var(--title-color);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.header-credit-sub {
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0;
  white-space: nowrap;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-user {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.rol-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rol-superadmin { background: #4c1d95; color: #c4b5fd; border: 1px solid #7c3aed; }
.rol-admin      { background: #0d3d4a; color: #a5f3fc; border: 1px solid #22d3ee; }

.header-admin-btn {
  background: #4c1d95;
  color: #c4b5fd;
  border: 1px solid #7c3aed;
}
.header-admin-btn:hover { background: #5b21b6; color: #ddd6fe; }

.header-back-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}
.header-back-btn:hover { color: var(--text); border-color: var(--muted); }

.header-logout-btn {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}
.header-logout-btn:hover { background: #7f1d1d; color: #fca5a5; border-color: var(--red); }

/* Admin page */
.admin-container {
  grid-template-columns: 1fr;
}

.slug-code {
  font-size: 11px;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--green);
}

select.ev-filter-input,
select.admin-select {
  color-scheme: dark;
  width: 100%;
  font-size: 14px;
  padding: 8px 10px;
  cursor: pointer;
}

.site-footer {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  align-items: start;
  gap: 24px;
}

@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card-body { padding: 16px 18px; }

/* Camera cards */
.cam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cam-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.cam-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #111;
  cursor: pointer;
  transition: opacity 0.15s;
}

.cam-thumb:hover { opacity: 0.85; }
.cam-thumb.loading { opacity: 0.5; }

.cam-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cam-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cam-ip { color: var(--muted); font-size: 12px; }

.cam-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 0 12px 10px;
}

.cam-actions .btn,
.cam-actions .cam-refresh-sel {
  padding: 3px 7px;
  font-size: 11px;
}

.cam-add-card {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
  color: var(--muted);
}
.cam-add-card:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  color: var(--accent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
}
.cam-add-icon  { font-size: 28px; line-height: 1; }
.cam-add-label { font-size: 13px; font-weight: 500; }

.cam-actions-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
}
.cam-actions-row .cam-add-card  { flex: 1; min-height: 90px; }
.cam-actions-row .cam-add-icon  { font-size: 22px; }
.cam-actions-row .cam-add-label { font-size: 12px; }

.cam-refresh-sel {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.cam-refresh-sel:hover { background: var(--accent-hover); }
.cam-refresh-sel option { background: var(--surface); color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover:not(:disabled) { background: #16a34a; }
.btn-blue  { background: var(--accent); color: #fff; }
.btn-blue:hover:not(:disabled)  { background: var(--accent-hover); }
.btn-danger { background: #7f1d1d; color: #fca5a5; }
.btn-danger:hover:not(:disabled) { background: var(--red); color: #fff; }
.btn-edit   { background: #1e40af; color: #bfdbfe; }
.btn-edit:hover:not(:disabled)   { background: #1d4ed8; }
.btn-numere { background: #92400e; color: #fde68a; }
.btn-numere:hover:not(:disabled) { background: #b45309; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* Form */
form .field {
  margin-bottom: 12px;
}
form label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
form input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
form input:focus { border-color: var(--accent); }

.modal-body form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.result-box {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  display: none;
}
.result-box.ok { background: #14532d; color: #86efac; border: 1px solid #16a34a; }
.result-box.err { background: #7f1d1d; color: #fca5a5; border: 1px solid var(--red); }
.result-box.warn { background: #78350f; color: #fcd34d; border: 1px solid var(--yellow); }

/* Events table */
.ev-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ev-table th {
  text-align: left;
  padding: 8px 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ev-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.ev-table tr:last-child td { border-bottom: none; }
.ev-table tr:hover td { background: rgba(255,255,255,0.02); }

.plate-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.plate-badge.plate-badge-ok      { background: #14532d; color: #86efac; border: 1px solid #16a34a; }
.plate-badge.plate-badge-warn    { background: #78350f; color: #fde68a; border: 1px solid #f59e0b; }
.plate-badge.plate-badge-unclear { background: #1e3a5f; color: #93c5fd; border: 1px solid #3b82f6; }
.plate-badge, .plate-unknown,
.badge-acces-ok, .badge-acces-nok, .badge-acces-liber { white-space: nowrap; }

.plate-unknown {
  color: var(--muted);
  font-style: italic;
  font-size: 12px;
}

.thumb-ev {
  width: 48px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.ts { color: #e2e8f0; font-size: 13px; }
.cam-tag {
  font-size: 13px;
  color: #e2e8f0;
  background: var(--border);
  border-radius: 4px;
  padding: 1px 6px;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
  font-size: 13px;
}

/* Full-span sections */
.full-span { grid-column: 1 / -1; }

/* Callback URL info */
.callback-info {
  font-family: monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--green);
  margin-top: 12px;
  word-break: break-all;
}

/* Loader spinner */
.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  max-width: 320px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  z-index: 999;
}
#toast.show { opacity: 1; transform: translateY(0); }
#toast.ok { border-color: var(--green); }
#toast.err { border-color: var(--red); }

/* Paginare evenimente */
.ev-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
}
.ev-pag-info { flex: 1; text-align: center; }
.ev-pag-info strong { color: var(--text); }

/* Badge online/offline per cameră */
.cam-status-badge {
  position: absolute; top: 8px; right: 8px;
  font-size: 10px; padding: 2px 7px; border-radius: 10px;
  font-weight: 600; letter-spacing: 0.3px; pointer-events: none;
  border: 1px solid transparent;
}
.cam-online  { background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.cam-offline { background: color-mix(in srgb, var(--red)   15%, transparent); color: var(--red);   border-color: color-mix(in srgb, var(--red)   30%, transparent); }

/* Statistici modal */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  text-align: center;
}
.stat-val { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.stat-lbl { font-size: 11px; color: var(--muted); margin-top: 4px; }
.stat-box.stat-permis  { border-color: color-mix(in srgb, var(--green)  40%, transparent); }
.stat-box.stat-refuzat { border-color: color-mix(in srgb, var(--red)    40%, transparent); }
.stat-box.stat-liber   { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.stat-box.stat-permis  .stat-val { color: var(--green); }
.stat-box.stat-refuzat .stat-val { color: var(--red); }
.stat-box.stat-liber   .stat-val { color: var(--accent); }
.stats-row { font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border); }
.stats-row strong { color: var(--text); }

/* Indicatori releu per eveniment */
.releu-ind  { font-size: 10px; vertical-align: middle; margin-left: 4px; cursor: help; }
.releu-ok   { color: var(--green); }
.releu-sent { color: var(--muted); }
.releu-err  { color: var(--yellow); }

/* Filter panel — evenimente */
.ev-filter-panel {
  display: none;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.ev-filter-panel.open { display: block; }

.ev-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ev-filter-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 4px 8px;
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}
.ev-filter-input:focus { border-color: var(--accent); }

.ev-filter-row + .ev-filter-row { margin-top: 6px; }
.ev-filter-select { width: auto; min-width: 130px; font-size: 12px; padding: 4px 8px; cursor: pointer; }

#ev-filter-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Modal cameră */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.open { display: flex; }

.modal-dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}
.modal-close:hover { color: var(--text); }

.modal-body { padding: 16px 18px; }

.modal-dialog-wide { max-width: 680px; }

tr.numar-inactiv td { opacity: 0.45; }

.numere-table-scroll { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: 6px; }
.numere-table-scroll .ev-table thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; }

.badge-acces-ok    { display:inline-block; background:#14532d; color:#86efac; border:1px solid #16a34a; padding:1px 7px; border-radius:4px; font-size:11px; font-weight:600; }
.badge-acces-nok   { display:inline-block; background:#7f1d1d; color:#fca5a5; border:1px solid #ef4444; padding:1px 7px; border-radius:4px; font-size:11px; font-weight:600; }
.badge-acces-liber { display:inline-block; background:#0d3d4a; color:#a5f3fc; border:1px solid #22d3ee; padding:1px 7px; border-radius:4px; font-size:11px; font-weight:600; }
.scenarii-nota   { font-size:12px; color:var(--muted); margin-bottom:14px; line-height:1.6; }

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; cursor: zoom-out; }
#lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* Camera modal toggle + ev-filter checkbox */
.field-check {
  margin-bottom: 12px;
}
.field-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted, var(--muted));
  cursor: pointer;
}
.field-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}
.ev-filter-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}
.ev-filter-check input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}

/* Tenant tag în header */
.tenant-tag {
  font-size: 11px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
  margin: 0 2px;
  letter-spacing: 0.02em;
}

/* Notă "X numere active" în modalul scenarii */
.lista-nota {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.releu-manual-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.releu-toggle-btn {
  min-width: 64px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.releu-toggle-btn.on  { background: var(--green); color: #fff; }
.releu-toggle-btn.on:hover:not(:disabled)  { background: #16a34a; }
.releu-toggle-btn.off { background: var(--border); color: var(--muted); }
.releu-toggle-btn.off:hover:not(:disabled) { background: #3a3d4a; color: var(--text); }
.releu-toggle-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.releu-toggle-label { font-size: 12px; color: var(--muted); }

/* ── Selector temă ──────────────────────────────────────────────────────── */
.theme-sel-wrap { display: flex; align-items: center; gap: 4px; }
.theme-sel-icon { font-size: 14px; }
.theme-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 22px 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2394a3b8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center;
  background-size: 8px 5px;
  transition: border-color 0.15s, color 0.15s;
}
.theme-select:hover { border-color: var(--accent); color: var(--text); }
.theme-select:focus { outline: none; border-color: var(--accent); }
.theme-select option { background: #1a1d27; color: #e2e8f0; }

/* ── Teme de culoare ─────────────────────────────────────────────────────── */
html.theme-crimson  { --bg:#2d0505; --surface:#3d0808; --border:#6b1212; --title-color:#fecaca; }
html.theme-magenta  { --bg:#2d0528; --surface:#3d0838; --border:#6b1260; --title-color:#f5d0fe; }
html.theme-purple   { --bg:#150528; --surface:#200838; --border:#3d1f70; --title-color:#ddd6fe; }
html.theme-verde    { --bg:#052d10; --surface:#083d18; --border:#126b28; --title-color:#bbf7d0; }
html.theme-midnight { --bg:#05102d; --surface:#08183d; --border:#123060; --title-color:#bfdbfe; }

/* ── Mobile responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-brand {
    font-size: 18px;
  }
  .header-right {
    flex-wrap: wrap;
    gap: 4px;
  }
  .header-user { font-size: 11px; }
  .theme-select { font-size: 11px; padding: 3px 20px 3px 6px; }
  .rol-badge { font-size: 9px; padding: 1px 5px; }
  .container {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 8px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .cam-actions {
    flex-wrap: wrap;
    gap: 4px;
  }
  .cam-actions .btn,
  .cam-actions .cam-refresh-sel {
    font-size: 11px;
  }
  .ev-table th:nth-child(2),
  .ev-table td:nth-child(2),
  .ev-table th:nth-child(4),
  .ev-table td:nth-child(4) {
    display: none;
  }
  .ev-table th,
  .ev-table td {
    font-size: 11px;
    padding: 4px;
  }
}

/* ── Buton ajutor (tur ghidat) ─────────────────────────────────────────────── */
.header-help-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  padding: 0;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}
.header-help-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Intro.js — override temă întunecată ───────────────────────────────────── */
@keyframes lpr-tour-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.introjs-tooltip {
  background: #1e2130 !important;
  color: #f1f5f9 !important;
  border: 1px solid #2a2f45 !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55) !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  max-width: 580px !important;
  width: calc(100vw - 40px) !important;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto !important;
  padding: 26px 30px 20px !important;
  animation: lpr-tour-fadein 0.18s ease-out;
}
.introjs-tooltiptext {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: #f1f5f9 !important;
}
.introjs-tooltip-title {
  color: #f1f5f9 !important;
  font-size: 20px !important;
  font-weight: 700;
}
/* Butoane navigare — prev/next/done stilizate explicit; Skip separat mai jos */
.introjs-prevbutton,
.introjs-nextbutton,
.introjs-donebutton {
  border-radius: 6px !important;
  font-size: 15px !important;
  padding: 8px 20px !important;
  text-shadow: none !important;
}
/* Săgeata nu mai are sens cu tooltip centrat fix */
.introjs-arrow { display: none !important; }
.introjs-prevbutton {
  background: #2a2f45 !important;
  color: #f1f5f9 !important;
  border: 1px solid #3a4060 !important;
}
.introjs-prevbutton:hover,
.introjs-prevbutton:focus {
  background: #3a4060 !important;
  color: #f1f5f9 !important;
}
.introjs-nextbutton,
.introjs-donebutton {
  background: #009975 !important;
  border-color: #007a5e !important;
  color: #fff !important;
}
.introjs-nextbutton:hover,
.introjs-nextbutton:focus,
.introjs-donebutton:hover,
.introjs-donebutton:focus {
  background: #007a5e !important;
  color: #fff !important;
}
/* Skip — doar culoare, fără atingerea poziției/dimensiunii native Intro.js */
.introjs-skipbutton {
  color: #64748b !important;
  background: transparent !important;
}
.introjs-skipbutton:hover,
.introjs-skipbutton:focus {
  color: #ef4444 !important;
  background: transparent !important;
}
.introjs-progress {
  background: #2a2f45 !important;
  height: 4px;
}
.introjs-progressbar {
  background: #009975 !important;
}
.introjs-helperLayer {
  border-radius: 6px;
  box-shadow: rgba(0,0,0,0.5) 0 0 0 9999px, rgba(0,153,117,0.3) 0 0 0 3px !important;
}
/* Selector direct (fără :after) — corect pentru Intro.js v7 */
.introjs-arrow.top    { border-bottom-color: #1e2130 !important; }
.introjs-arrow.bottom { border-top-color: #1e2130 !important; }
.introjs-arrow.left   { border-right-color: #1e2130 !important; }
.introjs-arrow.right  { border-left-color: #1e2130 !important; }
