/* Geowete Notice Board — brand colours from the Geowete logo */
:root {
  --blue: #0072e2;
  --blue-600: #0a5fc0;
  --blue-50: #eaf3fe;
  --blue-light: #0b9fff;
  --navy: #0b2545;
  --navy-2: #13315c;
  --ink: #1b2a3a;
  --muted: #5b6b7d;
  --line: #e3e9f1;
  --bg: #f5f8fc;
  --card: #fff;
  --ok: #138a52;
  --ok-50: #e6f6ee;
  --warn: #9a6200;
  --warn-50: #fff4e0;
  --err: #b42318;
  --err-50: #fdecec;
  --wa: #1fa855;
  --gold: #f5a524;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, .08);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }
svg { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }
svg.ico-line { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.success-ico { color: var(--ok); font-size: 3.5rem; line-height: 1; margin-bottom: 8px; }
.notice-meta span { display: inline-flex; align-items: center; gap: 5px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: .4rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid rgba(0,114,226,.45); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.demo-bar { background: var(--warn-50); color: var(--warn); text-align: center; font-size: .82rem; padding: 6px 12px; font-weight: 600; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand span { border-left: 2px solid var(--line); padding-left: 10px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--navy); font-weight: 500; font-size: .94rem; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); text-decoration: none; }
.nav a[aria-current] { font-weight: 700; }
.nav-auth { display: flex; align-items: center; gap: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--navy); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand span { display: none; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: 4px 16px 16px; gap: 0; display: none; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav > a, .nav-auth > a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-auth { flex-direction: column; align-items: stretch; gap: 0; border: 0; padding: 0; }
  .nav-auth .btn { margin-top: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; cursor: pointer; font-family: inherit; line-height: 1.2; transition: transform .15s, background .15s, box-shadow .15s; text-align: center; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(0,114,226,.25); }
.btn-primary:hover { background: var(--blue-600); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost { background: var(--blue-50); color: var(--blue-600); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-white { background: #fff; color: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-danger { background: #fff; color: var(--err); border-color: var(--err); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, var(--blue) 140%); color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; border: 64px solid rgba(11,159,255,.12); pointer-events: none; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p.lead { color: #d4e2f4; max-width: 640px; font-size: 1.08rem; }
.hero .eyebrow { color: #7cc4ff; }
.hero.sm { padding: 44px 0 48px; }
.search-box { display: flex; background: #fff; border-radius: 999px; padding: 6px; max-width: 680px; margin-top: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.2); position: relative; z-index: 1; }
.search-box input { border: 0; flex: 1; padding: 10px 16px; font-size: 1rem; background: transparent; min-width: 0; }
.search-box input:focus { outline: none; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: #fff; }
.hero-stats div span { color: #b9cde6; font-size: .85rem; }

/* ---------- Sections ---------- */
section.block { padding: 60px 0; }
section.block.white { background: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head > div { max-width: 680px; }
.section-head p { color: var(--muted); margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; gap: 10px; align-items: center; color: var(--navy); font-weight: 600; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; }
.cat-tile { padding: 12px; gap: 10px; hyphens: auto; }
.cat-tile .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; font-size: 1.25rem; transition: background .15s, color .15s; }
.cat-tile:hover .ic { background: var(--blue); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; font-size: .93rem; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: 20px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d4e2f4; margin: 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 16px; }
.grid.biz { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid.products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid.notices { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.avatar { width: 56px; height: 56px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.avatar.initials { background: linear-gradient(135deg, var(--blue), var(--navy-2)); color: #fff; font-family: var(--font-head); font-weight: 800; border: 0; }
.avatar.lg { width: 140px; height: 140px; border-radius: 20px; font-size: 2.6rem; }
.avatar.xs { width: 24px; height: 24px; border-radius: 6px; font-size: .6rem; }

.biz-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s; }
.biz-card:hover { box-shadow: var(--shadow); border-color: #cfe0f5; }
.biz-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.biz-card-top { display: flex; gap: 12px; align-items: center; }
.biz-card h3 { font-size: 1rem; margin: 0 0 2px; }
.biz-card .tagline { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.biz-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.biz-card-wa { position: relative; z-index: 2; align-self: flex-start; }
.meta { color: var(--muted); font-size: .82rem; }
.badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge.verified { background: var(--blue-50); color: var(--blue-600); }
.badge.featured { background: #fff1d6; color: #8a5a00; }

.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-img { aspect-ratio: 4/3; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-size: 2.4rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: .98rem; margin: 0; }
.product-body p { color: var(--muted); font-size: .88rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.price { font-family: var(--font-head); font-weight: 800; color: var(--navy); }
.price small { font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .8rem; }
.seller { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--navy); font-weight: 600; }
.seller .tick { color: var(--blue); }

.notice-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.notice-card.type-job { border-left-color: #7c3aed; }
.notice-card.type-event { border-left-color: var(--ok); }
.notice-card.type-tender { border-left-color: var(--warn); }
.notice-card.type-offer { border-left-color: #e11d48; }
.notice-card h3 { font-size: 1.02rem; margin: 0; }
.notice-card p { margin: 0; color: #3a4a5c; font-size: .92rem; white-space: pre-line; }
.notice-head { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--blue-50); color: var(--blue-600); padding: 3px 10px; border-radius: 999px; }
.notice-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.notice-card .by { font-size: .84rem; font-weight: 600; }

.empty { background: #fff; border: 1px dashed #c8d6e8; border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.empty strong { display: block; color: var(--navy); margin-bottom: 4px; }
.empty .btn { margin-top: 12px; }
.skeleton { background: linear-gradient(90deg, #eef3f9, #f8fafd, #eef3f9); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 150px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Directory filters ---------- */
.layout-side { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; display: grid; gap: 14px; }
.filters h4 { margin: 0; font-size: .95rem; }
.chip-set { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-toggle { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--navy); }
.chip-toggle[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .layout-side { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}
.tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* ---------- Business profile ---------- */
.profile-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--blue) 150%); height: 150px; }
.profile-card { margin-top: -80px; position: relative; background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.profile-card h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 4px; }
.profile-card .owner { color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip { font-size: .8rem; padding: 4px 12px; border-radius: 999px; background: var(--blue-50); color: var(--blue-600); font-weight: 600; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: var(--navy); }
.socials a:hover { background: var(--blue); color: #fff; text-decoration: none; }
.socials.dark a { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }
.profile-actions { display: flex; flex-direction: column; gap: 10px; min-width: 210px; }
.rating-line { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.stars { display: inline-flex; gap: 1px; color: #d3dbe6; }
.stars span.on { color: var(--gold); }
.stars.lg { font-size: 1.4rem; }
@media (max-width: 860px) {
  .profile-card { grid-template-columns: 1fr; text-align: center; }
  .profile-card .avatar { margin: 0 auto; }
  .chips, .socials, .rating-line { justify-content: center; }
  .profile-actions { min-width: 0; }
}
.contact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.contact-strip a { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--ink); min-width: 0; }
.contact-strip a:hover { border-color: var(--blue); text-decoration: none; }
.contact-strip .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); flex: none; font-size: 1.15rem; }
.contact-strip small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-strip strong { font-size: .93rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .contact-strip { grid-template-columns: 1fr; } }

.profile-body { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 960px) { .profile-body { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h2 { font-size: 1.2rem; }
.services-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.services-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: .88rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: #dde7f3; aspect-ratio: 4/3; position: relative; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 8px 10px; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgba(11,37,69,.85)); }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: grid; place-items: center; width: 200px; margin: 0 auto; }
.qr-box canvas { width: 180px; height: 180px; }
.share-links { display: flex; flex-wrap: wrap; gap: 6px; }
.share-links a, .share-links button { font: inherit; font-size: .82rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--navy); cursor: pointer; }
.share-links a:hover, .share-links button:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review:first-of-type { border-top: 0; }
.review .who { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.review p { margin: 6px 0 0; }
.review .reply { margin-top: 10px; background: var(--bg); border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; font-size: 1.8rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { color: #d3dbe6; cursor: pointer; margin: 0; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }
.status-banner { padding: 12px 16px; border-radius: 12px; margin-top: 16px; font-size: .92rem; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.popular { border-color: var(--blue); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; }
.plan .motto { color: var(--blue); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.plan h3 { font-size: 1.4rem; margin: 0; }
.plan .amount { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.plan .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 6px 0 12px; display: grid; gap: 8px; flex: 1; }
.plan li { display: flex; gap: 8px; font-size: .92rem; }
.plan li svg { color: var(--ok); flex: none; margin-top: 4px; }
.plan .req { font-size: .82rem; color: var(--muted); }
.plan.selectable { cursor: pointer; }
.plan.selected { border-color: var(--blue); background: #f7fbff; box-shadow: 0 0 0 4px rgba(0,114,226,.12); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { font-size: .85rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 4px; }
label .opt { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; font-size: .95rem; padding: 10px 12px; border: 1px solid #ccd8e6; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(0,114,226,.25); border-color: var(--blue); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err); }
textarea { min-height: 110px; resize: vertical; }
.hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--ink); cursor: pointer; }
.check input { width: auto; margin-top: 4px; flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.radio-card { border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; display: block; margin: 0; background: #fff; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card strong { display: block; color: var(--navy); }
.radio-card span { font-size: .8rem; color: var(--muted); font-weight: 400; }
.radio-card:has(input:checked) { border-color: var(--blue); background: #f7fbff; }
.radio-card:has(input:focus-visible) { outline: 3px solid rgba(0,114,226,.35); }
.notice { padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 10px 0; }
.notice.ok { background: var(--ok-50); color: var(--ok); }
.notice.err { background: var(--err-50); color: var(--err); }
.notice.info { background: var(--blue-50); color: var(--blue-600); }
.notice.warn { background: var(--warn-50); color: var(--warn); }
.img-picker { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-picker .preview { width: 96px; height: 96px; border-radius: 14px; border: 1px dashed #c8d6e8; display: grid; place-items: center; overflow: hidden; background: var(--bg); color: var(--muted); font-size: .75rem; text-align: center; }
.img-picker .preview img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.thumb { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 6px; right: 6px; background: rgba(11,37,69,.8); color: #fff; border: 0; border-radius: 50%; width: 28px; height: 28px; cursor: pointer; font-size: 1rem; }

/* ---------- Wizard ---------- */
.wizard { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; margin: 32px auto 48px; }
.stepper { display: flex; gap: 6px; margin-bottom: 24px; list-style: none; padding: 0; counter-reset: s; }
.stepper li { flex: 1; font-size: .78rem; color: var(--muted); font-weight: 600; counter-increment: s; }
.stepper li::before { content: ""; display: block; height: 5px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.stepper li.done::before, .stepper li.current::before { background: var(--blue); }
.stepper li.current { color: var(--navy); }
@media (max-width: 600px) { .stepper li span { display: none; } .stepper li.current span { display: inline; } }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); width: min(440px, 100%); padding: 30px; }
.divider { text-align: center; color: var(--muted); font-size: .8rem; margin: 16px 0; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }
.btn-google { width: 100%; background: #fff; border: 1px solid #ccd8e6; color: var(--ink); }

/* ---------- Dashboard / admin ---------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 24px; margin: 28px auto 48px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; position: sticky; top: 84px; display: grid; gap: 2px; }
.dash-nav button { text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.dash-nav button:hover { background: var(--bg); }
.dash-nav button[aria-selected="true"] { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.dash-nav .count { background: var(--blue); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; }
@media (max-width: 900px) {
  .dash { grid-template-columns: 1fr; }
  .dash-nav { position: static; display: flex; overflow-x: auto; }
  .dash-nav button { white-space: nowrap; }
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat small { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; white-space: nowrap; }
.status.active, .status.confirmed, .status.published { background: var(--ok-50); color: var(--ok); }
.status.pending_payment, .status.pending { background: var(--warn-50); color: var(--warn); }
.status.expired, .status.rejected, .status.hidden { background: #eef1f5; color: var(--muted); }
.status.suspended { background: var(--err-50); color: var(--err); }
.list-row { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: 0; }
.list-row .info { display: flex; gap: 12px; align-items: center; min-width: 0; flex: 1; }
.list-row .info img { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; flex: 1 1 180px; }

/* ---------- Modal / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(11,37,69,.6); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: #fff; border-radius: 18px; width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 26px; position: relative; }
.modal-box.wide { width: min(980px, 100%); }
.modal-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--muted); line-height: 1; }
.lightbox .modal-box { background: transparent; padding: 0; }
.lightbox img { max-height: 84vh; margin: auto; border-radius: 12px; }
.lightbox .modal-close { color: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; z-index: 200; box-shadow: var(--shadow); }

/* ---------- Digital card ---------- */
.dcard-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: linear-gradient(160deg, var(--navy), var(--navy-2) 60%, var(--blue)); }
.dcard { width: min(400px, 100%); background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.dcard .top { padding: 28px 24px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.dcard .top .avatar { margin: 0 auto 12px; width: 96px; height: 96px; font-size: 2rem; }
.dcard .top h1 { font-size: 1.3rem; margin-bottom: 2px; }
.dcard .top p { margin: 0; color: var(--muted); font-size: .9rem; }
.dcard .rows a, .dcard .rows div { display: flex; gap: 14px; align-items: center; padding: 13px 24px; border-bottom: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
.dcard .rows a:hover { background: var(--bg); text-decoration: none; }
.dcard .rows svg { color: var(--blue); flex: none; font-size: 1.2rem; }
.dcard .foot { padding: 20px 24px; display: grid; gap: 10px; }
.dcard .qr-box { border: 0; }
.dcard .powered { text-align: center; font-size: .78rem; color: var(--muted); padding: 0 0 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c8dc; padding: 48px 0 20px; margin-top: 40px; font-size: .92rem; }
.site-footer h5 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin: 0 0 12px; }
.site-footer a { color: #b9c8dc; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 6px 10px; display: inline-block; margin-bottom: 10px; }
.footer-logo img { height: 38px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 16px; font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { background: #fff; border-radius: 18px; padding: 32px; margin: 32px auto; box-shadow: var(--shadow); }
.legal h2 { font-size: 1.1rem; margin-top: 1.6em; }
.legal p, .legal li { color: #3a4a5c; }

/* grid children must be allowed to shrink so tables scroll inside their wrapper */
.dash > *, .profile-body > *, .layout-side > * { min-width: 0; }
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.product-img img, .gallery img { font-size: .75rem; color: var(--muted); }
