/* =========================================================================
   AGENCY — Minimal & Professional UI
   ========================================================================= */

:root {
  --bg:            #ffffff;
  --bg-soft:       #fafafa;
  --bg-muted:      #f4f5f7;
  --surface:       #ffffff;

  --border:        #ececef;
  --border-strong: #d9dadd;

  --text:          #0f1115;
  --text-muted:    #5b606b;
  --text-soft:     #8a8f9a;

  --accent:        #0f1115;
  --accent-hover:  #2b2f37;
  --accent-soft:   #f1f2f4;

  /* Brand palette — red / black / gray / white */
  --brand:         #c8102e;
  --brand-dark:    #8b0a1e;
  --brand-soft:    #fdecee;
  --brand-tint:    #fbe1e4;

  --gray-50:       #fafafa;
  --gray-100:      #f4f5f6;
  --gray-200:      #e6e7ea;
  --gray-300:      #d2d4d8;
  --gray-400:      #a8aab0;
  --gray-500:      #74767c;
  --gray-600:      #4a4d55;
  --gray-700:      #2c2e34;
  --gray-900:      #0a0a0c;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15,17,21,.05);
  --shadow-md: 0 4px 14px rgba(15,17,21,.06);

  --container-max: 1400px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0 0 .5rem;
}
h1 { font-size: 2.25rem; letter-spacing: -.025em; line-height: 1.15; }
h2 { font-size: 1.75rem; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h5 { font-size: .95rem; }
p  { color: var(--text-muted); margin: 0 0 1rem; }

.text-muted { color: var(--text-muted) !important; }
.text-soft  { color: var(--text-soft)  !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1020;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .container-fluid { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.topbar .py-2 { padding-top: 14px !important; padding-bottom: 14px !important; }

.brand { color: var(--text); }
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 600; font-size: 15px; line-height: 1.1; letter-spacing: -.01em; }
.brand-tag  { font-size: 11px; color: var(--text-soft); margin-top: 2px; }

.main-nav .nav { gap: 2px; align-items: center; }
.main-nav .nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.main-nav .nav-link:hover { color: var(--text); background: var(--bg-muted); }
.main-nav .nav-link.active { color: var(--text); background: var(--accent-soft); }

.main-nav .btn-login {
  background: var(--accent);
  color: #fff !important;
  margin-left: 6px;
  padding: 8px 16px;
  font-weight: 500;
}
.main-nav .btn-login:hover { background: var(--accent-hover); color: #fff !important; }
.main-nav .btn-login.active,
.main-nav .nav-link.btn-login.active {
  background: var(--accent-hover);
  color: #fff !important;
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.main-nav .btn-login i { margin-right: 4px; }

/* User chip + avatar (logged-in) */
.main-nav .nav-link.icon-only { padding: 8px 10px; }
.main-nav .user-chip {
  display: inline-flex; align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 14px 4px 4px;
  margin-left: 8px;
  color: var(--text) !important;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.main-nav .user-chip:hover {
  background: var(--bg-muted);
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.main-nav .user-chip[aria-expanded="true"] {
  background: var(--bg-muted);
  border-color: var(--accent);
}
.main-nav .user-chip::after { margin-left: 6px; }
.user-avatar {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.user-avatar i { line-height: 1; }
.dropdown-menu { font-size: 14px; min-width: 220px; border-radius: var(--radius-sm); }
.dropdown-item { padding: 8px 14px; }
.dropdown-item:hover { background: var(--bg-muted); }

/* Compact nav on smaller screens */
@media (max-width: 1199.98px) {
  .main-nav .nav-link { padding: 6px 9px; font-size: 13px; }
  .main-nav .user-chip { padding: 3px 12px 3px 3px; }
  .user-avatar { width: 24px; height: 24px; font-size: 12px; }
}
@media (max-width: 991.98px) {
  .topbar .container-fluid > .d-flex { flex-direction: column; align-items: flex-start !important; gap: 6px; }
  .main-nav .nav { flex-wrap: wrap; }
}

/* ---------- Layout ---------- */
.layout {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 24px;
  min-height: calc(100vh - 64px - 220px);
}
.layout.layout-full { grid-template-columns: 1fr; gap: 0; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky; top: 80px;
  align-self: start;
}
.sidebar-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
  padding: 0 8px;
}
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li { margin: 1px 0; }
.service-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: background .12s ease, color .12s ease;
}
.service-list a i { font-size: 14px; opacity: .7; }
.service-list a:hover { background: var(--bg-muted); color: var(--text); }

.sidebar-cta {
  margin-top: 24px;
  padding: 16px;
  background: var(--bg-muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.sidebar-cta .small { font-size: 12px; color: var(--text-soft); margin-bottom: 8px; }
.sidebar-cta .btn {
  background: var(--accent);
  border: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
}
.sidebar-cta .btn:hover { background: var(--accent-hover); color: #fff; }

/* ---------- Content ---------- */
.content-area { min-width: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 720px;
  margin-bottom: 16px;
}
.hero .lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all .15s ease;
}
.btn-primary, .btn-dark {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover, .btn-dark:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-outline-primary, .btn-outline-dark {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline-primary:hover, .btn-outline-dark:hover {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-light {
  background: #fff; border-color: var(--border-strong); color: var(--text);
}
.btn-light:hover { background: var(--bg-muted); color: var(--text); }
.btn-lg { padding: 12px 20px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Sections ---------- */
.section { margin-bottom: 48px; }
.section-header { margin-bottom: 24px; }
.section-header .label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.section-header h2 { margin-bottom: 8px; }
.section-header p { max-width: 600px; margin: 0; }

.section-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.section-card h3, .section-card h4, .section-card h5 { margin-top: 0; }
.section-card p:last-child { margin-bottom: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature:hover {
  border-color: var(--text);
  transform: translateY(-1px);
  color: inherit;
}
.feature .icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}
.feature h5 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.feature p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin-top: 32px;
}
.cta-banner h3 { color: #fff; margin-bottom: 8px; font-size: 1.5rem; }
.cta-banner p { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.cta-banner .btn-light { background: #fff; color: var(--text); border-color: #fff; }
.cta-banner .btn-light:hover { background: #f0f0f0; color: var(--text); }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--surface);
}
.accordion-button {
  background: var(--surface);
  font-weight: 500;
  font-size: 15px;
  padding: 18px 20px;
  color: var(--text);
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) {
  background: var(--bg-muted);
  color: var(--text);
}
.accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-body { color: var(--text-muted); padding: 0 20px 20px; font-size: 14px; }

/* ---------- Pricing ---------- */
.price-row { display: flex; align-items: baseline; }
.price {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}
.price-suffix { font-size: 14px; color: var(--text-soft); margin-left: 8px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 48px;
}
.footer .container-fluid { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.footer h6 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footer ul { padding: 0; list-style: none; margin: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul li a, .footer ul li {
  color: var(--text-muted);
  font-size: 14px;
}
.footer ul li a:hover { color: var(--text); }
.footer .small, .footer .small p { font-size: 13px; color: var(--text-muted); }
.footer .border-top {
  border-color: var(--border) !important;
  font-size: 12px;
  color: var(--text-soft);
  padding-top: 20px !important;
}

/* ---------- Bootstrap overrides for harmony ---------- */
.row { --bs-gutter-x: 1rem; }
.lead { font-weight: 400; }
.display-5 { font-weight: 600; letter-spacing: -.025em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }
  .sidebar {
    position: static;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--bg-soft);
  }
  .sidebar-title { padding: 0; margin-bottom: 8px; }
  .service-list { display: flex; flex-wrap: wrap; gap: 4px; }
  .service-list li { margin: 0; }
  .service-list a { padding: 6px 10px; }
  .sidebar-cta { display: none; }
  .hero { padding: 32px 0 24px; margin-bottom: 24px; }
  .hero h1 { font-size: 1.875rem; }
  .main-nav { width: 100%; margin-top: 8px; }
  .main-nav .nav { flex-wrap: wrap; }
}

/* =========================================================================
   FORMS
   ========================================================================= */
.auth-shell {
  max-width: 760px;
  margin: 0 auto;
}
.auth-shell.narrow { max-width: 460px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-card .form-title {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 6px;
}
.form-card .form-sub {
  color: var(--text-muted); font-size: 14px; margin: 0 0 24px;
}

.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-size: 13px; font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label .req { color: #d4252e; margin-left: 2px; }
.form-hint { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(15,17,21,.08);
}
.form-input::placeholder { color: var(--text-soft); }
.form-input.is-invalid { border-color: #d4252e; }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(212,37,46,.12); }

.form-error { color: #d4252e; font-size: 12px; margin-top: 4px; }

.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}
.form-check input[type=checkbox] {
  margin-top: 3px;
  accent-color: var(--text);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: 8px;
}
.checkbox-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.checkbox-pill:hover { background: var(--bg-muted); }
.checkbox-pill input { accent-color: var(--text); }
.checkbox-pill.checked { border-color: var(--text); background: var(--accent-soft); }

.password-rules {
  list-style: none;
  padding: 10px 12px;
  margin: 6px 0 0;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 4px 12px;
}
.password-rules li {
  color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
  transition: color .15s, opacity .2s;
}
.password-rules li::before {
  content: "○";
  color: var(--text-soft);
  font-size: 14px;
  width: 14px; display: inline-block;
}
.password-rules li.ok {
  color: #1a7f37;
  text-decoration: line-through;
  opacity: .55;
}
.password-rules li.ok::before {
  content: "●";
  color: #1a7f37;
}
/* Once a rule is met, hide it from the list (SOW: requirement disappears when typed). */
.password-rules.hide-met li.ok {
  display: none;
}
.password-rules.all-met::after {
  content: "✓ Strong password";
  display: block;
  grid-column: 1/-1;
  color: #1a7f37;
  font-weight: 600;
  font-size: 12px;
}

.form-divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 24px 0;
}
.form-divider::before, .form-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

.section-divider {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin: 28px 0 16px;
}

/* =========================================================================
   FLASH
   ========================================================================= */
.flash-stack { margin-bottom: 20px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}
.flash-success { background: #ecfdf3; color: #096b34; border-color: #abefc6; }
.flash-error   { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.flash-info    { background: var(--bg-muted); color: var(--text); border-color: var(--border); }
.flash-warn    { background: #fffaeb; color: #93370d; border-color: #fedf89; }


/* =========================================================================
   VISUAL LAYER (v3) — flat professional palette: red / black / gray / white
   No gradients on cards. Red used only as accent for icons, badges, CTAs.
   ========================================================================= */

/* ---- Hero v3: white surface, gray bottom rule, red eyebrow accent ---- */
.hero-v3 {
  position: relative;
  margin: -32px -24px 40px;
  padding: 64px 24px 56px;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.hero-v3 .hero-inner { max-width: var(--container-max); margin: 0 auto; position: relative; }
.hero-v3 .eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  padding: 5px 12px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero-v3 h1 {
  font-size: 2.75rem; line-height: 1.1; letter-spacing: -.03em;
  color: var(--gray-900);
  max-width: 720px; margin: 0 0 16px;
}
.hero-v3 .lead {
  font-size: 1.0625rem; color: var(--gray-600);
  max-width: 620px; line-height: 1.6; margin: 0 0 26px;
}
.hero-v3 .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-v3-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
@media (max-width: 991.98px) {
  .hero-v3-grid { grid-template-columns: 1fr; }
}

/* Visual side: image or SVG illustration */
.hero-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  aspect-ratio: 4/3;
}
.hero-visual img,
.hero-visual svg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-visual .badge-stat {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 18px -6px rgba(10,10,12,.18);
}
.hero-visual .badge-stat .b-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.hero-visual .badge-stat .b-num { font-weight: 700; font-size: 14px; color: var(--gray-900); line-height: 1.1; }
.hero-visual .badge-stat .b-lab { font-size: 11px; color: var(--gray-500); }

/* Hero preview list (flat, monochrome) */
.preview-list {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 20px -10px rgba(10,10,12,.12);
}
.preview-list .pv-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  background: #fff;
  margin-bottom: 8px;
}
.preview-list .pv-row:last-child { margin-bottom: 0; }
.preview-list .pv-avatar {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gray-900); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.preview-list .pv-avatar i { font-size: 16px; }
.preview-list .pv-name { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.preview-list .pv-sub  { font-size: 12px; color: var(--gray-500); }
.preview-list .pv-tag {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.preview-list .pv-tag.brand {
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint);
}
.preview-list .pv-tag.dark {
  background: var(--gray-900); color: #fff; border-color: var(--gray-900);
}

/* ---- Stat strip (flat) ---- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin: 24px 0 8px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 18px 20px;
  position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.stat-card:hover { border-color: var(--gray-900); transform: translateY(-1px); }
.stat-card .stat-num {
  font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1;
  color: var(--gray-900);
}
.stat-card .stat-label { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.stat-card .stat-icon {
  position: absolute; right: 14px; top: 14px;
  width: 30px; height: 30px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.stat-card.accent .stat-icon {
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint);
}

/* ---- Feature card (flat, optional accent) ---- */
.feature-flat {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: block; color: inherit; text-decoration: none;
  height: 100%;
}
.feature-flat:hover {
  border-color: var(--gray-900);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(10,10,12,.16);
  color: inherit;
}
.feature-flat .ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
  background: var(--gray-100); color: var(--gray-900);
  border: 1px solid var(--gray-200);
}
.feature-flat.accent .ico {
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint);
}
.feature-flat.dark .ico {
  background: var(--gray-900); color: #fff; border-color: var(--gray-900);
}
.feature-flat h5 { font-size: 16px; font-weight: 600; margin: 0 0 6px; color: var(--gray-900); }
.feature-flat p  { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.55; }
.feature-flat .arrow {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--brand);
  opacity: 0; transform: translateX(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.feature-flat:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---- Step list (numbered, monochrome) ---- */
.step-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px;
  counter-reset: step;
}
.step-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 26px 20px 20px;
  counter-increment: step;
  transition: border-color .15s ease;
}
.step-item:hover { border-color: var(--gray-900); }
.step-item::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: -12px; left: 18px;
  background: var(--brand);
  color: #fff; font-weight: 700; font-size: 11px;
  padding: 5px 10px; border-radius: 4px;
  letter-spacing: .04em;
}
.step-item h6 { font-size: 14px; font-weight: 600; margin: 6px 0 6px; color: var(--gray-900); }
.step-item p  { font-size: 13px; color: var(--gray-600); margin: 0; }

/* ---- Quote / testimonial (light gray surface, full width) ---- */
.quote-card {
  background: var(--gray-50);
  color: var(--gray-900);
  border-radius: 12px;
  padding: 32px;
  position: relative; overflow: hidden;
  border: 1px solid var(--gray-200);
}
.quote-card .quote-mark {
  font-size: 56px; font-family: Georgia, serif; line-height: 1;
  color: var(--brand); margin-bottom: 4px;
}
.quote-card .quote-text { font-size: 1.0625rem; line-height: 1.6; margin: 0 0 22px; color: var(--gray-800); }
.quote-card .quote-author { display: flex; align-items: center; gap: 12px; }
.quote-card .quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; color: var(--gray-900);
}
.quote-card .quote-meta { font-size: 13px; color: var(--gray-600); }
.quote-card .quote-meta strong { display: block; font-size: 14px; color: var(--gray-900); font-weight: 600; }

/* ---- Pricing card (flat) ---- */
.pricing-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--gray-900);
  box-shadow: 0 14px 32px -16px rgba(10,10,12,.16);
}
.pricing-card.popular {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.pricing-card.popular::after {
  content: "Most popular"; position: absolute;
  top: -12px; right: 20px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: .04em; text-transform: uppercase;
}
.pricing-card .pc-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gray-100); color: var(--gray-900);
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 18px;
}
.pricing-card.popular .pc-icon {
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint);
}
.pricing-card .pc-price {
  display: flex; align-items: baseline; gap: 6px;
  font-size: 2.5rem; font-weight: 700; letter-spacing: -.025em;
  margin: 8px 0 4px; color: var(--gray-900);
}
.pricing-card .pc-price small { font-size: 14px; font-weight: 500; color: var(--gray-500); }
.pricing-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.pricing-card ul li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; color: var(--gray-600); padding: 6px 0;
}
.pricing-card ul li i { color: var(--brand); font-size: 14px; margin-top: 3px; }

/* ---- FAQ chips ---- */
.faq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.faq-chip {
  background: #fff; border: 1px solid var(--gray-200);
  padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  color: var(--gray-600); cursor: pointer;
  transition: all .15s ease;
}
.faq-chip:hover { border-color: var(--gray-900); color: var(--gray-900); }
.faq-chip.active { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }

/* ---- Blog cards ---- */
.blog-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%; display: flex; flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--gray-900);
  box-shadow: 0 14px 32px -16px rgba(10,10,12,.14);
}
.blog-card .blog-cover {
  width: 100%; aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 32px;
  position: relative; overflow: hidden;
}
.blog-card .blog-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card .blog-cover .cover-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(10,10,12,.04) 100%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(200,16,46,.06) 14px 15px);
}
.blog-card .blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-meta {
  font-size: 11px; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px; font-weight: 600;
}
.blog-card .blog-meta .dot { color: var(--brand); }
.blog-card h4 { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: var(--gray-900); }
.blog-card p  { font-size: 14px; color: var(--gray-600); margin: 0 0 16px; flex: 1; }
.blog-card .blog-footer { display: flex; justify-content: space-between; align-items: center; }

/* ---- Dashboard tile (flat) ---- */
.dash-tile {
  position: relative;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%; display: flex; flex-direction: column;
  overflow: hidden;
  text-decoration: none; color: inherit;
}
.dash-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gray-900);
  box-shadow: 0 14px 32px -16px rgba(10,10,12,.14);
  color: inherit;
}
.dash-tile .dt-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gray-100); color: var(--gray-900);
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.dash-tile.accent .dt-icon {
  background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint);
}
.dash-tile.dark .dt-icon {
  background: var(--gray-900); color: #fff; border-color: var(--gray-900);
}
.dash-tile h5 { font-size: 15px; font-weight: 600; margin: 0 0 6px; color: var(--gray-900); }
.dash-tile p  { font-size: 13px; color: var(--gray-600); margin: 0 0 14px; flex: 1; }

/* ---- CTA banner (light surface, soft accent) ---- */
.cta-banner-v3 {
  position: relative; overflow: hidden;
  background: var(--brand-soft);
  color: var(--gray-900);
  border-radius: 14px;
  padding: 48px 40px;
  margin-top: 40px;
  text-align: center;
  border: 1px solid var(--brand-tint);
}
.cta-banner-v3::after {
  content: ""; position: absolute;
  width: 420px; height: 420px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(200,16,46,.10) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-v3 > * { position: relative; }
.cta-banner-v3 h3 { font-size: 1.75rem; color: var(--gray-900); margin: 0 0 10px; font-weight: 700; letter-spacing: -.015em; }
.cta-banner-v3 p { color: var(--gray-700); font-size: 1rem; margin: 0 0 22px; }
.cta-banner-v3 .btn-light {
  background: var(--brand); color: #fff; border: 1px solid var(--brand); font-weight: 600;
  box-shadow: 0 6px 16px -8px rgba(200,16,46,.5);
}
.cta-banner-v3 .btn-light:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.cta-banner-v3 .btn-outline-light {
  background: #fff; color: var(--gray-900); border: 1px solid var(--gray-200); font-weight: 600;
}
.cta-banner-v3 .btn-outline-light:hover { background: var(--gray-50); color: var(--gray-900); border-color: var(--gray-300); }

/* ---- Section title with red accent bar ---- */
.section-title {
  position: relative; padding-left: 14px; margin-bottom: 20px;
  color: var(--gray-900);
}
.section-title::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  background: var(--brand);
}

/* ---- Animated underline link ---- */
.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 600; font-size: 14px; color: var(--brand);
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 16px; bottom: -2px;
  height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow i { transition: transform .2s ease; }
.link-arrow:hover i { transform: translateX(2px); }

/* ---- Brand button helpers ---- */
.btn-brand {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand {
  background: transparent; border-color: var(--brand); color: var(--brand);
}
.btn-outline-brand:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }

/* ---- Image gallery strip ---- */
.image-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.image-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.image-tile img,
.image-tile svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile .tile-label {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(10,10,12,.85); color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 4px 8px; border-radius: 4px;
  letter-spacing: .03em; text-transform: uppercase;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .hero-v3 { padding: 48px 20px 48px; margin: -32px -16px 32px; }
  .hero-v3 h1 { font-size: 2rem; }
  .stat-card .stat-num { font-size: 1.4rem; }
  .quote-card { padding: 24px; }
  .cta-banner-v3 { padding: 36px 24px; }
}


/* =========================================================================
   AUTH SPLIT — image left, form right (login/signup/forgot/reset/verify)
   ========================================================================= */
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: -32px -24px 0;
  min-height: calc(100vh - 200px);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.auth-split::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand); z-index: 2;
}
.auth-visual {
  position: relative;
  background: var(--gray-900);
  color: #fff;
  padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-visual::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(10,10,12,.55) 0%, rgba(10,10,12,.85) 100%);
  pointer-events: none;
}
.auth-visual .av-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
  filter: grayscale(40%) contrast(1.05);
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual .av-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: #fff;
}
.auth-visual .av-brand .av-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.auth-visual h2 {
  font-size: 2rem; line-height: 1.2; color: #fff;
  margin: 0 0 14px; max-width: 420px; letter-spacing: -.02em;
}
.auth-visual .av-lead { color: rgba(255,255,255,.78); max-width: 440px; font-size: 1rem; line-height: 1.6; }
.auth-visual .av-list { list-style: none; padding: 0; margin: 24px 0 0; max-width: 440px; }
.auth-visual .av-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; color: rgba(255,255,255,.85); font-size: 14px;
}
.auth-visual .av-list li i {
  color: var(--brand); font-size: 14px; margin-top: 4px;
  background: rgba(200,16,46,.18); border-radius: 4px;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.auth-visual .av-foot {
  font-size: 12px; color: rgba(255,255,255,.55); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.auth-visual .av-foot strong { color: rgba(255,255,255,.85); }

.auth-form-side {
  padding: 48px 40px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
}
.auth-form-side .auth-form-inner {
  width: 100%; max-width: 420px;
}
.auth-form-side .form-card {
  border: none; padding: 0; background: transparent;
}
.auth-form-side .form-title { font-size: 1.875rem; letter-spacing: -.02em; }

@media (max-width: 991.98px) {
  .auth-split { grid-template-columns: 1fr; min-height: 0; margin: -32px -24px 0; }
  .auth-visual { padding: 36px 24px; min-height: 240px; }
  .auth-visual h2 { font-size: 1.5rem; }
  .auth-form-side { padding: 36px 24px; }
}

/* ---- Standalone narrow auth (verify / phone_verify) ---- */
.auth-narrow {
  max-width: 480px; margin: 32px auto 0;
}
.auth-narrow .auth-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 36px 32px;
  position: relative; overflow: hidden;
}
.auth-narrow .auth-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--brand);
}
.auth-icon-tile {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 16px;
}
.auth-icon-tile.dark { background: var(--gray-900); color: #fff; border-color: var(--gray-900); }
.auth-icon-tile.success { background: #e8f5ec; color: #1a7f37; border-color: #cae8d3; }
.auth-icon-tile.fail { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint); }

/* =========================================================================
   SIGNUP CHOICE (two big cards with photo)
   ========================================================================= */
.signup-choice-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 767.98px) { .signup-choice-grid { grid-template-columns: 1fr; } }
.signup-choice {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.signup-choice:hover {
  transform: translateY(-2px);
  border-color: var(--gray-900);
  box-shadow: 0 14px 32px -16px rgba(10,10,12,.16);
  color: inherit;
}
.signup-choice .sc-cover {
  aspect-ratio: 16/9;
  overflow: hidden; position: relative;
  background: var(--gray-100);
}
.signup-choice .sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signup-choice .sc-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.45) 100%);
}
.signup-choice .sc-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--brand); color: #fff;
  font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: .04em;
  z-index: 1;
}
.signup-choice .sc-tag.dark { background: var(--gray-900); }
.signup-choice .sc-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.signup-choice .sc-body h4 { margin: 0 0 8px; font-size: 1.25rem; color: var(--gray-900); font-weight: 600; }
.signup-choice .sc-body p  { color: var(--gray-600); font-size: 14px; margin: 0 0 16px; flex: 1; }
.signup-choice .sc-body ul { list-style: none; padding: 0; margin: 0 0 16px; }
.signup-choice .sc-body ul li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--gray-600); padding: 4px 0;
}
.signup-choice .sc-body ul li i { color: var(--brand); margin-top: 3px; font-size: 13px; }
.signup-choice .sc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14px; color: var(--brand);
}
.signup-choice:hover .sc-cta { color: var(--brand-dark); }

/* =========================================================================
   NOTIFICATION LIST (flat)
   ========================================================================= */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-row {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 14px 16px;
  text-decoration: none; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.notif-row:hover { border-color: var(--gray-900); transform: translateX(2px); color: inherit; }
.notif-row.unread { border-left: 3px solid var(--brand); padding-left: 13px; background: #fff; }
.notif-row .nf-ico {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.notif-row.unread .nf-ico { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint); }
.notif-row .nf-body { flex: 1; min-width: 0; }
.notif-row .nf-title { font-weight: 600; font-size: 14px; color: var(--gray-900); }
.notif-row .nf-msg { font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.notif-row .nf-time { font-size: 11px; color: var(--gray-500); white-space: nowrap; flex-shrink: 0; }
.notif-row .nf-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); margin-left: 6px; vertical-align: middle;
}

/* =========================================================================
   INVOICE SUMMARY + TABLE
   ========================================================================= */
.inv-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 16px;
}
.inv-summary {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  position: relative; overflow: hidden;
}
.inv-summary .inv-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gray-100); color: var(--gray-700);
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.inv-summary.due .inv-ico { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint); }
.inv-summary.paid .inv-ico { background: #e8f5ec; color: #1a7f37; border-color: #cae8d3; }
.inv-summary .inv-num { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1.1; letter-spacing: -.01em; }
.inv-summary .inv-lab { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

.inv-table-wrap {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; overflow: hidden;
}
.inv-table-wrap table { width: 100%; min-width: 700px; margin: 0; border-collapse: collapse; }
.inv-table-wrap thead th {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-200);
  padding: 12px 16px; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em;
}
.inv-table-wrap tbody tr { border-bottom: 1px solid var(--gray-100); }
.inv-table-wrap tbody tr:last-child { border-bottom: none; }
.inv-table-wrap tbody td { padding: 14px 16px; vertical-align: middle; font-size: 14px; }
.inv-table-wrap tfoot td { padding: 14px 16px; background: var(--gray-50); font-size: 14px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200);
}
.status-pill.paid { background: #e8f5ec; color: #1a7f37; border-color: #cae8d3; }
.status-pill.due, .status-pill.sent { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-tint); }
.status-pill.overdue { background: var(--brand); color: #fff; border-color: var(--brand); }
.status-pill.draft { background: var(--gray-100); color: var(--gray-500); }

/* =========================================================================
   TERMS / LEGAL DOCUMENT
   ========================================================================= */
.terms-doc {
  max-width: 820px; margin: 0 auto;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 40px 48px;
  font-size: 15px; line-height: 1.7; color: var(--gray-700);
  white-space: pre-wrap;
  position: relative;
}
.terms-doc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--brand); border-radius: 12px 0 0 12px;
}
@media (max-width: 767.98px) { .terms-doc { padding: 28px 24px; } }

/* =========================================================================
   SERVICE PAGE
   ========================================================================= */
.service-meta-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 24px;
}
.service-job-card {
  position: relative;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 18px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
}
.service-job-card:hover { border-color: var(--gray-900); transform: translateY(-1px); box-shadow: 0 10px 24px -16px rgba(10,10,12,.18); }
.service-job-card.has-thumb {
  flex-direction: row; align-items: stretch; gap: 16px; padding: 16px;
}
.service-job-card .sj-thumb {
  flex-shrink: 0;
  width: 110px; align-self: stretch;
  border-radius: 10px;
  background-color: var(--brand-soft);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--gray-200);
  position: relative; overflow: hidden;
}
.service-job-card .sj-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,0) 40%, rgba(10,10,12,.45) 100%);
  pointer-events: none;
}
.service-job-card .sj-thumb-tag {
  position: absolute; left: 8px; bottom: 8px;
  z-index: 1;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.service-job-card .sj-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.service-job-card .sj-foot { margin-top: auto; }
.service-job-card .sj-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.service-job-card .sj-title { font-weight: 600; color: var(--gray-900); font-size: 15px; }
.service-job-card .sj-loc {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500; color: var(--gray-600);
  white-space: nowrap;
}
.service-job-card .sj-loc i { color: var(--brand); font-size: 13px; }
.service-job-card .sj-meta { font-size: 13px; color: var(--gray-600); display: flex; flex-direction: column; gap: 4px; }
.service-job-card .sj-wage { color: var(--brand); font-weight: 700; font-size: 14px; }
@media (max-width: 575.98px) {
  .service-job-card.has-thumb { flex-direction: column; }
  .service-job-card .sj-thumb { width: 100%; height: 90px; }
}

/* =========================================================================
   EMPTY STATE
   ========================================================================= */
.empty-state {
  background: #fff; border: 1px dashed var(--gray-300);
  border-radius: 12px; padding: 48px 24px;
  text-align: center; color: var(--gray-500);
}
.empty-state .es-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gray-100); color: var(--gray-500);
  border: 1px solid var(--gray-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 14px;
}
.empty-state h5 { color: var(--gray-900); margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.empty-state p { color: var(--gray-500); margin: 0 0 16px; font-size: 14px; }

/* =========================================================================
   PAGE HEADER (small, for non-hero pages)
   ========================================================================= */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.page-head::after {
  content: ""; position: absolute; bottom: -1px; left: 0; width: 48px; height: 3px;
  background: var(--brand);
}
.page-head h1 { font-size: 1.75rem; margin: 0 0 4px; color: var(--gray-900); }
.page-head .ph-sub { color: var(--gray-500); font-size: 14px; margin: 0; }
.page-head .ph-actions { display: flex; gap: 8px; }

/* =========================================================================
   FORM REFINEMENTS — focus & validation match brand
   ========================================================================= */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gray-900);
  box-shadow: 0 0 0 3px rgba(10,10,12,.08);
}
.form-input.is-invalid { border-color: var(--brand); }
.form-input.is-invalid:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.checkbox-pill.checked { border-color: var(--gray-900); background: var(--gray-50); }

/* OTP-style input */
.otp-input {
  letter-spacing: 14px; font-size: 22px; font-weight: 700;
  text-align: center; padding-left: 14px;
  font-feature-settings: "tnum";
}

/* =========================================================================
   POLISH PASS — symmetry & aesthetic refinements
   ========================================================================= */

/* Footer: balanced bottom padding so the copyright row doesn't hug the edge */
.footer .d-flex.border-top { padding-bottom: 24px; }
.footer .row.py-5 { padding-top: 56px !important; padding-bottom: 32px !important; }

/* Section rhythm: keep last section away from footer */
.section:last-of-type { margin-bottom: 56px; }

/* Hero v3: tighter symmetry between the two columns */
.hero-v3 .hero-actions { margin-top: 4px; }
.hero-v3 h1 { max-width: 640px; }

/* page-head — slightly bigger headings to match hero-v3 rhythm */
.page-head h1 { font-size: 1.875rem; line-height: 1.2; }
.page-head .ph-sub { font-size: 0.9375rem; }
.page-head .ph-actions { align-self: center; }

/* Universal: anchored card grids should fill row height */
.row > [class*="col-"] > .feature-flat,
.row > [class*="col-"] > .blog-card,
.row > [class*="col-"] > .dash-tile,
.row > [class*="col-"] > .pricing-card { height: 100%; }

/* Stat strip: consistent gap on hero overlap */
.stat-strip { margin-top: 48px; }

/* CTA banner v3 default vertical breathing room */
.cta-banner-v3 { margin: 56px 0 64px; }

/* Form/section card spacing inside .layout uniformity */
.section-card + .section-card { margin-top: 12px; }
.form-card { margin-bottom: 16px; }

/* Empty state: center-block when used as page placeholder */
.empty-state { margin: 24px auto; max-width: 520px; text-align: center; }

/* Buttons: ensure outline-dark and brand same height in hero */
.btn-lg { padding: 10px 22px; font-size: 0.95rem; }
.btn-brand, .btn-primary, .btn-outline-dark { line-height: 1.4; }

/* Secondary nav pills (jobs/profile tabs) rounded harmony */
.nav-pills .nav-link {
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid transparent;
}
.nav-pills .nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-pills .nav-link.active {
  background: var(--gray-900) !important;
  color: #fff !important;
  border-color: var(--gray-900);
}

/* Tables inside section-card: clean borders & spacing */
.section-card table { margin-bottom: 0; }
.section-card table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-500); font-weight: 600; }

/* Section-card: consistent radius & subtle shadow on hover for actionable cards */
.section-card {
  border-radius: 12px;
}
a.section-card { transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
a.section-card:hover {
  border-color: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -10px rgba(10,10,12,.18);
}

/* Inputs: consistent height with bootstrap form-control siblings */
.form-input, .form-select { min-height: 40px; }

/* Filter bar — symmetric grid for jobs/admin pages */
.filter-bar { padding: 18px 20px; }
.filter-bar .form-label { font-weight: 500; color: var(--gray-600); margin-bottom: 6px; display: block; }
.filter-bar .form-input,
.filter-bar .form-select { width: 100%; height: 42px; }
.filter-bar .filter-actions { padding-top: 6px; }
.filter-bar .filter-actions .btn { height: 42px; padding-inline: 18px; }

/* Vertical alignment of inline icon labels */
.text-soft.small i, .text-muted.small i { vertical-align: -1px; }

/* =========================================================================
   PROFILE HERO — banner + centered avatar + stats card
   ========================================================================= */
.profile-hero {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px -14px rgba(10,10,12,.12);
}
.profile-hero .ph-cover {
  position: relative;
  min-height: 260px;
  background-size: cover;
  background-position: center;
  background-color: var(--brand-soft);
  display: flex; align-items: center;
  padding: 32px 28px;
}
.profile-hero .ph-cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.82) 0%, rgba(10,10,12,.55) 50%, rgba(10,10,12,.15) 100%);
  pointer-events: none;
}
.profile-hero .ph-cover-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 22px;
  width: 100%;
}
.profile-hero .ph-avatar {
  width: 132px; height: 132px;
  border-radius: 14px;
  background: var(--accent); color: #fff;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px -12px rgba(10,10,12,.55);
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.profile-hero .ph-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero .ph-avatar i { font-size: 52px; }
.profile-hero .ph-cover-text {
  display: flex; flex-direction: column; gap: 10px;
  min-width: 0;
}
.profile-hero .ph-role-chip {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 12px; border-radius: 6px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.85);
}
.profile-hero .ph-name {
  margin: 0; font-size: 1.875rem; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
  line-height: 1.15;
}
.profile-hero .ph-cover-text .ph-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(255,255,255,.92); font-weight: 500;
  margin-top: 4px;
}
.profile-hero .ph-cover-text .ph-meta span { display: inline-flex; align-items: center; gap: 6px; }
.profile-hero .ph-cover-text .ph-meta i { color: #fff; opacity: .9; }
.profile-hero .ph-body {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 16px; flex-wrap: wrap;
  padding: 14px 28px;
  border-top: 1px solid var(--gray-100);
  background: #fff;
}
.profile-hero .ph-stats {
  display: inline-flex; align-items: stretch;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 4px;
  gap: 0;
}
.profile-hero .ph-stat {
  padding: 8px 18px;
  text-align: center;
  position: relative;
  min-width: 0;
}
.profile-hero .ph-stat + .ph-stat::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 1px; background: var(--gray-200);
}
.profile-hero .phs-num {
  font-size: 17px; font-weight: 700; color: var(--gray-900);
  display: inline-flex; align-items: center; gap: 4px;
  line-height: 1.1;
  white-space: nowrap;
}
.profile-hero .phs-lab {
  font-size: 10px; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}
@media (max-width: 991.98px) {
  .profile-hero .ph-stats { width: 100%; overflow-x: auto; }
}
@media (max-width: 575.98px) {
  .profile-hero .ph-cover { min-height: 220px; padding: 22px 18px; }
  .profile-hero .ph-cover-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .profile-hero .ph-avatar { width: 88px; height: 88px; }
  .profile-hero .ph-avatar i { font-size: 38px; }
  .profile-hero .ph-name { font-size: 1.4rem; }
  .profile-hero .ph-cover-text .ph-meta { font-size: 12px; gap: 10px; }
  .profile-hero .ph-body { padding: 12px 18px; }
}

/* Profile tabs strip */
.profile-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 20px;
  position: sticky; top: 64px; z-index: 5;
  box-shadow: 0 2px 8px -6px rgba(10,10,12,.08);
}
.profile-tabs .pt-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.profile-tabs .pt-link i { font-size: 16px; color: var(--gray-500); }
.profile-tabs .pt-link:hover { background: var(--gray-50); color: var(--gray-900); }
.profile-tabs .pt-link.active {
  background: var(--accent); color: #fff;
}
.profile-tabs .pt-link.active i { color: #fff; }

/* =========================================================================
   SIGNUP WIDE — full-width 1400px split for long onboarding forms
   ========================================================================= */
.signup-wide {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.signup-wide .sw-aside {
  position: sticky; top: 88px;
  background: var(--gray-900);
  color: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-900);
}
.signup-wide .sw-aside .sw-cover {
  height: 220px;
  position: relative;
  background-size: cover;
  background-position: center;
}
.signup-wide .sw-aside .sw-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.85) 100%);
}
.signup-wide .sw-aside .sw-cover .sw-eyebrow {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
}
.signup-wide .sw-aside .sw-body { padding: 22px; }
.signup-wide .sw-aside h3 { color: #fff; font-size: 1.4rem; margin: 0 0 10px; line-height: 1.25; }
.signup-wide .sw-aside p  { color: rgba(255,255,255,.7); font-size: 14px; margin: 0 0 18px; }
.signup-wide .sw-aside ul { list-style: none; padding: 0; margin: 0 0 18px; }
.signup-wide .sw-aside ul li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,.85);
  padding: 8px 0; border-top: 1px solid rgba(255,255,255,.08);
}
.signup-wide .sw-aside ul li:first-child { border-top: 0; }
.signup-wide .sw-aside ul li i {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--brand); color: #fff;
  border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; margin-top: 1px;
}
.signup-wide .sw-aside .sw-tip {
  background: rgba(200,16,46,.12);
  border: 1px solid rgba(200,16,46,.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.signup-wide .sw-aside .sw-tip strong { color: #fff; display: block; margin-bottom: 4px; font-size: 13px; }
.signup-wide .sw-main { min-width: 0; }
.signup-wide .form-card { padding: 32px 36px; }
.signup-wide .form-row { grid-template-columns: 1fr 1fr 1fr; }
.signup-wide .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.signup-wide .form-row.cols-1 { grid-template-columns: 1fr; }

@media (max-width: 1100px) {
  .signup-wide { grid-template-columns: 1fr; }
  .signup-wide .sw-aside { position: static; }
  .signup-wide .sw-aside .sw-cover { height: 180px; }
  .signup-wide .form-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .signup-wide .form-row,
  .signup-wide .form-row.cols-2 { grid-template-columns: 1fr; }
}

/* =========================================================================
   STEP CARD (single card with steps inside, chevron-connected)
   ========================================================================= */
.step-card {
  background: var(--brand-soft);
  border: 1px solid var(--brand-tint);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}
.step-card .step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.step-card .sc-step {
  position: relative;
  padding: 6px 0;
}
.step-card .sc-step + .sc-step { padding-left: 0; border-left: 0; }
.step-card .sc-step::after { display: none; }
.step-card .sc-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: #fff; color: var(--brand);
  border: 1px solid var(--brand-tint);
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 14px;
}
.step-card .sc-step h6 {
  font-size: 15px; font-weight: 600; color: var(--gray-900);
  margin: 0 0 6px;
}
.step-card .sc-step p {
  font-size: 13.5px; color: var(--gray-600); margin: 0; line-height: 1.55;
}
@media (max-width: 991.98px) {
  .step-card .step-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .step-card .sc-step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step-card .sc-step:nth-child(2n)::after,
  .step-card .sc-step:last-child::after { display: none; }
}
@media (max-width: 600px) {
  .step-card { padding: 24px 20px; }
  .step-card .step-grid { grid-template-columns: 1fr; row-gap: 22px; }
  .step-card .sc-step { border-left: 0; padding: 0; }
  .step-card .sc-step::after { display: none; }
}

/* =========================================================================
   TRUST BANNER (4-up dark band)
   ========================================================================= */
.trust-banner {
  background: var(--gray-900);
  color: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
}
.trust-banner::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--brand);
}
.trust-banner .tb-item {
  padding: 4px 24px;
  border-left: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 14px;
}
.trust-banner .tb-item:first-child { border-left: 0; padding-left: 8px; }
.trust-banner .tb-item:last-child  { padding-right: 0; }
.trust-banner .tb-ico {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(200,16,46,.18);
  color: #fff;
  border: 1px solid rgba(200,16,46,.45);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.trust-banner .tb-num {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.trust-banner .tb-lab {
  font-size: 12.5px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
  line-height: 1.35;
}
@media (max-width: 991.98px) {
  .trust-banner { grid-template-columns: repeat(2, 1fr); row-gap: 18px; padding: 22px 24px; }
  .trust-banner .tb-item:nth-child(odd) { border-left: 0; padding-left: 8px; }
}
@media (max-width: 600px) {
  .trust-banner { grid-template-columns: 1fr; padding: 20px; }
  .trust-banner .tb-item { border-left: 0; padding: 0; }
}

/* =========================================================================
   PROMO BANNER CARD (image background + overlay text)
   ========================================================================= */
.promo-banner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  border: 1px solid var(--gray-900);
  background: var(--gray-900);
  text-decoration: none;
  isolation: isolate;
  min-block-size: 220px;
}
.promo-banner .pb-img {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(.9);
}
.promo-banner .pb-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.85) 100%);
}
.promo-banner > * { position: relative; z-index: 1; }
.promo-banner .pb-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 12px;
}
.promo-banner h5 {
  color: #fff; font-size: 1.125rem; font-weight: 600; margin: 0 0 6px;
  letter-spacing: -.01em;
}
.promo-banner p {
  color: rgba(255,255,255,.8); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5;
}
.promo-banner .pb-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #fff;
  align-self: flex-start;
}
.promo-banner:hover { color: #fff; }
.promo-banner:hover .pb-img { transform: scale(1.03); }
.promo-banner .pb-img { transition: transform .4s ease; }

/* =========================================================================
   QUOTE CARD V2 — rating row, structured author, footer stats
   ========================================================================= */
.quote-card .quote-rating {
  display: inline-flex; gap: 2px; color: var(--brand);
  font-size: 14px; margin-bottom: 14px; letter-spacing: 1px;
}
.quote-card .quote-rating .num { color: var(--gray-600); margin-left: 8px; font-size: 12px; letter-spacing: 0; }
.quote-card .quote-foot {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.quote-card .qf-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
}
.quote-card .qf-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.quote-card .qf-body { flex: 1; min-width: 0; }
.quote-card .qf-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  margin-bottom: 2px;
}
.quote-card .qf-num {
  font-size: 1.5rem; font-weight: 700; color: var(--gray-900);
  line-height: 1; letter-spacing: -.02em;
}
.quote-card .qf-unit { font-size: .8125rem; font-weight: 500; color: var(--gray-500); }
.quote-card .qf-trend {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand);
}
.quote-card .qf-lab {
  font-size: 11px; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.quote-card .qf-bar {
  height: 4px; background: var(--gray-100);
  border-radius: 2px; overflow: hidden;
  margin-bottom: 8px;
}
.quote-card .qf-bar > span {
  display: block; height: 100%;
  background: var(--brand);
  border-radius: 2px;
}
.quote-card .qf-hint { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
@media (max-width: 768px) {
  .quote-card .quote-foot { grid-template-columns: 1fr; }
}

/* Safety card — flat white with structured bullet list */
.safety-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 26px;
  height: 100%;
  display: flex; flex-direction: column;
}
.safety-card .sf-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.safety-card .sf-icon {
  width: 42px; height: 42px;
  background: var(--gray-900); color: #fff;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.safety-card h5 { margin: 0; font-size: 1rem; color: var(--gray-900); font-weight: 600; }
.safety-card .sf-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.safety-card .sf-list { list-style: none; padding: 0; margin: 0 0 16px; }
.safety-card .sf-list li {
  display: flex; gap: 10px; padding: 10px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 13.5px; color: var(--gray-700); line-height: 1.5;
}
.safety-card .sf-list li:first-child { border-top: 0; }
.safety-card .sf-list li i {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; margin-top: 1px;
  border: 1px solid var(--brand-tint);
}
.safety-card .sf-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--brand);
}

/* CTA banner v3 — two-column with icons row */
.cta-banner-v3.cta-split {
  display: grid; grid-template-columns: 1.4fr .9fr;
  align-items: center; gap: 32px;
  text-align: left;
  padding: 36px 40px;
}
.cta-banner-v3.cta-split h3 { font-size: 1.625rem; margin: 0 0 8px; }
.cta-banner-v3.cta-split p  { margin: 0 0 18px; }
.cta-banner-v3.cta-split .cta-mini-list {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  list-style: none; padding: 0; margin: 0;
}
.cta-banner-v3.cta-split .cta-mini-list li {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gray-700); font-size: 13px;
}
.cta-banner-v3.cta-split .cta-mini-list li i {
  width: 22px; height: 22px; border-radius: 6px;
  background: #fff; color: var(--brand);
  border: 1px solid var(--brand-tint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
}
.cta-banner-v3.cta-split .cta-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-banner-v3.cta-split .btn { justify-content: center; }
@media (max-width: 768px) {
  .cta-banner-v3.cta-split { grid-template-columns: 1fr; padding: 28px 24px; }
  .quote-card .quote-foot { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================================
   IMAGE BANNER — photo card with overlay and text content
   ========================================================================= */
.image-banner {
  display: block;
  position: relative;
  height: 100%;
  min-height: 360px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  border: 1px solid var(--gray-200);
  transition: transform .25s ease, box-shadow .25s ease;
}
.image-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(10,10,12,.25); }
.image-banner .ib-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,12,.25) 0%, rgba(10,10,12,.55) 50%, rgba(10,10,12,.88) 100%);
}
.image-banner .ib-content {
  position: relative; z-index: 1;
  padding: 28px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.image-banner .ib-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  background: rgba(200,16,46,.92); color: #fff;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 6px 10px; border-radius: 6px;
  margin-bottom: 14px;
}
.image-banner .ib-title {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin: 0 0 10px; letter-spacing: -.015em; line-height: 1.2;
}
.image-banner .ib-text {
  font-size: 14px; color: rgba(255,255,255,.85);
  margin: 0 0 14px; line-height: 1.55;
}
.image-banner .ib-list {
  list-style: none; padding: 0; margin: 0 0 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.image-banner .ib-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,.92);
}
.image-banner .ib-list li i { color: var(--brand); font-size: 13px; }
.image-banner .ib-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #fff;
  padding-top: 4px;
}
.image-banner:hover .ib-cta i { transform: translateX(3px); transition: transform .2s ease; }
@media (max-width: 768px) {
  .image-banner { min-height: 320px; }
  .image-banner .ib-title { font-size: 1.25rem; }
}

/* =========================================================================
   FOOTER V2 — newsletter strip + 5-column grid + bottom bar
   ========================================================================= */
.footer-v2 {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 0;
}
.footer-v2 .container-fluid { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* Newsletter strip */
.footer-v2 .footer-cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 32px;
  margin: -36px 0 48px;
  box-shadow: 0 14px 36px -22px rgba(10,10,12,.18);
  position: relative;
}
.footer-v2 .fc-text h4 {
  margin: 0 0 4px;
  font-size: 1.25rem; font-weight: 700; color: var(--gray-900);
  letter-spacing: -.01em;
}
.footer-v2 .fc-text p {
  margin: 0; font-size: 14px; color: var(--gray-600);
}
.footer-v2 .fc-form { display: flex; gap: 10px; }
.footer-v2 .fc-input {
  flex: 1; position: relative;
  display: flex; align-items: center;
}
.footer-v2 .fc-input i {
  position: absolute; left: 14px; color: var(--gray-500); font-size: 14px;
}
.footer-v2 .fc-input input {
  width: 100%;
  height: 44px; padding: 0 14px 0 38px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200); border-radius: 8px;
  font-size: 14px; color: var(--gray-900);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.footer-v2 .fc-input input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  background: #fff;
}
.footer-v2 .fc-form .btn { height: 44px; padding: 0 18px; white-space: nowrap; }

/* Main grid */
.footer-v2 .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-v2 .fg-brand .fg-tag {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0 0 16px;
  max-width: 320px;
}
.footer-v2 .fg-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.footer-v2 .fg-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--gray-700);
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 999px; padding: 5px 10px;
}
.footer-v2 .fg-badge i { color: var(--brand); font-size: 11px; }
.footer-v2 .fg-social { display: flex; gap: 8px; }
.footer-v2 .fg-social a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: #fff; border: 1px solid var(--gray-200);
  color: var(--gray-700);
  transition: all .15s ease;
  font-size: 14px;
}
.footer-v2 .fg-social a:hover {
  background: var(--brand); color: #fff; border-color: var(--brand);
  transform: translateY(-1px);
}
.footer-v2 .fg-col h6 {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-500); margin: 0 0 14px;
}
.footer-v2 .fg-col ul { list-style: none; padding: 0; margin: 0; }
.footer-v2 .fg-col ul li { margin-bottom: 10px; }
.footer-v2 .fg-col ul li a,
.footer-v2 .fg-col ul li span {
  font-size: 14px;
  color: var(--gray-700);
  text-decoration: none;
  transition: color .15s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-v2 .fg-col ul li a:hover { color: var(--brand); }
.footer-v2 .fg-contact ul li i {
  width: 14px; color: var(--gray-500); font-size: 12px;
}
.footer-v2 .fg-contact ul li a:hover i { color: var(--brand); }

/* Bottom bar */
.footer-v2 .footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--gray-200);
  padding: 20px 0 28px;
  font-size: 12.5px; color: var(--gray-600);
}
.footer-v2 .fb-left { font-weight: 500; color: var(--gray-700); }
.footer-v2 .fb-right { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-v2 .fb-right a { color: var(--gray-600); text-decoration: none; }
.footer-v2 .fb-right a:hover { color: var(--brand); }
.footer-v2 .fb-sep { color: var(--gray-300); }
.footer-v2 .fb-built i { color: var(--brand); margin: 0 2px; }

@media (max-width: 1100px) {
  .footer-v2 .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
  .footer-v2 .fg-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-v2 .footer-cta { grid-template-columns: 1fr; gap: 16px; padding: 24px; margin: -24px 0 32px; }
  .footer-v2 .fc-form { flex-direction: column; }
  .footer-v2 .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-v2 .fg-brand { grid-column: 1 / -1; }
  .footer-v2 .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============ Developer credit modal ============ */
.dev-credit-modal .modal-dialog { max-width: 720px; }
.dev-credit-modal .dcm-content {
  border: 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(10,10,12,.55);
  background: #fff;
}
.dev-credit-modal .dcm-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  background-color: rgba(255,255,255,.9); border-radius: 50%;
  padding: 8px; opacity: .85;
}
.dev-credit-modal .dcm-close:hover { opacity: 1; }
.dev-credit-modal .dcm-body {
  display: grid; grid-template-columns: 240px 1fr; gap: 0;
  align-items: stretch;
  min-height: 400px;
}
.dev-credit-modal .dcm-photo-wrap {
  position: relative;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #1a1a1a;
}
.dev-credit-modal .dcm-photo-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}
.dev-credit-modal .dcm-flag {
  position: absolute; bottom: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background-color: #E30A17;
  border: 2px solid #fff;
  box-shadow: 0 5px 14px -4px rgba(0,0,0,.55);
  z-index: 2;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><rect width='100' height='100' fill='%23E30A17'/><circle cx='37.5' cy='50' r='25' fill='%23ffffff'/><circle cx='43.75' cy='50' r='20' fill='%23E30A17'/><polygon fill='%23ffffff' points='68.75,40 71.10,46.76 78.26,46.91 72.55,51.24 74.63,58.09 68.75,54 62.87,58.09 64.95,51.24 59.24,46.91 66.40,46.76'/></svg>");
}
.dev-credit-modal .dcm-text {
  padding: 30px 34px;
  display: flex; flex-direction: column; gap: 6px;
}
.dev-credit-modal .dcm-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
}
.dev-credit-modal .dcm-name {
  font-size: 1.4rem; font-weight: 700; margin: 2px 0 0;
  color: var(--gray-900); letter-spacing: -0.01em;
}
.dev-credit-modal .dcm-role {
  font-size: .9rem; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.dev-credit-modal .dcm-msg {
  font-size: .88rem; color: var(--gray-700); margin: 4px 0 10px;
  line-height: 1.55;
}
.dev-credit-modal .dcm-msg-soft {
  font-size: .82rem; color: var(--gray-600);
  background: var(--gray-50);
  border-left: 3px solid var(--brand);
  padding: 8px 12px; border-radius: 6px;
  margin-bottom: 14px;
}
.dev-credit-modal .dcm-text .btn-dark { align-self: flex-start; }
.dev-credit-modal .dcm-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 4px;
}
.dev-credit-modal .dcm-dont-show {
  margin: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; color: var(--gray-600); cursor: pointer;
}
.dev-credit-modal .dcm-dont-show .form-check-input {
  margin: 0; cursor: pointer;
}
.dev-credit-modal .dcm-dont-show .form-check-label { cursor: pointer; }

@media (max-width: 575.98px) {
  .dev-credit-modal .dcm-body { grid-template-columns: 1fr; min-height: 0; }
  .dev-credit-modal .dcm-photo-wrap { height: 240px; background-position: center 20%; }
  .dev-credit-modal .dcm-text { padding: 20px 22px 24px; }
}
