/*
Theme Name: RentBuySales
Theme URI: https://www.rentbuysales.com
Author: RentBuySales
Author URI: https://www.rentbuysales.com
Description: Ghana's marketplace for real estate, house construction & renovation (diaspora-focused), car rental, and handymen tool rental. Includes custom listing types, front-end submission forms, and inquiry handling.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rentbuysale
*/

/* ==========================================================================
   RentBuySale — Design System
   Display: Fraunces (characterful serif — trust, established business)
   Body/UI: Inter
   Data/Labels: IBM Plex Mono (prices, stats, tags)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Color */
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --blue: #1A6BA3;
  --blue-deep: #0B4A75;
  --blue-pale: #E8F1F8;
  --sand: #F8FAFC;
  --paper: #FFFFFF;
  --gold: #D4AF37;
  --gold-deep: #B8962E;
  --gold-pale: #FBF6E2;
  --green: #1F7A4D;
  --green-pale: #E5F3EA;
  --line: #E5E9EE;
  --line-strong: #CBD5E1;
  --shadow: 0 2px 4px rgba(31,41,55,.05), 0 12px 32px rgba(31,41,55,.10);

  /* Type */
  --f-display: 'Fraunces', serif;
  --f-body: 'Inter', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.12;
  letter-spacing: -.01em;
}
h1 { font-weight: 600; }
h2 { font-weight: 600; }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

/* ---------- Eyebrow / mono labels ---------- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold-deep);
}

/* ---------- Signature motif: dashed status pill ---------- */
.pill {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 6px 14px;
  border: 1.5px dashed var(--blue);
  border-radius: 100px;
  color: var(--blue-deep);
  background: var(--paper);
  white-space: nowrap;
}
.pill.gold { border-color: var(--gold-deep); color: var(--gold-deep); }
.pill.green { border-color: var(--green); color: var(--green); }
.pill.solid {
  border-style: solid;
  background: var(--blue-pale);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; }

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-deep); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 40px; width: auto; }
.brand-word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.brand-word span { color: var(--blue); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 100px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue-pale);
  color: var(--blue-deep);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-blue-label { display: none; }
}

/* ---------- Directory strip (signature wayfinding element) ---------- */
.directory {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
}
.directory .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.directory a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-right: 1px dashed rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  transition: background .15s ease, color .15s ease;
}
.directory a:last-child { border-right: none; }
.directory a .num { color: var(--gold); font-weight: 600; }
.directory a:hover { background: rgba(255,255,255,.06); color: #fff; }

@media (max-width: 800px) {
  .directory .wrap { grid-template-columns: 1fr 1fr; }
  .directory a { border-bottom: 1px dashed rgba(255,255,255,.18); }
}
@media (max-width: 480px) {
  .directory .wrap { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #083d61 0%, #0B4A75 60%, #1A6BA3 100%);
  color: #fff;
  padding: 64px 0 0;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px dashed rgba(255,255,255,.25);
}
.hero-stats div strong {
  display: block;
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--gold);
}
.hero-stats div span {
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
}
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; }
.hero-media .tag-row {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-media .tag-row .pill { background: rgba(255,255,255,.94); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-bottom: 40px; }
  .hero-media { order: -1; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--paper); }
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 10px; }

/* ---------- Service cards (homepage 4 pillars) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.service-card .media { position: relative; aspect-ratio: 5/4; overflow: hidden; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .media img { transform: scale(1.05); }
.service-card .media .num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  background: rgba(31,41,55,.75);
  color: #fff;
  padding: 4px 9px;
  border-radius: 100px;
  letter-spacing: .06em;
}
.service-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card h3 { font-size: 19px; margin: 0; }
.service-card p { font-size: 14px; margin: 0; flex: 1; }
.service-card .btn { margin-top: 6px; align-self: flex-start; }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.trust-strip .pill { padding: 10px 18px; font-size: 12.5px; }

/* ---------- Testimonial / split feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}
.split-media img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split-text .eyebrow { margin-bottom: 14px; }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.step {
  padding: 28px 22px;
  border-right: 1px dashed var(--line-strong);
  position: relative;
}
.step:last-child { border-right: none; }
.step .stamp {
  width: 40px; height: 40px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px dashed var(--line-strong); }
  .step:nth-child(2) { border-right: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; }
}

/* ---------- Listing grid (real estate / cars / tools) ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.filter-bar .chip {
  font-family: var(--f-mono);
  font-size: 12.5px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  transition: all .15s ease;
}
.filter-bar .chip.active, .filter-bar .chip:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue-deep);
}
.filter-bar .spacer { flex: 1; }
.filter-bar select {
  font-family: var(--f-body);
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.listing-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.listing-card .media img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .media .badge {
  position: absolute; top: 12px; left: 12px;
}
.listing-card .media .fav {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.listing-card .media .fav svg { width: 16px; height: 16px; color: var(--blue-deep); }
.listing-card .body { padding: 18px; }
.listing-card .price {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue-deep);
  display: block;
  margin-bottom: 4px;
}
.listing-card .price small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.listing-card h3 { font-size: 16.5px; margin: 0 0 4px; }
.listing-card .loc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 5px;
}
.listing-card .meta {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
  font-family: var(--f-mono);
}
.listing-card .meta span { display: flex; align-items: center; gap: 5px; }
.listing-card .foot {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.listing-card .foot .btn { flex: 1; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
}
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--f-mono);
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  font-family: var(--f-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--green-pale);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--f-mono);
  font-size: 20px;
  color: var(--gold-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(232,169,61,.18), transparent 55%);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; position: relative; }
.cta-band p { color: rgba(255,255,255,.7); margin: 0; position: relative; }
.cta-band .actions { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h5 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-grid a, .footer-grid p { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.65); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; }
.footer-brand span { font-family: var(--f-display); color: #fff; font-size: 18px; font-weight: 600; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
  font-family: var(--f-mono);
}

/* ---------- Placeholder listing media (swap with real photos later) ---------- */
.ph-media {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-pale) 0%, #fff 100%);
  position: relative;
}
.ph-media svg { width: 30%; height: 30%; color: var(--blue); opacity: .55; }
.ph-media::after {
  content: 'Photo coming soon';
  position: absolute; bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--blue);
  opacity: .55;
}
.ph-media.tone-gold { background: linear-gradient(135deg, var(--gold-pale) 0%, #fff 100%); }
.ph-media.tone-gold svg { color: var(--gold-deep); }
.ph-media.tone-green { background: linear-gradient(135deg, var(--green-pale) 0%, #fff 100%); }
.ph-media.tone-green svg { color: var(--green); }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dash {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--sand);
}
.dash-sidebar {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.dash-sidebar .brand { padding: 6px 10px 26px; }
.dash-sidebar .brand img { height: 34px; }
.dash-sidebar .brand-word { color: #fff; }
.dash-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dash-nav-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  padding: 18px 12px 8px;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.dash-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.dash-nav a.active { background: var(--blue); color: #fff; }
.dash-sidebar-foot {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 16px;
  margin-top: 16px;
  font-size: 12.5px;
}
.dash-sidebar-foot a { color: rgba(255,255,255,.55); display: block; padding: 6px 12px; }
.dash-sidebar-foot a:hover { color: #fff; }

.dash-main { padding: 28px 32px 60px; min-width: 0; }
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}
.dash-search {
  flex: 1;
  max-width: 380px;
  position: relative;
}
.dash-search input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border-radius: 100px;
  border: 1.5px solid var(--line-strong);
  font-family: var(--f-body);
  font-size: 14px;
  background: #fff;
}
.dash-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--ink-soft);
}
.dash-user { display: flex; align-items: center; gap: 12px; }
.dash-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 13px;
}

.dash-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.dash-page-head h1 { font-size: 26px; margin-bottom: 4px; }
.dash-page-head p { margin: 0; font-size: 14px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1000px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.stat-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.stat-card .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
}
.stat-card .icon svg { width: 18px; height: 18px; color: var(--blue); }
.stat-card .delta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--green-pale);
  color: var(--green);
}
.stat-card .delta.down { background: var(--gold-pale); color: var(--gold-deep); }
.stat-card .value { font-family: var(--f-mono); font-size: 26px; font-weight: 600; color: var(--ink); }
.stat-card .label { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

.dash-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-head h3 { font-size: 16px; margin: 0; }
.panel-head a { font-size: 12.5px; font-family: var(--f-mono); color: var(--blue); font-weight: 600; }

/* simple bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 10px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar-chart .bar {
  width: 100%;
  max-width: 30px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  border-radius: 5px 5px 0 0;
}
.bar-chart .bar.gold { background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%); }
.bar-chart .bar-label { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-soft); }

.legend { display: flex; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-family: var(--f-mono); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* activity feed */
.feed { display: flex; flex-direction: column; gap: 16px; }
.feed-item { display: flex; gap: 12px; }
.feed-item .dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.feed-item .dot.gold { background: var(--gold-pale); color: var(--gold-deep); }
.feed-item .dot.green { background: var(--green-pale); color: var(--green); }
.feed-item p { margin: 0; font-size: 13.5px; color: var(--ink); }
.feed-item span { font-size: 12px; color: var(--ink-soft); font-family: var(--f-mono); }

/* tabs */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs button.active { color: var(--blue-deep); border-color: var(--blue); }

/* data table */
.table-wrap { overflow-x: auto; }
table.dtable { width: 100%; border-collapse: collapse; min-width: 640px; }
table.dtable th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
table.dtable td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}
table.dtable tr:last-child td { border-bottom: none; }
.row-item { display: flex; align-items: center; gap: 10px; }
.row-thumb {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.row-thumb svg { width: 20px; height: 20px; color: var(--blue); }
.row-item strong { display: block; font-size: 13.5px; }
.row-item small { color: var(--ink-soft); font-size: 12px; }

.status-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
}
.status-tag.live { background: var(--green-pale); color: var(--green); }
.status-tag.pending { background: var(--gold-pale); color: var(--gold-deep); }
.status-tag.paid { background: var(--green-pale); color: var(--green); }
.status-tag.deposit { background: var(--blue-pale); color: var(--blue-deep); }
.status-tag.new { background: var(--blue-pale); color: var(--blue-deep); }

.icon-btn {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 14px; height: 14px; color: var(--ink-soft); }
.icon-btn:hover { border-color: var(--blue); }
.icon-btn:hover svg { color: var(--blue); }
.row-actions { display: flex; gap: 6px; }

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

.dash-menu-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
}
.dash-menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-menu-toggle { display: inline-flex; }
  .dash-main { padding: 20px 16px 50px; }
}

/* ---------- Utility ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.mt-0 { margin-top: 0; }
.center-text { text-align: center; }

/* ---------- WP default pagination markup support ---------- */
.pagination .page-numbers {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  margin: 0 2px;
}
.pagination .page-numbers.current {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.pagination .page-numbers.dots { border: none; }

/* ---------- Entry content (single pages / WP editor output) ---------- */
.entry-content p { margin-bottom: 1em; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }

/* ---------- Filter bar links (now real <a> tags for server-side filtering) ---------- */
.filter-bar a.chip { text-decoration: none; display: inline-block; }

/* ---------- Mobile nav open state ---------- */
@media (max-width: 900px) {
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 99;
  }
  .main-nav a {
    padding: 13px 10px;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-actions .btn-ghost { display: none; }
}
