/* ============================================================
   NaijaHomes - Seller dashboard styles
   ============================================================ */
:root {
  --g: #0b6b3a;
  --g2: #12894b;
  --g-dark: #063d21;
  --g-soft: #eaf6ef;
  --gold: #f5b82e;
  --bg: #f2f6f3;
  --card: #ffffff;
  --text: #16251c;
  --muted: #62716a;
  --line: #e3eae6;
  --red: #c0392b;
  --radius: 18px;
  --shadow: 0 4px 18px rgba(8, 40, 22, .07);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 90px;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--g); }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--g2), var(--g-dark)); color: #fff; font-weight: 800; font-size: 20px;
}
.top-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; font-size: 17px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.dot { position: absolute; top: 7px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #e53935; border: 2px solid #fff; }
.pill-link {
  border: 1px solid var(--line); background: #fff; color: var(--text); cursor: pointer;
  padding: 9px 14px; border-radius: 12px; font-weight: 600; font-size: 14px;
}
.pill-link:hover { border-color: var(--g); color: var(--g); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #063d21 0%, #0b6b3a 55%, #14a05c 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); pointer-events: none;
}
.hero::before { width: 320px; height: 320px; right: -90px; top: -140px; }
.hero::after { width: 200px; height: 200px; left: -70px; bottom: -110px; }
.hero-cover { position: absolute; inset: 0; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero-in {
  position: relative; z-index: 1; max-width: 1150px; margin: 0 auto;
  padding: 26px 16px 28px; display: flex; flex-direction: column; gap: 16px;
}
.avatar {
  width: 82px; height: 82px; border-radius: 50%; overflow: hidden; flex: none;
  display: grid; place-items: center; font-size: 34px; font-weight: 800;
  background: rgba(255, 255, 255, .18); border: 4px solid rgba(255, 255, 255, .85);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hello { font-size: 13px; letter-spacing: .6px; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.hero h1 { font-size: 27px; line-height: 1.15; font-weight: 800; }
.hero-sub { margin-top: 4px; opacity: .92; font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.badge { font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.badge.ok { background: #d7f5e3; color: #0b6b3a; }
.badge.muted { background: rgba(255, 255, 255, .18); color: #fff; }
.badge.gold { background: var(--gold); color: #3a2a00; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--g); color: #fff; font-weight: 700; font-size: 15px;
  transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11, 107, 58, .25); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.btn-light { background: #fff; color: var(--g); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-outline { background: transparent; color: var(--g); border: 2px solid var(--g); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--g); font-weight: 700; font-size: 14px; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { max-width: 1150px; margin: 0 auto; padding: 16px; }
.shell { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.side { min-width: 0; position: sticky; top: 58px; z-index: 40; background: var(--bg); padding: 6px 0; margin: 0 -16px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  padding: 10px 15px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer;
}
.tab:hover { color: var(--g); border-color: var(--g); }
.tab.active {
  background: linear-gradient(135deg, var(--g2), var(--g)); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(11, 107, 58, .28);
}
.count { background: #e53935; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; padding: 2px 6px; border-radius: 10px; text-align: center; }
.main { min-width: 0; }

.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 17px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.notice { background: #fff3cd; color: #7a5a00; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; line-height: 1.45; }
.not-seller .shell { display: none; }
.not-seller .hero-actions { display: none; }
.not-seller .fab { display: none; }
.eyebrow { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; opacity: .85; margin-bottom: 4px; }
.eyebrow.dark { color: var(--muted); opacity: 1; }
.soft { opacity: .88; font-size: 13.5px; margin-top: 2px; }

/* ---------- plan card / verification card ---------- */
.plan-card { background: linear-gradient(135deg, #0b6b3a, #12894b); color: #fff; margin-bottom: 0; }
.plan-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plan-card h2 { font-size: 26px; }
.plan-use { text-align: right; display: flex; flex-direction: column; }
.plan-use b { font-size: 24px; }
.plan-use span, .plan-use small { font-size: 12.5px; opacity: .9; }
.meter { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); margin: 16px 0; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold); transition: width .5s ease; }
.meter.light { background: #e3ece6; margin: 10px 0 0; }
.meter.light i { background: linear-gradient(90deg, var(--g2), var(--g)); }

.ver-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
.ver-ic { width: 54px; height: 54px; border-radius: 16px; background: var(--g-soft); display: grid; place-items: center; font-size: 26px; flex: none; }
.ver-ic.big { width: 64px; height: 64px; font-size: 32px; }
.ver-text { flex: 1; min-width: 160px; }
.ver-card h2, .ver-hero h2 { font-size: 21px; }
.ver-card p.muted { font-size: 13.5px; margin-top: 2px; }
.ver-hero { display: flex; align-items: center; gap: 16px; }

/* ---------- KPIs ---------- */
.grid-2 + .kpis { margin-top: 16px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; }
.kpi b { display: block; font-size: 24px; line-height: 1.1; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; flex: none; }
.kpi-ic.c1 { background: #e3f1ff; }
.kpi-ic.c2 { background: #dff5e8; }
.kpi-ic.c3 { background: #fff1d6; }
.kpi-ic.c4 { background: #fde6ee; }

.perf3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf { background: var(--g-soft); border-radius: 14px; padding: 14px 6px; text-align: center; }
.pf-ic { display: block; font-size: 20px; }
.pf b { display: block; font-size: 24px; color: var(--g); margin: 4px 0 2px; }
.pf span { font-size: 12.5px; color: var(--muted); }

/* ---------- lists ---------- */
.item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; padding-top: 0; }
.thumb {
  width: 96px; height: 86px; flex: none; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #cfe3d6, #a9c9b6); display: grid; place-items: center; font-size: 32px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.it { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip { color: var(--g); font-weight: 800; font-size: 17px; }
.il { color: var(--muted); font-size: 13px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.date { font-size: 12px; color: var(--muted); }
.status { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.status.active { background: #d8f3e3; color: #0b6b3a; }
.status.pending { background: #fff0cc; color: #7a5a00; }
.status.rejected { background: #fde0e0; color: #a12020; }
.status.draft { background: #e8e4f6; color: #4a3b8c; }
.status.sold, .status.rented { background: #e3e8ee; color: #3a4655; }
.del.edit { color: var(--green, #0b6b3a); text-decoration: none; }
.del { background: none; border: 0; color: var(--red); font-size: 13px; font-weight: 600; cursor: pointer; padding: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer;
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.chip:hover { border-color: var(--g); color: var(--g); }
.chip.active { background: var(--g-soft); border-color: var(--g); color: var(--g); }

.enq { padding: 12px 0 12px 14px; border-top: 1px solid var(--line); border-left: 4px solid transparent; cursor: default; }
.enq:first-child { border-top: 0; }
.enq.unread { border-left-color: var(--g); background: linear-gradient(90deg, rgba(11, 107, 58, .05), transparent); cursor: pointer; }
.enq-head { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.enq-head .for { font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.enq .txt { margin: 6px 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.45; }
.enq a.call { display: inline-block; margin-top: 4px; background: var(--g); color: #fff; padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 700; }

.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 14.5px; }
.empty p { margin-bottom: 12px; }

/* ---------- analytics chart ---------- */
.kpis-4 { margin-bottom: 16px; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.bar-col i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: #dbe6df; }
.bar-col i.has { background: linear-gradient(180deg, var(--g2), var(--g)); }
.chart-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-top: 6px; }

/* ---------- verification ---------- */
.hist { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hist:first-child { border-top: 0; padding-top: 0; }
.hist .small { margin-top: 2px; }

/* ---------- forms ---------- */
label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
input[type="text"], input[type="tel"], input[type="number"], input[type="file"], select, textarea {
  width: 100%; padding: 13px; border: 1px solid #cfd9d3; border-radius: 12px;
  font-size: 16px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--g); border-color: var(--g); }
textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 18px; }
#ver-form .btn, #settings-form .btn-block { margin-top: 18px; }

.complete-top { display: flex; justify-content: space-between; font-weight: 700; }
.complete-top b { color: var(--g); }

.cover-edit {
  height: 130px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #0b6b3a, #14a05c);
}
.cover-edit img { width: 100%; height: 100%; object-fit: cover; }
.avatar-row { display: flex; align-items: flex-end; gap: 14px; margin-top: -34px; padding: 0 14px; flex-wrap: wrap; }
.avatar-edit {
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 4px solid #fff;
  background: var(--g); color: #fff; display: grid; place-items: center; font-size: 32px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15); flex: none;
}
.avatar-edit img { width: 100%; height: 100%; object-fit: cover; }
.upload-btns { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; }
.upload-btns label { margin: 0; cursor: pointer; }

/* ---------- subscription ---------- */
.plan-banner { background: linear-gradient(135deg, #f4fbf7, #e6f4ec); }
.plan-banner h2 { font-size: 26px; color: var(--g); margin: 2px 0; }
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 8px; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: 22px;
  padding: 24px 20px 20px; display: flex; flex-direction: column;
}
.plan.popular { border-color: var(--gold); }
.plan.current { border-color: var(--g); box-shadow: 0 8px 24px rgba(11, 107, 58, .16); }
.plan h3 { font-size: 20px; }
.ribbon { position: absolute; top: -12px; right: 18px; background: var(--gold); color: #3a2a00; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.plan .price { margin: 10px 0 2px; }
.plan .price b { font-size: 34px; color: var(--g); }
.plan .price span { color: var(--muted); font-size: 15px; }
.plan-tag { font-weight: 600; margin-bottom: 12px; }
.features { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.features li { position: relative; padding: 6px 0 6px 28px; font-size: 14.5px; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--g-soft); color: var(--g); font-weight: 800; font-size: 12px; display: grid; place-items: center; }

/* ---------- floating button + toast ---------- */
.fab {
  position: fixed; right: 18px; bottom: 22px; z-index: 55; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 30px; line-height: 1;
  background: linear-gradient(135deg, var(--g2), var(--g-dark)); box-shadow: 0 8px 22px rgba(11, 107, 58, .45);
}
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #16251c; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 90;
  max-width: 90vw; text-align: center; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet ---------- */
@media (min-width: 640px) {
  .hero-in { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-text { flex: 1; min-width: 220px; }
  .hero h1 { font-size: 32px; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpis-4 { grid-template-columns: repeat(4, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding-bottom: 30px; }
  .fab { display: none; }
  .toast { bottom: 30px; }
  .hero-in { padding: 40px 16px 42px; gap: 22px; }
  .avatar { width: 104px; height: 104px; font-size: 42px; }
  .hero h1 { font-size: 36px; }
  .shell { grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: 22px; }
  .side { top: 84px; margin: 0; padding: 0; background: transparent; }
  .tabs { flex-direction: column; overflow: visible; padding: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); gap: 4px; }
  .tab { width: 100%; border: 0; background: transparent; padding: 12px 14px; font-size: 15px; }
  .tab .count { margin-left: auto; }
  .tab.active { box-shadow: 0 6px 16px rgba(11, 107, 58, .28); }
  .thumb { width: 120px; height: 96px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 23px; }
  .brand-name { font-size: 18px; }
  .pill-link { padding: 8px 10px; }
}
