/* ==========================================================================
   SONICGIDS EMPIRE — Page blocks
   Services, case studies, blog, about, contact, auth, wallet, misc pages.
   ========================================================================== */

/* ---------- Value strip / feature list ---------- */
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.feature .fi {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-size: 1rem;
}
.feature h4 { margin-bottom: 4px; }
.feature p { font-size: 0.89rem; }

/* ---------- Logo wall ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.logo-cell {
  background: #fff;
  padding: 22px 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--faint);
  text-align: center;
}
.logo-cell:hover { color: var(--ink); background: var(--bg-soft); }

/* ---------- Legacy pricing cards (kept for compatibility) ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--gold-line); box-shadow: var(--shadow-md); }
.price-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  color: #8a6a06;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; margin-top: 12px; }
.price-for { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.price-amount { display: flex; align-items: baseline; gap: 4px; margin-top: 16px; font-family: var(--font-head); }
.price-amount .cur { font-size: 1.05rem; color: var(--gold); }
.price-amount .num { font-size: clamp(2rem, 3.4vw, 2.6rem); color: var(--ink); font-weight: 700; }
.price-amount .per { font-size: 0.84rem; color: var(--muted); font-weight: 500; }
.price-note { font-size: 0.78rem; color: var(--faint); }
.price-card .btn { margin-top: 20px; }
.price-card .tick-list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.price-card .tick-list li { font-size: 0.88rem; }

.compare-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); }
.compare-toggle button { padding: 7px 16px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.compare-toggle button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- Filters (case studies / blog) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter-bar button {
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.18s var(--ease);
}
.filter-bar button:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-bar button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Case studies ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.case-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.case-top { padding: 22px 24px 0; }
.case-top .case-cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.case-top h3 { margin-top: 8px; font-size: 1.16rem; }
.case-body { padding: 16px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-body > p { font-size: 0.92rem; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.case-metrics .cm-v { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.case-metrics .cm-l { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---------- Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.post-cover {
  display: grid;
  place-items: center;
  height: 150px;
  font-size: 2.4rem;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 10px;
}
.post-body h3 { font-size: 1.08rem; margin-bottom: 8px; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--gold); }
.post-body p { font-size: 0.9rem; }
.post-body .card-link { margin-top: auto; padding-top: 14px; }

.post-featured { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.post-featured .post-cover { height: 100%; min-height: 260px; font-size: 3.4rem; border-bottom: 0; border-right: 1px solid var(--line); }
.post-featured .post-body { padding: clamp(24px, 3vw, 40px); }
.post-featured .post-body h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }

/* Article body */
.post-body p + p { margin-top: 14px; }

/* ---------- Team ---------- */
.person { text-align: center; }
.person .avatar-lg {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: #8a6a06;
}
.person h3 { font-size: 1.08rem; }
.person .role { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 6px 0 10px; }
.person p { font-size: 0.88rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--gold-strong);
}
.tl-year { font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--gold); }
.tl-item h3 { font-size: 1.02rem; margin: 6px 0 6px; }
.tl-item p { font-size: 0.91rem; }

/* ---------- Quote / callout ---------- */
.callout {
  padding: clamp(22px, 3vw, 32px);
  border-left: 3px solid var(--gold-strong);
  background: var(--bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.callout-source { display: block; margin-top: 12px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Service detail blocks ---------- */
.deliverable {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.deliverable:hover { border-color: var(--line-strong); }
.deliverable .dn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-soft);
}
.deliverable h4 { margin-bottom: 4px; font-size: 0.97rem; }
.deliverable p { font-size: 0.88rem; }

.kpi-card { text-align: center; }
.kpi-card .metric { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Auth pages ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 64px);
}
.auth-aside { padding-right: 10px; }
.auth-aside h2 { margin: 14px 0 14px; max-width: 20ch; }
.auth-aside .tick-list li { font-size: 0.92rem; }
.auth-main { display: flex; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.auth-switch { margin-top: 18px; text-align: center; font-size: 0.87rem; color: var(--muted); }
.auth-switch a { font-weight: 600; }
.auth-forgot { display: block; text-align: right; font-size: 0.8rem; margin-top: -8px; margin-bottom: 16px; }

.pw-field { position: relative; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 32px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 6px;
}
.pw-toggle:hover { color: var(--gold); }

.oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(22px, 4vw, 44px); align-items: start; }
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color 0.2s var(--ease);
}
.contact-item:hover { border-color: var(--line-strong); }
.contact-item .ci {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
}
.contact-item .cl { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-item .cv { font-size: 0.93rem; font-weight: 600; color: var(--text); word-break: break-word; }

.form-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.form-steps { display: flex; gap: 6px; margin-bottom: 20px; }
.form-steps span { height: 3px; flex: 1; border-radius: 99px; background: var(--surface-3); }
.form-steps span.on { background: var(--gold-strong); }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding-block: clamp(50px, 8vw, 110px); }
.error-code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--surface-3);
  letter-spacing: -0.04em;
}

/* ---------- Thank you ---------- */
.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ok-soft);
  border: 1px solid #bfe5d2;
  color: var(--ok);
  animation: popIn 0.4s var(--ease);
}
.success-mark svg { width: 36px; height: 36px; }
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Dashboard legacy pieces (progress, tasks) ---------- */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.dash-user { display: flex; align-items: center; gap: 14px; }
.dash-user .avatar { width: 48px; height: 48px; font-size: 1.05rem; }
.dash-user h1 { font-size: clamp(1.25rem, 2.3vw, 1.7rem); }
.dash-user .sub { font-size: 0.85rem; color: var(--muted); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dash-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}
.dash-stat .label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dash-stat .value { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--ink); margin-top: 6px; letter-spacing: -0.02em; }
.dash-stat .delta { font-size: 0.74rem; margin-top: 2px; color: var(--muted); }

.dash-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-top: 16px; }

.progress-row { display: grid; gap: 6px; margin-bottom: 16px; }
.progress-top { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-soft); }
.progress-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 99px; background: var(--gold-strong); }

.task-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.task-row:last-child { border-bottom: 0; }
.task-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-strong); flex: none; }
.task-dot.done { background: var(--ok); }
.task-dot.wait { background: var(--surface-3); }
.task-row .task-when { margin-left: auto; font-size: 0.76rem; color: var(--faint); }

/* ---------- Client wallet ---------- */
.wallet-panel { padding: clamp(20px, 2.4vw, 26px); }
.wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.wallet-head h2 { margin: 2px 0; font-size: 1.2rem; }
.wallet-balance {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wallet-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding-top: 18px; }
.wallet-topup, .wallet-activity { min-width: 0; }
.wallet-topup h3, .wallet-activity h3 { font-size: 1rem; margin-bottom: 6px; }
.wallet-topup .alert { margin-top: 10px; }
.wallet-bank-details {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-md);
  background: var(--gold-soft);
}
.wallet-bank-details .eyebrow { margin-bottom: 2px; }
.wallet-bank-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 0.84rem; }
.wallet-bank-line > span { color: var(--muted); flex: none; }
.wallet-bank-line strong { color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.wallet-account-number { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.admin-wallet-bank-details { max-width: 620px; }
.wallet-entry {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.87rem;
  color: var(--text-soft);
}
.wallet-entry:last-child { border-bottom: 0; }
.wallet-entry strong { white-space: nowrap; }
.wallet-entry .positive { color: var(--ok); }
.wallet-entry .negative { color: var(--bad); }
.wallet-status { font-size: 0.75rem; text-transform: capitalize; color: var(--muted); }

.bp-wallet-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  margin: 0 0 14px;
  font-size: 0.89rem;
  color: var(--text-soft);
}
.bp-wallet-summary strong { color: var(--ink); }
.bp-wallet-summary a { font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .dash-cols { grid-template-columns: 1fr; }
  .post-featured { grid-template-columns: 1fr; }
  .post-featured .post-cover { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .wallet-columns { grid-template-columns: 1fr; gap: 20px; }
  .wallet-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .case-metrics { grid-template-columns: 1fr 1fr; }
  .dash-head { align-items: flex-start; }
}
