@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2-variations"), url(/fonts/plus-jakarta-sans-latin-wght-normal.woff2) format("woff2");
}

:root {
  --green: #0b6e3f;
  --green-dark: #08502e;
  --green-soft: #e7f4ec;
  --green-line: #a9d9bd;
  --gold: #fcd116;
  --gold-soft: #fff7d1;
  --gold-line: #f0e3a0;
  --red: #c8102e;
  --red-soft: #fdecee;
  --red-line: #f2b8c0;
  --blue: #1d5fa8;
  --blue-soft: #e8f0fa;
  --purple-soft: #ece9f8;
  --ink: #17201b;
  --ink-2: #4f5b55;
  --line: #e3e8e4;
  --field-line: #c9d3cd;
  --bg: #f8f7f2;
  --card: #ffffff;
  --surface-2: #eef2ef;
  --glass: rgba(255, 255, 255, .82);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 40, 30, .05), 0 8px 24px rgba(20, 40, 30, .07);
  --shadow-lg: 0 18px 48px rgba(20, 40, 30, .14);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #2fb874;
    --green-dark: #23a062;
    --green-soft: #12291d;
    --green-line: #1f4d33;
    --gold: #fcd116;
    --gold-soft: #2a2611;
    --gold-line: #4a4218;
    --red: #ef4b62;
    --red-soft: #2e1519;
    --red-line: #5b2630;
    --blue: #6aa6ef;
    --blue-soft: #14233a;
    --purple-soft: #231d3a;
    --ink: #e7eee9;
    --ink-2: #a5b4ac;
    --line: #26342c;
    --field-line: #34463b;
    --bg: #0c1511;
    --card: #131e18;
    --surface-2: #18251e;
    --glass: rgba(15, 24, 19, .82);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
  .btn, .btn:hover, .tabs a[aria-selected="true"], .head-icon { color: #06130c; }
  .btn-ghost, .btn-ghost:hover { color: var(--green); }
  .hero { background: radial-gradient(1200px 500px at 85% 10%, #0f5a37 0%, transparent 60%), linear-gradient(160deg, #0b3d26 0%, #06150e 100%) !important; }
  .stats { background: linear-gradient(135deg, #0b3d26, #082a1b) !important; }
  .site-footer { background: #070d0a; }
  .q-adopt .q-icon, .opt-adopt .po-icon { color: var(--gold); }
  img { filter: brightness(.95); }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h3 { font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.01em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.emergency-bar { background: var(--red); color: #fff; font-size: .9rem; padding: 6px 0; text-align: center; }
.emergency-bar a { color: #fff; font-weight: 700; }
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.3rem; font-weight: 600; }
.brand b { color: var(--green); }
.logo-mark { width: 40px; height: 40px; }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--green-soft); color: var(--green-dark); }
.main-nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; }
.main-nav a.nav-cta:hover { background: #a30d25; color: #fff; }

@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; }
  /* Without JavaScript the menu stays visible as a scrollable row. */
  .main-nav { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 8px; }
  .js .menu-btn { display: block; }
  .js .main-nav { display: none; }
  .js .nav-open .main-nav { display: flex; flex-direction: column; align-items: stretch; padding: 4px 0 16px; overflow: visible; }
  .main-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; border: 2px solid var(--green); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); border-color: var(--green); }
.btn-small { padding: 6px 14px; font-size: .9rem; }
.btn-big { padding: 14px 28px; font-size: 1.05rem; width: 100%; }
.btn-lost, .btn-danger { background: var(--red); border-color: var(--red); }
.btn-lost:hover, .btn-danger:hover { background: #a30d25; border-color: #a30d25; }
.btn-found { background: var(--blue); border-color: var(--blue); }
.btn-found:hover { background: #154a85; border-color: #154a85; }
.btn-whatsapp { background: #1f9e55; border-color: #1f9e55; }
.btn-whatsapp:hover { background: #17803f; border-color: #17803f; }
.btn-facebook { background: #1877f2; border-color: #1877f2; }
.btn-facebook:hover { background: #0f5fcc; border-color: #0f5fcc; }
.linklike { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.actions, .contact-buttons, .admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.admin-actions form { margin: 0; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { max-width: 760px; font-size: clamp(1.9rem, 5vw, 3rem); }
.hero .lead { max-width: 640px; font-size: 1.15rem; opacity: .95; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.quick-card { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 18px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); border-top: 5px solid var(--gold); transition: transform .15s; }
.quick-card:hover { transform: translateY(-2px); color: var(--ink); }
.quick-card strong { font-size: 1.1rem; }
.quick-card span:last-child { color: var(--ink-2); font-size: .92rem; }
.q-icon { font-size: 1.6rem; }
.q-lost { border-top-color: var(--red); }
.q-found { border-top-color: var(--blue); }
.q-adopt { border-top-color: var(--gold); }
.q-report { border-top-color: var(--ink); }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }

/* Page head */
.page-head { background: var(--green-soft); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.page-head .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 720px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.crumbs { margin-bottom: 12px; }
.crumbs a { text-decoration: none; }

/* Cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-articles { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); display: flex; flex-direction: column; }
a.card:hover { border-color: var(--green); color: var(--ink); }
.card-body { padding: 14px 16px 16px; }
.card-body h3 { margin-bottom: 4px; }
.card-media { position: relative; aspect-ratio: 1; background: var(--green-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 10px; left: 10px; }
.ph { width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: var(--green-soft); }
.meta { color: var(--ink-2); font-size: .92rem; margin: 0 0 2px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: var(--ink); color: #fff; margin-right: 4px; }
.badge-lost { background: var(--red); }
.badge-found { background: var(--blue); }
.badge-adoption { background: var(--gold); color: var(--ink); }
.badge-happy { background: var(--green); }
.badge-featured { background: var(--gold); color: var(--ink); }
.badge-emergency { background: var(--red); }
.empty { background: var(--card); border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); }
.article-card p { color: var(--ink-2); margin: 0; }
.topic { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green); margin-bottom: 6px; }

.biz-card { flex-direction: row; align-items: center; gap: 4px; padding-left: 14px; }
.biz-card.featured { border: 2px solid var(--gold); }
.biz-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.biz-logo.big { width: 96px; height: 96px; }
.biz-logo-ph { display: flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 1.6rem; }
.biz-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }

/* Filters & tabs */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 20px; }
.filters label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--ink-2); gap: 4px; }
.filters select, .filters input { min-width: 180px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { display: inline-block; padding: 8px 16px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.tabs a::first-letter { text-transform: uppercase; }
.tabs a[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pager { display: flex; justify-content: space-between; margin-top: 20px; }

/* Forms */
.form h2 { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.form h2:first-of-type { border-top: 0; padding-top: 0; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: 4px; }
.opt { font-weight: 400; color: var(--ink-2); font-size: .9em; }
.hint { color: var(--ink-2); font-size: .92rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input:not([type]), select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--card); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(11, 110, 63, .15); }
input[type=file] { font: inherit; padding: 10px; border: 1.5px dashed var(--field-line); border-radius: 10px; width: 100%; background: var(--card); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red); }
.error-text { color: var(--red); font-size: .92rem; margin: 4px 0 0; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts & notices */
.alert { border-radius: var(--radius); padding: 16px 18px; margin: 0 0 20px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.alert h2 { font-size: 1.15rem; }
.alert ul { margin: 0; padding-left: 20px; }
.alert-error { background: var(--red-soft); border-color: var(--red-line); }
.alert-warn { background: var(--red-soft); border-color: var(--red-line); }
.alert-happy { background: var(--green-soft); border-color: var(--green-line); }
.alert-key { background: var(--card); border: 2px solid var(--green); }
.notice { background: var(--blue-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px; }
.notice p:last-child { margin: 0; }
.copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.copy-row input { font-size: .9rem; }
.ref-code { font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; color: var(--green-dark); margin: 0 0 8px; font-family: ui-monospace, Consolas, monospace; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; } }
.gallery-main { width: 100%; border-radius: var(--radius); max-height: 560px; object-fit: contain; background: var(--surface-2); }
.gallery .ph { border-radius: var(--radius); min-height: 320px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; width: 72px; height: 72px; background: none; }
.thumbs button[aria-current="true"] { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.facts { margin: 16px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; }
.contact-box { background: var(--card); border: 2px solid var(--green); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.contact-box h2 { font-size: 1.2rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.share span { font-weight: 600; color: var(--ink-2); }
.detail-body { max-width: 760px; margin-top: 28px; }
.updates { list-style: none; padding: 0; }
.updates li { border-left: 3px solid var(--gold); padding: 4px 0 4px 14px; margin-bottom: 14px; }
.updates time { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.flag { margin-top: 32px; color: var(--ink-2); max-width: 520px; }
.flag summary { cursor: pointer; font-size: .92rem; }
.flag form { margin-top: 12px; }
.manage-block { padding: 18px 0; border-top: 1px solid var(--line); }
.manage-block.danger h2 { color: var(--red); font-size: 1.05rem; }

/* Band, tips, articles */
.band { background: var(--gold-soft); border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line); padding: 36px 0; margin: 20px 0; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .band-grid { grid-template-columns: 1fr; } }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.coming { text-align: center; max-width: 760px; }
.article h2 { margin-top: 1.4em; }
.article ul, .article ol, .prose ul, .prose ol { padding-left: 22px; }
.article li, .prose li { margin-bottom: 6px; }
.review-note { background: var(--blue-soft); padding: 10px 14px; border-radius: 10px; font-size: .92rem; }
.first-aid { display: grid; gap: 10px; }
.aid { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.aid summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 1.1rem; }
.aid ol { margin-top: 0; padding-bottom: 12px; }
.clinic-list { display: grid; gap: 10px; }
.clinic { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: var(--radius); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.clinic h3 { margin: 0; }

/* Footer */
.site-footer { background: #13201a; color: #cfd8d3; margin-top: 48px; padding: 40px 0 20px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer h2 { font-size: 1rem; color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.brand-footer { color: #fff !important; display: flex !important; margin-bottom: 10px; }
.brand-footer b { color: var(--gold); }
.footer-base { margin-top: 28px; padding-top: 16px; border-top: 1px solid #2a3a32; font-size: .85rem; color: #8fa198; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Admin */
.admin-bar { background: var(--ink); color: #fff; font-size: .9rem; }
.admin-bar .wrap { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; align-items: center; }
.admin-bar a, .admin-bar .linklike { color: #fff; }
.admin-bar form { margin: 0 0 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.tile strong { font-size: 2rem; }
.tile-hot { border: 2px solid var(--red); }
.table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .93rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--green-soft); }
.mini { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.admin-photos, .evidence { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.admin-photos img { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; }
.evidence img, .evidence video { max-width: 360px; max-height: 360px; border-radius: 10px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.note.muted { opacity: .6; }
.pill { display: inline-block; background: var(--green-soft); border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0; font-size: .9rem; }
.admin-note { font-size: .9rem; }
.admin-page { overflow-x: auto; }

/* ===================================================================
   Visual layer: icons, illustrations, motion, phone layout
   =================================================================== */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.btn { transition: transform .15s ease, background-color .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(252, 209, 22, .35); }
.btn-gold:hover { background: #ffdc3d; border-color: #ffdc3d; color: var(--ink); transform: translateY(-2px); }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; transform: translateY(-2px); }

/* Header */
.site-header { background: var(--glass); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); transition: box-shadow .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(20, 40, 30, .08); }
.brand .logo-mark { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; transition: background-color .2s, color .2s; }
.main-nav a .icon { opacity: .75; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 0; background: radial-gradient(1200px 500px at 85% 10%, #13915a 0%, transparent 60%), linear-gradient(160deg, #0b6e3f 0%, #074428 100%); }
.hero-bg span { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .35; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg span:nth-child(1) { width: 320px; height: 320px; background: var(--gold); top: -120px; left: -80px; }
.hero-bg span:nth-child(2) { width: 260px; height: 260px; background: #2dd4a0; bottom: -60px; left: 40%; animation-duration: 22s; }
.hero-bg span:nth-child(3) { width: 200px; height: 200px; background: #ff6b81; top: 30%; right: -60px; opacity: .2; animation-duration: 26s; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.08; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.06em; height: .12em; border-radius: 99px; background: rgba(252, 209, 22, .45); transform-origin: left; animation: underline 1s .9s both cubic-bezier(.6, 0, .2, 1); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; margin-bottom: 18px; }
.eyebrow .icon { color: #ff8fa0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.hero-copy > * { animation: fadeUp .7s both cubic-bezier(.2, .7, .2, 1); }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-visual { animation: popIn .9s .2s both cubic-bezier(.3, 1.4, .5, 1); }
.hero-art { width: 100%; max-width: 470px; margin: 0 auto; overflow: visible; }
.hero-art * { transform-box: fill-box; }
.tail-wag { transform-origin: 0% 100%; animation: wag .5s ease-in-out infinite alternate; }
.tail-sway { transform-origin: 0% 50%; animation: sway 2.6s ease-in-out infinite alternate; }
.blink { transform-origin: center; animation: blink 5s infinite; }
.blink-late { animation-delay: 1.7s; }
.dog-head { transform-origin: 50% 90%; animation: tilt 6s ease-in-out infinite; }
.cat-head { transform-origin: 50% 90%; animation: tilt 7s 1s ease-in-out infinite reverse; }
.tongue { transform-origin: 50% 0%; animation: pant .35s ease-in-out infinite alternate; }
.tag-swing { transform-origin: 50% 0%; animation: swing 1.4s ease-in-out infinite alternate; }
.float-heart { transform-origin: center; animation: floatHeart 3.2s ease-in-out infinite; }
.sun { transform-origin: center; animation: spin 40s linear infinite; }
.wave { display: block; width: 100%; height: 56px; color: var(--bg); margin-top: 8px; position: relative; }

/* Quick actions overlap the wave */
.quick-wrap { position: relative; margin-top: -40px; z-index: 2; }
.quick { margin-top: 0; }
.quick-card { border-top: 0; align-items: flex-start; gap: 6px; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.quick-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(20, 40, 30, .14); }
.q-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 4px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.quick-card:hover .q-icon { transform: rotate(-8deg) scale(1.1); }
.q-lost .q-icon { background: var(--red-soft); color: var(--red); }
.q-adopt .q-icon { background: var(--gold-soft); color: #b8860b; }
.q-report .q-icon { background: var(--blue-soft); color: var(--blue); }
.q-help .q-icon { background: var(--green-soft); color: var(--green); }

/* Section heads */
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--green); background: var(--green-soft); border-radius: 10px; padding: 6px; width: 36px; height: 36px; }
.section-head a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.section-head a .icon { transition: transform .2s; }
.section-head a:hover .icon { transform: translateX(4px); }

/* Cards */
.card { transition: transform .25s cubic-bezier(.3, 1.3, .5, 1), box-shadow .25s, border-color .2s; }
a.card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20, 40, 30, .12); }
.card-media { overflow: hidden; }
.card-media img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.card:hover .card-media img { transform: scale(1.06); }
.meta.where { display: flex; align-items: center; gap: 4px; }
.meta.where .icon { color: var(--red); }
.ph { flex-direction: column; gap: 10px; font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.ph .pet-art { width: 55%; max-width: 180px; transition: transform .4s cubic-bezier(.3, 1.5, .5, 1); }
a.card:hover .ph .pet-art { transform: rotate(-6deg) scale(1.05); }
.gallery .ph .pet-art { max-width: 220px; }
.empty { display: flex; align-items: center; gap: 20px; text-align: left; border-style: solid; border-width: 1px; }
.empty .pet-art { width: 84px; flex: none; animation: bob 3s ease-in-out infinite; }
.empty p { margin: 0 0 4px; }

/* Rails: sideways swipe on phones */
@media (max-width: 760px) {
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .grid-articles.rail { grid-auto-columns: 82%; }
}

/* Stats */
.stats { background: linear-gradient(135deg, #0b6e3f, #0a5a35); color: #fff; padding: 34px 0; margin: 16px 0; position: relative; overflow: hidden; }
.stats::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 2px, transparent 2px); background-size: 26px 26px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.stat strong { font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat > span:last-child { opacity: .85; font-size: .95rem; }
.stat-icon { color: var(--gold); font-size: 1.5rem; margin-bottom: 6px; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; } }

/* How it works */
.how h2 { text-align: center; }
.how-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.how-steps li > .icon { width: 34px; height: 34px; color: var(--green); }
.how-steps li span:last-child { color: var(--ink-2); }
.how-num { position: absolute; top: -14px; right: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(252, 209, 22, .5); }
@media (max-width: 760px) { .how-steps { grid-template-columns: 1fr; gap: 22px; } }

/* Band cards */
.band { background: linear-gradient(180deg, var(--gold-soft), var(--bg)); }
.band-card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--gold-line); }
.band-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.6rem; margin-bottom: 12px; }
.band-danger .band-icon { background: var(--red-soft); color: var(--red); animation: pulse 2.4s ease-in-out infinite; }

/* Notices & coming soon */
.notice-cta { display: flex; gap: 14px; align-items: center; }
.notice-cta > .icon { width: 40px; height: 40px; color: var(--blue); }
.coming { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px 20px; box-shadow: var(--shadow); }
.coming-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.coming-badge .icon { animation: spin 6s linear infinite; }
.soon-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.4rem; margin-bottom: 10px; }

/* Page heads */
.page-head { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green-soft) 0%, var(--bg) 60%, var(--gold-soft) 140%); }
.page-head .wrap { position: relative; }
.page-head h1, .page-head .lead, .page-head .actions { position: relative; animation: fadeUp .6s both cubic-bezier(.2, .7, .2, 1); }
.page-head .lead { animation-delay: .08s; }
.page-head .actions { animation-delay: .16s; }
.head-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green); color: #fff; font-size: 1.5rem; margin-bottom: 12px; box-shadow: 0 8px 18px rgba(11, 110, 63, .3); animation: popIn .6s both cubic-bezier(.3, 1.6, .5, 1); }
.paw-trail { position: absolute; right: 0; top: 50%; width: 260px; transform: translateY(-50%) rotate(-12deg); color: var(--green); opacity: .13; pointer-events: none; }
.paw-trail .paw { opacity: 0; animation: pawStep 4s infinite; }
.paw-trail .p2 { animation-delay: .4s; }
.paw-trail .p3 { animation-delay: .8s; }
.paw-trail .p4 { animation-delay: 1.2s; }
.paw-trail .p5 { animation-delay: 1.6s; }
@media (max-width: 760px) { .paw-trail { width: 160px; top: 24px; transform: rotate(-12deg); } }

/* Article cards */
.article-art { height: 92px; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, var(--green), #13915a); }
.article-art .icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
a.article-card:hover .article-art .icon { transform: scale(1.2) rotate(-8deg); }
.art-sun, .art-alert { background: linear-gradient(135deg, #f59e0b, #fcd116); }
.art-drop { background: linear-gradient(135deg, var(--blue), #3b82c4); }
.art-bug, .art-aid { background: linear-gradient(135deg, var(--red), #e8475f); }
.art-heart { background: linear-gradient(135deg, #db2777, #f472b6); }
.art-syringe, .art-shield { background: linear-gradient(135deg, #0b6e3f, #2dd4a0); }
.art-home { background: linear-gradient(135deg, #7c3aed, #a78bfa); }

/* First aid */
.aid summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.aid summary::-webkit-details-marker { display: none; }
.aid summary::after { content: "+"; margin-left: auto; font-size: 1.5rem; color: var(--ink-2); transition: transform .25s; }
.aid[open] summary::after { transform: rotate(45deg); }
.aid-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex: none; }
.aid[open] ol { animation: fadeUp .35s both; }

/* Post chooser */
.post-options { display: grid; gap: 12px; }
.post-option { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-option:hover { transform: translateX(4px); border-color: var(--green); color: var(--ink); }
.po-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.po-text { display: flex; flex-direction: column; }
.po-text span { color: var(--ink-2); font-size: .92rem; }
.po-arrow { margin-left: auto; color: var(--ink-2); transition: transform .2s; }
.post-option:hover .po-arrow { transform: translateX(4px); color: var(--green); }
.opt-lost .po-icon { background: var(--red-soft); color: var(--red); }
.opt-found .po-icon { background: var(--blue-soft); color: var(--blue); }
.opt-adopt .po-icon { background: var(--gold-soft); color: #b8860b; }
.opt-report .po-icon { background: var(--purple-soft); color: #5b3fb5; }
.opt-biz .po-icon { background: var(--green-soft); color: var(--green); }

/* Forms: chips, drop zone, previews */
.choice-row .choice { border: 1.5px solid var(--field-line); border-radius: 999px; padding: 8px 16px 8px 12px; background: var(--card); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.choice-row .choice:hover { border-color: var(--green); }
.choice-row .choice:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(11, 110, 63, .12); font-weight: 600; }
.field { position: relative; }
.field > label.dropzone, .dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--field-line); border-radius: var(--radius); background: var(--card); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color .2s, background-color .2s; font-weight: 400 !important; }
.dropzone .icon { width: 36px; height: 36px; color: var(--green); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.dropzone strong { color: var(--ink); }
.dropzone:hover { border-color: var(--green); background: var(--green-soft); }
.dropzone:hover .icon { transform: scale(1.12) rotate(-6deg); }
.field:focus-within .dropzone { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11, 110, 63, .15); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.photo-preview figure { margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--green-soft); animation: popIn .35s both cubic-bezier(.3, 1.6, .5, 1); position: relative; }
.photo-preview img, .photo-preview video { width: 100%; height: 100%; object-fit: cover; }
.photo-preview figcaption { position: absolute; inset: auto 0 0 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scroll reveal (only when JavaScript runs) */
.js .reveal { transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal:not(.is-visible) { opacity: 0; transform: translateY(22px); }

/* Phone tab bar */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .emergency-bar { display: none; }
  .main-nav a.nav-cta { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20, 40, 30, .08); animation: slideUp .5s .3s both cubic-bezier(.2, .7, .2, 1); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink-2); font-size: .68rem; font-weight: 600; padding: 4px 0; }
  .tabbar a .icon { width: 24px; height: 24px; transition: transform .2s; }
  .tabbar a[aria-current] { color: var(--green); }
  .tabbar a[aria-current] .icon { transform: translateY(-2px); }
  .tabbar a:active .icon { transform: scale(.9); }
  .tabbar .tab-post .icon { width: 52px; height: 52px; padding: 13px; margin-top: -26px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 8px 18px rgba(200, 16, 46, .4); border: 4px solid var(--card); animation: pulseRing 2.8s ease-out infinite; }
  .tabbar a[href="/emergency"] { color: var(--red); }
  .js .nav-open .main-nav { animation: dropDown .25s both cubic-bezier(.2, .7, .2, 1); }
  .hero { padding-top: 24px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { order: -1; margin: 0 auto -6px; width: 72%; max-width: 300px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .quick-wrap { margin-top: -28px; }
  .quick { gap: 10px; }
  .quick-card { padding: 14px; }
  .quick-card strong { font-size: 1rem; }
  .facts div { grid-template-columns: 120px 1fr; }
  .contact-buttons .btn { flex: 1 1 auto; }
  .btn-big { position: sticky; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 5; box-shadow: 0 8px 20px rgba(11, 110, 63, .3); }
}

/* Keyframes */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes dropDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 30px) scale(1.15); } }
@keyframes wag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@keyframes sway { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes tilt { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-5deg); } 60% { transform: rotate(4deg); } }
@keyframes pant { from { transform: scaleY(.85); } to { transform: scaleY(1.1); } }
@keyframes swing { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
@keyframes floatHeart { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-14px) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes pulseRing { 0% { box-shadow: 0 8px 18px rgba(200, 16, 46, .4), 0 0 0 0 rgba(200, 16, 46, .45); } 70%, 100% { box-shadow: 0 8px 18px rgba(200, 16, 46, .4), 0 0 0 14px rgba(200, 16, 46, 0); } }
@keyframes pawStep { 0% { opacity: 0; } 10%, 60% { opacity: 1; } 80%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-visible) { opacity: 1; transform: none; }
  .paw-trail .paw { opacity: 1; }
}

/* Keep the desktop header on one line */
.brand { white-space: nowrap; }
@media (max-width: 1180px) {
  .main-nav a .icon { display: none; }
  .main-nav a { padding: 8px 10px; }
  .main-nav a.nav-cta .icon { display: inline; }
}

/* ===================================================================
   App shell: explore menu, accounts, dashboard, modern polish
   =================================================================== */
.header-inner { min-height: 68px; }
.main-nav { gap: 2px; }
.main-nav a, .explore-btn { border-radius: 12px; }
.explore { position: relative; }
.explore-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-weight: 500; color: var(--ink); padding: 8px 12px; cursor: pointer; }
.explore-btn:hover, .explore.open .explore-btn { background: var(--green-soft); color: var(--green-dark); }
.explore-btn .icon { opacity: .75; }
.chev { width: 14px; height: 14px; transition: transform .2s; }
.explore.open .chev { transform: rotate(180deg); }
.mega { position: absolute; right: -120px; top: calc(100% + 10px); width: min(760px, 92vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 30; }
.explore.open .mega, .explore:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 4px 8px 6px; font-weight: 700; }
.mega a { display: flex !important; gap: 10px; align-items: flex-start; padding: 8px !important; border-radius: 12px; color: var(--ink); text-decoration: none; white-space: normal !important; }
.mega a:hover { background: var(--green-soft); }
.mega a strong { display: block; font-size: .95rem; }
.mega a small { display: block; color: var(--ink-2); font-size: .8rem; line-height: 1.3; }
.mega-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.mega a .icon { display: inline !important; opacity: 1 !important; }
.nav-account, .nav-login { font-weight: 600 !important; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #2dd4a0); color: #fff; font-weight: 800; font-size: .85rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.6rem; box-shadow: 0 8px 20px rgba(11, 110, 63, .3); flex: none; }
.emergency-bar .icon { vertical-align: -0.2em; }

@media (max-width: 1080px) {
  .explore { width: 100%; }
  .explore-btn { width: 100%; justify-content: flex-start; padding: 10px 12px; }
  .mega { position: static; width: auto; grid-template-columns: 1fr; padding: 4px 0 8px; border: 0; box-shadow: none; background: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .explore.open .mega { display: grid; }
}

/* Cards and surfaces */
.card { border-radius: var(--radius); }
.form-card { padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.form-card h2 { border-top: 0 !important; padding-top: 0 !important; margin-top: 0 !important; }
.form-foot { text-align: center; margin: 16px 0 0; color: var(--ink-2); }
.choice-block { display: flex !important; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; }
.choice-block:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.choice-block input { margin-top: 3px; }
.badge-verified { background: var(--green-soft); color: var(--green); text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 4px; }
.btn-big-inline { padding: 14px 24px; font-size: 1.05rem; }

/* Save (heart) button */
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.save-form { margin: 0; }
.save-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; transition: transform .15s, color .2s, border-color .2s; }
.save-btn:hover { border-color: var(--red); color: var(--red); }
.save-btn.is-saved { color: var(--red); border-color: var(--red); background: var(--red-soft); }
.save-btn.is-saved .icon { fill: currentColor; }
.save-btn:active { transform: scale(.94); }
.save-btn.pop .icon { animation: heartPop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes heartPop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

/* Dashboard */
.dash-head { background: linear-gradient(135deg, var(--green-soft), var(--bg) 70%); border-bottom: 1px solid var(--line); padding: 28px 0; }
.dash-head .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; }
.dash-head .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dash-head-actions { margin-left: auto; display: flex; gap: 8px; }
.dash-head-actions form { margin: 0; }
.dash-nav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.dash-nav::-webkit-scrollbar { display: none; }
.dash-nav a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.dash-nav a:hover { border-color: var(--green); }
.dash-panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.dash-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); scroll-margin-top: 90px; min-width: 0; }
.dash-panel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; }
.dash-panel h2 .icon { color: var(--green); }
.dash-list { list-style: none; padding: 0; margin: 0 0 12px; }
.dash-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dash-list li:last-child { border-bottom: 0; }
.dash-actions { margin: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dash-panel .rail { margin: 0; padding: 0 0 8px; }

/* Alerts page and install prompt */
.alert-box { display: flex; gap: 16px; align-items: flex-start; }
.alert-box .icon { width: 40px; height: 40px; color: var(--green); flex: none; }
.install-card { position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 25; display: none; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-lg); animation: fadeUp .4s both; }
.install-card.show { display: flex; }
.install-card p { margin: 0; flex: 1; font-size: .92rem; }
@media (min-width: 761px) { .install-card { left: auto; right: 24px; bottom: 24px; max-width: 380px; } }

/* Modern polish */
.page-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.btn { border-radius: 14px; font-weight: 700; }
.btn-small { border-radius: 12px; }
.badge { border-radius: 8px; letter-spacing: .02em; }
input, select, textarea { border-radius: 12px !important; }
.section-head h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
::selection { background: var(--gold); color: #17201b; }

/* Home additions */
.quick { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1080px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }
.q-services .q-icon { background: var(--purple-soft); color: #6d4fd0; }
.q-shop .q-icon { background: var(--gold-soft); color: #b8860b; }
.match-cta { margin: 14px 0 0; }
.app-cta { background: linear-gradient(135deg, var(--green-soft), var(--gold-soft)); border-radius: 24px; padding: 32px 24px; }
.app-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.app-cta p { max-width: 640px; color: var(--ink-2); }

/* Sample data notice */
.sample-bar { background: var(--gold-soft); border-bottom: 1px solid var(--gold-line); color: var(--ink); font-size: .85rem; padding: 6px 0; text-align: center; }
.sample-bar .icon { color: #b8860b; vertical-align: -0.2em; }
