:root {
  --brand: #0d1a2e;
  --brand-2: #183a64;
  --primary: #2563eb;
  --accent: #00b090;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dae0;
  --surface: #f5f7fb;
}

body {
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { text-decoration: none; }

.navbar {
  min-height: 76px;
  box-shadow: 0 12px 28px rgba(13, 26, 46, 0.08);
}

.navbar-brand {
  color: var(--brand);
  font-size: 1.55rem;
}

.nav-link {
  color: #344054;
  font-weight: 600;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
}

.btn-success {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
}

.announcement-strip {
  color: #fff;
  background: var(--brand);
}

.tz-hero,
.page-hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 26, 46, .96) 0%, rgba(13, 26, 46, .84) 48%, rgba(13, 26, 46, .34) 100%),
    url("../images/tax-hero.png") center right / cover no-repeat;
}

.tz-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.page-hero {
  padding: 98px 0;
}

.page-hero.compact {
  padding: 76px 0;
}

.tz-hero h1,
.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.04;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
}

.tz-hero p,
.page-hero p {
  max-width: 700px;
  color: #dbeafe;
}

.eyebrow {
  display: inline-flex;
  color: #a7f3d0;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.eyebrow.dark {
  color: var(--primary);
}

.hero-panel {
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .22);
}

.hero-service {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  margin-top: 12px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span {
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 42px 0;
}

.soft-band {
  background: #eef4fb;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2,
.cta-row h2 {
  font-weight: 800;
}

.section-heading p,
.cta-row p {
  color: var(--muted);
}

.card,
.table,
.list-group {
  border-color: var(--line);
  border-radius: 8px;
}

.service-card,
.pricing-card,
.stat-card {
  height: 100%;
  box-shadow: 0 18px 45px rgba(13, 26, 46, .08);
}

.service-card,
.pricing-card {
  transition: transform .18s ease, box-shadow .18s ease;
}

.service-card:hover,
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px rgba(13, 26, 46, .12);
}

.pricing-card-v2 {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  padding: 32px 28px 28px;
}
.pricing-card-v2:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, .10);
  transform: translateY(-4px);
}

.pricing-card-suited-label {
  color: #2563eb;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.pricing-card-title {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.pricing-price {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}
.pricing-price .pricing-year {
  color: #64748b;
  font-size: .85rem;
  font-weight: 600;
}

.pricing-excl {
  color: #64748b;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-desc {
  color: #475569;
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: auto;
  padding-bottom: 24px;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 13px 0;
  text-align: center;
  border: none;
  border-radius: 50px;
  color: #fff;
  background: #0f172a;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.pricing-btn:hover {
  background: #1e293b;
  color: #fff;
  transform: scale(1.02);
}

.mini-label {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.price-line {
  color: var(--brand);
  font-size: 1.7rem;
  font-weight: 900;
  margin: 14px 0;
}

.price-line span {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}

.price-line.light {
  color: #fff;
}

.price-line.light span {
  color: #dbeafe;
}

.stat-number {
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 900;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.step-list strong {
  color: var(--brand);
}

.step-list span {
  color: var(--muted);
}

.contact-card,
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(13, 26, 46, .08);
}

.contact-form {
  padding: 0;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 45px rgba(13, 26, 46, .08);
}

.footer-dark {
  color: #fff;
  background: var(--brand);
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 8px;
}

.footer-link:hover {
  color: #fff;
}

.badge-soft {
  background: #e8f2ff;
  color: var(--primary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .32rem .65rem;
  font-size: .78rem;
  font-weight: 700;
  background: #eef2ff;
  color: #3730a3;
}

.payment-paid,
.status-paid { background: #dcfce7; color: #166534; }
.payment-pending,
.status-pending { background: #fef3c7; color: #92400e; }
.status-failed,
.status-rejected { background: #fee2e2; color: #991b1b; }

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 76px);
}

.dashboard-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 24px 16px;
}

.dashboard-sidebar .nav-link {
  color: var(--ink);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-weight: 600;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
  background: #e8f2ff;
  color: var(--primary);
}

.dashboard-sidebar-toggle {
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  color: var(--ink);
  margin-bottom: 12px;
}

.dashboard-sidebar .dashboard-sidebar-toggle { display: none; }
.dashboard-main .dashboard-sidebar-toggle { display: none; }

.dashboard-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 1040;
}

.dashboard-main {
  padding: 28px;
}

.chat-panel {
  height: 62vh;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.chat-row {
  display: flex;
  margin-bottom: 16px;
}

.chat-row.mine { justify-content: flex-end; }

.chat-bubble {
  max-width: min(680px, 82%);
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
}

.chat-row.mine .chat-bubble {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.chat-time {
  font-size: .75rem;
  opacity: .75;
  margin-top: 4px;
}

.invoice-paper {
  background: #fff;
  max-width: 920px;
  margin: 0 auto;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.home-screen-page {
  background: #f6f8fb;
}

.home-narrow,
.home-hero .home-narrow {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(650px, calc(100vh - 120px));
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 18, 36, .96) 0%, rgba(7, 18, 36, .82) 46%, rgba(7, 18, 36, .28) 100%),
    url("../images/tax-hero.png") center right / cover no-repeat;
  padding: 92px 0 64px;
}

.home-hero-copy {
  position: relative;
  max-width: 720px;
  z-index: 1;
}

.home-badge {
  display: inline-flex;
  align-items: center;
  color: #d1fae5;
  background: rgba(16, 185, 129, .14);
  border: 1px solid rgba(167, 243, 208, .28);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .84rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.home-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  margin-right: 9px;
}

.home-hero-copy h1 {
  color: #fff;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.home-hero-copy p {
  color: #dbeafe;
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 660px;
  margin-bottom: 30px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.home-primary-action,
.home-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 900;
}

.home-primary-action {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 16px 34px rgba(37, 99, 235, .32);
}

.home-primary-action:hover {
  color: #fff;
  background: #1d4ed8;
}

.home-secondary-action {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
}

.home-secondary-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.home-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 560px;
}

.home-proof-row div {
  border-left: 3px solid #34d399;
  padding-left: 14px;
}

.home-proof-row strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.1;
}

.home-proof-row span {
  color: #cbd5e1;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.home-section {
  padding: 84px 0;
}

.home-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.home-section-heading span,
.home-process-copy > span {
  display: inline-flex;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.home-section-heading h2,
.home-process-copy h2 {
  color: #111827;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.home-section-heading p,
.home-process-copy p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.home-services {
  background: #fff;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-service-card,
.home-review-grid article {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
}

.home-service-card {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
}

.home-card-kicker {
  color: #059669;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-service-card h3 {
  color: #111827;
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 900;
  margin-bottom: 14px;
}

.home-service-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.home-service-price {
  color: #0f172a;
  font-size: 1.35rem;
  font-weight: 900;
  margin-top: auto;
}

.home-card-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.home-card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: #2563eb;
  font-size: .85rem;
  font-weight: 900;
}

.home-card-actions a + a {
  color: #2563eb;
  background: #eff6ff;
}

.home-process {
  background: #eef4f8;
}

.home-process-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: 54px;
}

.home-process-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.home-process-list {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.home-process-list li {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #cbd5e1;
}

.home-process-list li:last-child {
  border-bottom: 0;
}

.home-process-list strong {
  color: #0f172a;
  font-weight: 900;
}

.home-process-list span {
  color: #475569;
  line-height: 1.55;
}

.home-stats {
  color: #fff;
  background: #0f172a;
  padding: 82px 0;
}

.home-section-heading-light h2,
.home-section-heading-light p {
  color: #fff;
}

.home-section-heading-light p {
  color: #cbd5e1;
}

.home-section-heading-light span {
  color: #6ee7b7;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.home-stats-grid div {
  min-height: 118px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 22px;
}

.home-stats-grid strong {
  display: block;
  color: #fff;
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 900;
}

.home-stats-grid span {
  display: block;
  color: #bfdbfe;
  margin-top: 10px;
  font-size: .88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-contact {
  background: #fff;
}

.home-contact-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.home-contact-lines {
  display: grid;
  gap: 6px;
  max-width: 430px;
  color: #475569;
}

.home-contact-lines strong {
  margin-top: 12px;
  color: #0f172a;
}

.home-contact-form {
  display: grid;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px;
}

.home-contact-form label {
  color: #0f172a;
  font-size: .82rem;
  font-weight: 800;
}

.home-contact-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 14px;
  color: #0f172a;
  background: #fff;
}

.home-checks {
  display: grid;
  gap: 6px;
}

.home-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem !important;
  color: #475569;
}

.home-checks input {
  width: auto;
  min-height: auto;
}

.home-contact-form button {
  width: fit-content;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #059669;
  padding: 0 22px;
  font-weight: 900;
}

.home-reviews {
  background: #eef4f8;
}

.home-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-review-grid article {
  padding: 26px;
  min-height: 250px;
}

.stars {
  color: #059669;
  letter-spacing: 0;
  font-weight: 900;
}

.home-review-grid p {
  color: #344054;
  font-size: .83rem;
  font-style: italic;
  line-height: 1.55;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.reviewer span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #111827;
  border-radius: 50%;
  font-weight: 900;
}

.reviewer strong {
  color: #172033;
  font-size: .8rem;
}

.reviewer small {
  display: block;
  color: #667085;
  font-size: .68rem;
  text-transform: uppercase;
}

@media (max-width: 991.98px) {
  .tz-hero {
    min-height: 640px;
    align-items: flex-end;
    padding-bottom: 56px;
  }

  .step-list > div {
    grid-template-columns: 1fr;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-shell { grid-template-columns: 1fr; }
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .25s ease;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    display: none;
  }
  .dashboard-shell.sidebar-open .dashboard-sidebar {
    display: block;
    transform: translateX(0);
  }

  .home-service-grid,
  .home-process-grid,
  .home-contact-grid,
  .home-review-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 76px 0 52px;
    background-position: center;
  }

  .home-proof-row,
  .home-stats-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 64px 0;
  }

  .home-process-grid,
  .home-contact-grid {
    gap: 34px;
  }

  .home-process-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .page-hero { padding: 52px 0; }
  .page-hero.compact { padding: 44px 0; }
  .section { padding: 52px 0; }
  .section-sm { padding: 32px 0; }

  .home-stats { padding: 52px 0; }

  .invoice-paper { padding: 24px; }

  .pricing-price { font-size: 1.65rem; }
  .stat-number { font-size: 1.75rem; }
  .home-stats-grid strong { font-size: 1.65rem; }

  .dashboard-main .dashboard-sidebar-toggle { display: flex; }
  .dashboard-shell.sidebar-open .dashboard-sidebar .dashboard-sidebar-toggle { display: flex; }
  .dashboard-shell.sidebar-open .dashboard-sidebar-overlay { display: block; }
}

@media (max-width: 575.98px) {
  .home-narrow,
  .home-hero .home-narrow {
    width: min(100% - 32px, 1180px);
  }

  .home-hero-copy h1 {
    font-size: 2.65rem;
  }

  .home-actions,
  .home-card-actions {
    flex-direction: column;
  }

  .home-primary-action,
  .home-secondary-action,
  .home-card-actions a,
  .home-contact-form button {
    width: 100%;
  }

  .home-service-card,
  .home-contact-form,
  .home-review-grid article {
    padding: 22px;
  }

  .page-hero { padding: 40px 0; }
  .page-hero.compact { padding: 36px 0; }
  .page-hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .section { padding: 40px 0; }
  .section-sm { padding: 24px 0; }

  .home-stats { padding: 40px 0; }

  .invoice-paper { padding: 16px; }

  .pricing-price { font-size: 1.45rem; }
  .stat-number { font-size: 1.55rem; }
  .price-line { font-size: 1.25rem; }
  .home-stats-grid strong { font-size: 1.45rem; }

  .dashboard-main { padding: 16px; }
  .chat-panel { height: min(62vh, 400px); }
}

@media print {
  .navbar,
  .dashboard-sidebar,
  .no-print,
  footer { display: none !important; }
  body { background: #fff; }
  .dashboard-shell { display: block; }
  .dashboard-main { padding: 0; }
  .invoice-paper { border: 0; padding: 0; }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-icon {
  display: block;
  pointer-events: none;
}
.whatsapp-popup {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 0;
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  overflow: hidden;
}
.whatsapp-popup-header {
  background: #075E54;
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}
.whatsapp-popup-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s;
}
.whatsapp-popup-body:hover {
  background: #f0fdf4;
  color: #075E54;
}
