/*
 * TextPay — app.css
 * Bootstrap 5 is loaded via CDN in layouts. This file adds:
 *   1. Brand / component styles (.card, .btn-*, .input, .badge colour classes, sidebar, topbar)
 *   2. Tailwind-compatible utility classes so content views need no grid rewrites.
 *   3. No build step — plain CSS.
 */

/* ── CSS variables ────────────────────────────────────── */
:root {
  --tp-accent:      #0071E3;
  --tp-accent-dark: #005BB5;
  --tp-success:     #16A34A;
  --tp-warning:     #D97706;
  --tp-danger:      #DC2626;
  --tp-muted:       #6B7280;
  --sidebar-w:      250px;
}

/* ── Fonts ───────────────────────────────────────────── */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-mono, code, pre { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── Brand colour utilities ──────────────────────────── */
.text-accent   { color: var(--tp-accent)  !important; }
.text-success  { color: var(--tp-success) !important; }
.text-warning  { color: var(--tp-warning) !important; }
.text-danger   { color: var(--tp-danger)  !important; }
.text-muted    { color: var(--tp-muted)   !important; }
.bg-accent     { background-color: var(--tp-accent) !important; }
.hover\:text-accent:hover { color: var(--tp-accent) !important; }
.hover\:underline:hover   { text-decoration: underline !important; }

/* ── Sidebar layout ──────────────────────────────────── */
.tp-sidebar {
  position: fixed; top: 0; left: 0; height: 100vh;
  width: var(--sidebar-w); z-index: 1045;
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(-100%); transition: transform .3s ease-in-out;
}
@media (min-width: 992px) {
  .tp-sidebar { transform: translateX(0); }
  .tp-main    { margin-left: var(--sidebar-w); }
}
.tp-sidebar.show { transform: translateX(0); }

/* Dark sidebar (admin) */
.tp-sidebar-dark { background: #111827; border-right: 1px solid #1f2937; }
.tp-sidebar-dark .nav-link {
  color: #9ca3af; border-radius: 6px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 500; min-height: 44px;
  transition: background .15s, color .15s; text-decoration: none;
}
.tp-sidebar-dark .nav-link:hover  { background: #374151; color: #fff; }
.tp-sidebar-dark .nav-link.active { background: #374151; color: #fff; }
.tp-sidebar-dark .nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Light sidebar (merchant) */
.tp-sidebar-light { background: #fff; border-right: 1px solid #e5e7eb; }
.tp-sidebar-light .nav-link {
  color: #4b5563; border-radius: 6px; padding: 8px 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 500; min-height: 44px;
  transition: background .15s, color .15s; text-decoration: none;
}
.tp-sidebar-light .nav-link:hover  { background: #f9fafb; color: #111827; }
.tp-sidebar-light .nav-link.active { background: #eff6ff; color: var(--tp-accent); }
.tp-sidebar-light .nav-link svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Sidebar overlay (mobile) */
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1040; display: none;
}
.sidebar-backdrop.show { display: block; }

/* ── Topbar ──────────────────────────────────────────── */
.tp-topbar {
  height: 56px; position: sticky; top: 0; z-index: 1030;
  background: #fff; border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center; gap: 1rem; padding: 0 1rem;
  flex-shrink: 0;
}

/* ── Brand icon ──────────────────────────────────────── */
.tp-brand-icon {
  width: 32px; height: 32px; background: var(--tp-accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .75rem; flex-shrink: 0;
}

/* ── Card ────────────────────────────────────────────── */
.card {
  border: 1px solid #e5e7eb !important; border-radius: 8px !important;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger, .btn-warning, .btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: .5rem 1rem; border-radius: 6px; font-size: .875rem; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  min-height: 40px; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap; line-height: 1.25;
}
.btn-primary  { background: var(--tp-accent);   color: #fff; border-color: var(--tp-accent); }
.btn-primary:hover  { background: var(--tp-accent-dark); border-color: var(--tp-accent-dark); color: #fff; }
.btn-secondary { background: #fff; color: #374151; border-color: #d1d5db; }
.btn-secondary:hover { background: #f9fafb; color: #111827; }
.btn-danger  { background: var(--tp-danger); color: #fff; border-color: var(--tp-danger); }
.btn-danger:hover  { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.btn-warning { background: var(--tp-warning); color: #fff; border-color: var(--tp-warning); }
.btn-warning:hover { background: #b45309; border-color: #b45309; color: #fff; }
.btn-success { background: var(--tp-success); color: #fff; border-color: var(--tp-success); }
.btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; }

/* ── Form controls ───────────────────────────────────── */
.input {
  display: block; width: 100%; padding: .375rem .75rem;
  font-size: .875rem; line-height: 1.5; color: #111827;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  outline: none; border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.15);
}
.input[readonly], .input:disabled { background: #f9fafb; cursor: not-allowed; }
textarea.input { height: auto; resize: vertical; }

.label      { display: block; font-size: .875rem; font-weight: 500; color: #374151; margin-bottom: .25rem; }
.form-group { margin-bottom: 1rem; }

/* ── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: .2em .55em;
  font-size: .75rem; font-weight: 500; border-radius: 4px;
}

/* Tailwind-style badge colour combos used across views */
.bg-green-100   { background-color: #dcfce7 !important; }
.text-green-800 { color: #166534 !important; }
.bg-red-100     { background-color: #fee2e2 !important; }
.text-red-800   { color: #991b1b !important; }
.bg-yellow-100  { background-color: #fef9c3 !important; }
.text-yellow-800{ color: #854d0e !important; }
.bg-blue-100    { background-color: #dbeafe !important; }
.text-blue-100  { color: #dbeafe !important; }
.text-blue-800  { color: #1e40af !important; }
.text-blue-400  { color: #60a5fa !important; }
.bg-gray-100    { background-color: #f3f4f6 !important; }
.text-gray-600  { color: #4b5563 !important; }
.text-gray-700  { color: #374151 !important; }
.bg-purple-100  { background-color: #f3e8ff !important; }
.text-purple-800{ color: #6b21a8 !important; }
.bg-orange-100  { background-color: #fed7aa !important; }
.text-orange-800{ color: #9a3412 !important; }
.bg-blue-50     { background-color: #eff6ff !important; }
.border-blue-200{ border-color: #bfdbfe !important; }
.text-blue-800  { color: #1e40af !important; }

/* ── Tailwind-compatible utility classes ─────────────── */

/* display */
.flex       { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid       { display: grid !important; }
.block      { display: block !important; }
.hidden     { display: none !important; }

/* flex */
.flex-col   { flex-direction: column !important; }
.flex-wrap  { flex-wrap: wrap !important; }
.flex-1     { flex: 1 1 0% !important; }
.shrink-0   { flex-shrink: 0 !important; }
.min-w-0    { min-width: 0 !important; }
.items-start    { align-items: flex-start !important; }
.items-center   { align-items: center !important; }
.items-end      { align-items: flex-end !important; }
.justify-between{ justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end    { justify-content: flex-end !important; }

/* grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0,1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .md\:col-span-2  { grid-column: span 2 / span 2; }
  .md\:table-cell  { display: table-cell !important; }
  .hidden.md\:table-cell { display: table-cell !important; }
  .hidden.md\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0,1fr)) !important; }
  .lg\:col-span-2  { grid-column: span 2 / span 2; }
  .hidden.lg\:block      { display: block !important; }
  .hidden.lg\:table-cell { display: table-cell !important; }
  .lg\:table-cell        { display: table-cell !important; }
}
@media (min-width: 1280px) {
  .hidden.xl\:block { display: block !important; }
}

/* gap */
.gap-1 { gap: .25rem !important; }
.gap-2 { gap: .5rem !important; }
.gap-3 { gap: .75rem !important; }
.gap-4 { gap: 1rem !important; }

/* text size */
.text-xs  { font-size: .75rem  !important; line-height: 1rem; }
.text-sm  { font-size: .875rem !important; line-height: 1.25rem; }
.text-base{ font-size: 1rem    !important; }
.text-lg  { font-size: 1.125rem !important; }
.text-xl  { font-size: 1.25rem  !important; }
.text-2xl { font-size: 1.5rem   !important; }
.text-3xl { font-size: 1.875rem !important; }

/* font weight */
.font-medium   { font-weight: 500 !important; }
.font-semibold { font-weight: 600 !important; }
.font-bold     { font-weight: 700 !important; }
.font-normal   { font-weight: 400 !important; }

/* text colour */
.text-white    { color: #fff     !important; }
.text-gray-900 { color: #111827 !important; }
.text-gray-800 { color: #1f2937 !important; }
.text-gray-500 { color: #6b7280 !important; }
.text-gray-400 { color: #9ca3af !important; }
.text-gray-300 { color: #d1d5db !important; }

/* text transform */
.uppercase     { text-transform: uppercase !important; }
.capitalize    { text-transform: capitalize !important; }
.tracking-wide { letter-spacing: .025em !important; }
.tracking-widest { letter-spacing: .1em !important; }
.leading-tight { line-height: 1.25 !important; }
.leading-snug  { line-height: 1.375 !important; }
.leading-relaxed { line-height: 1.625 !important; }
.italic        { font-style: italic !important; }

.text-center { text-align: center !important; }
.text-left   { text-align: left   !important; }
.text-right  { text-align: right  !important; }

/* truncate / whitespace */
.truncate          { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-pre-wrap { white-space: pre-wrap !important; }

/* background */
.bg-white    { background-color: #fff     !important; }
.bg-gray-50  { background-color: #f9fafb !important; }
.bg-gray-700 { background-color: #374151 !important; }
.bg-gray-800 { background-color: #1f2937 !important; }
.bg-gray-900 { background-color: #111827 !important; }
.bg-gray-950 { background-color: #030712 !important; }

/* sizing */
.w-full { width: 100% !important; }
.w-px   { width: 1px  !important; }
.w-4    { width: 1rem    !important; }
.w-5    { width: 1.25rem !important; }
.w-7    { width: 1.75rem !important; }
.w-8    { width: 2rem    !important; }
.w-9    { width: 2.25rem !important; }
.w-10   { width: 2.5rem  !important; }
.w-12   { width: 3rem    !important; }
.w-28   { width: 7rem    !important; }
.w-36   { width: 9rem    !important; }
.w-40   { width: 10rem   !important; }
.w-44   { width: 11rem   !important; }
.w-48   { width: 12rem   !important; }
.w-64   { width: 16rem   !important; }
.h-px   { height: 1px    !important; }
.h-4    { height: 1rem    !important; }
.h-5    { height: 1.25rem !important; }
.h-7    { height: 1.75rem !important; }
.h-8    { height: 2rem    !important; }
.h-9    { height: 2.25rem !important; }
.h-10   { height: 2.5rem  !important; }
.h-12   { height: 3rem    !important; }
.h-16   { height: 4rem    !important; }
.h-full { height: 100%   !important; }
.min-h-\[44px\] { min-height: 44px !important; }
.min-w-\[120px\]{ min-width: 120px !important; }
.min-w-\[130px\]{ min-width: 130px !important; }
.min-w-\[140px\]{ min-width: 140px !important; }
.min-w-\[160px\]{ min-width: 160px !important; }

/* max-width */
.max-w-sm  { max-width: 24rem !important; }
.max-w-xl  { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-3xl { max-width: 48rem !important; }
.max-w-xs  { max-width: 20rem !important; }
.max-w-\[120px\]{ max-width: 120px !important; }
.max-w-\[200px\]{ max-width: 200px !important; }
.max-h-48  { max-height: 12rem !important; }
.max-h-\[90vh\] { max-height: 90vh !important; }

/* position */
.fixed    { position: fixed    !important; }
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.sticky   { position: sticky   !important; }
.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0    !important; }
.left-0   { left: 0   !important; }
.right-0  { right: 0  !important; }
.bottom-0 { bottom: 0 !important; }
.z-10  { z-index: 10   !important; }
.z-20  { z-index: 20   !important; }
.z-30  { z-index: 30   !important; }
.z-40  { z-index: 40   !important; }
.z-50  { z-index: 50   !important; }

/* overflow */
.overflow-hidden  { overflow: hidden   !important; }
.overflow-x-auto  { overflow-x: auto  !important; }
.overflow-y-auto  { overflow-y: auto  !important; }

/* borders */
.rounded      { border-radius: 4px      !important; }
.rounded-lg   { border-radius: 8px      !important; }
.rounded-xl   { border-radius: 12px     !important; }
.rounded-2xl  { border-radius: 16px     !important; }
.rounded-full { border-radius: 9999px   !important; }
.border       { border: 1px solid #e5e7eb !important; }
.border-t     { border-top:    1px solid #e5e7eb !important; }
.border-b     { border-bottom: 1px solid #e5e7eb !important; }
.border-r     { border-right:  1px solid #e5e7eb !important; }
.border-gray-100 { border-color: #f3f4f6 !important; }
.border-gray-200 { border-color: #e5e7eb !important; }
.border-gray-300 { border-color: #d1d5db !important; }
.border-gray-600 { border-color: #4b5563 !important; }
.border-gray-700 { border-color: #374151 !important; }
.border-gray-800 { border-color: #1f2937 !important; }
.border-white\/5 { border-color: rgba(255,255,255,.05) !important; }

/* spacing overrides (Tailwind scale, not Bootstrap scale) */
.p-3  { padding: .75rem  !important; }
.p-5  { padding: 1.25rem !important; }
.p-6  { padding: 1.5rem  !important; }
.p-7  { padding: 1.75rem !important; }
.p-8  { padding: 2rem    !important; }
.p-10 { padding: 2.5rem  !important; }
.px-3 { padding-left: .75rem !important;  padding-right: .75rem  !important; }
.px-4 { padding-left: 1rem   !important;  padding-right: 1rem    !important; }
.px-5 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
.px-6 { padding-left: 1.5rem  !important; padding-right: 1.5rem  !important; }
.px-10{ padding-left: 2.5rem  !important; padding-right: 2.5rem  !important; }
.py-1 { padding-top: .25rem   !important; padding-bottom: .25rem !important; }
.py-1\.5 { padding-top: .375rem !important; padding-bottom: .375rem !important; }
.py-2 { padding-top: .5rem    !important; padding-bottom: .5rem  !important; }
.py-2\.5 { padding-top: .625rem !important; padding-bottom: .625rem !important; }
.py-3 { padding-top: .75rem   !important; padding-bottom: .75rem !important; }
.py-4 { padding-top: 1rem     !important; padding-bottom: 1rem   !important; }
.py-6 { padding-top: 1.5rem   !important; padding-bottom: 1.5rem !important; }
.py-8 { padding-top: 2rem     !important; padding-bottom: 2rem   !important; }
.py-10{ padding-top: 2.5rem   !important; padding-bottom: 2.5rem !important; }
.py-12{ padding-top: 3rem     !important; padding-bottom: 3rem   !important; }
.pt-0 { padding-top: 0        !important; }
.pt-1 { padding-top: .25rem   !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: .75rem !important; }
.pb-10{ padding-bottom: 2.5rem !important; }
.pr-3 { padding-right: .75rem !important; }
.pr-10{ padding-right: 2.5rem !important; }
.pr-11{ padding-right: 2.75rem !important; }
.pl-3 { padding-left: .75rem  !important; }

.mb-0  { margin-bottom: 0 !important; }
.mb-0\.5 { margin-bottom: .125rem !important; }
.mb-1  { margin-bottom: .25rem  !important; }
.mb-1\.5 { margin-bottom: .375rem !important; }
.mb-2  { margin-bottom: .5rem   !important; }
.mb-3  { margin-bottom: .75rem  !important; }
.mb-4  { margin-bottom: 1rem    !important; }
.mb-5  { margin-bottom: 1.25rem !important; }
.mb-6  { margin-bottom: 1.5rem  !important; }
.mb-8  { margin-bottom: 2rem    !important; }
.mb-10 { margin-bottom: 2.5rem  !important; }
.mt-0\.5 { margin-top: .125rem !important; }
.mt-1  { margin-top: .25rem   !important; }
.mt-1\.5 { margin-top: .375rem !important; }
.mt-2  { margin-top: .5rem    !important; }
.mt-3  { margin-top: .75rem   !important; }
.mt-4  { margin-top: 1rem     !important; }
.mt-5  { margin-top: 1.25rem  !important; }
.mt-6  { margin-top: 1.5rem   !important; }
.mt-8  { margin-top: 2rem     !important; }
.ml-auto { margin-left: auto !important; }
.mr-2    { margin-right: .5rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

/* space-y children */
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

/* divide-y */
.divide-y > * + *          { border-top: 1px solid #e5e7eb; }
.divide-y.divide-gray-50 > * + * { border-top: 1px solid #f9fafb; }

/* shadows */
.shadow-sm  { box-shadow: 0 1px 2px rgba(0,0,0,.05) !important; }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05) !important; }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04) !important; }
.shadow-accent\/20 { box-shadow: 0 4px 6px -1px rgba(0,113,227,.2) !important; }
.shadow-accent\/25 { box-shadow: 0 4px 6px -1px rgba(0,113,227,.25) !important; }
.shadow-accent\/30 { box-shadow: 0 4px 6px -1px rgba(0,113,227,.3) !important; }

/* cursor */
.cursor-pointer    { cursor: pointer    !important; }
.cursor-not-allowed{ cursor: not-allowed !important; }

/* misc */
.transition { transition: all .15s ease; }
.pointer-events-none { pointer-events: none !important; }
.select-none { user-select: none !important; }
.lh-sm { line-height: 1.25 !important; }

/* animation */
.animate-spin { animation: tp-spin 1s linear infinite; }
@keyframes tp-spin { to { transform: rotate(360deg); } }

/* expand icon rotation */
.expand-icon { transition: transform .2s; display: inline-block; }
.expand-icon.rotated { transform: rotate(180deg); }
tr.expanded-trigger { cursor: pointer; }

/* Tables */
.table-data th {
  font-size: .75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .025em;
  color: var(--tp-muted);
}
.table-data td { font-size: .875rem; vertical-align: middle; }
.table-data tbody tr:hover { background: #f9fafb; }

/* Login / auth pages */
.brand-glow {
  background: radial-gradient(ellipse 100% 80% at 50% 110%,
              rgba(0,113,227,.5) 0%, transparent 65%);
}
.brand-grid {
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Auth input (dark theme for admin login) */
.input-dark {
  display: block; width: 100%; padding: .5rem .75rem;
  font-size: .875rem; color: #fff; background: #374151;
  border: 1px solid #4b5563; border-radius: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.input-dark::placeholder { color: #9ca3af; }
.input-dark:focus { outline: none; border-color: var(--tp-accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,.2); }

/* Password toggle button */
.pwd-toggle { position: absolute; right: 0; top: 0; bottom: 0;
  display: flex; align-items: center; padding: 0 .75rem;
  color: #9ca3af; background: none; border: none; cursor: pointer;
  min-height: 44px; min-width: 44px; justify-content: center; }
.pwd-toggle:hover { color: #6b7280; }

/* Inline flex utility for table headers */
.flex-items-center { display: flex; align-items: center; }

/* Bootstrap pagination override to use brand colour */
.pagination .page-item.active .page-link {
  background-color: var(--tp-accent);
  border-color: var(--tp-accent);
}
.pagination .page-link { color: var(--tp-accent); }
.pagination .page-link:hover { color: var(--tp-accent-dark); }

/* Bootstrap alert custom icons */
.alert { display: flex; align-items: flex-start; gap: .5rem; }

/* Specific helpers */
.bg-accent\/10 { background-color: rgba(0,113,227,.1) !important; }
.bg-accent\/15 { background-color: rgba(0,113,227,.15) !important; }
.bg-black\/40  { background-color: rgba(0,0,0,.4) !important; }
.bg-black\/50  { background-color: rgba(0,0,0,.5) !important; }

/* Nav item legacy classes (still used in some partials) */
.nav-item-dark {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; border-radius: 6px;
  color: #9ca3af; font-size: .875rem; font-weight: 500;
  min-height: 44px; transition: background .15s, color .15s; text-decoration: none;
}
.nav-item-dark:hover  { background: #374151; color: #fff; }
.nav-item-dark.active { background: #374151; color: #fff; }
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .625rem .75rem; border-radius: 6px;
  color: #4b5563; font-size: .875rem; font-weight: 500;
  min-height: 44px; transition: background .15s, color .15s; text-decoration: none;
}
.nav-item:hover  { background: #f9fafb; color: #111827; }
.nav-item.active { background: #eff6ff; color: var(--tp-accent); }
