:root {
  --blue: #0e5a9e;
  --blue-dark: #0a4277;
  --navy: #072b4d;
  --orange: #f29c2b;
  --orange-dark: #d97f12;
  --red: #e3262b;
  --cream: #fff8ee;
  --cream-2: #fdf0dc;
  --ink: #13253a;
  --muted: #5b6b7d;
  --line: #e3e9f1;
  --line-strong: #cdd7e3;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --green: #1f9d55;
  --wa: #25d366;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(7, 43, 77, .06);
  --shadow: 0 1px 2px rgba(7, 43, 77, .05), 0 4px 12px rgba(7, 43, 77, .05), 0 12px 32px -8px rgba(7, 43, 77, .08);
  --shadow-lg: 0 2px 6px rgba(7, 43, 77, .06), 0 24px 48px -12px rgba(7, 43, 77, .22);
  --ring: 0 0 0 4px rgba(14, 90, 158, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --header-h: 150px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
main { flex: 1 0 auto; width: 100%; }

@media (min-width: 1600px) { body { font-size: 17px; } }
@media (min-width: 2200px) { body { font-size: 18px; } }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a[href^="mailto:"], .copy-input, code { overflow-wrap: anywhere; }
h1, h2, h3, .h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -.015em; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
::selection { background: rgba(242, 156, 43, .3); color: var(--navy); }
html { scrollbar-color: #b9c6d6 transparent; }

.container { width: 100%; max-width: 2400px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.narrow { max-width: 1000px; }
.center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; display: block; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .72); }
.small { font-size: .875rem; }
.red, .text-red { color: var(--red); }
.mb { margin-bottom: 2rem; }
.pre { white-space: pre-wrap; }
.rounded { border-radius: var(--radius); }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: .45rem; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: currentColor; opacity: .85; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .7em 1.3em; border-radius: 999px; border: 2px solid transparent; font-weight: 600; cursor: pointer; line-height: 1.2; letter-spacing: .005em; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .45em .95em; font-size: .875rem; }
.btn-lg { padding: .85em 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }
.btn-blue { background: linear-gradient(180deg, #1468b3, var(--blue)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -6px rgba(14, 90, 158, .55); }
.btn-blue:hover { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 22px -8px rgba(14, 90, 158, .6); }
.btn-orange { background: linear-gradient(180deg, #f6ab45, var(--orange)); color: #3a2200; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 16px -6px rgba(217, 127, 18, .6); }
.btn-orange:hover { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 22px -8px rgba(217, 127, 18, .65); }
.btn-outline { background: #fff; color: var(--blue); border-color: rgba(14, 90, 158, .35); }
.btn-outline:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-ghost-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { background: #fff; color: var(--blue); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5a; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--muted); display: inline-flex; }
.icon-btn:hover { background: var(--bg-soft); color: var(--red); }
.link-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.topbar { background: linear-gradient(90deg, #05223d, var(--navy) 40%, #0a3a66); color: rgba(255, 255, 255, .85); font-size: .74rem; }
.topbar a { color: #fff; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; padding-bottom: 4px; }
.topbar .icon { vertical-align: -2px; color: var(--orange); }
.site-header { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line), 0 8px 24px -18px rgba(7, 43, 77, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; flex-shrink: 0; }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--font-head); }
.brand-text b { color: var(--blue); font-size: 1.05rem; font-weight: 800; letter-spacing: .01em; }
.brand-text small { color: var(--orange-dark); letter-spacing: .3em; font-weight: 700; font-size: .68rem; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-link { position: relative; color: var(--navy); display: inline-flex; padding: 6px; }
.cart-count { position: absolute; top: -2px; right: -4px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; }
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--navy); padding: 6px; }

.flash { padding: 12px 0; font-weight: 500; animation: flash-in .35s var(--ease); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }
.flash-success { background: #e8f7ee; color: #146c3c; }
.flash-error { background: #fdecec; color: #a01a1e; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(242, 156, 43, .35), transparent 45%), linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1572c4 100%); }
.hero::after { content: ''; position: absolute; inset: auto -10% -40% -10%; height: 60%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .08), transparent 70%); }
.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 96px); align-items: center; padding-top: clamp(32px, 6vh, 96px); padding-bottom: clamp(40px, 7vh, 110px); position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 5rem); }
.hero .accent { color: var(--orange); }
.lead { font-size: clamp(1.05rem, 1.2vw, 1.4rem); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.lead-dark { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.pill { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--orange); }
.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 38vw, 60vh, 640px); justify-self: center; }
.hero-logo { width: 82%; border-radius: 50%; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); position: relative; z-index: 1; }
.sun-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px dashed rgba(242, 156, 43, .7); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-badge { position: absolute; bottom: 6%; left: -2%; z-index: 2; background: #fff; color: var(--navy); border-radius: var(--radius); padding: 10px 16px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.2; }
.hero-badge small { color: var(--muted); font-size: .75rem; }
.hero-badge b { font-family: var(--font-head); font-size: 1.4rem; color: var(--red); }

.trust { background: var(--cream); border-bottom: 1px solid var(--cream-2); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.trust-grid > div { display: flex; gap: 14px; align-items: center; }
.trust-grid .icon { color: var(--orange-dark); flex-shrink: 0; width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--cream-2), 0 6px 14px -6px rgba(217, 127, 18, .35); }
.trust-grid span { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); line-height: 1.35; }
.trust-grid b { color: var(--navy); font-size: .95rem; }

.section { padding: clamp(44px, 6vw, 96px) 0; }

.section { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.section-sm { padding: 36px 0; }
.section-cream { background: radial-gradient(circle at 100% 0%, rgba(242, 156, 43, .12), transparent 35%), var(--cream); }
.section-blue { background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%); color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(22px, 2.5vw, 32px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head.light h2 { color: #fff; }
.section-head.light .eyebrow { color: var(--orange); }
.page-head { position: relative; overflow: hidden; background: radial-gradient(circle at 92% -30%, rgba(242, 156, 43, .28), transparent 42%), radial-gradient(circle at 0% 120%, rgba(14, 90, 158, .08), transparent 40%), linear-gradient(180deg, var(--cream) 0%, #fff 100%); padding: 38px 0 26px; border-bottom: 1px solid var(--cream-2); }
.page-head::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px dashed rgba(242, 156, 43, .35); pointer-events: none; }
.page-head > * { position: relative; z-index: 1; }
@media (max-width: 600px) { .page-head::after { width: 130px; height: 130px; right: -50px; top: -50px; } }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2:first-child, .card .h3:first-child { margin-top: 0; }
.pad { padding: 24px; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.tag-red { background: var(--red); color: #fff; }
.tag-orange { background: var(--orange); color: #3a2200; }
.tag-blue { background: #e6f0fa; color: var(--blue); }

.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d6e2ef; }
.product-media { position: relative; background: var(--bg-soft); aspect-ratio: 4/3; display: grid; place-items: center; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-media img[src$=".svg"] { width: 70%; height: 70%; object-fit: contain; }
.product-media { overflow: hidden; }
.product-media .tag { position: absolute; top: 12px; left: 12px; }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1rem; margin: 0; }
.product-body h3 a { color: var(--navy); }
.product-body p { margin: 0; flex: 1; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 10px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--blue); }
.price-row.big .price { font-size: 2rem; }
.stock { font-size: .78rem; font-weight: 600; margin-left: auto; }
.stock.in { color: var(--green); }
.stock.out { color: var(--orange-dark); }
p.stock { margin-left: 0; }

.package-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.package-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.package-head { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.package-head::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, var(--orange) 0 40%, transparent 41%); opacity: .9; }
.tier-commercial .package-head { background: linear-gradient(135deg, #8f1418, var(--red)); }
.tier-premium .package-head { background: linear-gradient(135deg, var(--navy), #1a6fbd); }
.kva { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1; position: relative; z-index: 1; }
.kva small { font-size: .9rem; margin-left: 3px; font-weight: 700; opacity: .85; }
.package-head .tag { position: relative; z-index: 1; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.package-head .tag-orange { background: #fff; color: var(--orange-dark); }
.package-body { padding: 18px 20px; flex: 1; }
.package-body h3 { margin-bottom: 4px; }
.package-body h3 a { color: var(--navy); }
.package-price { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; font-size: .9rem; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { color: var(--green); flex-shrink: 0; margin-top: 3px; }
.ticks.big { font-size: 1rem; gap: 12px; }
.powers { font-size: .85rem; background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; }
.package-actions { padding: 0 20px 20px; display: grid; gap: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 20px 14px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--cream-2); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; text-decoration: none !important; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(242, 156, 43, .55); }
.cat-card img { width: 72px; height: 72px; margin-bottom: 6px; }
.cat-card b { color: var(--navy); font-size: .92rem; line-height: 1.3; }
.cat-card small { color: var(--muted); }

.service-card { padding: 24px; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--orange), #f7b955); color: #fff; margin-bottom: 14px; flex-shrink: 0; box-shadow: 0 8px 18px -8px rgba(217, 127, 18, .7); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px; counter-reset: s; }
.steps li { background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius); padding: 24px; transition: transform .3s var(--ease), border-color .3s; }
.steps li:hover { transform: translateY(-3px); border-color: rgba(242, 156, 43, .55); }
.steps b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #f7b955, var(--orange)); color: var(--navy); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 0 0 6px rgba(242, 156, 43, .15); }
.steps h3 { color: #fff; }
.steps p { color: rgba(255, 255, 255, .78); margin: 0; font-size: .92rem; }

.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; gap: 22px; align-items: start; }
.promo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: block; transition: transform .2s; background: #fff; }
.promo img { width: 100%; height: auto; }
.promo:hover { transform: scale(1.01); }
.promo.wide { grid-column: span 2; align-self: center; }
@media (max-width: 600px) { .promo.wide { grid-column: auto; } }

.wa-float { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 60; transition: transform .3s; display: flex; gap: 12px; align-items: center; font-size: .92rem; max-width: calc(100% - 32px); }
.toast:not(.show) { opacity: 0; visibility: hidden; transition: transform .3s, opacity .3s, visibility 0s .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s, opacity .3s; }
.toast a { color: var(--orange); font-weight: 700; }

.shop-layout { display: grid; grid-template-columns: clamp(220px, 18vw, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) - 20px); display: grid; gap: 16px; }
.filters form { display: grid; gap: 14px; }
.side-promo { padding: 18px; background: var(--cream); border-color: var(--cream-2); }
.empty { padding: 40px; text-align: center; }

.form { display: grid; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field legend { margin-bottom: 6px; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea { width: 100%; padding: .68em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe; box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, background .15s; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: #8b98a8; }
input[type=checkbox] { accent-color: var(--blue); }
.radio { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: .92rem; }
.radio input { accent-color: var(--blue); width: 17px; height: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset.card { margin: 0; }
fieldset.card legend { float: left; width: 100%; margin-bottom: 14px; }
fieldset.card > *:not(legend) { clear: both; }
fieldset.card .field + .field, fieldset.card .form-row + .field { margin-top: 14px; }
.option-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.option { display: flex; gap: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.option:has(input:checked) { border-color: var(--blue); background: #f0f6fc; }
.option input { accent-color: var(--blue); margin-top: 3px; }
.option span { display: flex; flex-direction: column; font-size: .9rem; }
.option small { color: var(--muted); font-size: .8rem; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; border-left-width: 4px !important; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: #fdecec; color: #8f1418; border: 1px solid #f6c5c6; border-left-color: var(--red) !important; }
.alert-success { background: #e8f7ee; color: #146c3c; border: 1px solid #bfe6cf; border-left-color: var(--green) !important; }
.alert-info { background: #eef5fc; color: var(--navy); border: 1px solid #cfe1f3; border-left-color: var(--blue) !important; }

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.product-gallery { background: var(--bg-soft); aspect-ratio: 1; display: grid; place-items: center; position: sticky; top: calc(var(--header-h) - 20px); }
.product-gallery { overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery img[src$=".svg"] { width: 70%; height: auto; object-fit: contain; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.qty input { width: 86px !important; text-align: center; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.specs { width: 100%; border-collapse: collapse; font-size: .92rem; }
.specs th, .specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.specs th { color: var(--muted); font-weight: 500; width: 60%; }
.package-hero { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; padding: 32px; text-align: center; display: grid; gap: 16px; justify-items: center; position: sticky; top: calc(var(--header-h) - 20px); }
.package-hero img { width: 75%; }
.kva-xl { font-family: var(--font-head); font-weight: 800; font-size: 4.5rem; line-height: 1; color: var(--orange); }
.kva-xl small { font-size: 1.4rem; color: #fff; }
.package-hero .powers { background: rgba(255, 255, 255, .1); color: #fff; }
.plan-box { background: var(--cream); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.plan-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.plan-tabs button { border: 1.5px solid var(--cream-2); background: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; }
.plan-tabs button.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.plan-box p { margin: 0 0 .5em; }
.field.inline { display: flex; align-items: center; gap: 10px; }
input[type=range] { accent-color: var(--orange); flex: 1; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 16px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--navy); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { background: var(--bg-soft); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; border-bottom-color: var(--line-strong); }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover > td { background: #f8fafd; }
.table tbody tr:last-child > td { border-bottom: 0; }
.card > .table-wrap:first-child .table thead th:first-child, .card > .table:first-child thead th:first-child { border-top-left-radius: var(--radius); }
.card > .table-wrap:first-child .table thead th:last-child, .card > .table:first-child thead th:last-child { border-top-right-radius: var(--radius); }
.table tfoot th { text-align: right; font-weight: 600; }
.table.compact td { padding: 9px 4px; }
.num { text-align: right !important; white-space: nowrap; }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 26vw, 440px); gap: 24px; align-items: start; }
.cart-item { display: flex; gap: 12px; align-items: center; }
.cart-item img { border-radius: 8px; background: var(--bg-soft); padding: 4px; }
.qty-input { width: 72px !important; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; padding: 14px; }
.summary { padding: 22px; position: sticky; top: calc(var(--header-h) - 20px); display: grid; gap: 12px; }
.summary h2 { margin: 0; }
.summary-list { margin: 0; display: grid; gap: 8px; }
.summary-list > div { display: flex; justify-content: space-between; gap: 10px; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; }
.summary-list .total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 1.15rem; }
.summary-list .total dt { color: var(--navy); font-weight: 700; }
.summary-list .total dd { color: var(--red); font-family: var(--font-head); font-weight: 800; }
.summary-items { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; font-size: .9rem; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: #e8f7ee; color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.section-sm .narrow > .card { margin-bottom: 18px; }
.mini-steps { padding-left: 20px; margin: 0; display: grid; gap: 8px; font-size: .92rem; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; background: #eef2f7; color: var(--muted); white-space: nowrap; vertical-align: middle; box-shadow: inset 0 0 0 1px rgba(7, 43, 77, .06); }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.status-pending, .status-new, .status-awaiting-payment { background: #fff4e0; color: #9a5a00; }
.status-deposit-paid, .status-priced, .status-sent, .status-processing, .status-scheduled { background: #e6f0fa; color: var(--blue); }
.status-paid, .status-installed, .status-completed, .status-accepted { background: #e8f7ee; color: #146c3c; }
.status-cancelled, .status-declined { background: #fdecec; color: #a01a1e; }
.progress { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(6, 1fr); font-size: .75rem; text-transform: capitalize; text-align: center; color: var(--muted); }
.progress li { position: relative; padding-top: 26px; }
.progress li::before { content: ''; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--line); z-index: 1; }
.progress li::after { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::after { display: none; }
.progress li.done { color: var(--navy); font-weight: 600; }
.progress li.done::before, .progress li.done::after { background: var(--orange); }

.calc-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 420px); gap: 24px; align-items: start; }
.calc-layout > .card:first-child { padding: 8px 8px 16px; }
.calc-layout > .card:first-child > .btn { margin-left: 14px; }
.calc-table input { padding: .4em .5em !important; }
.calc-table td:nth-child(n+2) input { width: 80px; }
.calc-result { padding: 22px; position: sticky; top: calc(var(--header-h) - 20px); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.stats > div { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.stats dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stats dd { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--navy); }
.stats-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 100px), 1fr)); margin-top: 16px; }
.recommend { border-top: 1px solid var(--line); padding-top: 16px; }
.recommend h3 { margin-bottom: 2px; }

.about-visual img { width: min(100%, 380px); margin: 0 auto; border-radius: 50%; }
.terms { display: grid; gap: 8px; padding-left: 20px; }
.contact-cards { display: grid; gap: 18px; }

.quote-wrap { max-width: 960px; }
.quote-toolbar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.quotation { background: #fff; border: 1px solid var(--line); padding: 36px; border-radius: 6px; box-shadow: var(--shadow); font-size: .92rem; }
.q-head { display: flex; gap: 20px; align-items: center; border-bottom: 4px solid var(--orange); padding-bottom: 16px; }
.q-head img { border-radius: 50%; flex-shrink: 0; }
.q-title h1 { font-size: 1.6rem; color: var(--blue); margin: 0 0 2px; letter-spacing: .02em; }
.q-title p { margin: 0; }
.q-motto { font-style: italic; color: var(--orange-dark); font-weight: 600; }
.q-label { text-align: center; letter-spacing: .3em; margin: 20px 0 14px; color: var(--navy); font-size: 1.2rem; }
.q-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.q-meta .right { text-align: right; }
.q-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.q-table th, .q-table td { border: 1px solid #c9d3de; padding: 8px 10px; }
.q-table thead th { background: var(--blue); color: #fff; font-size: .8rem; letter-spacing: .05em; }
.q-table tfoot th { text-align: right; background: var(--bg-soft); }
.q-table .grand th, .q-table .grand td { background: var(--cream-2); font-weight: 800; font-size: 1.05rem; color: var(--navy); }
.q-nb { font-weight: 700; color: var(--red); font-size: .85rem; }
.q-foot { text-align: center; margin-top: 24px; padding-top: 12px; border-top: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-style: italic; }
.quote-respond { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.quote-respond p { flex-basis: 100%; margin: 0; }

.admin-body { background: var(--bg-soft); }
.admin-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; flex: 1; }
.admin-side { background: radial-gradient(circle at 0% 0%, rgba(242, 156, 43, .16), transparent 30%), linear-gradient(180deg, #0a3560 0%, var(--navy) 45%, #041a30 100%); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.admin-brand { display: flex; gap: 10px; align-items: center; padding: 18px; color: #fff; text-decoration: none !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(242, 156, 43, .7), 0 6px 14px rgba(0, 0, 0, .3); }
.admin-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand b { font-family: var(--font-head); letter-spacing: .01em; }
.admin-brand small { color: var(--orange); font-size: .75rem; }
.admin-side nav { display: grid; padding: 12px 10px; gap: 2px; }
.admin-side nav a { position: relative; color: rgba(255, 255, 255, .74); padding: 9px 12px; border-radius: 10px; display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s; }
.admin-side nav a .icon { opacity: .8; transition: color .15s, opacity .15s; }
.admin-side nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-side nav a:hover .icon { opacity: 1; }
.admin-side nav a.active { background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.admin-side nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--orange); }
.admin-side nav a.active .icon { color: var(--orange); opacity: 1; }
.badge { margin-left: auto; background: var(--orange); color: var(--navy); font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.admin-side-foot { margin-top: auto; padding: 16px 20px; display: grid; gap: 8px; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-side-foot a, .admin-side-foot .link-btn { color: rgba(255, 255, 255, .7); text-align: left; text-decoration: none; }
.admin-side-foot a:hover, .admin-side-foot .link-btn:hover { color: var(--orange); }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-topbar h1 { font-size: 1.35rem; margin: 0; }
.admin-topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.admin-content { padding: 26px 32px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.admin-content > .card, .admin-content .admin-grid > .card, .admin-content .admin-grid > div > .card { box-shadow: var(--shadow-xs), 0 8px 24px -16px rgba(7, 43, 77, .18); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-grid.wide-left { grid-template-columns: minmax(0, 1fr) 340px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.kpi { --kpi: var(--blue); position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: grid; gap: 3px; box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.kpi::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--kpi); }
.kpi::after { content: ''; position: absolute; right: -28px; top: -28px; width: 90px; height: 90px; border-radius: 50%; background: var(--kpi); opacity: .07; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi:nth-child(2) { --kpi: var(--orange); }
.kpi:nth-child(3) { --kpi: var(--red); }
.kpi:nth-child(4) { --kpi: var(--green); }
.kpi span { font-size: .74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font-family: var(--font-head); font-size: 1.6rem; color: var(--navy); letter-spacing: -.01em; }
.kpi small { color: var(--muted); }
.dash-hello { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 26px; border-radius: var(--radius); color: #fff; background: radial-gradient(circle at 100% 0%, rgba(242, 156, 43, .4), transparent 38%), linear-gradient(120deg, var(--navy), var(--blue)); box-shadow: 0 14px 32px -16px rgba(7, 43, 77, .6); }
.dash-hello::after { content: ''; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; border: 2px dashed rgba(242, 156, 43, .45); pointer-events: none; }
.dash-hello > * { position: relative; z-index: 1; }
.dash-hello > div:first-child { flex: 1 1 240px; min-width: 0; }
.dash-hello h2 { margin: 0; font-size: 1.4rem; color: #fff; overflow-wrap: anywhere; }
.dash-hello p { margin: 2px 0 0; color: rgba(255, 255, 255, .75); }
.dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-hello .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); background: transparent; }
.dash-hello .btn-outline:hover { background: rgba(255, 255, 255, .12); }
.dash-attention h2 { margin-top: 0; }
.dash-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .9rem; text-decoration: none !important; border: 1px solid; transition: transform .15s; }
.dash-chip:hover { transform: translateY(-1px); }
.dash-chip b { font-size: 1.05rem; }
.tone-orange { background: #fff4e0; color: #9a5a00; border-color: #f7d9a6; }
.tone-blue { background: #e6f0fa; color: var(--blue); border-color: #bdd5ee; }
.tone-green { background: #e8f7ee; color: #146c3c; border-color: #b6e2c6; }
.tone-red { background: #fdecec; color: #a01a1e; border-color: #f4bcbd; }
.dash-clear { display: flex; align-items: center; gap: 8px; margin: 0; color: #146c3c; }
.dash-range { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: -6px; }
.dash-range h2 { margin: 0; }
.dash-range nav { display: flex; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow-x: auto; }
.dash-range nav a { padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none !important; }
.dash-range nav a.on { background: var(--navy); color: #fff; }
.dash-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .dash-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.dash-kpis .kpi:nth-child(5) { --kpi: var(--navy); }
.dash-kpis .kpi:nth-child(6) { --kpi: var(--muted); }
.dash-kpis .kpi b { font-size: 1.35rem; }
.dash-kpis .kpi small { font-size: .8rem; }
.trend { font-style: normal; font-weight: 700; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.section-head small { font-size: .8rem; }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-chart text { font-size: 11px; fill: var(--muted); }
.dash-chart .grid { stroke: var(--line); }
.dash-chart .col { fill: var(--blue); transition: fill .15s; }
.dash-chart .hit { fill: transparent; }
.dash-chart .day:hover .col { fill: var(--orange); }
.dash-chart .day:hover .hit { fill: rgba(14, 90, 158, .05); }
.dash-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 6px 0 16px; }
.dash-legend li a { display: flex; align-items: center; gap: 8px; text-transform: capitalize; }
.dash-legend li a i { width: 10px; height: 10px; border-radius: 3px; }
.st-pending { background: #f29c2b; }
.st-awaiting-payment { background: #f7c06b; }
.st-deposit-paid { background: #7fb2e0; }
.st-paid { background: #0e5a9e; }
.st-processing { background: #072b4d; }
.st-scheduled { background: #4bbf7f; }
.st-installed { background: #146c3c; }
.st-completed { background: #1f9d55; }
.st-cancelled { background: #e3262b; }
.dash-rank li > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dash-rank li > div > span, .dash-rank li > div > a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-rank li > div > i { display: block; height: 5px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--orange)); margin-top: 3px; }
.dash-rank li > div > i.low { background: var(--orange); }
.dash-rank li > div > i.out { background: var(--red); }
.dash-rank li > b { white-space: nowrap; color: var(--navy); }
@media (max-width: 600px) {
  .dash-hello { padding: 18px; }
  .dash-actions .btn { flex: 1 1 auto; }
  .dash-range nav { width: 100%; scrollbar-width: none; }
  .dash-range nav a { flex: 1; text-align: center; padding: 6px 4px; font-size: .78rem; }
}
.list { list-style: none; padding: 0; margin: 0 0 14px; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list form { margin: 0; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto !important; min-width: 200px; }
.thumb { border-radius: 6px; background: var(--bg-soft); object-fit: contain; }
.preview { max-height: 180px; object-fit: contain; background: var(--bg-soft); border-radius: var(--radius-sm); }
.quote-items input { padding: .45em .6em !important; }
.quote-items td:nth-child(2) input { width: 80px; }
.quote-items td:nth-child(3) input { width: 110px; }
.q-totals { margin-top: 18px; max-width: 420px; margin-left: auto; }
.q-totals dt { display: flex; align-items: center; gap: 6px; }
.inline-input { width: 120px !important; padding: .35em .5em !important; text-align: right; }
.inline-input.xs { width: 64px !important; }
.copy-input { font-size: .8rem; margin-bottom: 10px; cursor: copy; }
.service-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.service-row .grow { flex: 1; min-width: 220px; }
.service-row .xs input { width: 70px; }
.service-row .service-icon { margin: 0; width: 42px; height: 42px; }
.message.unread { border-left: 4px solid var(--orange); }
.login-wrap { flex: 1; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: #082a52 url('/images/solar-city.svg') center bottom / cover no-repeat; }
.login-card { width: 100%; max-width: 380px; box-shadow: 0 24px 60px rgba(4, 20, 40, .45); border: 1px solid rgba(255, 255, 255, .6); }
.login-card img { border-radius: 50%; }

@media (max-width: 1024px) {
  .cart-layout, .calc-layout, .admin-grid.wide-left { grid-template-columns: minmax(0, 1fr); }
  .summary, .calc-result { position: static; }
}
@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  .menu-toggle { display: inline-flex; }
  :root { --header-h: 160px; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 44px; }
  .hero-visual { width: min(62vw, 300px); order: -1; }
  .shop-layout, .product-detail, .split, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .filters, .product-gallery, .package-hero { position: static; }
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-side { position: fixed; inset: 0 30% 0 0; max-width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s; }
  .admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-topbar, .admin-content { padding-left: 16px; padding-right: 16px; }
  .admin-topbar { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .form-row, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-grid, .trust-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .pad { padding: 18px; }
  .cart-table thead { display: none; }
  .cart-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 6px; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 4px 8px; }
  .cart-table td.cart-item { grid-column: 1 / -1; }
  .cart-table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: .8rem; }
  .quotation { padding: 18px; }
  .q-head { flex-direction: column; text-align: center; }
  .q-meta { flex-direction: column; }
  .q-meta .right { text-align: left; }
  .progress { font-size: .62rem; }

  .toolbar input, .toolbar select { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta-band, .wa-float, .toast, .no-print, .admin-side, .admin-topbar, .flash, .btn { display: none !important; }
  body, .admin-body { background: #fff; }
  .section-sm { padding: 0; }
  .quotation { border: 0; box-shadow: none; padding: 0; }
  .q-table thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
  .admin-shell { display: block; }
  a { color: inherit; }
}

.pay-status [data-show] { display: none; }
.pay-status[data-state="created"] [data-show~="created"],
.pay-status[data-state="pending"] [data-show~="pending"],
.pay-status[data-state="paid"] [data-show~="paid"],
.pay-status[data-state="failed"] [data-show~="failed"],
.pay-status[data-state="review"] [data-show~="review"] { display: block; }
.pay-status .inline-actions [data-show] { display: none; }
.pay-status[data-state="created"] .inline-actions [data-show~="created"],
.pay-status[data-state="pending"] .inline-actions [data-show~="pending"],
.pay-status[data-state="paid"] .inline-actions [data-show~="paid"],
.pay-status[data-state="failed"] .inline-actions [data-show~="failed"],
.pay-status[data-state="review"] .inline-actions [data-show~="review"] { display: inline-flex; }
.center-actions { justify-content: center; margin: 18px 0 0; }
.spinner { display: block; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; border: 5px solid var(--cream-2); border-top-color: var(--orange); animation: spin 0.9s linear infinite; }
.pay-method { border-left-width: 5px; }
.pay-ecocash { border-left-color: #1a5ea8; }
.pay-onemoney { border-left-color: #f37021; }
.pay-card { border-left-color: var(--navy); }
.paynow-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--green); background: #e8f7ee; border-radius: 999px; padding: 3px 10px; }

.account-link { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; font-size: .9rem; padding: 6px; text-decoration: none !important; }
.account-link:hover { color: var(--blue); }
.auth-section { flex: 1; display: flex; align-items: center; background: linear-gradient(180deg, var(--cream) 0%, #fff 70%); }
.auth-wrap { display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-icon { width: 60px; height: 60px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; }
.auth-card h1 { margin-bottom: 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.account-hint { display: flex; gap: 10px; align-items: center; }
.account-head-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.account-head h1 { margin-bottom: 0; }
.account-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.account-tabs a { padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--navy); border: 1.5px solid var(--line); background: #fff; text-decoration: none; }
.account-tabs a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.account-tabs form { margin: 0 0 0 6px; }
.account-tabs .link-btn { color: var(--muted); font-weight: 600; }
.pad-x { padding-left: 24px; padding-right: 24px; }
.pad-top { padding-top: 20px; margin-bottom: 8px; }
.card > .section-head.pad-x { padding-top: 20px; margin-bottom: 8px; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn + .btn { margin-left: 6px; }
details.card summary { cursor: pointer; }
.claim-form { margin-top: 14px; grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 700px) {
  .responsive-table thead { display: none; }
  .responsive-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .responsive-table td { border: 0; padding: 3px 0; }
  .responsive-table td[data-label]::before { content: attr(data-label); display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .responsive-table .row-actions { grid-column: 1 / -1; text-align: left; padding-top: 8px; }
  .claim-form { grid-template-columns: minmax(0, 1fr); }
  .account-tabs { width: 100%; }
}

.emails-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 640px); }
.email-preview-card { position: sticky; top: 90px; overflow: hidden; }
.email-preview { display: block; width: 100%; height: 72vh; height: 72dvh; border: 0; background: #f5f8fc; }
@media (max-width: 1200px) { .emails-layout { grid-template-columns: minmax(0, 1fr); } .email-preview-card { position: static; } }

.wa-optin { align-items: flex-start; margin-top: 12px; line-height: 1.45; }
.wa-optin input { margin-top: 2px; flex-shrink: 0; }
.wa-optin .icon { color: var(--wa); vertical-align: -3px; }
.wa-row { display: grid; gap: 8px; }
.wa-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wa-meta form { margin: 0; }
.wa-bubble { background: #dcf8c6; color: #111b21; border-radius: 0 12px 12px 12px; padding: 10px 14px; font-size: .92rem; line-height: 1.5; max-width: 560px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); overflow-wrap: anywhere; }
.wa-error { margin: 0; }
.tpl { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.tpl textarea { font-size: .82rem; resize: vertical; }
input[type=file] { width: 100%; max-width: 100%; font-size: .85rem; }
.quotation .table-wrap { margin-bottom: 14px; }
.quotation .table-wrap .q-table { margin-bottom: 0; min-width: 440px; }
@media print { .table-wrap { overflow: visible !important; } .quotation .table-wrap .q-table { min-width: 0; } }

:root { --nav-bg: var(--blue); --nav-accent: var(--orange); --nav-accent-text: #ffd08a; }
.main-nav { padding: 10px var(--gutter) 16px; background: #fff; }
.nav-pill { --pill-pad-b: 6px; position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 6px 18px var(--pill-pad-b); background: var(--nav-bg); border-radius: 999px; border-bottom: 2px solid var(--nav-accent); box-shadow: 0 10px 28px rgba(7, 43, 77, .28); }
.nav-item { position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 76px; padding: 9px 12px 7px; color: rgba(255, 255, 255, .86); font-size: .76rem; font-weight: 600; letter-spacing: .01em; line-height: 1.1; white-space: nowrap; text-decoration: none !important; border-radius: 999px; transition: color .2s; }
.nav-item .icon { transition: transform .2s; }
.nav-item:hover { color: #fff; }
.nav-item:hover .icon { transform: translateY(-2px); }
.nav-item:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.nav-item.active { color: var(--nav-accent-text); }

.nav-item.active::before { content: ''; position: absolute; z-index: -1; top: 0; left: 50%; width: 46px; height: 46px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(242, 156, 43, .55) 0%, rgba(242, 156, 43, .18) 45%, rgba(242, 156, 43, 0) 70%); }

.nav-wave { position: absolute; z-index: -2; left: -10px; top: -3px; width: calc(100% + 20px); height: calc(100% + 3px + var(--pill-pad-b) + 2px); overflow: visible; pointer-events: none; transform-origin: bottom center; animation: navBump .35s ease-out; }
.wave-fill { fill: var(--nav-bg); }
.wave-tint { fill: var(--nav-accent); opacity: .16; }
.wave-line { fill: none; stroke: var(--nav-accent); stroke-width: 2px; }
@keyframes navBump { from { transform: scaleY(.3); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.nav-icon { position: relative; display: inline-flex; }
.nav-badge { position: absolute; top: -6px; right: -11px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--nav-bg); }
.nav-badge[hidden] { display: none; }
.tabbar { display: none; }

@media (max-width: 1060px) and (min-width: 861px) {
  .nav-pill { padding: 6px 10px; }
  .nav-item { min-width: 0; padding: 9px 9px 7px; }
}
@media (max-width: 860px) {

  .main-nav { display: none; padding: 4px 12px 14px; }
  .main-nav.open { display: block; }

  .main-nav .nav-pill { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: 22px; padding: 10px 6px; gap: 4px 0; }
  .main-nav .nav-item { min-width: 0; padding: 10px 2px 8px; white-space: normal; text-align: center; }
  .main-nav .nav-wave { display: none; }

  .tabbar { display: block; position: fixed; z-index: 45; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); width: min(calc(100% - 20px), 460px); transform: translateX(-50%); }
  .tabbar .nav-pill { --pill-pad-b: 5px; width: 100%; justify-content: space-around; padding: 4px 6px var(--pill-pad-b); }
  .tabbar .nav-item { flex: 1; min-width: 0; padding: 9px 2px 6px; font-size: .7rem; }
  body:has(.tabbar) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(92px + env(safe-area-inset-bottom)); width: 52px; height: 52px; }
  .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .tabbar .nav-item { font-size: .64rem; } }
@media print { .main-nav, .tabbar { display: none !important; } }

.cta-band { background: linear-gradient(90deg, var(--orange-dark), var(--orange)); color: var(--navy); }
.cta-inner { display: flex; justify-content: center; align-items: center; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; text-align: center; }
.cta-inner p { margin: 0; font-size: .95rem; }
.cta-inner b { font-family: var(--font-head); }
.cta-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-orange { background: var(--navy); color: #fff; }
.cta-band .btn-ghost-light { color: var(--navy); border-color: var(--navy); background: rgba(255, 255, 255, .3); }
.site-footer { background: radial-gradient(circle at 85% 0%, rgba(242, 156, 43, .14), transparent 30%), linear-gradient(180deg, var(--navy), #05213b); color: rgba(255, 255, 255, .75); font-size: .84rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--orange); text-decoration: none; }
.site-footer a { color: #fff; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.footer-brand img { border-radius: 50%; flex-shrink: 0; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand b { color: #fff; font-family: var(--font-head); font-size: .9rem; }
.footer-brand small { color: var(--orange); font-size: .72rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: rgba(255, 255, 255, .85); }
.footer-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.footer-contact .icon { color: var(--orange); vertical-align: -2px; }
.subscribe { display: flex; gap: 6px; width: min(100%, 320px); }
.subscribe input { flex: 1; min-width: 0; padding: .4em .85em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; font-size: .84rem; }
.subscribe input::placeholder { color: rgba(255, 255, 255, .55); }
.footer-meta { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 12px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .74rem; color: rgba(255, 255, 255, .6); }
.footer-meta b { color: rgba(255, 255, 255, .8); font-weight: 600; }
.footer-meta .icon { color: var(--orange); vertical-align: -2px; }
.footer-offices { display: none; }
@media (max-width: 1700px) { .footer-links { order: 5; flex-basis: 100%; justify-content: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); } }
@media (max-width: 860px) {
  .footer-main { gap: 10px 18px; padding-top: 14px; padding-bottom: 10px; font-size: .8rem; }
  .footer-brand small { display: none; }
  .footer-links { gap: 2px 12px; padding-top: 8px; }
  .footer-addresses { display: none; }
  .footer-offices { display: inline; color: rgba(255, 255, 255, .8) !important; }
  .footer-meta { padding-top: 8px; padding-bottom: 10px; }
  .cta-inner { padding-top: 10px; padding-bottom: 10px; }
}
@media (max-width: 480px) { .cta-inner p { display: none; } }
@media (max-width: 1200px) and (min-width: 861px) { .footer-brand span { display: none; } .subscribe { width: 260px; } }
@media (max-width: 1100px) { .cta-inner p span { display: none; } }
@media (max-width: 1000px) and (min-width: 861px) { .subscribe { width: 210px; } .footer-main { gap: 12px 18px; } }
@media (max-width: 860px) { .footer-meta { flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; } }
@media (max-width: 400px) { .cta-actions { flex-wrap: nowrap; } .cta-actions .btn { padding: .45em .8em; } }
@media (max-width: 860px) {
  .footer-main, .footer-meta { justify-content: center; text-align: center; }
  .footer-links, .footer-contact { justify-content: center; }
  .subscribe { width: 100%; max-width: 420px; }
}

.brand-text b { font-size: .95rem; }
.brand-text small { font-size: .6rem; }
.site-header .main-nav { padding: 0; background: none; flex: 0 1 auto; min-width: 0; }
.site-header .nav-pill { --pill-pad-b: 3px; padding: 3px 12px var(--pill-pad-b); box-shadow: 0 6px 18px rgba(7, 43, 77, .22); }
.site-header .nav-item { min-width: 64px; padding: 6px 9px 4px; gap: 2px; font-size: .68rem; }
.site-header .nav-item.active::before { width: 38px; height: 38px; top: 0; }
.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.icon-action { background: none; border: 0; padding: 7px; border-radius: 50%; color: var(--navy); cursor: pointer; display: inline-flex; }
.icon-action:hover, .icon-action[aria-expanded="true"] { background: var(--bg-soft); color: var(--blue); }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 8px 0; }
.header-search { display: flex; max-width: 720px; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .15s; }
.header-search:focus-within { border-color: var(--blue); }
.header-search input { flex: 1; border: 0 !important; box-shadow: none !important; padding: .5em 1em; outline: none; min-width: 0; background: transparent; }
.header-search button { border: 0; background: var(--blue); color: #fff; padding: 0 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 1400px) { .hide-md { display: none !important; } }

@media (max-width: 1199px) and (min-width: 861px) {
  .header-inner { flex-wrap: wrap; }
  .site-header .main-nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 860px) {
  .header-inner { flex-wrap: nowrap; padding-top: 5px; padding-bottom: 5px; }
  .brand img { width: 36px; height: 36px; }
  .brand-text b { font-size: .86rem; }

  .site-header .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex: none; padding: 6px 12px 14px; background: #fff; box-shadow: 0 12px 20px rgba(7, 43, 77, .12); }
  .site-header .nav-pill { padding: 10px 6px; }
  .site-header .nav-item { padding: 10px 2px 8px; font-size: .74rem; }
  .search-panel { padding: 6px 0; }
}

@media (min-width: 1200px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .header-inner > .brand { justify-self: start; }
  .header-inner > .header-actions { justify-self: end; }
}
@media (max-width: 420px) {
  .header-inner { gap: 6px; }
  .header-actions { gap: 0; }
  .icon-action, .account-link, .cart-link, .menu-toggle { padding: 5px; }
  .brand { gap: 6px; }
  .brand-text b { font-size: .78rem; }
  .brand-text small { font-size: .54rem; letter-spacing: .22em; }
}
@media (max-width: 359px) { .brand-text { display: none; } }

.hero { background-color: var(--navy); }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: heroSlide 24s linear infinite; will-change: opacity, transform; }

.hero-slide:nth-child(1) { animation-delay: -1.44s; }
.hero-slide:nth-child(2) { animation-delay: 4.56s; }
.hero-slide:nth-child(3) { animation-delay: 10.56s; }
.hero-slide:nth-child(4) { animation-delay: 16.56s; }
@keyframes heroSlide {
  0% { opacity: 0; transform: scale(1.08); }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; transform: scale(1); }
}

.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(105deg, rgba(7, 43, 77, .93) 0%, rgba(10, 66, 119, .82) 45%, rgba(14, 90, 158, .55) 100%); }
.hero::after { z-index: 1; }
.hero-inner { z-index: 2; }
@media (max-width: 860px) { .hero::before { background: linear-gradient(180deg, rgba(7, 43, 77, .80) 0%, rgba(10, 66, 119, .88) 60%, rgba(7, 43, 77, .94) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-slide:first-child { opacity: 1; } }

.cat-card img.cat-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 12px rgba(7, 43, 77, .18); border: 3px solid #fff; }
.cart-item img { object-fit: cover; }
.cart-item img[src$=".jpg"] { padding: 0; }
.thumb[src$=".jpg"] { object-fit: cover; }
.package-hero .package-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }

.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.credit { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.credit img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.credit figcaption { padding: 12px 14px; display: grid; gap: 2px; font-size: .84rem; color: var(--muted); }
.credit figcaption b { color: var(--navy); font-size: .9rem; }

a.service-card { color: inherit; text-decoration: none !important; display: block; transition: transform .2s, box-shadow .2s; }
a.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card.has-photo:hover .service-media img { transform: scale(1.05); }
.service-media::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(7, 43, 77, .35)); }
.service-card.has-photo .service-body { padding: 0 22px 22px; flex: 1; }

.service-card.has-photo .service-icon { position: relative; z-index: 1; margin-top: -26px; border: 4px solid #fff; box-shadow: 0 6px 14px rgba(7, 43, 77, .2); }
.service-card.has-photo h3, .service-card.has-photo .h3 { margin-top: 2px; }
.service-thumb { width: 96px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }

.sale-note { color: var(--red); font-weight: 600; display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; }
.sale-note.small { font-size: .82rem; margin: 2px 0 6px; }
.package-price .was { font-size: 1rem; color: var(--muted); font-weight: 600; }
.pill-link { color: #fff; text-decoration: none !important; transition: background .2s; }
.pill-link:hover { background: rgba(255, 255, 255, .22); }
.topbar-promo { color: #ffd08a !important; font-weight: 600; }
.summary-list .discount dt, .summary-list .discount dd { color: var(--green); }
.coupon-box { border-top: 1px dashed var(--line); padding-top: 12px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; letter-spacing: .05em; }
.coupon-applied, .coupon-error { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; font-size: .88rem; }
.coupon-applied { color: var(--green); }
.coupon-error { color: var(--red); }
.campaign-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.campaign { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); overflow: hidden; }
.campaign.no-image { grid-template-columns: minmax(0, 1fr); }
.campaign-media { background: var(--bg-soft); display: block; }
.campaign-media img { width: 100%; height: 100%; object-fit: cover; }
.campaign-body { padding: 18px 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.campaign-body h2 { margin: 0; }
.campaign-body p { margin: 0 0 8px; }
@media (max-width: 480px) { .campaign { grid-template-columns: minmax(0, 1fr); } .campaign-media img { max-height: 320px; object-fit: contain; } }

.promo-cell { display: flex; gap: 10px; align-items: center; }
.code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
input.code { text-transform: uppercase; }
.sale-fields { border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
.sale-fields legend { font-weight: 700; color: var(--navy); padding: 0 6px; font-size: .9rem; }
.sale-fields p { margin: 0; }

.job-list { display: grid; gap: 14px; }
.job-card { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 20px 22px; }
.job-card .job-main { min-width: 0; }
.job-card h2 { margin: 0 0 6px; }
.job-card h2 a { color: var(--navy); text-decoration: none; }
.job-card h2 a:hover { color: var(--blue); }
.job-card p { margin: 8px 0 0; }
.job-card .btn { flex-shrink: 0; }
.job-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--muted); }
.job-meta li { display: inline-flex; align-items: center; gap: 6px; }
.job-meta .icon { color: var(--orange-dark); }
.job-meta-head { margin-top: 10px; font-size: .92rem; }
.job-detail h2 { margin-top: 1.4em; }
.job-detail .lead-sm { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.pre-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.topbar-hiring { font-weight: 700; color: #ffd08a !important; }
@media (max-width: 640px) {
  .job-card { flex-direction: column; align-items: stretch; }
}

.h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--navy); margin: 1.2em 0 .4em; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: -6px; }
.section-row h2 { margin: 0; }
.section-row .inline-actions { margin: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.applicant-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.applicant-head > div { flex: 1; min-width: 0; }
.applicant-head h2 { margin: 0 0 2px; }
.applicant-head p { margin: 0; }
.applicant-avatar { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--cream-2); }
.applicant-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); font-size: .92rem; }
.applicant-facts dt { color: var(--muted); font-weight: 600; }
.applicant-facts dd { margin: 0; overflow-wrap: anywhere; }
.applicant-message { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.cv-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.cv-text { white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.55 var(--font-body); background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; max-height: 70vh; overflow: auto; margin: 0; }
.message-log { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.message-log li { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.message-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.message-log details { margin-top: 6px; }
.chip-label { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef5fc; color: var(--blue); }
.chip-label.whatsapp { background: #e7f9ee; color: #128c47; }
.compose .template-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.compose .chip { padding: 5px 12px; font-size: .8rem; }
.compose .chip-hire:not(.active) { border-color: var(--orange); color: var(--orange-dark); }
.compose .chip-hire.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.compose textarea { font-size: .9rem; line-height: 1.5; }
.compose-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.compose-actions .btn { flex: 1 1 150px; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.template-body { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; }
.placeholder-help ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.placeholder-help code { background: var(--bg-soft); padding: 1px 6px; border-radius: 4px; }
.field.xs { max-width: 110px; }

.inbox { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.inbox a:hover { background: var(--bg-soft); }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.inbox-from { font-weight: 600; }
.inbox-preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-date { color: var(--muted); white-space: nowrap; }
.inbox-dot { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: transparent; }
.inbox .unread a { background: #f3f8fe; }
.inbox .unread .inbox-from { font-weight: 800; color: var(--navy); }
.inbox .unread .inbox-preview { color: var(--ink); }
.inbox .unread .inbox-dot, .unread-row .inbox-dot { background: var(--orange); }
.unread-row td { background: #f3f8fe; }
.unread-row .inbox-dot { display: inline-block; margin-right: 7px; vertical-align: middle; }

.admin-topbar-actions .inline-form { display: inline-flex; margin: 0; }

details.wa-row > summary { list-style: none; cursor: pointer; }
details.wa-row > summary::-webkit-details-marker { display: none; }
details.wa-row > summary::after { content: '▾'; color: var(--muted); margin-left: auto; transition: transform .2s; }
details.wa-row[open] > summary::after { transform: rotate(180deg); }
details.wa-row:not([open]) { gap: 0; }
details.wa-row.unread { background: #f3f8fe; }
details.wa-row .inbox-dot { display: inline-block; margin-right: 7px; vertical-align: middle; background: var(--orange); }

.irrigation-head .split { align-items: center; }
.irr-photo { width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.irr-facts { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.irr-facts li { background: #fff; border: 1px solid var(--cream-2); border-radius: var(--radius-sm); padding: 10px 14px; display: grid; min-width: 130px; }
.irr-facts b { font-family: var(--font-head); font-size: 1.15rem; color: var(--blue); }
.irr-facts span { font-size: .8rem; color: var(--muted); }
.irr-card .kva small { text-transform: none; }
.irr-price { font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.irr-price span { color: var(--muted); font-weight: 600; }
.irr-type h3 { margin-bottom: .4em; }
.irr-type p { margin: 0 0 .5em; }
.irr-process { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); counter-reset: none; }
.irr-step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.irr-step-head h3 { margin: 0; }
.irr-step-no { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #3a2200; font-family: var(--font-head); font-weight: 800; }
.irr-preview .summary-list { margin: 0 0 10px; }
.irr-design { margin: 0 0 16px; }
.q-sub { font-size: .9rem; letter-spacing: .08em; color: var(--navy); background: var(--bg-soft); border-left: 4px solid var(--orange); padding: 6px 10px; margin: 16px 0 10px; }
.irr-design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 4px 28px; }
.irr-design dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: .9rem; }
.irr-design dt { font-weight: 700; color: var(--navy); }
.irr-design dd { margin: 0; }
.irr-estimate { background: var(--cream); border: 1px solid var(--cream-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .92rem; margin: 12px 0 0; }
.irr-plan-table td { font-size: .85rem; vertical-align: top; }
.admin-irr { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 4px; }
.irr-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px 14px; }
.irr-admin-grid .irr-wide { grid-column: 1 / -1; }
.irr-admin-row h2 { margin-bottom: 10px; }
@media print { .irr-design, .irr-plan { break-inside: avoid; } .q-sub { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.chip-link { text-decoration: none; display: inline-flex; align-items: center; border-color: var(--orange); color: var(--orange-dark); }
.chip-link:hover { background: var(--cream-2); }

.admin-locking .admin-shell { filter: blur(18px); pointer-events: none; user-select: none; }
.admin-locking::after { content: ''; position: fixed; inset: 0; z-index: 100; background: rgba(7, 43, 77, .35); }
.locked-logout { margin-top: 14px; }
.locked-logout .link-btn { color: #fff; opacity: .9; text-decoration: underline; }
.locked-logout .link-btn:hover { opacity: 1; }
.stock.low { color: var(--orange-dark); }
.stock.order { color: var(--blue); }
.stock.out { color: var(--red); }
.stock-line { margin: 6px 0; font-size: .9rem; }
button[data-buy]:disabled { background: #c9d3de; border-color: #c9d3de; color: #fff; cursor: not-allowed; }
.stock-kpis { margin-bottom: 16px; }
.stock-table td { vertical-align: middle; }
.stock-table tr.stock-out td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.stock-table tr.stock-low td:first-child { box-shadow: inset 4px 0 0 var(--orange); }
.stock-adjust { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.stock-table.stock-table .stock-adjust select, .stock-table.stock-table .stock-adjust input { padding: 6px 8px; font-size: .85rem; }
.stock-adjust input[name="qty"] { width: 72px; }
.stock-adjust input[name="note"] { flex: 1 1 140px; min-width: 0; }
.stock-flash td { animation: stockFlash 1.6s ease-out; }
@keyframes stockFlash { from { background: #fff4e0; } to { background: transparent; } }
.stock-big { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.stock-big b { font-family: var(--font-head); font-size: 2.2rem; color: var(--navy); }
.text-green { color: var(--green); }
.package-parts .part-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 8px; margin-bottom: 6px; }
.stock-table .stock-adjust { flex-wrap: nowrap; }
.stock-table .stock-adjust select { width: 112px; flex: 0 0 auto; }
.stock-table.stock-table .stock-adjust input[name="qty"] { width: 72px; flex: 0 0 auto; }
.stock-table.stock-table .stock-adjust input[name="note"] { width: auto; flex: 1 1 160px; }
.stock-table .stock-adjust .btn { flex: 0 0 auto; }
@media (max-width: 900px) { .stock-table .stock-adjust { flex-wrap: wrap; } }
@media (max-width: 760px) { .login-wrap { background: #051427 url('/images/solar-city.svg') 78% top / auto 66vh no-repeat; align-items: end; padding-bottom: 24px; } }

.scan-field { display: flex; align-items: center; gap: 8px; border: 2px solid var(--blue); border-radius: var(--radius-sm); background: #fff; padding: 4px 6px 4px 12px; }
.scan-field:focus-within { box-shadow: 0 0 0 4px rgba(14, 90, 158, .15); }
.scan-field input:not([type=checkbox]) { border: 0 !important; box-shadow: none !important; padding: 10px 4px; font-size: 1.1rem; letter-spacing: .04em; flex: 1; min-width: 0; }
.scan-field.compact { border-width: 1.5px; border-color: var(--line); padding-left: 4px; }
.scan-field.compact input:not([type=checkbox]) { font-size: 1rem; padding: 6px 4px; }
.scan-icon { color: var(--blue); display: inline-flex; }
.scan-hint { margin: 6px 0 14px; }
.scan-hint.bad, .bad { color: #a01a1e; }
.scan-hint a { font-weight: 600; }
.scan-find { margin-bottom: 12px; }
.scan-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.scan-tabs a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--muted); text-decoration: none !important; }
.scan-tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.scan-table td { vertical-align: middle; }
.scan-table .scan-qty { width: 76px; text-align: right; padding: 6px 8px; }
.scan-flash { animation: scan-flash 1s ease-out; }
@keyframes scan-flash { from { background: #fff4e0; } to { background: transparent; } }
.scan-foot { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 14px; }
.scan-foot .field { flex: 1 1 240px; margin: 0; }
.sale-pay { position: sticky; top: 16px; }
.sale-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sale-total span { color: var(--muted); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.sale-total b { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }
.sale-change { font-size: 1.05rem; font-weight: 700; color: #146c3c; margin: -6px 0 12px; }
.scan-cam { position: fixed; inset: 0; z-index: 200; background: rgba(5, 20, 39, .92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; color: #fff; }
.scan-cam[hidden] { display: none; }
.scan-cam-box { position: relative; width: min(92vw, 520px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #000; }
.scan-cam video { width: 100%; height: 100%; object-fit: cover; }
.scan-cam i { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); }
.scan-cam p { margin: 0; }
[data-scan-unknown] li { gap: 8px; }

.receipt-page, .labels-page { padding: 20px 16px 40px; }
.receipt-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 14px; }
.receipt-toolbar label { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }
.receipt-toolbar input { width: 80px; }
.receipt-done { text-align: center; color: #146c3c; font-weight: 600; margin: 0 0 12px; }
.receipt { width: 76mm; max-width: 100%; margin: 0 auto; background: #fff; color: #000; padding: 14px 12px; font-size: 12px; line-height: 1.35; box-shadow: var(--shadow); }
.receipt header { text-align: center; }
.receipt header img { border-radius: 50%; }
.receipt h1 { font-size: 13px; margin: 4px 0 2px; color: #000; }
.receipt header p { margin: 0; font-size: 11px; }
.receipt h2 { text-align: center; font-size: 13px; letter-spacing: .12em; margin: 10px 0 6px; padding: 4px 0; border-top: 1px dashed #000; border-bottom: 1px dashed #000; color: #000; }
.receipt-meta, .receipt-totals { display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; margin: 0 0 8px; }
.receipt-meta dt, .receipt-totals dt { font-weight: 400; }
.receipt-meta dd, .receipt-totals dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.receipt-items { width: 100%; border-collapse: collapse; border-top: 1px dashed #000; margin-bottom: 6px; }
.receipt-items td { padding: 2px 0 0; }
.receipt-items tr.sub td { padding: 0 0 3px; color: #333; }
.receipt-items .num { text-align: right; white-space: nowrap; }
.receipt-totals { border-top: 1px dashed #000; padding-top: 6px; }
.receipt-totals .grand { font-weight: 700; font-size: 14px; }
.receipt-code { text-align: center; margin-top: 8px; }
.receipt-code .barcode { width: 100%; height: 44px; }
.receipt-code p { margin: 0; font-family: monospace; letter-spacing: .1em; }
.receipt footer { text-align: center; border-top: 1px dashed #000; margin-top: 8px; padding-top: 6px; }
.receipt footer p { margin: 0; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, 50mm); gap: 4mm; justify-content: center; }
.label { width: 50mm; height: 30mm; border: 1px dashed var(--line); background: #fff; padding: 2mm; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; color: #000; break-inside: avoid; }
.label b { font-size: 9px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.label span { font-size: 11px; font-weight: 700; }
.label .barcode { width: 100%; height: 100%; min-height: 0; }
@media print {
  .receipt-page, .labels-page { padding: 0; }
  .receipt { box-shadow: none; width: 100%; padding: 0; }
  .label { border-color: transparent; }
}

.branch-switch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: .9rem; color: var(--muted); }
.branch-switch label { display: inline-flex; align-items: center; gap: 8px; }
.branch-switch select { width: auto; min-width: 180px; padding: 6px 10px; }
.branch-switch b { color: var(--navy); }
.branch-stock { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 4px; margin: 0 0 14px; }
.branch-stock legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.branch-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 0 12px; }
.branch-stock-grid .field span { font-size: .8rem; }
.stock-matrix td, .stock-matrix th { padding: 8px 6px; }
.stock-matrix .stock-adjust select[name=branch_id] { max-width: 120px; }
.dash-branch select { width: auto; padding: 6px 10px; border-radius: 999px; }
.dash-range { gap: 12px; }
.branch-edit { margin-top: 10px; min-width: min(80vw, 420px); }
tr.is-mine td { background: #fff4e0; font-weight: 600; }
.order-branch .list li { padding: 4px 0; }

dialog.modal { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(7, 43, 77, .35); overflow: hidden; }
dialog.modal.modal-wide { width: min(760px, calc(100% - 32px)); }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .18s ease-out; }
dialog.modal::backdrop { background: rgba(7, 43, 77, .55); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.modal-close { border: 0; background: #eef2f7; color: var(--navy); width: 34px; height: 34px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; flex-shrink: 0; }
.modal-close:hover { background: var(--line); }
.modal-body { padding: 18px 20px 20px; overflow-y: auto; }
.modal-body > form { margin: 0; }
.modal-body .form-row:last-child, .modal-body .field:last-child { margin-bottom: 0; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) {
  dialog.modal, dialog.modal.modal-wide { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--radius) var(--radius) 0 0; }
  @keyframes modal-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { dialog.modal[open] { animation: none; } }
.modal-danger { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.service-cell { display: flex; align-items: center; gap: 12px; }
.service-cell .service-thumb { border-radius: 6px; object-fit: cover; }
.irr-admin-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
