/* Hudumanet — main stylesheet */
:root {
  --ink: #0F2A44;
  --ink-2: #1B3B5C;
  --ocean: #0E7C7B;
  --ocean-soft: #E3F3F2;
  --marigold: #F2A541;
  --marigold-soft: #FDF1DE;
  --sky: #EEF3F8;
  --paper: #FFFFFF;
  --text: #1E2B3A;
  --slate: #536476;
  --line: #DCE4EC;
  --wa: #1FAF5A;
  --danger: #C2412D;
  --danger-soft: #FBE9E5;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -24px rgba(15, 42, 68, .45);
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; font-size: 93.75%; }
body {
  margin: 0; font-family: var(--body); font-size: 1rem; line-height: 1.6;
  color: var(--text); background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.45rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; display: flex; align-items: baseline; }
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--marigold); display: inline-block; margin-left: 3px; }
.nav-links { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.nav-links a, .nav-links button.linklike {
  color: var(--text); text-decoration: none; padding: .5rem .8rem; border-radius: 999px; font-weight: 550; font-size: .97rem;
}
.nav-links a:hover, .nav-links button.linklike:hover { background: var(--sky); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--sky); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg);
  padding: .72rem 1.25rem; border-radius: 999px; font: 650 .98rem/1.1 var(--body);
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); box-shadow: 0 10px 22px -14px rgba(15,42,68,.7); }
.btn:active { transform: translateY(0); }
.btn-accent { --bg: var(--marigold); --fg: var(--ink); }
.btn-ocean { --bg: var(--ocean); }
.btn-wa { --bg: var(--wa); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sky); }
.btn-danger { --bg: var(--danger); }
.btn-sm { padding: .45rem .9rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.linklike { background: none; border: 0; font: inherit; cursor: pointer; color: var(--ocean); padding: 0; }

/* ---------------------------------------------------------------- forms */
label { font-weight: 600; font-size: .93rem; color: var(--ink); display: block; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search],
input[type=number], input[type=url], select, textarea {
  width: 100%; font: 500 1rem/1.4 var(--body); color: var(--text);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .78rem .95rem; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%230F2A44' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px var(--ocean-soft); }
.field { margin-bottom: 1.1rem; }
.field .help { font-size: .84rem; color: var(--slate); margin-top: .3rem; }
.field .errorlist, .errorlist { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--danger); font-size: .88rem; font-weight: 550; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.choice-list { display: grid; gap: .5rem; }
.choice-list > div, .choice-list label.choice { margin: 0; }
.choice-list label { font-weight: 500; display: flex; gap: .6rem; align-items: center; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.choice-list label:has(input:checked) { border-color: var(--ocean); background: var(--ocean-soft); }
.choice-list input { accent-color: var(--ocean); width: 18px; height: 18px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.check input { accent-color: var(--ocean); width: 18px; height: 18px; margin-top: .2rem; }
.divider-text { display: flex; align-items: center; gap: .8rem; color: var(--slate); font-size: .88rem; margin: 1.3rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- messages */
.flash-stack { position: fixed; top: 80px; right: 1rem; z-index: 60; display: grid; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); }
.flash { background: var(--ink); color: #fff; padding: .85rem 1rem .85rem 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: .8rem; align-items: flex-start; animation: flash-in .35s ease-out; }
.flash.success { background: var(--ocean); }
.flash.error { background: var(--danger); }
.flash.warning { background: var(--marigold); color: var(--ink); }
.flash button { margin-left: auto; background: none; border: 0; color: inherit; font-size: 1.2rem; cursor: pointer; line-height: 1; opacity: .8; }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--marigold-soft); color: var(--ink); display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.notice.info { background: var(--sky); }
.notice.ok { background: var(--ocean-soft); }
.notice.bad { background: var(--danger-soft); }
.notice p { margin: 0; flex: 1 1 260px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem; background: linear-gradient(180deg, var(--sky) 0%, var(--paper) 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: 1.15rem; color: var(--slate); max-width: 46ch; }
.finder { margin-top: 1.8rem; background: var(--paper); padding: .55rem; border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr 1fr auto; gap: .45rem; }
.finder select, .finder input { border: 0; background-color: var(--sky); border-radius: 16px; }
.finder .btn { border-radius: 16px; padding-inline: 1.5rem; }
.hero-stats { display: flex; gap: 2rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: 1.6rem; color: var(--ink); line-height: 1; }
.hero-stats span { color: var(--slate); font-size: .9rem; }

.mosaic { position: relative; height: clamp(320px, 42vw, 470px); }
.mosaic .slideshow { position: absolute; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.mosaic .m1 { inset: 0 28% 22% 0; }
.mosaic .m2 { top: 8%; right: 0; width: 34%; height: 44%; }
.mosaic .m3 { bottom: 0; right: 6%; width: 52%; height: 40%; border: 6px solid var(--paper); }
.mosaic .tag { position: absolute; left: 1rem; bottom: 1rem; background: rgba(255,255,255,.94); color: var(--ink); font-weight: 650; font-size: .88rem; padding: .35rem .75rem; border-radius: 999px; z-index: 3; }

/* ---------------------------------------------------------------- slideshow (crossfade + slow zoom) */
.slideshow { position: relative; overflow: hidden; }
.slideshow .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.slideshow .slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow .slide.is-active { opacity: 1; z-index: 1; }
.slideshow .slide.is-active img { animation: kenburns 7s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.05); } }
.slide-dots { position: absolute; right: .8rem; bottom: .8rem; z-index: 3; display: flex; gap: 5px; }
.slide-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background .3s, width .3s; }
.slide-dots i.on { background: #fff; width: 18px; border-radius: 4px; }

/* ---------------------------------------------------------------- sections */
.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--slate); max-width: 52ch; }
.alt { background: var(--sky); }

/* category tiles — no borders, image-led */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
.cat-tile { text-decoration: none; color: inherit; display: block; }
.cat-tile .slideshow { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); background: var(--sky); }
.cat-tile .count { position: absolute; top: .8rem; left: .8rem; z-index: 3; background: rgba(15,42,68,.82); color: #fff; font-size: .8rem; font-weight: 650; padding: .28rem .65rem; border-radius: 999px; }
.cat-tile h3 { margin: .85rem 0 .25rem; font-size: 1.08rem; transition: color .2s; }
.cat-tile p { color: var(--slate); margin: 0 0 .6rem; font-size: .9rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile .go { font-size: .92rem; font-weight: 650; color: var(--ocean); display: inline-flex; gap: .4rem; align-items: center; }
.cat-tile .go svg { width: 16px; height: 16px; transition: transform .2s; }
.cat-tile:hover h3 { color: var(--ocean); }
.cat-tile:hover .go svg { transform: translateX(4px); }
.verified-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; color: var(--ocean); background: var(--ocean-soft); padding: .22rem .6rem .22rem .45rem; border-radius: 999px; }
.verified-pill svg { width: 14px; height: 14px; }

/* reveal one-by-one on load (the page's single orchestrated moment) */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { counter-increment: step; }
.step::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--marigold); line-height: 1; display: block; margin-bottom: .6rem; }
.step p { color: var(--slate); margin: 0; }

.cta-band { background: var(--ink); color: #dfe8f1; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); display: grid; grid-template-columns: 1.4fr auto; gap: 1.5rem; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { margin: 0; }

/* ---------------------------------------------------------------- provider cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 14px 34px -26px rgba(15,42,68,.5); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 22px 40px -24px rgba(15,42,68,.55); }
.card .media { position: relative; aspect-ratio: 16 / 10; background: var(--sky); display: block; }
.card .media .slideshow { position: absolute; inset: 0; }
.card .media .badge { position: absolute; top: .75rem; left: .75rem; z-index: 3; }
.card .media .verified-pill { background: rgba(255,255,255,.95); }
.card .body { padding: 1.1rem 1.2rem .4rem; flex: 1; }
.card .body h3 { margin-bottom: .2rem; }
.card .body h3 a { color: inherit; text-decoration: none; }
.card .body h3 a:hover { color: var(--ocean); }
.card .shop { font-weight: 600; color: var(--slate); font-size: .92rem; margin-bottom: .55rem; }
.card .desc { color: var(--slate); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .7rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .87rem; color: var(--slate); }
.meta span { display: inline-flex; gap: .3rem; align-items: center; }
.meta svg { width: 15px; height: 15px; color: var(--ocean); }
.card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: 1rem 1.2rem 1.2rem; }
.card .actions .btn { padding-inline: .7rem; }

/* ---------------------------------------------------------------- category page */
.banner { position: relative; color: #fff; min-height: 300px; display: flex; align-items: flex-end; overflow: hidden; }
.banner .slideshow { position: absolute; inset: 0; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(15,42,68,.15) 0%, rgba(15,42,68,.88) 100%); }
.banner .wrap { position: relative; z-index: 3; padding: 4rem 0 2.2rem; }
.banner h1 { color: #fff; margin-bottom: .3rem; }
.banner p { color: #dbe6f0; max-width: 58ch; margin: 0; font-size: 1.07rem; }
.crumbs { font-size: .9rem; margin-bottom: .8rem; }
.crumbs a { color: #fff; opacity: .85; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }

.filterbar { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: .8rem; display: grid; grid-template-columns: 1.4fr 1fr auto auto; gap: .6rem; align-items: center; margin-top: -2rem; position: relative; z-index: 5; }
.filterbar input, .filterbar select { background-color: var(--sky); border-color: transparent; }
.toggle { display: inline-flex; gap: .5rem; align-items: center; font-weight: 600; font-size: .92rem; white-space: nowrap; margin: 0 .4rem; cursor: pointer; }
.toggle input { accent-color: var(--ocean); width: 18px; height: 18px; }
.result-line { margin: 1.8rem 0 1.2rem; color: var(--slate); display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.result-line a.clear { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .35rem; border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: 0 0 0 1.5px var(--line) inset; }
.chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.chip:hover { box-shadow: 0 0 0 1.5px var(--ocean) inset; color: var(--ocean); }

.empty { text-align: center; padding: 3.5rem 1rem; background: var(--sky); border-radius: var(--radius-lg); }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--slate); max-width: 46ch; margin: 0 auto 1.2rem; }

.pager { display: flex; justify-content: center; gap: .4rem; margin-top: 2.2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 .8rem; border-radius: 999px; text-decoration: none; font-weight: 650; color: var(--ink); background: var(--sky); }
.pager .current { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- product detail */
.detail { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: 2rem; }
.gallery .main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--sky); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; animation: fade .45s ease; }
@keyframes fade { from { opacity: .3; } }
.gallery .thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery .thumbs button { flex: none; width: 92px; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; border: 3px solid transparent; padding: 0; cursor: pointer; background: var(--sky); }
.gallery .thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs button[aria-current="true"] { border-color: var(--marigold); }
.gallery .nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.gallery .nav-arrow.prev { left: .8rem; } .gallery .nav-arrow.next { right: .8rem; }
.gallery .nav-arrow svg { width: 20px; height: 20px; }

.contact-card { position: sticky; top: 88px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.6rem; }
.contact-card .cat-link { font-weight: 650; text-decoration: none; font-size: .92rem; }
.contact-card h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .4rem 0 .3rem; }
.contact-card .shop { color: var(--slate); font-weight: 600; margin-bottom: 1rem; }
.contact-card .btns { display: grid; gap: .6rem; margin: 1.3rem 0 1rem; }
.contact-card .btns .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.2rem; margin: 0; font-size: .95rem; }
.facts dt { color: var(--slate); }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.prose { max-width: 68ch; white-space: pre-line; }
.trust { font-size: .86rem; color: var(--slate); margin: .8rem 0 0; }

/* ---------------------------------------------------------------- auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; background: var(--ink); color: #d6e2ee; padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.auth-side .slideshow { position: absolute; inset: 0; opacity: .45; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,42,68,.2), rgba(15,42,68,.95)); }
.auth-side > .auth-copy { position: relative; z-index: 3; max-width: 440px; }
.auth-side h2 { color: #fff; }
.auth-side ul { padding-left: 1.1rem; margin: 0; }
.auth-side li { margin-bottom: .4rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-box { width: min(100%, 440px); }
.auth-box.wide { width: min(100%, 620px); }
.auth-box h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: .3rem; }
.auth-box > p.muted { margin-bottom: 1.6rem; }
.btn-google { --bg: #fff; --fg: var(--ink); border-color: var(--line); width: 100%; }
.btn-google:hover { background: var(--sky); }
.form-error { background: var(--danger-soft); color: var(--danger); padding: .75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-weight: 600; font-size: .93rem; }
.form-error ul { margin: 0; padding: 0; list-style: none; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--slate); cursor: pointer; font-size: .85rem; font-weight: 650; padding: .3rem .4rem; }

/* ---------------------------------------------------------------- dashboard */
.dash-head { padding: 2.2rem 0 1.4rem; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }
.panel { background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(15,42,68,.6); padding: 1.4rem; }
.panel h2 { font-size: 1.3rem; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: var(--sky); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat strong { display: block; font-family: var(--display); font-size: 1.8rem; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--slate); font-size: .88rem; }

.token-card { background: var(--ink); color: #d6e2ee; border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.token-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: .2rem; }
.token-card .big { font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: #fff; line-height: 1; margin: .6rem 0 .2rem; }
.token-card .big small { font-size: 1rem; font-weight: 600; color: #b4c6d8; margin-left: .3rem; }
.meter { height: 10px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; margin: 1rem 0 .6rem; }
.meter i { display: block; height: 100%; background: var(--marigold); border-radius: 999px; transition: width .6s; }
.token-card.empty-tokens .meter i { background: var(--danger); }
.token-card .btn { margin-top: 1rem; }
.mode-pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .25rem .65rem; border-radius: 999px; background: var(--marigold); color: var(--ink); }
.mode-pill.paid { background: var(--ocean); color: #fff; }
.mode-pill.off { background: var(--danger); color: #fff; }

.list-rows { display: grid; gap: .8rem; }
.lrow { display: grid; grid-template-columns: 96px 1fr auto; gap: 1rem; align-items: center; padding: .7rem; border-radius: var(--radius); background: var(--sky); }
.lrow img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.lrow h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.lrow h3 a { color: inherit; text-decoration: none; }
.lrow .meta { font-size: .84rem; }
.lrow .ops { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.status { display: inline-block; font-size: .76rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.status.Pending, .status.s1, .status.s2 { background: var(--marigold-soft); color: #8a5a10; }
.status.Approved, .status.s3 { background: var(--ocean-soft); color: var(--ocean); }
.status.Disapproved, .status.s4, .status.s5 { background: var(--danger-soft); color: var(--danger); }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.tabs a { text-decoration: none; color: var(--ink); font-weight: 650; padding: .55rem 1rem; border-radius: 999px; background: var(--sky); }
.tabs a.on { background: var(--ink); color: #fff; }
.tabs a b { font-weight: 700; opacity: .7; margin-left: .25rem; }

.review-note { display: none; margin-top: .6rem; }
.review-note.open { display: flex; gap: .5rem; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.plan { position: relative; border-radius: var(--radius-lg); padding: 1.4rem 1.2rem; background: var(--sky); display: flex; flex-direction: column; gap: .3rem; }
.plan.popular { background: var(--ink); color: #d6e2ee; }
.plan.popular h3, .plan.popular .price { color: #fff; }
.plan .flag { position: absolute; top: -.7rem; left: 1.2rem; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--ink); line-height: 1.1; }
.plan .price small { font-size: .95rem; font-weight: 600; }
.plan .per { font-size: .86rem; opacity: .8; }
.plan form { margin-top: auto; padding-top: 1rem; }
table.simple { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.simple th, table.simple td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); }
table.simple th { color: var(--slate); font-weight: 600; font-size: .84rem; }
.table-scroll { overflow-x: auto; }

/* image previews in forms */
.img-strip { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.img-strip figure { margin: 0; position: relative; }
.img-strip img { width: 110px; height: 82px; object-fit: cover; border-radius: 10px; }
.img-strip form, .img-strip .x { position: absolute; top: 4px; right: 4px; }
.img-strip .x button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(15,42,68,.85); color: #fff; cursor: pointer; font-weight: 700; }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.3rem; text-align: center; background: var(--sky); cursor: pointer; transition: border-color .2s; }
.dropzone:hover, .dropzone.drag { border-color: var(--ocean); }
.dropzone input { display: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #b8c9da; margin-top: 4rem; padding: 3rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer a { color: #dbe6f0; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .87rem; }
.wa-float { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(31,175,90,.8); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { color: #fff; transform: scale(1.05); }

/* ---------------------------------------------------------------- static pages */
.page-head { background: var(--sky); padding: 3rem 0 2.2rem; }
.page-body { padding: 2.5rem 0; }
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .detail, .dash-grid { grid-template-columns: 1fr; }
  .mosaic { height: 340px; }
  .cat-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-card { position: static; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .filterbar { grid-template-columns: 1fr 1fr; }
  .filterbar .q { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: .8rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button.linklike { padding: .8rem 1rem; text-align: left; }
  .finder { grid-template-columns: 1fr; }
  .steps, .footer-grid, .cta-band { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lrow { grid-template-columns: 72px 1fr; }
  .lrow img { width: 72px; height: 56px; }
  .lrow .ops { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .cat-grid, .cards, .plans { grid-template-columns: 1fr; }
  .mosaic .m2 { display: none; }
  .mosaic .m1 { inset: 0 0 26% 0; }
  .mosaic .m3 { width: 60%; right: 4%; }
  .filterbar { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .slideshow .slide { transition: none; }
}

/* default size for inline icons (zero specificity so component rules win) */
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.mosaic .tag { display: inline-flex; gap: .4rem; align-items: center; }
.mosaic .tag svg { color: var(--ocean); }
.banner .wrap { padding-bottom: 3.8rem; }
.dash-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.plans { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 980px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .detail > div:first-child { display: contents; }
  .detail .gallery { order: 1; }
  .detail .contact-card { order: 2; }
  .detail .about-service { order: 3; }
}
@media (max-width: 560px) { .mosaic .tag { display: none; } }

/* ================================================================ v3: search banner, chat, calls, analytics */
:root { --blue: #1F6FD1; --blue-2: #1559AE; --hero-bg: #EEF4FC; }

/* ---------------------------------------------------------------- search banner (home + results) */
.hero2 { background: linear-gradient(180deg, var(--hero-bg) 0%, var(--paper) 100%); padding: 2rem 0 1.5rem; }
.hero2-brand { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: .06em; color: var(--blue); }
.hero2-brand svg { width: 1.3em; height: 1.3em; color: var(--ink); }
.hero2-card { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(15,42,68,.6); min-height: clamp(320px, 36vw, 440px); display: flex; background: var(--ink); }
.hero2.compact .hero2-card { min-height: 300px; }
.hero2-card > .hero2-bg { position: absolute; inset: 0; }
.hero2-bg .slide.is-active img { animation-duration: 14s; }
.hero2-card::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(10,25,45,.42) 0%, rgba(10,25,45,.18) 55%, rgba(10,25,45,.35) 100%); pointer-events: none; }
.hero2-content { position: relative; z-index: 3; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem); gap: 1.6rem; }
.hero2-title { color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.45; max-width: 52ch; margin: 0; text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.hero2-title svg { width: 1.05em; height: 1.05em; margin-right: .35rem; vertical-align: -.12em; }
.hero2-search { display: flex; gap: .9rem; width: min(100%, 580px); }
.hero2-search input { flex: 1; border-radius: 999px; border: 2px solid rgba(255,255,255,.9); padding: .95rem 1.4rem; font-size: 1.05rem; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.glass-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.65); color: #fff; font: 700 1rem/1 var(--body); cursor: pointer; background: rgba(20,30,40,.38); backdrop-filter: blur(10px) saturate(1.3); -webkit-backdrop-filter: blur(10px) saturate(1.3); box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); transition: background .2s, transform .15s; white-space: nowrap; }
.glass-btn:hover { background: rgba(20,30,40,.58); transform: translateY(-1px); }
.glass-btn svg { width: 18px; height: 18px; }
.adv-toggle { margin-top: .4rem; }
.adv-panel { position: relative; width: min(100%, 1060px); background: var(--paper); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2.4rem) 1.8rem; text-align: left; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); animation: adv-in .35s cubic-bezier(.2,.7,.2,1); }
.adv-panel[hidden] { display: none; }
@keyframes adv-in { from { opacity: 0; transform: translateY(14px); } }
.adv-panel h2 { text-align: center; font-size: clamp(1.25rem, 2.4vw, 1.9rem); margin: .4rem 0 1.4rem; text-shadow: 0 3px 10px rgba(15,42,68,.18); }
.adv-close { position: absolute; top: 1rem; right: 1rem; background: none; border: 1.5px solid #F2B8AE; color: var(--danger); font-weight: 700; border-radius: 999px; padding: .3rem .85rem; cursor: pointer; }
.adv-close:hover { background: var(--danger-soft); }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.adv-grid label { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 800; color: var(--blue); }
.adv-grid input, .adv-grid select { border-radius: 14px; padding: .9rem 1rem; }
.adv-form { display: grid; justify-items: center; gap: 1.1rem; }
.adv-form .adv-grid { width: 100%; }
.adv-verified { margin: 0; }
.btn-blue { --bg: var(--blue); background: linear-gradient(180deg, #2B7DE0, var(--blue-2)); border-color: transparent; padding: .9rem 2.2rem; font-size: 1.05rem; }
.hero2-stats { justify-content: center; margin: 1.2rem 0 0; }
.hero2-stats strong svg { width: 26px; height: 26px; color: var(--ocean); }
.filter-chip { display: inline-flex; gap: .3rem; align-items: center; background: var(--sky); color: var(--ink); font-weight: 650; font-size: .85rem; padding: .2rem .7rem; border-radius: 999px; }
.filter-chip svg { width: 14px; height: 14px; color: var(--ocean); }
@media (max-width: 860px) { .adv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .hero2-search { flex-direction: column; }
  .hero2-search .glass-btn { justify-content: center; }
  .adv-grid { grid-template-columns: 1fr; }
  .adv-panel h2 { padding-right: 3.5rem; text-align: left; }
}

/* ---------------------------------------------------------------- contact gate on the service page */
.contact-gate { border-radius: var(--radius); background: var(--sky); padding: .2rem 1rem; }
.contact-gate[open] { padding-bottom: 1rem; }
.contact-gate summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: .75rem 0; display: flex; gap: .45rem; align-items: center; list-style: none; }
.contact-gate summary::-webkit-details-marker { display: none; }
.contact-gate summary svg { color: var(--ocean); }
.contact-gate .form-grid { grid-template-columns: 1fr 1fr; }
.contact-gate input, .contact-gate textarea { background: var(--paper); }
.contact-gate .field { margin-bottom: .7rem; }
.gate-note { margin: 0 0 .8rem; }
.contact-card .btns .row2 .btn { padding-inline: .6rem; }
.need-msg { outline: 3px solid var(--marigold); outline-offset: 3px; }

/* ---------------------------------------------------------------- nav badge & inbox */
.nav-chat { display: inline-flex; align-items: center; gap: .35rem; }
.badge-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.badge-count[hidden] { display: none; }
.convo-list { display: grid; gap: .5rem; }
.convo { display: grid; grid-template-columns: 44px 1fr auto; gap: .8rem; align-items: center; padding: .7rem .8rem; border-radius: var(--radius); background: var(--sky); text-decoration: none; color: var(--text); }
.convo:hover { background: var(--ocean-soft); color: var(--text); }
.convo img, .convo .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.convo .avatar { background: var(--ocean); font-size: 1rem; }
.convo-main { display: grid; min-width: 0; }
.convo-main b { color: var(--ink); }
.convo-main small { color: var(--slate); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-side { display: grid; justify-items: end; gap: .2rem; font-size: .8rem; color: var(--slate); }
.convo.unread .convo-main b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: .4rem; vertical-align: middle; }
.convo-list.compact { margin-top: 1rem; }
.convo-list.compact .convo { grid-template-columns: 36px 1fr auto; padding: .5rem .6rem; }
.convo-list.compact .avatar { width: 36px; height: 36px; }

/* ---------------------------------------------------------------- conversation */
.chat-wrap { max-width: 860px; padding: 1.4rem 0 2rem; }
.chat-head { display: grid; grid-template-columns: auto 52px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 1rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(15,42,68,.6); }
.chat-back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--sky); }
.chat-head img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.chat-head h1 { font-size: 1.25rem; margin: 0 0 .15rem; }
.chat-who { min-width: 0; }
.chat-actions { display: flex; gap: .4rem; }
.hn-banner { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--marigold-soft); color: var(--ink); }
.hn-banner svg { color: var(--ocean); width: 22px; height: 22px; flex: none; }
.hn-banner p { margin: 0; font-size: .95rem; }
.chat-box { margin-top: 1rem; background: var(--paper); border-radius: var(--radius-lg); box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(15,42,68,.6); display: flex; flex-direction: column; height: min(62vh, 620px); }
.chat-log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; background: linear-gradient(180deg, var(--sky), #f7fafc); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.msg { max-width: min(78%, 520px); padding: .6rem .85rem .4rem; border-radius: 16px 16px 16px 4px; background: var(--paper); box-shadow: 0 1px 0 var(--line); align-self: flex-start; }
.msg.me { align-self: flex-end; background: var(--ocean); color: #fff; border-radius: 16px 16px 4px 16px; }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; font-size: .72rem; opacity: .7; text-align: right; margin-top: .15rem; }
.msg.system { align-self: center; max-width: 92%; background: var(--marigold-soft); color: var(--ink); border-radius: 12px; font-size: .88rem; text-align: center; }
.chat-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; max-height: 140px; border-radius: 18px; }
.chat-readonly { padding: .9rem 1.2rem; margin: 0; border-top: 1px solid var(--line); }
.call-history { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .9rem; }
.chat-hint { margin-top: .5rem; }
@media (max-width: 560px) {
  .chat-head { grid-template-columns: auto 44px 1fr; }
  .chat-head img { width: 44px; height: 44px; }
  .chat-actions { grid-column: 1 / -1; }
  .chat-actions .btn { flex: 1; }
  .chat-form .btn span { display: none; }
  .msg { max-width: 88%; }
}

/* ---------------------------------------------------------------- call screen */
.call-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(8,20,35,.72); backdrop-filter: blur(6px); padding: 1rem; }
.call-modal[hidden] { display: none; }
.call-card { width: min(100%, 360px); background: linear-gradient(180deg, var(--ink), #0a1d31); color: #dbe6f0; border-radius: 28px; padding: 2.2rem 1.6rem 1.8rem; text-align: center; box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.call-avatar { width: 88px; height: 88px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.call-avatar svg { width: 38px; height: 38px; }
.call-modal.ringing .call-avatar { animation: ring-pulse 1.4s ease-out infinite; }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 rgba(31,175,90,.55); } 100% { box-shadow: 0 0 0 28px rgba(31,175,90,0); } }
.call-label { margin: 0; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.call-card h2 { color: #fff; margin: .3rem 0 .2rem; font-size: 1.5rem; }
.call-status { margin: 0 0 1.6rem; min-height: 1.5em; }
.call-actions { display: flex; justify-content: center; gap: 1.2rem; }
.call-btn { width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .15s; }
.call-btn[hidden] { display: none; }
.call-btn:hover { transform: scale(1.06); }
.call-btn svg { width: 26px; height: 26px; }
.call-btn.accept { background: var(--wa); }
.call-btn.hang { background: var(--danger); }
.call-btn.mute { background: rgba(255,255,255,.14); }
.call-btn.mute.on { background: #fff; color: var(--ink); }
.call-open { display: inline-block; margin-top: 1.2rem; color: #fff; }
.call-open[hidden] { display: none; }

/* ---------------------------------------------------------------- manager pages */
.manager-nav { margin-bottom: 1.6rem; }
.manager-nav a { display: inline-flex; gap: .4rem; align-items: center; }
.manager-nav svg { width: 16px; height: 16px; }
.cat-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.cat-admin { display: block; text-decoration: none; color: inherit; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 14px 34px -28px rgba(15,42,68,.6); transition: transform .2s; }
.cat-admin:hover { transform: translateY(-3px); color: inherit; }
.cat-admin.off { opacity: .6; }
.cat-admin-media { position: relative; }
.cat-admin-media .slideshow { aspect-ratio: 16 / 10; background: var(--sky); }
.cat-admin-media .count { position: absolute; top: .7rem; left: .7rem; z-index: 3; background: rgba(15,42,68,.82); color: #fff; font-size: .78rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }
.cat-admin-media .count.warn { background: var(--danger); }
.cat-admin-body { padding: .9rem 1rem 1rem; }
.cat-admin-body h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.cat-preview { max-width: 360px; margin-bottom: 1rem; }
.cat-preview .slideshow { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.hero-slides { display: grid; gap: .7rem; }
.hero-slide { display: grid; grid-template-columns: 150px 1fr; gap: .9rem; align-items: center; background: var(--sky); padding: .6rem; border-radius: var(--radius); }
.hero-slide.off img { opacity: .4; }
.hero-slide img { width: 150px; height: 70px; object-fit: cover; border-radius: 10px; }
.hero-slide .ops { display: flex; gap: .35rem; flex-wrap: wrap; }
.hero-mini { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--ink); display: grid; place-items: center; }
.hero-mini .slideshow { position: absolute; inset: 0; }
.hero-mini p { position: relative; z-index: 3; color: #fff; font-weight: 700; text-align: center; padding: 1rem; margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.7); }

/* ---------------------------------------------------------------- analytics */
.range-pills { display: inline-flex; background: var(--sky); border-radius: 999px; padding: .25rem; gap: .2rem; }
.range-pills a { text-decoration: none; color: var(--ink); font-weight: 650; font-size: .88rem; padding: .4rem .85rem; border-radius: 999px; }
.range-pills a.on { background: var(--ink); color: #fff; }
.kpi-row { margin-bottom: .8rem; }
.channel-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-bottom: 1.6rem; color: var(--slate); font-size: .93rem; }
.channel-row span { display: inline-flex; gap: .4rem; align-items: center; }
.channel-row svg { color: var(--ocean); }
.channel-row b { color: var(--ink); }
.chart-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin: 0 0 1.6rem; }
.bar-chart { margin: 0; }
.bar-chart h2 { font-size: 1.05rem; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.bar i { display: block; width: 100%; height: max(var(--h), 1px); background: var(--ocean); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.bars.leads .bar i { background: var(--marigold); }
.bars:hover .bar i { opacity: .55; }
.bars .bar:hover i, .bars .bar:focus i { opacity: 1; }
.bar:hover::after, .bar:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; padding: .3rem .55rem; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
.bars-axis { display: flex; justify-content: space-between; font-size: .78rem; color: var(--slate); margin-top: .3rem; }
table.simple.num td { font-variant-numeric: tabular-nums; }
.dash-grid.three { grid-template-columns: repeat(3, 1fr); }
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.rank li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .6rem; border-radius: 8px; background: var(--sky); font-size: .93rem; }
.rank li b { font-variant-numeric: tabular-nums; color: var(--ink); }
.reach { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center; }
.reach li { background: var(--ocean-soft); border-radius: var(--radius); padding: .8rem .4rem; }
.reach b { display: block; font-family: var(--display); font-size: 1.7rem; color: var(--ink); line-height: 1.1; }
.reach span { font-size: .8rem; color: var(--slate); line-height: 1.25; display: block; }
@media (max-width: 980px) { .chart-pair, .dash-grid.three { grid-template-columns: 1fr; } }

/* ================================================================ v4: language picker */
.lang-pick { position: relative; display: inline-flex; align-items: center; margin: 0 0 0 .6rem; order: 3; font-weight: 600; }
.lang-pick svg { position: absolute; left: .7rem; width: 17px; height: 17px; color: var(--ocean); pointer-events: none; }
.lang-pick select { width: auto; padding: .45rem 2rem .45rem 2.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600; background-color: var(--sky); border-color: transparent; background-position: right .75rem center; cursor: pointer; }
.nav-toggle { order: 4; }
/* Google Translate: hide its top bar, tooltips and highlight so the site keeps its own look */
.skiptranslate iframe, iframe.goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; visibility: hidden !important; }
body { top: 0 !important; position: static !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[style] { background: none !important; box-shadow: none !important; }
/* right-to-left (Arabic) */
[dir="rtl"] .lang-pick { margin: 0 .6rem 0 0; }
[dir="rtl"] .lang-pick svg { left: auto; right: .7rem; }
[dir="rtl"] .lang-pick select { padding: .45rem 2.1rem .45rem 2rem; background-position: left .75rem center; }
[dir="rtl"] select { background-position: left 1rem center; padding-right: .95rem; padding-left: 2.5rem; }
[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .msg.me { align-self: flex-start; }
[dir="rtl"] .msg:not(.me):not(.system) { align-self: flex-end; }
[dir="rtl"] .adv-close { right: auto; left: 1rem; }
@media (max-width: 760px) {
  .lang-pick { margin-left: auto; }
  .nav-toggle { margin-left: .3rem; }
  .lang-pick select { padding-right: 1.8rem; font-size: .85rem; max-width: 9.5rem; }
  [dir="rtl"] .lang-pick { margin-right: auto; margin-left: 0; }
}

/* ================================================================ legal pages */
.legal-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.legal-toc { position: sticky; top: 88px; background: var(--sky); border-radius: var(--radius); padding: 1rem 1.1rem; font-size: .92rem; }
.legal-toc b { display: block; margin-bottom: .4rem; color: var(--ink); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; }
.legal-toc a { text-decoration: none; }
.legal h2 { scroll-margin-top: 90px; }
.legal ul, .legal ol { padding-left: 1.3rem; }
.legal li { margin-bottom: .35rem; }
.legal .summary { background: var(--ocean-soft); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.legal .summary ul { margin: .4rem 0 0; }
.legal table.simple { margin: .6rem 0 1rem; }
.legal-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.legal-tabs a { text-decoration: none; font-weight: 650; padding: .45rem .95rem; border-radius: 999px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset; }
.legal-tabs a.on { background: var(--ink); color: #fff; box-shadow: none; }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* ================================================================ v5: Plus Jakarta Sans (same family as Nyumbanet) */
body { font-size: 15.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4 { letter-spacing: -.02em; }
h1 { font-weight: 800; }
h2, .brand { font-weight: 800; }
h3 { font-weight: 700; }
.btn, .glass-btn { font-weight: 700; letter-spacing: -.005em; }
label { font-weight: 650; }
.stat strong, .reach b, .token-card .big, .plan .price, .hero-stats strong, .step::before { font-weight: 800; letter-spacing: -.02em; }

/* ================================================================ v6: login / register / password (centred card on a blue band) */
.auth-page { background: #EEF4FC; }
.auth2 { position: relative; min-height: calc(100vh - 68px); padding: 2rem 1rem 4rem; overflow: hidden; }
.auth2-band { position: absolute; inset: 0 0 auto 0; height: 430px; background: linear-gradient(180deg, #2B7BD6 0%, #3487DD 62%, rgba(52,135,221,0) 100%); }
.auth2-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 0%, rgba(255,255,255,.16), transparent 70%); }
.auth2-inner { position: relative; width: min(100%, 520px); margin: 0 auto; }
.auth2-back { display: inline-block; color: #fff; font-weight: 700; text-decoration: none; margin-bottom: 1.2rem; opacity: .95; }
.auth2-back:hover { color: #fff; opacity: 1; text-decoration: underline; }
.auth2-title { color: #fff; text-align: center; font-size: clamp(1.7rem, 4vw, 2.2rem); margin: 0 0 .3rem; }
.auth2-sub { color: rgba(255,255,255,.88); text-align: center; margin: 0 0 1.6rem; font-size: 1rem; }
.auth2-card { background: var(--paper); border-radius: 28px; padding: clamp(1.3rem, 4vw, 2.1rem); box-shadow: 0 30px 70px -36px rgba(15,42,68,.45), 0 1px 0 rgba(15,42,68,.04); }
.auth2-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: #E7F0FC; border-radius: 999px; padding: .3rem; margin-bottom: 1.4rem; }
.auth2-tabs a { text-align: center; text-decoration: none; font-weight: 700; font-size: .93rem; color: var(--blue-2); padding: .62rem .4rem; border-radius: 999px; transition: background .15s, color .15s; white-space: nowrap; }
.auth2-tabs a:hover { background: rgba(255,255,255,.7); color: var(--blue-2); }
.auth2-tabs a.on { background: linear-gradient(180deg, #2B7DE0, var(--blue-2)); color: #fff; box-shadow: 0 8px 18px -10px rgba(21,89,174,.9); }
.auth2-card .btn-google { border-radius: 14px; padding: .9rem 1rem; font-size: 1rem; border-color: #DCE7F5; }
.auth2-card .divider-text { margin: 1.1rem 0; }
.auth2-card .divider-text::before, .auth2-card .divider-text::after { background: #D6E4F5; }
.auth2-card label { font-size: .9rem; font-weight: 700; }
.auth2-card input[type=text], .auth2-card input[type=email], .auth2-card input[type=password],
.auth2-card input[type=tel], .auth2-card select { background-color: #F3F7FD; border: 1.5px solid #DCE7F5; border-radius: 13px; padding: .85rem 1rem; }
.auth2-card input:focus, .auth2-card select:focus { background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,209,.14); }
.auth2-card .form-grid { gap: 0 .9rem; }
.auth2-card .field { margin-bottom: .95rem; }
.auth2-card .check input { accent-color: var(--blue); }
.auth2-card a { color: var(--blue); }
.auth2-row { margin: .1rem 0 1.2rem; }
.auth2-submit { --bg: var(--blue); background: linear-gradient(90deg, #2771D0, #3B8FE3); border: 0; border-radius: 14px; padding: 1.05rem 1rem; font-size: 1.06rem; box-shadow: 0 14px 26px -16px rgba(31,111,209,.9); }
.auth2-submit:hover { box-shadow: 0 18px 30px -16px rgba(31,111,209,.95); }
.auth2-note { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 14px; background: #EAF2FD; border: 1px solid #D6E4F5; color: var(--ink); font-size: .9rem; }
.auth2-note svg { width: 20px; height: 20px; color: var(--blue); flex: none; margin-top: .1rem; }
.auth2-note p { margin: 0; }
.auth2-switch { text-align: center; margin: 1.2rem 0 0; color: var(--slate); }
.auth2-switch a { font-weight: 700; text-decoration: none; }
@media (max-width: 480px) {
  .auth2 { padding-top: 1.2rem; }
  .auth2-card { border-radius: 22px; }
  .auth2-card .form-grid { grid-template-columns: 1fr 1fr; }
  .auth2-tabs a { font-size: .82rem; }
}
@media (max-width: 360px) { .auth2-card .form-grid { grid-template-columns: 1fr; } }
