/* ============================================================
   Velocity Rentals — admin panel stylesheet
   Light workspace + dark sidebar · vanilla CSS
   ============================================================ */

:root {
  --bg: #f1f3f9;
  --surface: #ffffff;
  --border: #e2e6f0;
  --text: #1d2433;
  --muted: #6a7590;
  --sidebar: #141b30;
  --sidebar-2: #1b2440;
  --accent: #f6c945;
  --accent-2: #e8b228;
  --accent-ink: #1d2233;
  --green: #2eb673;
  --red: #e25555;
  --blue: #3f7fe0;
  --purple: #8b6ef2;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(23, 31, 60, 0.08);
  --row-hover: #f7f9fd;
  --thead-bg: #fafbfe;
  --thead-weekend: #f2f4fa;
  --cell-weekend: #fafbfd;
  --cell-border: #edf0f7;
  --input-bg: #fbfcfe;
  --chart-text: #5b6479;
  --chart-axis: #8a93ab;
  --chart-grid: #eef1f7;
  --font: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

/* ------------------------------------------------ dark theme */

[data-theme="dark"] {
  --bg: #0d1322;
  --surface: #161e35;
  --border: #273150;
  --text: #e6eaf6;
  --muted: #8d99b8;
  --green: #4ecf8d;
  --red: #ff7a7a;
  --blue: #6ea2f5;
  --purple: #a98ff7;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --row-hover: #1b2440;
  --thead-bg: #121a30;
  --thead-weekend: #161f3a;
  --cell-weekend: #111931;
  --cell-border: #1e2845;
  --input-bg: #0f1628;
  --chart-text: #aab4cf;
  --chart-axis: #8d99b8;
  --chart-grid: #222c4c;
}
[data-theme="dark"] a:hover { color: #9dc0ff; }
[data-theme="dark"] input[type="date"] { color-scheme: dark; }
[data-theme="dark"] .badge-pending { color: #f0c053; }
[data-theme="dark"] .tab-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-theme="dark"] .tab-pill.active em { background: rgba(0, 0, 0, 0.18); color: var(--accent-ink); }
[data-theme="dark"] .avatar { color: var(--accent); }

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

body.admin-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #2a63bd; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 0.95em; letter-spacing: 0.3px; }
.d-block { display: block; }
.t-right { text-align: right; }
.icon { vertical-align: -3px; flex-shrink: 0; }
.big-money { font-size: 20px; color: var(--green); }

/* ------------------------------------------------ sidebar */

.sidebar {
  background: linear-gradient(180deg, var(--sidebar) 0%, #10162a 100%);
  color: #cdd6ec;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 60;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 22px;
  color: #fff;
  font-size: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-brand b { color: var(--accent); }

.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aab6d4;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 14px;
  border-radius: 10px;
  transition: 0.15s;
}
.sidebar-nav a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-nav a.active { background: rgba(246, 201, 69, 0.14); color: var(--accent); }
.sidebar-nav a.active .icon { color: var(--accent); }

.nav-badge {
  margin-left: auto;
  font-style: normal;
  background: var(--red);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
}

.sidebar-foot { padding: 14px 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sidebar-foot a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8e9bbd;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 10px;
}
.sidebar-foot a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }

/* ------------------------------------------------ shell & topbar */

.admin-shell { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-title { font-size: 19px; letter-spacing: -0.2px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 13.5px; }
.topbar-user { display: flex; align-items: center; gap: 7px; font-weight: 600; color: var(--text); }
.topbar-date { display: flex; align-items: center; gap: 7px; }

.sidebar-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.sidebar-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.admin-main { padding: 26px 28px 48px; display: flex; flex-direction: column; gap: 22px; }

/* ------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 14px var(--font);
  cursor: pointer;
  transition: 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(232, 178, 40, 0.3); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(232, 178, 40, 0.45); color: var(--accent-ink); }

.btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

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

.btn-danger { background: rgba(226, 85, 85, 0.1); color: var(--red); border-color: rgba(226, 85, 85, 0.25); }
.btn-danger:hover { background: var(--red); color: #fff; }

.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; }

/* ------------------------------------------------ badges */

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge-pending   { background: rgba(232, 178, 40, 0.15); color: #a87b0a; }
.badge-confirmed { background: rgba(63, 127, 224, 0.13); color: var(--blue); }
.badge-active    { background: rgba(139, 110, 242, 0.14); color: var(--purple); }
.badge-completed { background: rgba(46, 182, 115, 0.14); color: var(--green); }
.badge-cancelled { background: rgba(226, 85, 85, 0.12); color: var(--red); }

/* ------------------------------------------------ toasts */

.toasts { position: fixed; top: 76px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toast-in 0.3s ease;
}
.toast .icon { margin-top: 2px; }
.toast-success { border-left-color: var(--green); }
.toast-success .icon { color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-error .icon { color: var(--red); }
.toast-close { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }
.toast.hide { opacity: 0; transform: translateX(20px); transition: 0.3s; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }

/* ------------------------------------------------ KPI cards */

.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.kpi-card strong { display: block; font-size: 22px; letter-spacing: -0.5px; }
.kpi-card span { color: var(--muted); font-size: 12.5px; }
.kpi-attention { outline: 2px solid rgba(232, 178, 40, 0.5); outline-offset: -2px; }

.kpi-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-gold   { background: rgba(246, 201, 69, 0.18); color: #a87b0a; }
.kpi-green  { background: rgba(46, 182, 115, 0.14); color: var(--green); }
.kpi-purple { background: rgba(139, 110, 242, 0.14); color: var(--purple); }
.kpi-amber  { background: rgba(232, 178, 40, 0.16); color: #a87b0a; }
.kpi-blue   { background: rgba(63, 127, 224, 0.13); color: var(--blue); }

/* ------------------------------------------------ panels */

.panel-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.panel-grid > .panel { min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.panel-flush { padding: 0; overflow: hidden; }
.panel-flush .cal-hint { padding: 12px 18px; }
.panel-wide { grid-column: span 1; }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.panel-head h2 .icon { color: var(--accent-2); }
.panel-head .muted { font-size: 12.5px; }

.panel-empty { color: var(--muted); text-align: center; padding: 26px 10px; font-size: 14.5px; }
.panel-tip { font-size: 13px; margin-bottom: 14px; }

.donut-legend { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 14px; }
.donut-legend li { display: flex; align-items: center; gap: 9px; }
.donut-legend i { width: 12px; height: 12px; border-radius: 4px; }
.donut-legend strong { margin-left: auto; }

.move-list { list-style: none; display: flex; flex-direction: column; }
.move-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--border); }
.move-list li:last-child { border-bottom: 0; }
.move-list strong { display: block; font-size: 14.5px; }
.move-list .muted { font-size: 12.5px; }

/* ------------------------------------------------ tables */

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table tbody tr:last-child td { border-bottom: 0; }

.car-cell { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.car-cell img { width: 72px; height: 45px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.car-cell strong { display: block; }
.car-cell .muted { font-size: 12.5px; }

.avatar-cell { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 201, 69, 0.2);
  color: #8a6508;
  font-weight: 700;
}

.row-actions { display: inline-flex; gap: 6px; align-items: center; }
.inline-form { display: inline-flex; }

/* ------------------------------------------------ page actions / filters */

.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-actions-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.inline-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-filters input[type="search"] { min-width: 240px; }

.tab-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 600;
}
.tab-pill em { font-style: normal; background: var(--bg); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.tab-pill:hover { color: var(--text); border-color: #c9d2e8; }
.tab-pill.active { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.tab-pill.active em { background: rgba(255, 255, 255, 0.16); color: var(--accent); }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.page-link {
  min-width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
}
.page-link.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ------------------------------------------------ forms */

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="password"], input[type="number"], input[type="search"], input[type="file"], select, textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 13px;
  font: 500 14px var(--font);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(232, 178, 40, 0.18);
}
input[disabled] { background: var(--bg); color: var(--muted); }
textarea { resize: vertical; }
.inline-filters input, .inline-filters select { width: auto; }

.form-group { margin-bottom: 15px; }
.form-group > label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-row .form-group { margin-bottom: 15px; }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
.form-layout { align-items: start; }

.form-errors {
  background: rgba(226, 85, 85, 0.08);
  border: 1px solid rgba(226, 85, 85, 0.3);
  color: #b03737;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
}
.form-errors ul { padding-left: 22px; margin-top: 6px; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.check input { width: 15px; height: 15px; accent-color: var(--accent-2); }

/* ------------------------------------------------ image management */

.img-manage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.img-tile { position: relative; border: 2px solid var(--border); border-radius: 11px; overflow: hidden; }
.img-tile.primary { border-color: var(--accent); }
.img-tile img { aspect-ratio: 8/5; object-fit: cover; width: 100%; }
.img-flag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.img-tile-actions { position: absolute; bottom: 8px; right: 8px; display: flex; gap: 6px; }
.img-tile-actions .btn { backdrop-filter: blur(3px); }

.img-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.img-preview img { aspect-ratio: 8/5; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ------------------------------------------------ reservation view */

.res-view-grid { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.res-car-card img { border-radius: 11px; border: 1px solid var(--border); margin-bottom: 12px; }
.res-car-card h3 { font-size: 16px; }
.res-car-card p { margin: 4px 0 12px; font-size: 13px; }

.kv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv-table th, .kv-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.kv-table tr:last-child th, .kv-table tr:last-child td { border-bottom: 0; }
.kv-table th { color: var(--muted); font-weight: 600; width: 140px; white-space: nowrap; }
.kv-table th .icon { color: var(--accent-2); }

/* ------------------------------------------------ fleet calendar */

.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-month { font-size: 19px; min-width: 170px; text-align: center; }

.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 10px; border-radius: 4px; display: inline-block; }
.lg-pending   { background: #ecbe3f; }
.lg-confirmed { background: #3f7fe0; }
.lg-active    { background: #8b6ef2; }
.lg-completed { background: #9fb2c8; }

.cal-scroll { overflow-x: auto; }
.cal-table { border-collapse: collapse; width: 100%; min-width: 980px; }
.cal-table th, .cal-table td { border: 1px solid var(--cell-border); }
.cal-table thead th { padding: 7px 0 6px; text-align: center; font-size: 11px; color: var(--muted); background: var(--thead-bg); min-width: 26px; }
.cal-table thead th.cal-weekend { background: var(--thead-weekend); }
.cal-table thead th.cal-today { background: rgba(246, 201, 69, 0.25); color: #8a6508; }
.cal-dow { display: block; font-weight: 400; }
.cal-num { font-weight: 700; font-size: 12.5px; }

.cal-table tbody td { height: 38px; padding: 0; position: relative; }
.cal-table tbody td.cal-weekend { background: var(--cell-weekend); }
.cal-table tbody td.cal-today { background: rgba(246, 201, 69, 0.1); }

.cal-car-col {
  min-width: 190px !important;
  padding: 6px 12px !important;
  background: var(--surface) !important;
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 2px solid var(--border) !important;
}
.cal-car-col a { color: var(--text); }
.cal-car-col strong { display: block; font-size: 13.5px; line-height: 1.25; }
.cal-car-col .muted { font-size: 11.5px; }
.cal-flag { color: var(--red); margin-left: 6px; }

.cal-bar { position: absolute; inset: 7px -1px; display: block; opacity: 0.92; }
.cal-bar:hover { opacity: 1; box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18); }
.bar-start { border-radius: 7px 0 0 7px; margin-left: 3px; }
.bar-end { border-radius: 0 7px 7px 0; margin-right: 3px; }
.bar-start.bar-end { border-radius: 7px; }
.res-pending   { background: #ecbe3f; }
.res-confirmed { background: #3f7fe0; }
.res-active    { background: #8b6ef2; }
.res-completed { background: #9fb2c8; }

.cal-hint { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------ login page */

.login-page {
  font-family: var(--font);
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(640px 320px at 80% 10%, rgba(246, 201, 69, 0.14), transparent 60%),
    radial-gradient(520px 300px at 15% 90%, rgba(63, 127, 224, 0.12), transparent 60%),
    #0e1424;
  color: var(--text);
}
.login-card {
  width: min(400px, 100%);
  background: var(--surface);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.login-brand { text-align: center; margin-bottom: 24px; }
.login-brand svg { margin: 0 auto 12px; }
.login-brand h1 { font-size: 23px; }
.login-brand h1 b { color: var(--accent-2); }
.login-brand p { color: var(--muted); font-size: 14px; margin-top: 4px; }

.login-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 85, 85, 0.1);
  color: #b03737;
  font-size: 13.5px;
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 16px;
}
.login-flash-success { background: rgba(46, 182, 115, 0.12); color: #1d7c4e; }

.login-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.login-hint code { background: var(--bg); padding: 2px 7px; border-radius: 5px; font-size: 12px; }
.login-back { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 13.5px; }

/* ------------------------------------------------ responsive */

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .res-view-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body.admin-body { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 250px;
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
  }
  .sidebar.open { transform: none; }
  .sidebar-toggle { display: flex; }
  .admin-main { padding: 18px 16px 40px; }
  .topbar { padding: 0 16px; }
  .topbar-date { display: none; }
  .form-row, .form-row-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-4 { grid-template-columns: 1fr; }
  .img-manage { grid-template-columns: 1fr; }
  .inline-filters input[type="search"] { min-width: 0; }
}

/* ------------------------------------------------ sidebar nav sections */

.nav-section {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: #5f6c8e;
  padding: 14px 14px 4px;
}
.sidebar-nav { overflow-y: auto; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }

/* ------------------------------------------------ topbar theme toggle */

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 9px;
  cursor: pointer;
  transition: 0.15s;
}
.icon-btn:hover { border-color: var(--accent-2); color: var(--accent-2); }
[data-theme="dark"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: none; }
html:not([data-theme="dark"]) .theme-icon-light { display: none; }

/* ------------------------------------------------ stars (shared with public) */

.stars { display: inline-flex; gap: 1.5px; vertical-align: -2px; }
.star { fill: none; stroke: var(--muted); opacity: 0.5; }
.star-on { fill: var(--accent-2); stroke: var(--accent-2); opacity: 1; }
.star-half { fill: var(--accent-2); stroke: var(--accent-2); opacity: 0.5; }

/* ------------------------------------------------ horizontal bars (reports) */

.hbar-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.hbar-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; }
.hbar { height: 9px; background: var(--row-hover); border-radius: 6px; overflow: hidden; }
.hbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; }
.hbar-list .muted { font-size: 12px; }
.kpi-red { background: rgba(226, 85, 85, 0.12); color: var(--red); }

/* ------------------------------------------------ activity log */

.activity-list { list-style: none; display: flex; flex-direction: column; }
.activity-list li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
}
.activity-list li:last-child { border-bottom: 0; }
.act-icon {
  width: 32px; height: 32px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.act-green  { background: rgba(46, 182, 115, 0.14); color: var(--green); }
.act-red    { background: rgba(226, 85, 85, 0.13); color: var(--red); }
.act-blue   { background: rgba(63, 127, 224, 0.13); color: var(--blue); }
.act-purple { background: rgba(139, 110, 242, 0.14); color: var(--purple); }
.act-gold   { background: rgba(232, 178, 40, 0.16); color: #a87b0a; }
.act-gray   { background: var(--row-hover); color: var(--muted); }
[data-theme="dark"] .act-gold { color: var(--accent); }

.act-body { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; }
.act-action {
  font-style: normal;
  font-family: Consolas, monospace;
  font-size: 12px;
  background: var(--row-hover);
  border-radius: 5px;
  padding: 1px 7px;
  margin: 0 4px;
}
.act-details { font-size: 12.5px; }
.act-meta { text-align: right; font-size: 11.5px; display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }

/* ------------------------------------------------ review moderation */

.review-mod-list { display: flex; flex-direction: column; }
.review-mod { padding: 16px 4px; border-bottom: 1px solid var(--border); }
.review-mod:last-child { border-bottom: 0; }
.review-mod-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-mod-head > div { flex: 1; min-width: 200px; }
.review-mod-comment { margin: 10px 0 12px; color: var(--muted); font-size: 14.5px; max-width: 75ch; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(246, 201, 69, 0.2);
  color: #8a6508;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-cell { display: flex; align-items: center; gap: 11px; }

/* ------------------------------------------------ reservation view additions */

.price-breakdown { margin-top: 18px; }
.price-breakdown th { width: auto; }
.res-review-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.res-review-box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; }
.res-review-box h3 .icon { color: var(--accent-2); }
.res-review-box p { margin: 8px 0 12px; }
.payment-form { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }

/* ------------------------------------------------ walk-in extras + settings */

.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.settings-subhead { display: flex; align-items: center; gap: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 18px 0 10px; }
.login-attempt-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; font-size: 13px; }
.login-attempt-list li { display: flex; align-items: center; gap: 10px; }
.login-attempt-list time { margin-left: auto; }
.login-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--green); }
.img-manage-row { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .extras-grid { grid-template-columns: 1fr; }
  .img-manage-row { grid-template-columns: repeat(2, 1fr); }
  .act-meta { display: none; }
}
