/* ============================================================
   Accounting Desk — v2 magenta / deep-purple theme
   Loaded after app.css
   ============================================================ */

body { font-size: 15.5px; color: var(--ink); background: #fff; }
a:hover { color: var(--magenta); }
.container { width: min(1200px, 92%); }

/* ---------- Buttons ---------- */
.btn { border-radius: 12px; font-weight: 700; letter-spacing: -.01em; }
.btn-gold {
  background: linear-gradient(135deg, #C2186A 0%, #D6216B 55%, #E04091 100%);
  color: #fff; box-shadow: 0 10px 24px rgba(194, 24, 106, .22);
}
.btn-gold:hover { background: linear-gradient(135deg, #A8125B, #C2186A); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(194,24,106,.28); }
.btn-navy { background: linear-gradient(135deg, #2B0B33, #4A1257); color: #fff; }
.btn-navy:hover { background: linear-gradient(135deg, #3A0D45, #5B1A69); color: #fff; }
.btn-ghost { border-color: #EADFF0; color: #3A1A45; background: #fff; }
.btn-ghost:hover { border-color: #D8B7E6; color: var(--magenta); background: #FFF9FD; }
.btn-white { background: #fff; color: #2B0B33; border-color: #fff; }
.btn-white:hover { background: #FFF1F8; color: #A8125B; }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.1); }
.btn-link { color: var(--magenta); }
.btn-link:hover { color: var(--purple); }

/* ---------- Public header ---------- */
.site-header {
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid #F1E9F5; position: sticky; top: 0; z-index: 80;
}
.header-inner { padding: 14px 0; }
.brand-img { height: 44px; width: auto; display: block; }
.brand-word {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.045em; color: #2B0B33;
  display: inline-flex; align-items: flex-start; line-height: 1; font-family: var(--font-display);
}
.brand-word:hover { color: #2B0B33; }
.brand-ad {
  font-size: .78em; margin-left: 3px; margin-top: -4px; letter-spacing: -.04em;
  background: linear-gradient(135deg, #C2186A, #7B2CBF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.main-nav { gap: 20px; font-size: .88rem; font-weight: 600; }
.main-nav > a:not(.btn) { color: #4A3350; padding: 8px 0; }
.main-nav > a:not(.btn)::after { background: linear-gradient(90deg, #C2186A, #7B2CBF); height: 2px; border-radius: 2px; }
.main-nav > a.active { color: #C2186A; }
.nav-toggle { border-color: #EADFF0; border-radius: 10px; color: #2B0B33; background: #fff; }

/* ---------- Hero ---------- */
.hero-new { position: relative; overflow: hidden; padding: 72px 0 92px; background: linear-gradient(180deg, #FBF7FE 0%, #F6EEFA 58%, #FDF8FC 100%); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 8% 8%, rgba(244,114,182,.18), transparent 65%),
    radial-gradient(760px 500px at 92% 18%, rgba(123,44,191,.13), transparent 65%),
    radial-gradient(600px 400px at 62% 100%, rgba(194,24,106,.08), transparent 70%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(43,11,51,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(43,11,51,.035) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 75%);
}
.hero-new-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #EFE4F4;
  border-radius: 999px; padding: 7px 14px; font-size: .78rem; font-weight: 600; color: #4A3350;
  box-shadow: 0 6px 18px rgba(43,11,51,.05); margin-bottom: 20px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #12B76A; box-shadow: 0 0 0 3px #D1FADF; }
.hero-new h1 { font-size: clamp(2.7rem, 5.2vw, 4.55rem); line-height: 1.02; letter-spacing: -.045em; color: #24102A; margin-bottom: 20px; }
.grad-text { background: linear-gradient(95deg, #C2186A 10%, #9B2BB5 55%, #7B2CBF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: 1.06rem; color: #6B5A72; max-width: 600px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-location { display: flex; align-items: center; gap: 7px; color: #7A6680; font-size: .83rem; margin: 20px 0 0; }
.hero-location svg { color: #C2186A; flex: 0 0 auto; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid #EADFF0; }
.hero-stat strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.04em; color: #3A0D45; line-height: 1.1; }
.hero-stat span { display: block; font-size: .72rem; color: #7A6680; margin-top: 5px; }

.hero-visual { position: relative; min-height: 430px; display: flex; align-items: center; }
.browser-card {
  width: 100%; background: #fff; border: 1px solid #EEE3F3; border-radius: 22px;
  box-shadow: 0 30px 70px rgba(58,13,69,.16); overflow: hidden; transform: rotate(-1deg);
}
.browser-bar { height: 36px; background: #FAF6FC; border-bottom: 1px solid #F0E7F4; display: flex; align-items: center; gap: 6px; padding: 0 14px; }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #F7A8C4; }
.browser-bar i:nth-child(2) { background: #FBD38D; }
.browser-bar i:nth-child(3) { background: #A7E3C8; }
.browser-url { margin-left: 12px; flex: 1; background: #fff; border: 1px solid #F0E7F4; border-radius: 7px; font-size: .68rem; color: #8B7A92; padding: 4px 12px; }
.browser-body { padding: 18px 20px 20px; }
.mini-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mini-logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #C2186A, #7B2CBF); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.mini-brand strong { display: block; font-size: .82rem; color: #2B0B33; line-height: 1.2; }
.mini-brand small { display: block; font-size: .62rem; color: #9A88A1; }
.live-pill { margin-left: auto; font-size: .62rem; font-weight: 700; color: #067647; background: #ECFDF3; border-radius: 999px; padding: 3px 8px; }
.snap-head { background: #FBF7FD; border: 1px solid #F1E8F5; border-radius: 12px 12px 0 0; padding: 11px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; }
.snap-head strong { font-size: .78rem; color: #2B0B33; }
.snap-head small { font-size: .64rem; color: #9A88A1; }
.live-inline { margin-left: auto; font-size: .58rem; color: #067647; font-weight: 700; }
.snap-row { display: flex; align-items: center; gap: 10px; border: 1px solid #F1E8F5; border-top: 0; background: #fff; padding: 10px 13px; }
.snap-row:last-of-type { border-radius: 0 0 12px 12px; }
.snap-ico { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 800; flex: 0 0 auto; }
.snap-ico.done { background: #ECFDF3; color: #067647; }
.snap-ico.progress { background: #FFF7E6; color: #B54708; }
.snap-ico.scheduled { background: #F2F4F7; color: #475467; }
.snap-row div { flex: 1; min-width: 0; }
.snap-row strong { display: block; font-size: .72rem; color: #2B0B33; line-height: 1.25; }
.snap-row small { display: block; font-size: .61rem; color: #9A88A1; }
.snap-status { font-size: .58rem; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.snap-status.completed { color: #067647; background: #ECFDF3; }
.snap-status.progress { color: #B54708; background: #FFF7E6; }
.snap-status.scheduled { color: #475467; background: #F2F4F7; }
.snap-progress { height: 6px; background: #F3EAF7; border-radius: 99px; margin: 14px 0 6px; overflow: hidden; }
.snap-progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #C2186A, #7B2CBF); }
.snap-foot { display: flex; justify-content: space-between; font-size: .62rem; color: #8B7A92; }
.snap-foot strong { color: #3A0D45; }
.float-card {
  position: absolute; background: #fff; border: 1px solid #F0E7F4; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(58,13,69,.14); padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.float-card strong { display: block; font-size: .88rem; color: #2B0B33; line-height: 1.15; }
.float-card small { display: block; font-size: .63rem; color: #8B7A92; }
.float-ico { width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.float-ico.pink { background: #FCE7F3; color: #C2186A; }
.float-ico.green { background: #E7F8EF; color: #0E9F6E; }
.float-approval { right: -6px; top: 18px; transform: rotate(1.5deg); }
.float-banks { left: -20px; bottom: 36px; transform: rotate(-1.5deg); }

/* ---------- Sections ---------- */
.section { padding: 82px 0; }
.section-soft { background: #FAF7FC; }
.section-head { max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 14px;
  background: #FCE7F3; color: #BE185D; font-size: .68rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow-pill.light { background: rgba(255,255,255,.12); color: #FFD6E8; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ---------- Category cards ---------- */
.category-stack { display: grid; gap: 26px; margin-top: 42px; }
.category-card {
  background: #fff; border: 1px solid #EEE5F2; border-radius: 26px; padding: 32px;
  box-shadow: 0 16px 42px rgba(58,13,69,.055);
}
.cat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.cat-heading { display: flex; gap: 16px; align-items: flex-start; }
.cat-ico {
  width: 56px; height: 56px; border-radius: 17px; background: #F8E9F4; color: #B5176B;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.cat-heading h3 { font-size: 1.35rem; margin: 0 0 5px; letter-spacing: -.025em; }
.cat-heading p { color: var(--muted); font-size: .9rem; margin: 0; max-width: 650px; }
.count-pill { background: #FCE7F3; color: #BE185D; border-radius: 999px; padding: 6px 12px; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.service-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.check-item {
  display: flex; align-items: center; gap: 10px; background: #FCFAFD; border: 1px solid #F0E8F4;
  border-radius: 12px; padding: 12px 14px; color: #3A2141; font-size: .89rem; font-weight: 500;
  transition: border-color .15s, background .15s, transform .15s;
}
.check-item:hover { border-color: #D8B7E6; background: #FFF9FD; color: #A8125B; transform: translateY(-1px); }
.check { width: 18px; height: 18px; border-radius: 50%; background: #FCE7F3; color: #C2186A; display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 800; flex: 0 0 auto; }
.custom-note { margin-top: 32px; color: var(--muted); font-size: .9rem; }
.custom-note a { color: var(--magenta); font-weight: 700; }

/* ---------- Features / process / about / tools ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; }
.feature-card { background: #fff; border: 1px solid #EEE5F2; border-radius: 20px; padding: 26px 22px; box-shadow: 0 10px 30px rgba(58,13,69,.04); }
.feature-ico { width: 44px; height: 44px; border-radius: 13px; background: #F8E9F4; color: #B5176B; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: .85rem; margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 38px; counter-reset: step; }
.process-step { background: #fff; border: 1px solid #EEE5F2; border-radius: 20px; padding: 26px 22px; position: relative; }
.process-num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; color: #F3CFE4; line-height: 1; }
.process-step h3 { font-size: 1rem; margin: 14px 0 7px; }
.process-step p { color: var(--muted); font-size: .85rem; margin: 0; }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.about-grid h2 { margin-top: 0; }
.tick-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: #4A3350; }
.tick-list span { width: 20px; height: 20px; border-radius: 50%; background: #FCE7F3; color: #C2186A; display: inline-flex; align-items: center; justify-content: center; font-size: .68rem; font-weight: 800; flex: 0 0 auto; }
.about-panel {
  background: radial-gradient(700px 300px at 100% 0%, rgba(224,64,145,.35), transparent 60%), linear-gradient(145deg, #2B0B33, #4A1257 60%, #6A1B7A);
  color: #fff; border-radius: 28px; padding: 38px; box-shadow: 0 30px 70px rgba(43,11,51,.22); position: relative; overflow: hidden;
}
.about-mark { font-size: 3rem; font-weight: 800; letter-spacing: -.06em; background: linear-gradient(135deg,#FF8FC4,#C9A2FF); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; margin-bottom: 6px; }
.about-panel h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.about-panel p { color: #D9C7E1; font-size: .9rem; }
.about-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 18px; }
.about-mini strong { display: block; color: #FFB7D5; font-size: 1.1rem; }
.about-mini span { font-size: .66rem; color: #BFA7CA; text-transform: uppercase; letter-spacing: .08em; }
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
.tool-card { background: #fff; border: 1px solid #EEE5F2; border-radius: 18px; padding: 22px; transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(58,13,69,.1); }
.tool-card span { font-size: 1.35rem; display: block; margin-bottom: 12px; }
.tool-card strong { display: block; font-size: .95rem; color: #2B0B33; margin-bottom: 4px; }
.tool-card small { display: block; color: var(--muted); font-size: .78rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-item { background: #fff; border: 1px solid #EEE5F2; border-radius: 16px; padding: 0; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: #2B0B33; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: #C2186A; font-size: 1.2rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: .9rem; }

/* Multi-select service picker */
.multi-select { position: relative; }
.multi-select summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: .92rem; color: #3A2141; font-weight: 500;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select[open] summary { border-color: #D8B7E6; box-shadow: 0 0 0 3px rgba(194,24,106,.08); }
.multi-select .chev { color: var(--magenta); font-size: 1.1rem; line-height: 1; }
.multi-panel { border: 1.5px solid #EEE5F2; border-top: 0; border-radius: 0 0 12px 12px; background: #fff; padding: 12px; box-shadow: 0 18px 36px rgba(43,11,51,.08); }
.multi-search { width: 100%; margin-bottom: 10px; }
.multi-list { max-height: 265px; overflow: auto; padding-right: 4px; }
.multi-group { margin-bottom: 10px; }
.multi-group-title { font-size: .66rem; font-weight: 800; color: #BE185D; text-transform: uppercase; letter-spacing: .12em; margin: 8px 0 5px; }
.multi-option { display: flex; align-items: flex-start; gap: 9px; padding: 7px 8px; border-radius: 8px; font-size: .86rem; color: #3A2141; cursor: pointer; margin: 0; }
.multi-option:hover { background: #FFF7FB; }
.multi-option input { width: 16px; height: 16px; accent-color: var(--magenta); margin-top: 2px; flex: 0 0 auto; }
.multi-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid #F3EAF7; margin-top: 8px; padding-top: 8px; }
.multi-foot .btn-link { font-size: .8rem; }

/* Calculator range inputs */
.range-row input[type=range] { accent-color: var(--magenta); }
.range-row input[type=number] { flex: 0 0 112px; width: 112px; max-width: 112px; text-align: right; padding-left: 8px; padding-right: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #FBF7FE, #F7EFFA); padding: 68px 0 58px; border-bottom: 1px solid #F0E6F4; }
.page-hero h1 { max-width: 900px; font-size: clamp(2.1rem, 4vw, 3.1rem); margin: 4px 0 12px; }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1rem; }
.page-hero .hero-actions { margin-top: 20px; }

/* ---------- Services page ---------- */
.service-section { padding: 62px 0; border-bottom: 1px solid #F4ECF7; }
.service-section:nth-of-type(even) { background: #FCFAFD; }
.service-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.service-section-head > div { flex: 1; }
.service-section-head h2 { margin: 0 0 5px; font-size: 1.9rem; }
.service-section-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-tile { background: #fff; border: 1px solid #EEE5F2; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s, box-shadow .2s; }
.service-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(58,13,69,.08); }
.service-tile-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.service-tile h3 { font-size: .95rem; margin: 0; line-height: 1.35; }
.price-tag { background: #FCE7F3; color: #BE185D; border-radius: 999px; padding: 4px 9px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.service-tile p { color: var(--muted); font-size: .82rem; margin: 0; flex: 1; }
.service-tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.service-tile-foot .small { font-size: .68rem; }

/* ---------- CTA ---------- */
.cta-final {
  background: radial-gradient(700px 300px at 95% 0%, rgba(224,64,145,.45), transparent 60%), linear-gradient(130deg, #2B0B33, #4A1257 55%, #7B2CBF);
  border-radius: 28px; padding: 46px 48px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: 0 26px 60px rgba(43,11,51,.2);
}
.cta-final h2 { color: #fff; margin: 0 0 8px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.cta-final p { color: #E4CFEA; margin: 0; max-width: 560px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: #1B0620; color: #BFA7CA; padding: 58px 0 24px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .9fr 1fr 1.15fr; gap: 38px; }
.footer-brand { font-size: 1.25rem; font-weight: 800; letter-spacing: -.04em; color: #fff; margin-bottom: 14px; }
.footer-brand span { font-size: .8em; margin-left: 3px; background: linear-gradient(135deg,#FF8FC4,#C9A2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer h4 { color: #fff; font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 16px; }
.site-footer a { color: #D3BEDC; margin-bottom: 9px; font-size: .86rem; }
.site-footer a:hover { color: #FFB7D5; }
.muted-light { color: #9E86A8; font-size: .84rem; }
.footer-social { display: flex; gap: 9px; margin-top: 16px; }
.footer-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; margin: 0; color: #fff; transition: transform .15s, background .15s, color .15s; }
.footer-social a:hover { transform: translateY(-2px); color: #fff; }
.footer-social svg { width: 19px; height: 19px; display: block; }
.footer-social .social-wa { background: rgba(37,211,102,.16); color: #25D366; }
.footer-social .social-wa:hover { background: #25D366; color: #fff; }
.footer-social .social-gmail { background: #fff; }
.footer-social .social-gmail:hover { background: #fff; }
.footer-social .social-call { background: rgba(255,255,255,.1); color: #fff; }
.footer-social .social-call:hover { background: linear-gradient(135deg,#C2186A,#7B2CBF); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .76rem; color: #8E7399; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; padding: 11px 16px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  box-shadow: 0 14px 34px rgba(37,211,102,.35);
}
.wa-float:hover { color: #fff; background: #1EBE5A; transform: translateY(-2px); }

/* ---------- Admin / portal theme ---------- */
.dash-body { background: #F7F4FA; }
.sidebar { background: radial-gradient(500px 300px at 20% 0%, rgba(194,24,106,.22), transparent 60%), linear-gradient(180deg, #2B0B33 0%, #1B0620 100%); color: #D3BEDC; }
.sidebar-brand { padding: 24px 20px 18px; }
.sidebar-brand .brand-mark { background: linear-gradient(135deg, #C2186A, #7B2CBF); color: #fff; box-shadow: 0 8px 18px rgba(194,24,106,.3); }
.sidebar-brand .brand-text strong { color: #fff; }
.sidebar-brand .brand-text small { color: #B79AC3; }
.side-nav { padding: 10px 12px; }
.side-nav a { color: #C9B2D3; border-radius: 11px; padding: 10px 13px; font-size: .86rem; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: linear-gradient(90deg, #C2186A, #7B2CBF); color: #fff; box-shadow: 0 8px 18px rgba(194,24,106,.22); }
.nav-ico { width: 22px; display: inline-flex; align-items: center; justify-content: center; opacity: .95; }
.side-nav a.active .nav-ico { color: #fff; }
.sidebar-foot { border-top-color: rgba(255,255,255,.1); }
.sidebar-foot a { color: #B79AC3; }
.sidebar-foot a:hover { color: #FFB7D5; }
.dash-topbar { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid #EEE7F2; }
.dash-title { color: #2B0B33; }
.avatar { background: linear-gradient(135deg, #C2186A, #7B2CBF); color: #fff; }
.dash-user-meta strong { color: #2B0B33; }
.dash-user-meta small { color: #8B7A92; }
.role-pill { background: #FCE7F3; color: #BE185D; border-radius: 999px; padding: 5px 11px; font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow-sm { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #C2186A; margin-bottom: 4px; }
.dash-content h1 { color: #2B0B33; }
.stat-grid { gap: 16px; }
.stat-card { border: 1px solid #EEE7F2; border-radius: 18px; box-shadow: 0 8px 24px rgba(58,13,69,.04); }
.stat-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.stat-ico { width: 32px; height: 32px; border-radius: 10px; background: #F8E9F4; color: #B5176B; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 800; }
.stat-card.accent .stat-ico { background: rgba(255,255,255,.14); color: #FFB7D5; }
.stat-card .value { color: #2B0B33; }
.stat-card.accent { background: radial-gradient(400px 200px at 100% 0%, rgba(224,64,145,.5), transparent 60%), linear-gradient(135deg, #2B0B33, #4A1257); border-color: transparent; }
.stat-card.accent .value { color: #FFB7D5; }
.stat-card.accent .label, .stat-card.accent .sub { color: #D3BEDC; }
.panel { border-color: #EEE7F2; border-radius: 18px; }
.panel-head { background: #FDFBFE; border-bottom-color: #F1E9F5; }
.panel-head h3 { color: #2B0B33; }
.progress { background: #F3EAF7; }
.progress .bar { background: linear-gradient(90deg, #C2186A, #7B2CBF); }
.timeline li.current::before { background: #C2186A; border-color: #C2186A; }
.timeline .t-title { color: #3A0D45; }
.badge-navy { background: #F3E8FB; color: #6B21A8; }
.badge-gold { background: #FCE7F3; color: #BE185D; }
.badge-amber { background: #FFF7E6; color: #B54708; }
.tag { background: #FCE7F3; color: #A8125B; }
table.data th { background: #FAF7FC; color: #4A1257; border-bottom-color: #F1E9F5; }
table.data td { border-bottom-color: #F6EFF9; }
table.data tr:hover td { background: #FFFBFC; }
.cat-ico-sm { width: 34px; height: 34px; border-radius: 10px; background: #F8E9F4; color: #B5176B; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.client-company { font-size: 1.02rem; font-weight: 700; color: var(--magenta); margin: 2px 0; letter-spacing: -.01em; }
.form-section-title { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--magenta); font-weight: 800; margin: 0 0 16px; }
.portal-switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #EADFF0; background: #fff; border-radius: 999px; padding: 6px 11px 6px 7px; cursor: pointer; font-size: .68rem; font-weight: 800; color: #6B5A72; letter-spacing: .04em; text-transform: uppercase; }
.portal-switch .knob { width: 30px; height: 18px; border-radius: 999px; background: #D8CBE0; position: relative; transition: background .2s; flex: 0 0 auto; }
.portal-switch .knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 1px 3px rgba(43,11,51,.25); }
.portal-switch.on { color: #067647; border-color: #ABEFC6; background: #F6FEF9; }
.portal-switch.on .knob { background: #0E9F6E; }
.portal-switch.on .knob::after { left: 14px; }
.portal-switch.off { color: #B42318; border-color: #FECDCA; background: #FFF6F5; }
.portal-switch.off .knob { background: #E7B4B0; }
.portal-switch:hover { transform: translateY(-1px); }
.portal-switch.sm { padding: 4px 8px 4px 5px; font-size: .6rem; gap: 6px; }
.portal-switch.sm .knob { width: 26px; height: 16px; }
.portal-switch.sm .knob::after { width: 12px; height: 12px; }
.portal-switch.sm.on .knob::after { left: 12px; }
.radar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radar-grid > div { display: flex; align-items: center; gap: 8px; background: #FCFAFD; border: 1px solid #F1E8F5; border-radius: 11px; padding: 9px 11px; font-size: .74rem; color: #5A4762; font-weight: 600; }
.radar-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #F3EAF7; color: inherit; }
.radar-row:last-child { border-bottom: 0; }
.radar-row:hover { color: var(--magenta); }
.credential-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F3EAF7; }
.credential-row:last-of-type { border-bottom: 0; }
.credential-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.credential-meta strong { font-size: .86rem; color: #3A0D45; }
.credential-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cred-pass { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; color: #6B5A72; letter-spacing: .05em; }
.cred-pass.cred-visible { color: #A8125B; font-weight: 700; letter-spacing: 0; }
.danger-zone { border-color: #FECDCA; background: #FFFBFB; }
.danger-zone h3 { color: #B42318; }
.searchbar input { max-width: 300px; }
input:focus, select:focus, textarea:focus { border-color: #D8B7E6; box-shadow: 0 0 0 3px rgba(194,24,106,.1); }
label.field-label { color: #3A2141; }
.checkbox input { accent-color: #C2186A; }
.auth-wrap { background: linear-gradient(180deg, #FBF7FE, #F5ECF9); }
.auth-card { border-color: #EEE5F2; border-radius: 22px; }
.auth-tabs a.active { background: linear-gradient(135deg,#C2186A,#7B2CBF); border-color: transparent; }

/* Invoice HTML stays on the approved navy/gold palette */
.invoice-sheet { --navy: #0A1F44; --navy-3: #1B4079; --gold: #C9A227; --gold-2: #E7CF86; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-new-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .feature-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 920px) {
  .site-header { background: #fff; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid #F1E9F5; flex-direction: column; align-items: stretch;
    padding: 16px 6%; gap: 4px; box-shadow: 0 18px 36px rgba(43,11,51,.1);
  }
  .main-nav > a { padding: 11px 0 !important; }
  body.nav-open .main-nav { display: flex; }
  .header-inner { position: relative; }
}
@media (max-width: 820px) {
  .site-header { background: #fff; }
  .main-nav { background: #fff; border-bottom: 1px solid #F1E9F5; }
  .main-nav > a { padding: 11px 0 !important; }
  .hero-new { padding: 48px 0 64px; }
  .hero-new h1 { font-size: clamp(2.2rem, 8vw, 3.1rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 0; }
  .browser-card { transform: none; }
  .float-approval { right: 0; top: -14px; }
  .float-banks { left: 0; bottom: -18px; }
  .category-card { padding: 22px; border-radius: 20px; }
  .cat-top { flex-direction: column; gap: 12px; }
  .service-checklist { grid-template-columns: 1fr; }
  .cta-final { padding: 32px 26px; border-radius: 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .feature-grid, .process-grid, .tool-grid, .service-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 14px; }
  .hero-stat strong { font-size: 1.35rem; }
  .section { padding: 54px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 12px; }
}

@media print {
  .wa-float { display: none !important; }
  .site-footer { display: none !important; }
}

/* ---------- Collapsible dashboard sidebar ---------- */
.sidebar { transition: width .18s ease; }
.sidebar-collapse {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: calc(100% - 24px); height: 30px; margin: 0 12px 8px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px;
  background: rgba(255,255,255,.07); color: #EBD8F2;
  font-size: .68rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  line-height: 1; cursor: pointer;
}
.collapse-ico { font-size: 1rem; line-height: 1; }
.sidebar-foot a { display: flex; align-items: center; gap: 7px; }
.foot-ico { width: 14px; text-align: center; }
.sidebar-collapse:hover { background: rgba(255,255,255,.16); color: #fff; }
.sidebar-collapsed .sidebar { width: 78px; }
.sidebar-collapsed .sidebar-brand { padding: 20px 8px 10px; justify-content: center; }
.sidebar-collapsed .sidebar-brand .brand-text { display: none; }
.sidebar-collapsed .nav-label, .sidebar-collapsed .foot-label { display: none; }
.sidebar-collapsed .side-nav { padding: 4px 10px; }
.sidebar-collapsed .side-nav a { justify-content: center; gap: 0; padding: 11px 0; }
.sidebar-collapsed .nav-ico { width: auto; }
.sidebar-collapsed .sidebar-foot { padding: 14px 8px; }
.sidebar-collapsed .sidebar-foot a { display: flex; justify-content: center; font-size: 1rem; }
.sidebar-collapsed .sidebar-collapse { width: 40px; margin: 0 auto 8px; }
.sidebar-collapsed .sidebar-collapse .collapse-label { display: none; }
.sidebar-collapsed .collapse-ico { transform: rotate(180deg); }
@media (max-width: 820px) {
  .sidebar-collapse { display: none; }
  .sidebar-collapsed .sidebar { width: 264px; }
  .sidebar-collapsed .sidebar-brand { padding: 24px 20px 18px; justify-content: flex-start; }
  .sidebar-collapsed .sidebar-brand .brand-text { display: flex; }
  .sidebar-collapsed .nav-label, .sidebar-collapsed .foot-label { display: inline; }
  .sidebar-collapsed .side-nav a { justify-content: flex-start; gap: 12px; padding: 10px 12px; }
  .sidebar-collapsed .sidebar-foot a { justify-content: flex-start; font-size: .8rem; }
}

/* ---------- Invoice builder ---------- */
.invoice-form .inv-meta-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 16px; }
.invoice-form input[type=text], .invoice-form input[type=number], .invoice-form input[type=date], .invoice-form select { padding: 12px 14px; font-size: .98rem; }
.items-stack { display: grid; gap: 14px; }
.item-card { border: 1px solid #EFE7F4; background: #FCFAFD; border-radius: 14px; padding: 16px; }
.item-top { display: grid; grid-template-columns: minmax(210px, 300px) minmax(0, 1fr) auto 38px; gap: 14px; align-items: end; }
.item-top .field { margin-bottom: 0; }
.item-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.item-fields .field { margin-bottom: 0; }
.item-note-field { margin: 14px 0 0; }
.item-line-total { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 112px; padding: 7px 12px; border: 1px solid #EFE7F4; border-radius: 10px; background: #fff; }
.item-line-total span { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #8B6B98; }
.item-line-total strong { font-size: 1rem; color: #4A1257; font-variant-numeric: tabular-nums; }
.item-remove { width: 38px; height: 44px; border: 1px solid #F3D3DC; border-radius: 10px; background: #FFF5F8; color: #C2185B; font-size: .95rem; cursor: pointer; }
.item-remove:hover { background: #C2185B; color: #fff; }
.sum-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)) minmax(150px, 1.15fr); gap: 10px; }
.sum-cell { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border: 1px solid #F1E9F5; border-radius: 12px; background: #FAF7FC; }
.sum-cell span { font-size: .67rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #8B6B98; }
.sum-cell strong { font-size: 1rem; color: #3A2141; font-variant-numeric: tabular-nums; }
.sum-cell.sum-total { border-color: transparent; background: linear-gradient(135deg, #C2186A, #7B2CBF); }
.sum-cell.sum-total span { color: #FFD7E8; }
.sum-cell.sum-total strong { color: #fff; font-size: 1.25rem; }
.sum-balance-grid { display: grid; grid-template-columns: 1fr 1fr .8fr; gap: 16px; margin-top: 18px; align-items: start; }
.sum-balance-grid .field { margin-bottom: 0; }
.sum-current { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px dashed #D9C4E4; border-radius: 12px; background: #F7F1FA; }
.sum-current span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #8B6B98; }
.sum-current strong { font-size: 1.1rem; color: #4A1257; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) {
  .invoice-form .inv-meta-grid { grid-template-columns: 1fr 1fr; }
  .item-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sum-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .invoice-form .inv-meta-grid { grid-template-columns: 1fr; }
  .item-top { grid-template-columns: 1fr; }
  .item-line-total { flex-direction: row; align-items: center; justify-content: space-between; }
  .item-remove { width: 100%; height: 38px; }
  .item-fields { grid-template-columns: 1fr 1fr; }
  .sum-strip { grid-template-columns: 1fr 1fr; }
  .sum-balance-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PWA install bar + subtle live animations
   ============================================================ */
@keyframes acndskDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(18,183,106,.55); }
  50% { opacity: .55; transform: scale(.88); box-shadow: 0 0 0 7px rgba(18,183,106,0); }
}
@keyframes acndskLivePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}
@keyframes acndskFloatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes acndskShimmer {
  0% { background-position: 160% 0; }
  100% { background-position: -160% 0; }
}
@keyframes acndskDonePing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18,183,106,.0); }
  45% { box-shadow: 0 0 0 6px rgba(18,183,106,.14); }
}
.hero-pill .dot { animation: acndskDotPulse 1.8s ease-in-out infinite; }
.live-pill, .live-inline { animation: acndskLivePulse 2.2s ease-in-out infinite; }
.float-card { animation: acndskFloatY 4.6s ease-in-out infinite; }
.float-banks { animation-delay: -2.3s; }
.snap-progress span { background-image: linear-gradient(90deg, #C2186A, #7B2CBF, #C2186A); background-size: 200% 100%; animation: acndskShimmer 3.4s linear infinite; }
.snap-ico.done { animation: acndskDonePing 2.6s ease-out infinite; }

.pwa-install-bar { display: none; }
@media (max-width: 820px) {
  .pwa-install-bar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 1100;
    align-items: center; gap: 10px; padding: 10px 12px; background: #fff;
    border: 1px solid #EEE7F2; border-radius: 16px; box-shadow: 0 18px 45px rgba(43,11,51,.22);
  }
  .pwa-install-bar img { width: 42px; height: 42px; border-radius: 10px; border: 1px solid #F1E9F5; flex: 0 0 auto; }
  .pwa-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .pwa-copy strong { font-size: .84rem; color: #2B0B33; }
  .pwa-copy small { font-size: .7rem; color: #8B6B98; }
  .pwa-install-btn { border: 0; border-radius: 10px; background: linear-gradient(135deg,#C2186A,#7B2CBF); color: #fff; font-weight: 700; font-size: .78rem; padding: 9px 13px; flex: 0 0 auto; }
  .pwa-close { border: 0; background: #F7F1FA; color: #6B4A76; width: 28px; height: 28px; border-radius: 8px; font-size: .8rem; flex: 0 0 auto; }
  body.pwa-visible { padding-bottom: 76px; }
  body.pwa-visible .wa-float { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pill .dot, .live-pill, .live-inline, .float-card, .snap-progress span, .snap-ico.done { animation: none !important; }
}

/* ============================================================
   Mobile-only layout fixes (desktop design untouched)
   ============================================================ */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  .hero-new-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { width: 100%; min-height: 0; }
  .browser-card { max-width: 100%; }
}

@media (max-width: 820px) {
  html, body { overflow-x: hidden; }
  body.nav-open { overflow: hidden; }
  .nav-backdrop {
    position: fixed; inset: 0; z-index: 75; background: rgba(43,11,51,.46);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  }
  body.nav-open .nav-backdrop { display: block; }

  .container { width: 94%; }
  .header-inner { padding: 11px 0; gap: 10px; }
  .brand-img { height: 38px; }
  .main-nav { padding: 14px 5%; gap: 2px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .main-nav .btn { width: 100%; margin-top: 4px; }

  .hero-new { padding: 40px 0 56px; }
  .hero-new-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy, .hero-visual { min-width: 0; width: 100%; }
  .hero-pill { font-size: .72rem; padding: 6px 12px; }
  .hero-new h1 { font-size: clamp(2.15rem, 8vw, 3.05rem); }
  .hero-lede { font-size: .96rem; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px 14px; margin-top: 26px; padding-top: 18px; }
  .hero-stat strong { font-size: 1.35rem; }
  .hero-visual { margin-top: 2px; }
  .browser-card { transform: none; border-radius: 18px; }
  .browser-body { padding: 14px 14px 16px; }
  .float-approval { top: -10px; right: -2px; }
  .float-banks { left: -2px; bottom: -12px; }
  .float-card { padding: 8px 10px; gap: 8px; }
  .float-card strong { font-size: .78rem; }
  .float-card small { font-size: .61rem; }
  .category-card { padding: 20px; border-radius: 18px; }
  .cta-final { padding: 28px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .site-footer { padding: 40px 0 20px; }

  .dash-shell { display: block; min-height: 100vh; }
  .dash-main { width: 100%; }
  .dash-topbar { padding: 10px 12px; gap: 9px; flex-wrap: wrap; }
  .dash-topbar > div { min-width: 0; }
  .dash-title { font-size: .92rem; line-height: 1.2; }
  .eyebrow-sm { font-size: .58rem; }
  .dash-user { margin-left: auto; gap: 6px; }
  .dash-user-meta, .role-pill { display: none; }
  .dash-content { padding: 14px; overflow-x: hidden; }
  .flex-between { flex-wrap: wrap; gap: 10px; }
  .flex-between > div { min-width: 0; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
  .panel-head h3 { font-size: 1rem; }
  .panel-body { padding: 14px; }
  .panel-body.tight { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table.data:not(.responsive-table), .panel-body > table.data:not(.responsive-table) { min-width: 620px; }
  table.data { font-size: .8rem; }
  table.data th, table.data td { padding: 9px 10px; }

  /* Data tables become stacked cards on mobile */
  table.data.responsive-table { min-width: 0 !important; display: block; border-collapse: separate; border-spacing: 0 10px; background: transparent; }
  table.data.responsive-table thead { display: none; }
  table.data.responsive-table tbody { display: block; }
  table.data.responsive-table tr { display: block; background: #fff; border: 1px solid #EEE7F2; border-radius: 14px; padding: 11px 13px; box-shadow: 0 5px 16px rgba(43,11,51,.045); }
  table.data.responsive-table tr:hover td { background: transparent; }
  table.data.responsive-table td { display: grid; grid-template-columns: minmax(84px, 40%) minmax(0, 1fr); align-items: start; column-gap: 14px; width: 100%; border: 0; padding: 5px 0; text-align: right; }
  table.data.responsive-table td::before { content: attr(data-label); text-align: left; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8B6B98; }
  table.data.responsive-table td > .td-value { display: block; min-width: 0; text-align: right; overflow-wrap: anywhere; }
  table.data.responsive-table td[data-label=""]::before { content: none; }
  table.data.responsive-table td:first-child { grid-template-columns: 1fr; padding-top: 0; }
  table.data.responsive-table td:first-child::before { content: none; }
  table.data.responsive-table td:first-child > .td-value { text-align: left; }
  table.data.responsive-table td:last-child { padding-bottom: 0; }
  table.data.responsive-table td.actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 10px; white-space: normal; margin-top: 5px; padding-top: 9px; border-top: 1px dashed #EEE7F2; }
  table.data.responsive-table td.actions::before { content: none; }
  table.data.responsive-table td.empty { display: block; text-align: center; padding: 18px 8px; }
  table.data.responsive-table td.empty::before { content: none; }
  table.data.responsive-table tr:has(td.empty) { border: 0; box-shadow: none; background: transparent; }
  .grid-2[style*="grid-template-columns"], .grid-3[style*="grid-template-columns"], .grid-4[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .field-row[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .searchbar { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .searchbar select, .searchbar input { width: 100%; max-width: none; }
  .page-actions { flex-wrap: wrap; width: 100%; }
  .page-actions .searchbar { flex: 1 1 100%; }
  .page-actions .btn { flex: 1 1 auto; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .stat-card { padding: 13px; }
  .stat-card .value { font-size: 1.1rem; }
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  input, select, textarea { font-size: 16px !important; }
  .auth-wrap { padding: 16px 12px; }
  .auth-card { width: min(100%, 520px); padding: 22px; }

  .invoice-sheet { padding: 14px; overflow-x: auto; }
  .inv-top { flex-direction: column; gap: 12px; }
  .inv-meta { text-align: left; }
  .inv-cols { grid-template-columns: 1fr; gap: 12px; }
  .inv-totals { width: 100%; }
  .inv-footer { flex-direction: column; gap: 16px; }
  table.inv-items { min-width: 560px; }
  .invoice-sheet .inv-brand h2 { font-size: 1.35rem; }

  .pay-modal-backdrop { padding: 10px; align-items: flex-end; }
  .pay-modal { max-height: 94vh; padding: 18px; border-radius: 18px 18px 0 0; }
  .pay-modal .field-row { grid-template-columns: 1fr; }
  .due-row { grid-template-columns: 22px minmax(0,1fr); }
  .due-amt { grid-column: 2; text-align: left; }
  .due-alloc { grid-column: 2; }
  .alloc-summary { font-size: .76rem; }

  .item-top { grid-template-columns: 1fr; }
  .item-line-total { flex-direction: row; align-items: center; justify-content: space-between; }
  .item-fields { grid-template-columns: 1fr 1fr; }
  .sum-strip { grid-template-columns: 1fr 1fr; }
  .sum-balance-grid { grid-template-columns: 1fr; }
  .invoice-form .inv-meta-grid { grid-template-columns: 1fr; }

  .wa-float { bottom: 18px; right: 14px; }
}

@media (max-width: 560px) {
  .container { width: 94%; }
  .brand-img { height: 34px; }
  .hero-new { padding: 34px 0 46px; }
  .hero-stats { gap: 14px 10px; }
  .hero-stat strong { font-size: 1.25rem; }
  .float-card { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 28px; }
  .auth-card { padding: 18px; }
  .dash-content { padding: 12px; }
  .dash-topbar { padding: 9px 10px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .panel-body { padding: 12px; }
  .panel-body.tight { padding: 0; }
  .table-wrap table.data, .panel-body > table.data { min-width: 560px; }
  .invoice-sheet { padding: 12px; }
  table.inv-items { min-width: 520px; }
  .pay-modal { padding: 16px; }
  .pwa-install-bar { left: 8px; right: 8px; bottom: 8px; }
  .pwa-copy small { display: none; }
  body.pwa-visible { padding-bottom: 70px; }
  body.pwa-visible .wa-float { bottom: 82px; }
}

@media (max-width: 820px) {
  .alloc-summary:empty { display: none; }
  .searchbar input[type=month] { max-width: none; width: 100%; }
}

@media (max-width: 820px) {
  body.nav-open .pwa-install-bar { display: none !important; }
  .sidebar { height: 100dvh; }
}

/* ---------- Green login button ---------- */
.btn-portal {
  background: #0E9F6E; color: #fff; border: 1px solid #0E9F6E;
  box-shadow: 0 8px 18px rgba(14,159,110,.22);
}
.btn-portal:hover {
  background: #0B7A56; color: #fff; border-color: #0B7A56;
  transform: translateY(-1px); box-shadow: 0 12px 24px rgba(14,159,110,.28);
}

/* Embedded login layout (kept for direct ?embed=1 links) */
body.embed-body .auth-wrap { min-height: 100dvh; padding: 28px 16px; }
body.embed-body .auth-card { padding: 28px; }
@media (max-width: 600px) {
  body.embed-body .auth-wrap { padding-bottom: 34px; }
}
