@charset "UTF-8";
/* CarHospital design system.
   Concept: a precision workshop. Signal-orange accent borrowed from
   dashboard warning lights, cool slate neutrals, generous structure.
   Light and dark themes via [data-theme]. All colors are tokens. */

:root {
  /* Palette — light theme */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #eef0f4;
  --border: #dde1e8;
  --text: #161a20;
  --text-muted: #5b6472;
  --accent: #ff5a1f;          /* signal orange */
  --accent-hover: #e6480f;
  --accent-soft: #fff1ea;
  --success: #1f9d57;
  --danger: #d63a3a;
  --warning: #e8a317;
  --ring: rgba(255, 90, 31, 0.35);

  /* Typography */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* Radii + shadow */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(16,26,32,.06), 0 8px 24px rgba(16,26,32,.06);
  --shadow-lg: 0 12px 40px rgba(16,26,32,.12);

  /* Layout */
  --max: 1180px;
  --nav-h: 68px;
}

[data-theme="dark"] {
  --bg: #0d1014;
  --surface: #151a21;
  --surface-2: #1c232c;
  --border: #283039;
  --text: #eef1f5;
  --text-muted: #97a1ae;
  --accent: #ff6a33;
  --accent-hover: #ff7d4d;
  --accent-soft: #2a1a12;
  --ring: rgba(255, 106, 51, 0.4);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 15px; }

/* ---------- Top navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; gap: 24px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }
.site-logo { width: auto; object-fit: contain; display: block; }
.brand .pulse, .nav-drawer-brand .pulse, .mech-brand .pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--ring); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--ring); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm); color: var(--text-muted);
  font-size: .94rem; font-weight: 500; transition: all .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--accent); background: var(--accent-soft); }

/* "Manage" group: a dropdown on desktop that bundles staff/admin entry points. */
.nav-group { position: relative; }
.nav-group-toggle {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
  border: none; background: none; cursor: pointer; border-radius: var(--radius-sm);
  color: var(--text-muted); font-size: .94rem; font-weight: 500;
  font-family: inherit; transition: all .15s ease;
}
.nav-group-toggle:hover { color: var(--text); background: var(--surface-2); }
.nav-group.active .nav-group-toggle { color: var(--accent); background: var(--accent-soft); }
.nav-group-caret { font-size: .7rem; transition: transform .15s ease; }
.nav-group.open .nav-group-caret { transform: rotate(180deg); }
.nav-group-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 200px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; z-index: 60;
}
.nav-group.open .nav-group-menu { display: block; }
.nav-group-menu a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-size: .92rem; font-weight: 500; white-space: nowrap;
}
.nav-group-menu a:hover { background: var(--surface-2); color: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ---------- Icon buttons (theme/lang) ---------- */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-muted); border-radius: var(--radius-sm);
  cursor: pointer; font-size: .85rem; font-weight: 600; transition: all .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: transform .08s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 6px 18px var(--ring); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--border); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
/* Pay button: distinct success-green so it stands apart from the accent PDF button. */
.btn-pay { background: var(--success); color: #fff; }
.btn-pay:hover { background: color-mix(in srgb, var(--success) 86%, #000); box-shadow: 0 6px 18px color-mix(in srgb, var(--success) 35%, transparent); }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.card-pad-lg { padding: 32px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Account page: account+security stacked on the left, notification prefs on the
   right; stacks on mobile. Lives here (not portal.css) so it works in every
   layout — customer, panel, and mechanic account pages all use it. */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.profile-col { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 760px) {
  .profile-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 7px; }
.input, select.input, textarea.input {
  width: 100%; height: 44px; padding: 0 14px; font-size: .95rem; font-family: var(--font-body);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border .15s ease, box-shadow .15s ease;
}
textarea.input { height: auto; padding: 12px 14px; min-height: 110px; resize: vertical; }
/* Small input/select — matches .btn-sm (36px). Specific enough to beat select.input. */
.input.input-sm, select.input.input-sm, input.input.input-sm { height: 36px; padding: 0 10px; font-size: .85rem; }
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring);
}
.input-group { position: relative; }
.input-group .toggle-pw {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; color: var(--text-muted);
  height: 36px; width: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.input-group .toggle-pw:hover { background: var(--surface-2); color: var(--text); }

/* Password strength meter */
.pw-meter { height: 6px; border-radius: 99px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.pw-meter > span { display: block; height: 100%; width: 0; transition: width .25s ease, background .25s ease; }
.pw-label { font-size: .78rem; margin-top: 5px; color: var(--text-muted); }

/* ---------- Auth split layout ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside {
  background: linear-gradient(155deg, #161a20 0%, #20262f 60%, #283039 100%);
  color: #fff; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; right: -120px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%); opacity: .35;
}
.auth-aside-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 1; }
.auth-aside-mid { position: relative; z-index: 1; }
.auth-aside .brand { color: #fff; font-size: 1.4rem; }
.auth-aside h2 { font-size: 2.3rem; line-height: 1.12; margin: 0 0 14px; max-width: 15ch; }
.auth-aside p { color: #aeb6c2; max-width: 40ch; margin: 0 0 26px; line-height: 1.6; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: #d6dbe2; font-size: .96rem; }
.auth-points .ap-ico {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 90%, white 0%); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
}
.auth-aside-foot { position: relative; z-index: 1; color: #6b7480; font-size: .82rem; }
/* The switchers sit on the dark aside, so lighten their controls. */
.auth-switchers { display: flex; gap: 8px; }
/* The aside is always dark, so style the controls for a dark surface in
   both light and dark site themes: translucent fill, light text/border. */
.auth-switchers .icon-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  color: #e6e9ee;
}
.auth-switchers .icon-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}
/* Dropdown menus on the aside keep the normal surface so they're readable. */
.auth-switchers .dropdown-menu { color: var(--text); }

.auth-main {
  display: flex; align-items: center; justify-content: center; padding: 40px;
  background: var(--bg);
}
.auth-card {
  width: 100%; max-width: 606px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 38px 34px;
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); margin-bottom: 28px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--text-muted); }
.auth-foot a { color: var(--accent); font-weight: 600; }
/* Remember-me row + small link under the password field. */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.checkbox-line { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text); cursor: pointer; user-select: none; }
.checkbox-line input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.auth-link-sm { font-size: .88rem; color: var(--accent); font-weight: 500; white-space: nowrap; }

/* ---------- Flash messages ---------- */
.flash { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; font-weight: 500; border: 1px solid transparent; }
.flashes { display: flex; flex-direction: column; gap: 10px; margin: 40px 0 0; }
.flashes:empty { margin: 0; }
.flash.success { background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.flash.error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.flash.info { background: color-mix(in srgb, #3b82f6 12%, transparent); color: #2563eb; border-color: color-mix(in srgb, #3b82f6 30%, transparent); }

/* ---------- Page shell ---------- */
.page { padding: 20px 0 40px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.9rem; }
/* Header action buttons — shared by .page-head (portal) and .head-row (panel). */
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ---------- Stat tiles ---------- */
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; }
.stat .lbl { font-size: .85rem; color: var(--text-muted); }

/* ---------- Vehicle meta (plate / sub-text) ---------- */
.vc-meta { font-size: .85rem; color: var(--text-muted); }
.vc-plate {
  display: inline-block; font-family: var(--font-display); font-weight: 700; letter-spacing: .06em;
  border: 2px solid var(--text); border-radius: 6px; padding: 3px 10px; font-size: .82rem;
}

/* ---------- Tables ---------- */

/* Status pills */
.pill { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: .78rem; font-weight: 600; }
.pill.pending { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning); }
.pill.progress { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pill.done { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.pill.scheduled { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.pill.cancelled { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty .ico { font-size: 2.4rem; margin-bottom: 10px; }

/* Payment history rows (customer + staff payment pages). */
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pay-row:last-child { border-bottom: 0; }
.pay-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pay-row-subject { font-weight: 600; }
.pay-row-date { font-size: .82rem; color: var(--text-muted); }
.pay-row-end { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pay-row-amount { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Sidebar layout (admin) ---------- */
.shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
/* Full-height sticky column: brand on top, nav scrolls, footer pinned bottom.
   This means however many menu items get added, the nav scrolls within itself
   and the account footer always stays visible. */
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border); padding: 20px 10px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
}
.sidebar .brand { padding: 6px 10px 22px; flex: 0 0 auto; }
.sidebar nav { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 0 10px; }
/* Accent-coloured scrollbar for the nav (shows only when it overflows). */
.sidebar nav { scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.sidebar nav::-webkit-scrollbar { width: 8px; }
.sidebar nav::-webkit-scrollbar-track { background: transparent; }
.sidebar nav::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; border: 2px solid var(--surface); }
.sidebar nav::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: .92rem; margin-bottom: 2px; min-height: 44px;
  box-sizing: border-box;
}
.sidebar nav a:hover { background: var(--surface-2); color: var(--text); }
.sidebar nav a.active { background: var(--accent-soft); color: var(--accent); }
/* Nav icons: inherit the link colour, fixed size, never shrink. */
.nav-ico { flex: 0 0 auto; width: 20px; height: 20px; opacity: .85; }
.sidebar nav a.active .nav-ico { opacity: 1; }
/* Indented sub-items grouped under a parent link (e.g. Mechanics under Schedule). */
.sidebar nav .nav-sub { display: flex; flex-direction: column; margin: 2px 0 6px; padding-left: 14px; border-left: 1px solid var(--border); margin-left: 12px; }
.sidebar nav .nav-sub a { font-size: .86rem; padding: 8px 12px; }
.sidebar nav .nav-sub .nav-ico { width: 17px; height: 17px; }

/* Sidebar account footer: avatar + name/role + logout, pinned to the bottom. */
.sidebar-foot {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border);
}
.sidebar-avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
}
.sidebar-user { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sidebar-user-name { font-weight: 600; font-size: .9rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .78rem; color: var(--text-muted); }
.sidebar-logout { flex: 0 0 auto; margin: 0; }
.sidebar-logout button {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: none; color: var(--text-muted); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar-logout button:hover { background: var(--danger-soft, var(--surface-2)); color: var(--danger, var(--text)); border-color: var(--danger, var(--border)); }
.sidebar-logout-ico { width: 18px; height: 18px; }
.shell-main { padding: 28px 24px; }

/* ---------- Home / landing ---------- */
.hero { padding: 88px 0 72px; }
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); max-width: 16ch; line-height: 1.05; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 52ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.feature-grid { padding: 20px 0 60px; }
.feature { padding: 26px; }
.feature .ico { font-size: 1.6rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 7px; }
.feature p { color: var(--text-muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-muted); font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 60;
}
.dropdown-menu.open { display: block; }
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: .9rem; color: var(--text); background: none; border: 0; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); }

/* Notification badge */
.badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 99px; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  /* Stack the auth split: branded header on top, form card below. */
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside {
    padding: 22px 24px; flex-direction: column; gap: 18px;
    justify-content: flex-start;
  }
  .auth-aside h2 { font-size: 1.5rem; margin: 0 0 8px; max-width: none; }
  .auth-aside p { margin: 0 0 16px; max-width: none; }
  .auth-aside-foot { display: none; }
  .auth-main { padding: 28px 20px 48px; }
  .shell { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .auth-points { display: none; }
  .auth-aside p { margin: 0; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   v2 visual refresh — gradients, richer cards, animations
   ============================================================ */

:root {
  --gradient-accent: linear-gradient(135deg, #ff5a1f 0%, #ff8a3d 100%);
  --gradient-dark: linear-gradient(150deg, #161a20 0%, #20262f 60%, #2a1a12 100%);
  --gradient-card: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 60%);
}
[data-theme="dark"] {
  --gradient-dark: linear-gradient(150deg, #0d1014 0%, #151a21 60%, #2a1a12 100%);
  --gradient-card: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
}

/* Entrance animation for cards/sections */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .5s cubic-bezier(.2,.7,.3,1) both; }
.rise-2 { animation: rise .5s cubic-bezier(.2,.7,.3,1) .08s both; }
.rise-3 { animation: rise .5s cubic-bezier(.2,.7,.3,1) .16s both; }

/* Cards get a subtle gradient wash + lift on hover */
.card { background-image: var(--gradient-card); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card.hoverable:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }

/* Stat tiles: icon chip + gradient number */
.stat-card { display: flex; align-items: center; gap: 16px; }
.stat-chip {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0; background: var(--gradient-accent);
  box-shadow: 0 6px 16px var(--ring);
}
.stat-chip.blue { background: linear-gradient(135deg,#2d7ff9,#5aa2ff); box-shadow: 0 6px 16px rgba(45,127,249,.3); }
.stat-chip.green { background: linear-gradient(135deg,#1f9d57,#37c46f); box-shadow: 0 6px 16px rgba(31,157,87,.3); }
.stat-chip.violet { background: linear-gradient(135deg,#7c4dff,#a07cff); box-shadow: 0 6px 16px rgba(124,77,255,.3); }
.stat-chip.gold { background: linear-gradient(135deg,#e8a317,#ffc759); box-shadow: 0 6px 16px rgba(232,163,23,.3); }
.stat-card .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.stat-card .lbl { font-size: .82rem; color: var(--text-muted); margin-top: 4px; }

/* Section headers with accent underline */
.section-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 16px; }
.section-title::before { content: ""; width: 4px; height: 20px; border-radius: 4px; background: var(--gradient-accent); }

/* Loyalty tier hero */
.tier-hero {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius);
  padding: 32px; background: var(--gradient-dark);
}
.tier-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px;
  border-radius: 50%; background: radial-gradient(circle, var(--tier-color, var(--accent)) 0%, transparent 70%); opacity: .4;
}
.tier-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: var(--tier-color, var(--accent)); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.tier-points { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; line-height: 1; margin: 14px 0 4px; }
.tier-progress { height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin-top: 18px; }
.tier-progress > span { display: block; height: 100%; border-radius: 99px; background: var(--gradient-accent); transition: width .6s ease; }
.tier-track { display: flex; justify-content: space-between; margin-top: 24px; gap: 8px; }
.tier-step { flex: 1; text-align: center; opacity: .5; }
.tier-step.reached { opacity: 1; }
.tier-step .dot { width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 6px; background: var(--ts-color, #fff); }
.tier-step .nm { font-size: .78rem; font-weight: 600; }
.tier-step .pt { font-size: .7rem; opacity: .8; }

/* Reward cards */
.reward-card { display: flex; flex-direction: column; gap: 10px; position: relative; }
/* Editable reward card: name + cost on one row, description below, then a
   row of actions (save + delete side by side). */
.reward-edit .re-row { display: flex; gap: 12px; align-items: flex-end; }
.reward-edit .re-actions { margin-top: 12px; display: flex; gap: 8px; }
/* On mobile, stack everything: name above cost, and full-width buttons. */
@media (max-width: 600px) {
  .reward-edit .re-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .reward-edit .re-row .field { width: auto !important; }
  .reward-edit .re-actions { flex-direction: column; }
  .reward-edit .re-actions .btn { width: 100%; }
}


/* Avatar */
.avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; background: var(--gradient-accent);
}
.avatar.lg { width: 72px; height: 72px; font-size: 1.6rem; }
/* Small initials circle inside the header user button. */
.nav-user { gap: 6px; padding-left: 6px; }
.nav-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  color: #fff; background: var(--gradient-accent); flex: 0 0 auto;
}

/* Hero gradient text */
.hero h1 em { background: var(--gradient-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Animated underline links */


/* Toast-style flash refinement */
.flash { display: flex; align-items: center; gap: 10px; animation: rise .35s ease both; }
.flash.flash-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .5s ease, transform .5s ease; }
.flash-text { flex: 1; }
.flash-action-form { margin: 0; flex: 0 0 auto; }
.flash-action {
  display: inline-block; flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: currentColor; font-size: .82rem; font-weight: 700; cursor: pointer;
  border: none; white-space: nowrap; text-decoration: none;
}
/* The label text takes the flash's surface colour so it reads on the tinted pill. */
.flash.error .flash-action { color: #fff; background: var(--danger); }
.flash.success .flash-action { color: #fff; background: var(--success); }
.flash.info .flash-action { color: #fff; background: #2563eb; }
.flash::before { font-size: 1.1rem; }
.flash.success::before { content: "\2713"; }
.flash.error::before { content: "!"; }
.flash.info::before { content: "\2139"; }

/* ============================================================
   v3 components: datepicker, dropzone, repeater, quotes, search
   ============================================================ */

/* ---- Date picker ---- */
.dp-wrap { position: relative; }
.dp-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; width: 280px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 14px; display: none; animation: rise .18s ease both;
}
.dp-pop.open { display: block; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600; font-family: var(--font-display); }
.dp-nav { width: 32px; height: 32px; border: 0; background: var(--surface-2); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 1.1rem; }
.dp-nav:hover { background: var(--accent); color: #fff; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dp-dow { text-align: center; font-size: .72rem; color: var(--text-muted); font-weight: 700; padding: 4px 0; }
.dp-day { aspect-ratio: 1; border: 0; background: none; border-radius: 8px; cursor: pointer; color: var(--text); font-size: .85rem; transition: all .12s ease; }
.dp-day:hover { background: var(--accent-soft); color: var(--accent); }
.dp-day.today { box-shadow: inset 0 0 0 1.5px var(--accent); font-weight: 700; }
.dp-day.sel { background: var(--accent); color: #fff; font-weight: 700; box-shadow: none; }
.dp-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); text-align: center; }
.dp-today {
  border: 0; background: var(--accent-soft); color: var(--accent); cursor: pointer;
  font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 8px; width: 100%;
  transition: all .12s ease;
}
.dp-today:hover { background: var(--accent); color: #fff; }

/* ---- Drag & drop uploader ---- */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); padding: 30px 20px; text-align: center;
  cursor: pointer; transition: all .18s ease; background: var(--surface-2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ico { font-size: 2rem; margin-bottom: 8px; opacity: .7; }
.dropzone .dz-text { font-weight: 600; color: var(--text); }
.dropzone .dz-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.previews:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); animation: pop .25s ease both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-x {
  position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center;
}
.thumb-x:hover { background: var(--danger); }
@keyframes pop { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- Repeater rows (line items) ---- */
.repeater-row {
  display: grid; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface-2); animation: rise .2s ease both;
}
.row-items { grid-template-columns: 130px 1fr 171px 111px 32px; }
.row-quote { grid-template-columns: 1fr 130px 70px 110px 90px 32px; }
.row-request { grid-template-columns: 1fr 32px; }
.repeater-row .input { height: 40px; }
.row-remove { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--danger); cursor: pointer; font-size: 1.2rem; }
.row-remove:hover { background: var(--danger); color: #fff; }
.line-total { font-weight: 700; text-align: right; font-size: .9rem; }
.add-row-btn { margin-top: 4px; }
@media (max-width: 720px) {
  .row-items, .row-quote { grid-template-columns: 1fr 1fr; }
  .row-items > *, .row-quote > * { grid-column: span 1; }
}

/* ---- Quote document (responsive cards, no tables) ---- */
.quote-doc-head {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 28px;
  border-radius: var(--radius) var(--radius) 0 0; color: #fff; background: var(--gradient-dark);
}
.quote-doc-head h1 { font-size: 1.5rem; }
.quote-doc-head .meta { font-size: .88rem; opacity: .85; margin-top: 4px; }
.quote-status {
  align-self: flex-start; padding: 5px 14px; border-radius: 99px; font-weight: 700; font-size: .82rem;
}
.quote-status.sent { background: rgba(255,255,255,.2); color: #fff; }
.quote-status.accepted { background: var(--success); color: #fff; }
.quote-status.declined { background: var(--danger); color: #fff; }
.quote-lines { background: var(--surface); border: 1px solid var(--border); border-top: 0; padding: 8px; }
.quote-line {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm);
  transition: background .12s ease;
}
.quote-line:hover { background: var(--surface-2); }
.quote-line + .quote-line { border-top: 1px solid var(--border); }
.ql-main { flex: 1; min-width: 0; }
.ql-name { font-weight: 600; }
.ql-code { font-size: .8rem; color: var(--text-muted); font-family: var(--font-display); }
.ql-qty { font-size: .85rem; color: var(--text-muted); white-space: nowrap; }
.ql-price { font-weight: 700; white-space: nowrap; min-width: 90px; text-align: right; }
.quote-total-bar {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 24px;
  background: var(--surface); border: 1px solid var(--border); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius); font-family: var(--font-display);
}
.quote-total-bar .lbl { font-size: .9rem; color: var(--text-muted); }
.quote-total-bar .val { font-size: 1.6rem; font-weight: 700; }
.quote-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.quote-actions-center { justify-content: center; }

/* ---- Search + filter bar ---- */
.searchbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.searchbar .search-input { flex: 1; min-width: 220px; position: relative; }
.searchbar .search-input input { padding-left: 40px; }
.searchbar .search-input::before {
  content: "\2315"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.2rem; color: var(--text-muted); pointer-events: none;
}
.searchbar select { max-width: 220px; }

/* ---- Pagination ---- */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 10px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 600; font-size: .9rem; border: 1px solid var(--border); color: var(--text); background: var(--surface);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .gap { border: 0; background: none; }
.pagination .disabled { opacity: .4; pointer-events: none; }
.page-meta { text-align: center; color: var(--text-muted); font-size: .85rem; margin-top: 10px; }

/* Category chips */
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: .78rem; font-weight: 600; color: #fff; }
.cat-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* ============================================================
   Searchable combobox — shared component (garage cascade, staff
   category picker, etc.). Loaded in app.css so every layout gets it.
   ============================================================ */
.combobox { position: relative; }
.combobox-native {
  /* Keep the real select in the DOM for value + submit, but hidden. */
  position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px;
  margin: 0; padding: 0; border: 0;
}
.combobox-button {
  width: 100%; text-align: left; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; font: inherit; color: var(--text);
}
.combobox-button::after {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-left: auto;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .18s ease;
}
.combobox.is-open .combobox-button::after { transform: rotate(225deg) translateY(-2px); }
.combobox-button.is-placeholder { color: var(--text-muted); }
.combobox-button:disabled { opacity: .55; cursor: not-allowed; }

.combobox-pop {
  position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); display: none; overflow: hidden;
}
.combobox.is-open .combobox-pop { display: block; }
/* Search sits at the top of the panel; the list scrolls beneath it. */
.combobox-search {
  padding: 8px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.combobox-search .input { width: 100%; padding: 9px 12px; box-sizing: border-box; }
.combobox-list { max-height: 240px; overflow-y: auto; padding: 6px; }
.combobox-item {
  padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: .94rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px;
}
.combobox-item:hover, .combobox-item.is-active { background: var(--surface-2); }
.combobox-item.is-selected { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.combobox-empty { padding: 12px; color: var(--text-muted); text-align: center; font-size: .9rem; }

/* Any field holding a combobox needs position:relative so the popover anchors,
   and the open one stacks above fields below it. */
.field:has(.combobox) { position: relative; }
.vehicle-cascade .field { position: relative; }
.combobox.is-open { z-index: 60; }

/* Current featured photo + remove toggle on the vehicle form. */
.vehicle-photo-current { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.vehicle-photo-current img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.vehicle-photo-current .remove-photo { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-muted); margin: 0; }
.logo-current { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.logo-current img { height: 44px; max-width: 180px; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); padding: 6px 10px; background: var(--surface-2); }
.logo-current .logo-remove { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-muted); margin: 0; cursor: pointer; }
.field-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--text-muted); }

/* Vehicle form: label with an inline hint, and the engine production-range
   badge. In app.css so both the customer garage and staff forms get them. */
.label-with-hint { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.engine-range-hint {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 99px; background: var(--accent-soft);
  color: var(--accent); font-size: .7rem; font-weight: 600; white-space: nowrap;
}
.engine-range-hint .erh-ico { font-size: .78rem; line-height: 1; }
.engine-range-hint .erh-label { opacity: .7; }
.engine-range-hint .erh-range { font-family: var(--font-display); letter-spacing: .02em; }

/* ---- Photo gallery lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(10,12,16,.92);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox .lb-img {
  max-width: 90vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  animation: lbpop .25s cubic-bezier(.2,.8,.3,1.2) both;
}
@keyframes lbpop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox .lb-close, .lightbox .lb-nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
  transition: background .15s ease;
}
.lightbox .lb-close:hover, .lightbox .lb-nav:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }
@media (max-width: 560px) {
  .lightbox .lb-nav { width: 40px; height: 40px; }
}

/* ---- Preference rows + toggle switch (shared: profile prefs, admin settings) ---- */
.pref-list { display: flex; flex-direction: column; gap: 4px; }
.pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-radius: 12px; cursor: pointer; transition: background .15s ease;
}
.pref-row:hover { background: var(--surface-2); }
.pref-text { display: flex; flex-direction: column; gap: 2px; }
.pref-title { font-weight: 600; }
.pref-desc { font-size: .84rem; color: var(--text-muted); }
/* Master "customise" row sits above the list, visually separated. */
.pref-master { border: 1px solid var(--border); margin-bottom: 8px; }
/* When following shop defaults, the per-type list is dimmed + non-interactive. */
.pref-list[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* The toggle switch */
.toggle { position: relative; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: block; width: 48px; height: 28px; border-radius: 99px; background: var(--border);
  transition: background .2s ease; position: relative;
}
.toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3,.7,.4,1.4);
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track { box-shadow: 0 0 0 4px var(--ring); }

/* ---------- Error pages (403 / 404 / 500) ---------- */
.error-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background:
    radial-gradient(900px 500px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg);
}
.error-card { text-align: center; max-width: 460px; }
.error-code {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(80px, 18vw, 150px);
  background: var(--gradient-accent, linear-gradient(135deg, var(--accent), var(--accent-hover)));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.error-title { font-size: 1.6rem; margin: 0 0 10px; }
.error-message { color: var(--text-muted); margin: 0 0 28px; line-height: 1.6; }

/* Repair line-items list (shared by staff vehicle page + customer history).
   Soft cards with an icon chip, spaced — no hard borders. */
.repair-items-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.repair-items-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  background: var(--surface-2); font-size: .9rem;
}
.repair-items-list li .ri-ico { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .8rem; }
.repair-items-list li.is-part .ri-ico { background: var(--accent-soft); color: var(--accent); }
.repair-items-list li.is-note .ri-ico { background: var(--surface); color: var(--text-muted); }
.repair-items-list li .ri-text { flex: 1; min-width: 0; }
.repair-items-list li .ri-code { font-family: var(--font-display); font-size: .78rem; color: var(--text-muted); }
.repair-items-list li .ri-price { font-weight: 700; white-space: nowrap; }

/* Notifications list — shared by staff (panel layouts) and customers (app layout),
   so it lives in app.css which every layout loads. Unread dot, body, actions. */
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; position: relative; transition: border-color .15s ease;
}
.notif-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.notif-card.is-read { opacity: .6; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.notif-card.is-read .notif-dot { display: none; }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 600; font-family: var(--font-display); }
.notif-text { color: var(--text-muted); font-size: .9rem; margin-top: 3px; }
.notif-time { color: var(--text-muted); font-size: .76rem; margin-top: 5px; }
.notif-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .notif-card { flex-wrap: wrap; }
  .notif-actions { width: 100%; }
  .notif-actions .btn, .notif-actions form { flex: 1; }
  .notif-actions .btn { width: 100%; }
}

/* Sidebar section headers — group related nav items without an extra click. */
.sidebar nav .nav-section { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); padding: 5px 10px 5px; opacity: .65; }
.sidebar nav .nav-section:first-child { padding-top: 2px; }
