/* ============================================
   SZERVISOFT – ADMIN PANEL CSS
   Industrial Dark Theme | v1.0
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&family=Lato:wght@300;400;700;900&display=swap');

/* ── CSS VÁLTOZÓK ── */
:root {
  --bg:           #0d0f18;
  --bg-2:         #12151f;
  --bg-3:         #181b28;
  --panel:        #1e2235;
  --panel-2:      #252a3d;
  --border:       #2e3350;
  --border-2:     #3d4466;

  --orange:       #f07621;
  --orange-dk:    #c95e10;
  --orange-lt:    rgba(240,118,33,0.12);
  --orange-glow:  0 0 20px rgba(240,118,33,0.25);

  --green:        #28c840;
  --green-lt:     rgba(40,200,64,0.12);
  --red:          #ff5f57;
  --red-lt:       rgba(255,95,87,0.12);
  --yellow:       #ffbd2e;
  --yellow-lt:    rgba(255,189,46,0.12);
  --blue:         #4d9cf8;
  --blue-lt:      rgba(77,156,248,0.12);
  --purple:       #9b72f8;
  --purple-lt:    rgba(155,114,248,0.12);

  --text:         #e8eaf2;
  --text-muted:   #6b7094;
  --text-dim:     #4a5070;

  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --topbar-h:     64px;
  --sidebar-w:    260px;
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
button { font-family: 'Lato', sans-serif; cursor: pointer; }
input, select, textarea { font-family: 'Lato', sans-serif; }

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

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

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

.logo-mark {
  width: 40px; height: 40px;
  background: var(--orange);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: var(--orange-glow);
}

.logo-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}
.logo-wordmark span { color: var(--orange); }
.logo-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-section {
  padding: 16px 14px 4px;
}

.sidebar-section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 8px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
}

.sidebar-link:hover {
  background: var(--panel);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--orange-lt);
  color: var(--orange);
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.sidebar-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-badge {
  margin-left: auto;
  background: var(--red);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.sidebar-badge.orange { background: var(--orange); }
.sidebar-badge.green  { background: var(--green); }
.sidebar-badge.yellow { background: var(--yellow); color: #1a1000; }

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 14px;
}

.sidebar-footer {
  padding: 14px 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.sidebar-admin-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.admin-avatar {
  width: 32px; height: 32px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif;
}

.admin-info { flex: 1; min-width: 0; }
.admin-name { font-size: 12px; font-weight: 700; color: var(--text); }
.admin-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── MAIN AREA ── */
.main-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ── TOPBAR ── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 90;
  flex-shrink: 0;
}

.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.topbar-breadcrumb strong {
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.topbar-search {
  flex: 1;
  max-width: 380px;
  position: relative;
  margin-left: 20px;
}

.topbar-search input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
}

.topbar-search input::placeholder { color: var(--text-dim); }
.topbar-search input:focus {
  border-color: var(--orange);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--orange-lt);
}

.topbar-search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 14px;
  pointer-events: none;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-notif {
  position: relative;
  width: 36px; height: 36px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
}

.topbar-notif:hover { border-color: var(--orange); }

.notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--bg-2);
}

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

/* ══════════════════════════════════════════
   KÖZÖS KOMPONENSEK
══════════════════════════════════════════ */

/* ── SZEKCIÓ FEJLÉC ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
}

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── GOMBOK ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: 'Lato', sans-serif;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-dk);
  border-color: var(--orange-dk);
  box-shadow: var(--orange-glow);
}

.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-2); background: var(--panel-2); }

.btn-danger {
  background: var(--red-lt);
  color: var(--red);
  border-color: transparent;
}
.btn-danger:hover { background: var(--red); color: white; }

.btn-success {
  background: var(--green-lt);
  color: var(--green);
  border-color: transparent;
}
.btn-success:hover { background: var(--green); color: white; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: var(--radius-xs); }

/* ── KPI KÁRTYÁK ── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--kpi-color, var(--orange));
}

.kpi-card:hover { border-color: var(--border-2); transform: translateY(-2px); }

.kpi-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--kpi-bg, var(--orange-lt));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.kpi-delta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-top: 4px;
  color: var(--text-muted);
}

.kpi-delta.up   { color: var(--green); }
.kpi-delta.down { color: var(--red); }

/* ── TÁBLÁZAT ── */
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.table-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}

.table-search {
  position: relative;
}

.table-search input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 30px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  width: 200px;
  transition: all var(--transition);
  font-family: 'Lato', sans-serif;
}

.table-search input::placeholder { color: var(--text-dim); }
.table-search input:focus { border-color: var(--orange); width: 260px; }

.table-search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 12px;
  pointer-events: none;
}

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

thead {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

thead th:hover { color: var(--orange); }
thead th .sort-arrow { margin-left: 4px; opacity: 0.4; }
thead th.sorted .sort-arrow { opacity: 1; color: var(--orange); }

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

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

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

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
}

.table-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.pagination {
  display: flex;
  gap: 4px;
}

.page-btn {
  width: 30px; height: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: 'JetBrains Mono', monospace;
}

.page-btn:hover, .page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

/* ── STÁTUSZ BADGE-EK ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-active   { background: var(--green-lt);  color: var(--green);  }
.badge-trial    { background: var(--blue-lt);    color: var(--blue);   }
.badge-suspended{ background: var(--red-lt);     color: var(--red);    }
.badge-cancelled{ background: var(--panel-2);    color: var(--text-muted); }
.badge-expired  { background: var(--yellow-lt);  color: var(--yellow); }

.badge-basic    { background: var(--panel-2);    color: var(--text-muted); }
.badge-premium  { background: var(--purple-lt);  color: var(--purple); }
.badge-custom   { background: var(--orange-lt);  color: var(--orange); }

.badge-paid     { background: var(--green-lt);  color: var(--green);  }
.badge-pending  { background: var(--yellow-lt); color: var(--yellow); }
.badge-overdue  { background: var(--red-lt);    color: var(--red);    }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── BÉRLŐ CELL ── */
.tenant-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tenant-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--orange);
}

.tenant-name { font-weight: 700; font-size: 13px; }
.tenant-sub  {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── FORMULÁR ── */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.form-label .req { color: var(--orange); }

.form-input, .form-select, .form-textarea {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  width: 100%;
}

.form-input::placeholder { color: var(--text-dim); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--orange-lt);
}

.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7094' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

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

.form-hint { font-size: 11px; color: var(--text-muted); }
.form-error { font-size: 11px; color: var(--red); }

/* ── KÁRTYA ── */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.card-body { padding: 20px; }

/* ── MODÁL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 10;
}

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
}

.modal-close {
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  transition: all var(--transition);
}

.modal-close:hover { border-color: var(--red); color: var(--red); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Lato', sans-serif;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── ALERT SÁVOK ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-warning { background: var(--yellow-lt); border: 1px solid rgba(255,189,46,0.3); color: var(--yellow); }
.alert-danger  { background: var(--red-lt);    border: 1px solid rgba(255,95,87,0.3);  color: var(--red);    }
.alert-success { background: var(--green-lt);  border: 1px solid rgba(40,200,64,0.3);  color: var(--green);  }
.alert-info    { background: var(--blue-lt);   border: 1px solid rgba(77,156,248,0.3); color: var(--blue);   }

/* ── STATISZTIKA GRAFIKON PLACEHOLDER ── */
.chart-placeholder {
  background: var(--bg-3);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-sm);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px; top: 30px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-content { flex: 1; padding-top: 4px; }
.timeline-title { font-size: 13px; font-weight: 700; color: var(--text); }
.timeline-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── MINI STAT SOR ── */
.mini-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.mini-stat { text-align: center; }
.mini-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.mini-stat-lbl {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── JELMAGYARÁZAT CSÍKOK ── */
.plan-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.plan-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--orange);
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

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

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

.toggle input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: all var(--transition);
}

.toggle input:checked + .toggle-track { background: var(--orange); border-color: var(--orange); }

.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  pointer-events: none;
}

.toggle input:checked ~ .toggle-thumb { transform: translateX(18px); }

/* ── PROGRESS ── */
.progress-bar {
  height: 8px;
  background: var(--bg-3);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--orange);
  transition: width 0.6s ease;
}

/* ── TOOLTIPS (inline info) ── */
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.info-row:last-child { border-bottom: none; }

.info-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.info-val { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }
.info-val.mono { font-family: 'JetBrains Mono', monospace; }
.info-val.orange { color: var(--orange); }

/* ── DB KONZOL ── */
.db-console {
  background: #0a0c14;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #7bf2c0;
  padding: 16px;
  line-height: 1.7;
  overflow-x: auto;
  max-height: 280px;
  overflow-y: auto;
}

.db-console .prompt { color: var(--orange); }
.db-console .cmd    { color: #e8eaf2; }
.db-console .ok     { color: var(--green); }
.db-console .err    { color: var(--red); }
.db-console .info   { color: var(--blue); }

/* ── GRID LAYOUT-OK ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.sidebar-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }

@media (max-width: 1100px) {
  .sidebar-layout { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .page-content { padding: 16px; }
  .sidebar { display: none; }
}

/* ── ANIMÁCIÓK ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.3s ease forwards; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

/* ── FOOTER ── */
.admin-footer {
  border-top: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  background: var(--bg-2);
  flex-shrink: 0;
}
