/* ===== Bis Bis — shared styles ===== */


:root {
  --navy: #101d30;
  --navy-2: #16233a;
  --gold: #d9a441;
  --gold-light: #e8c27a;
  --cream: #f5f7fb;
  --tan: #e9eef6;
  --text-dark: #16202e;
  --text-light: #f4f7fb;
  --muted: #8a93a3;
  --radius: 14px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  direction: inherit;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

button { font-family: inherit; cursor: pointer; border: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Placeholder image block (fallback styling if an image fails to load) ===== */
.placeholder-img {
  background: repeating-linear-gradient(45deg, #dfe3e9, #dfe3e9 10px, #eceff3 10px, #eceff3 20px);
  border: 1px dashed #b7bfcb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 120px;
  border-radius: inherit;
  padding: 8px;
}
img.placeholder-img {
  object-fit: cover;
  border: none;
  background: #eceff3;
}

/* ===== Promo banner (managed from admin.html) ===== */
.site-promo-banner {
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  text-align: center;
}
.site-promo-banner a, .site-promo-banner span {
  color: var(--navy); font-weight: 800; font-size: 13.5px;
}
.site-promo-banner .container { padding: 10px 20px; }
.site-promo-banner a { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s, background .15s, color .15s;
}
.lang-switch button:hover { opacity: .85; }
.lang-switch button.active {
  background: var(--gold);
  color: var(--navy);
  opacity: 1;
}

.mascot-toggle {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-light);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.mascot-toggle-label { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.mascot-toggle:hover { background: rgba(255,255,255,.16); }
.mascot-toggle.on {
  background: rgba(217,164,65,.16);
  border-color: rgba(217,164,65,.45);
  color: var(--gold-light);
}
.mascot-toggle.on:hover { background: rgba(217,164,65,.24); }

.icon-btn {
  position: relative;
  color: var(--text-light);
  display: inline-flex;
}

.icon-btn svg { width: 22px; height: 22px; }
.icon-btn-label { display: none; }
.account-avatar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 800; line-height: 1;
}
.account-avatar::after {
  content: "";
  position: absolute; bottom: -1px; left: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #3ecf6e; border: 2px solid var(--navy);
}

.badge {
  position: absolute;
  top: -8px;
  left: -10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge.pink { background: #e05a7a; color: #fff; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
@media (max-width: 1050px) and (min-width: 721px) {
  .main-nav ul { gap: 16px; }
  .main-nav a, .nav-services-toggle { font-size: 13px; }
}

.nav-extra { display: none; }

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.nav-services { position: relative; }
.nav-services-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 0 6px;
  background: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
}
.nav-services-toggle.active,
.nav-services-toggle:hover,
.nav-services-toggle[aria-expanded="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.nav-services-chevron { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-services-toggle[aria-expanded="true"] .nav-services-chevron { transform: rotate(180deg); }
.nav-services-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(160deg, #16263f 0%, var(--navy) 100%);
  border: 1px solid rgba(232,194,122,.2);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0,0,0,.4);
  z-index: 160;
}
.nav-services-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: none;
}
.nav-services-menu a:hover,
.nav-services-menu a.active {
  background: rgba(217,164,65,.12);
  color: var(--gold-light);
  border-bottom: none;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text-light);
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.menu-toggle {
  display: none;
  background: transparent;
  color: var(--text-light);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--text-light); }
.btn-danger { background: linear-gradient(135deg, #e35c4a, #c1382a); color: #fff; }
.btn svg { width: 16px; height: 16px; }

/* ===== Hero (scroll-scrubbed video) ===== */
.hero-scrub {
  position: relative;
  height: 100vh;
}

.hero-scrub-sticky {
  position: relative;
  height: 100%;
  min-height: 640px;
  background: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--text-light);
}

.hero-scrub-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
  background: var(--navy);
}
.hero-scrub-video { opacity: 0; transition: opacity .6s ease; }
.hero-scrub-video.is-ready { opacity: 1; }

.hero-play-btn {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  z-index: 3;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16,29,48,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero-play-btn svg { width: 30px; height: 30px; margin-right: -3px; }

.hero-scrub-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,14,24,.82) 0%, rgba(8,14,24,.58) 28%, rgba(8,14,24,.18) 52%, rgba(8,14,24,0) 68%),
    linear-gradient(to top, rgba(8,14,24,.45) 0%, rgba(8,14,24,0) 45%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 520px;
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
  padding-right: 32px;
  border-right: 2px solid;
  border-image: linear-gradient(to bottom, var(--gold-light), rgba(217,164,65,0)) 1;
}

.hero-content .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-content .eyebrow::before { display: none; }
.hero-content .eyebrow-rule {
  width: 30px;
  height: 2px;
  background: var(--gold-light);
  flex: 0 0 auto;
}

.hero-content h1 {
  font-size: 58px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 22px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.hero-content h1 .accent {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 17px;
  color: #e7e9ef;
  margin: 0 0 34px;
  line-height: 1.75;
  font-weight: 500;
  max-width: 380px;
}

.hero-content .btn-gold {
  box-shadow: 0 14px 34px rgba(217,164,65,.35);
}

/* ===== Store hero (flat, no image) ===== */
.page-hero {
  background: var(--navy);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  margin: 24px auto 0;
  max-width: 1440px;
  padding: 64px 56px;
}
.page-hero .eyebrow { color: var(--gold-light); }
.adoption-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(217,164,65,.14);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  letter-spacing: .5px;
  margin-bottom: 18px;
}
.adoption-hero .eyebrow svg { width: 14px; height: 14px; flex-shrink: 0; }
.adoption-hero .btn-gold { box-shadow: 0 14px 34px rgba(217,164,65,.35); }
.adoption-hero .btn-navy { box-shadow: 0 14px 34px rgba(0,0,0,.25); border: 1px solid rgba(217,164,65,.35); }
.page-hero h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 18px;
}
.page-hero p {
  color: #cfd6e2;
  font-size: 16px;
  max-width: 640px;
  margin: 0 0 30px;
}
.page-hero-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold-light);
  font-size: 14px;
}
.page-hero-footer .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); }
.page-hero .mascot-area {
  position: relative;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero .cat-face {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 4px solid rgba(217,164,65,.55);
  box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 8px rgba(255,255,255,.05);
}

/* Store hero photo — a wide scene shot, not a portrait, so it gets its own
   rounded-rectangle frame instead of the small circular cat-face crop. */
.page-hero .mascot-area.store-hero-visual { height: auto; width: 100%; }
.page-hero .cat-face.store-hero-photo {
  width: 100%; height: auto; aspect-ratio: 1368 / 1149;
  border-radius: 24px; border: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

/* ===== Trust bar ===== */
.trust-bar {
  background: linear-gradient(180deg, #2a2013, var(--navy));
  border-top: 4px solid var(--gold);
  margin-top: 32px;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-light);
  border-right: 1px solid rgba(255,255,255,.08);
  padding-right: 24px;
}
.trust-item:first-child { border-right: none; padding-right: 0; }
.trust-item h4 { margin: 0 0 4px; font-size: 16px; }
.trust-item p { margin: 0; font-size: 13px; color: var(--muted); }
.trust-item .icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: rgba(217,164,65,.15);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.trust-item .icon svg { width: 22px; height: 22px; }

/* ===== Section header ===== */
.section {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15px; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 15px;
}
.section-link svg { width: 16px; height: 16px; }

/* ===== Category showcase (home) ===== */
.cs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.cs-head h2 { margin: 0 0 8px; }
.cs-head p { margin: 0; color: var(--muted); font-size: 15px; }
.cs-viewall {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: #fff; border: 1px solid #ece5d8;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(16,29,48,.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.cs-viewall:hover { box-shadow: 0 12px 26px rgba(16,29,48,.12); transform: translateY(-1px); }
.cs-viewall svg { width: 15px; height: 15px; }

.cs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cs-card {
  position: relative; display: block; overflow: hidden;
  border-radius: 20px; aspect-ratio: 3 / 4;
  box-shadow: 0 14px 34px rgba(16,29,48,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(16,29,48,.2); }
.cs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0; border-radius: 0; }
.cs-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px 20px 20px;
  background: linear-gradient(to top, rgba(10,16,28,.92) 0%, rgba(10,16,28,.58) 48%, rgba(10,16,28,0) 78%);
  color: #fff;
}
.cs-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(232,194,122,.4);
  color: var(--gold-light);
  margin-bottom: 14px;
}
.cs-icon svg { width: 20px; height: 20px; }
.cs-eyebrow { font-size: 12.5px; color: #cfd6e2; margin-bottom: 4px; }
.cs-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: #fff; }
.cs-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: #c7cede; max-width: 88%; }
.cs-arrow {
  position: absolute; bottom: 18px; left: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease;
}
.cs-card:hover .cs-arrow { background: var(--gold); color: var(--navy); }
.cs-arrow svg { width: 15px; height: 15px; }

@media (max-width: 1100px) { .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .cs-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-card { aspect-ratio: 16 / 10; }
}

/* ===== Product grid ===== */
.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gold);
  color: var(--navy);
}
.tag.dark { background: var(--navy); color: var(--text-light); }

.price { font-weight: 800; font-size: 15px; }

/* ===== Two-column banner ===== */
.split-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-banner .panel {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 44px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.split-banner .panel.tan { background: var(--tan); }
.split-banner .panel.navy { background: var(--navy); color: var(--text-light); }
.split-banner .panel h3 { font-size: 30px; font-weight: 900; margin: 0; line-height: 1.4; }
.split-banner .panel p { margin: 0; line-height: 1.7; color: inherit; opacity: .85; font-size: 15px; max-width: 420px; }
.split-banner .panel-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  padding: 0;
  border-radius: 0;
  z-index: 0;
}
.split-banner .panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.split-banner .panel.navy::before {
  background: linear-gradient(to top, var(--navy) 14%, rgba(16,29,48,.82) 42%, rgba(16,29,48,.3) 68%, transparent 100%);
}
.split-banner .panel.tan::before {
  background: linear-gradient(to right, var(--tan) 10%, rgba(240,226,200,.94) 32%, rgba(240,226,200,.55) 55%, transparent 82%);
}
.split-banner .panel.tan h3,
.split-banner .panel.tan p {
  text-shadow: 0 2px 16px rgba(250,245,236,.95), 0 1px 3px rgba(250,245,236,.9);
}
.split-banner .panel.tan .eyebrow {
  text-shadow: 0 0 10px rgba(250,245,236,1), 0 0 4px rgba(250,245,236,1), 0 1px 2px rgba(250,245,236,1);
}
.split-banner .panel > :not(.panel-photo) { position: relative; z-index: 2; }

/* ===== Pet name banner ===== */
.name-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.name-banner .mascot-area {
  position: relative;
  height: 440px;
  width: min(100%, 440px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,.4), transparent 70%);
  filter: blur(14px);
  z-index: 0;
}
.name-orbit {
  position: absolute;
  inset: 0;
  z-index: 2;
  --orbit-r: 170px;
}
.name-orbit .name-tag {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--orbit-r)) rotate(calc(var(--angle) * -1));
}
.name-orbit .orbit-deco {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--deco-r)) rotate(calc(var(--angle) * -1));
}
.name-tag {
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}
.name-tag.gold { background: var(--gold); }
.name-tag.dark {
  background: rgba(255,255,255,.08);
  color: var(--text-light);
  border: 1px solid rgba(217,164,65,.3);
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.orbit-deco {
  display: flex;
  color: var(--gold);
  opacity: .8;
}
.orbit-deco svg { width: 15px; height: 15px; display: block; }
.orbit-deco.paw { color: rgba(255,255,255,.5); }
.orbit-deco.paw svg { width: 18px; height: 18px; }
.name-banner .cat-face {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 4px solid rgba(217,164,65,.55);
  box-shadow: 0 24px 50px rgba(0,0,0,.5), 0 0 0 8px rgba(255,255,255,.05);
}
.name-banner h2 { font-size: 32px; font-weight: 900; margin: 0 0 16px; line-height: 1.35; }
.name-banner p { color: #cfd6e2; margin: 0 0 26px; font-size: 15px; }

/* ===== Carousel / featured ===== */
.feature-slide {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  color: var(--text-light);
}
.feature-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: opacity .35s ease;
}
.feature-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,29,48,.85) 25%, rgba(16,29,48,.1) 75%);
}
.feature-slide-content {
  position: relative;
  z-index: 2;
  padding: 48px;
  max-width: 520px;
  margin-right: auto;
}
.feature-slide .counter {
  position: absolute; top: 24px; right: 30px;
  z-index: 2; font-size: 13px; color: var(--gold-light); font-weight: 700;
}
.feature-slide h3 { font-size: 32px; font-weight: 900; margin: 0 0 14px; }
.feature-slide p { color: #d7dce6; margin: 0 0 26px; font-size: 15px; }
.slide-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.slide-dots span { width: 8px; height: 8px; border-radius: 50%; background: #d9d2c2; cursor: pointer; transition: width .2s ease, border-radius .2s ease; }
.slide-dots span.active { width: 26px; border-radius: 6px; background: var(--gold); }

/* ===== Why us ===== */
.why-us {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.why-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 10px;
}
.why-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.why-row:last-child { border-bottom: none; }
.why-row h4 { margin: 0 0 6px; color: var(--text-light); font-size: 16px; }
.why-row p { margin: 0; color: var(--muted); font-size: 13px; }
.why-row .circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(217,164,65,.15); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-row .circle svg { width: 18px; height: 18px; }
.why-text h2 { font-size: 34px; font-weight: 900; line-height: 1.35; margin: 0 0 20px; }
.why-text p { color: var(--muted); font-size: 15px; margin: 0 0 28px; max-width: 480px; }

/* ===== Store category tiles ===== */
.store-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.store-tile {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: var(--radius);
  padding: 28px 18px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-height: 430px;
  transition: box-shadow .25s ease, transform .25s ease;
}
.store-tile:hover { box-shadow: 0 20px 40px rgba(16,29,48,.12); transform: translateY(-2px); }
.store-tile.active { background: var(--navy); color: var(--text-light); border-color: var(--navy); }
.store-tile .tile-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--tan);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(16,29,48,.08);
}
.store-tile.active .tile-icon { background: rgba(217,164,65,.18); color: var(--gold); box-shadow: none; }
.store-tile h4 { margin: 4px 0 0; font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.store-tile p { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--muted); }
.store-tile.active p { color: rgba(247,242,231,.62); }
.store-tile-photo {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 150px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(16,29,48,.07);
}
.store-tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-tile-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,29,48,0) 60%, rgba(16,29,48,.4) 100%);
  pointer-events: none;
}
.tile-arrow {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
  z-index: 2;
  pointer-events: none;
}
.tile-arrow svg { width: 16px; height: 16px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: var(--text-light);
  margin-top: 40px;
}
.footer-top {
  border-top: 3px solid var(--gold);
  padding-block: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.footer-top h4 { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 18px; color: var(--gold-light); letter-spacing: .2px; }
.footer-top p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0 0 18px; }
.footer-top ul li { margin-bottom: 12px; font-size: 15px; color: #d7dce6; }
.footer-top ul li a { font-weight: 600; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-tagline { color: var(--gold-light); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.footer-tagline::before { content: ""; width: 24px; height: 2px; background: var(--gold-light); }
.footer-social-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  padding: 26px 20px 30px;
}
.footer-social-label {
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 18px; color: var(--gold-light);
  display: flex; align-items: center; gap: 10px; margin-inline-end: 6px;
}
.footer-social-label::after { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, var(--gold-light), transparent); }
.footer-social a {
  width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); border: 1px solid rgba(232,194,122,.35);
  background: linear-gradient(145deg, rgba(232,194,122,.16), rgba(255,255,255,.03));
  box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.footer-social a.is-empty { opacity: .4; pointer-events: none; }
.footer-social a:hover {
  background: linear-gradient(145deg, var(--gold-light), var(--gold)); color: var(--navy);
  transform: translateY(-3px); box-shadow: 0 14px 28px rgba(217,164,65,.35);
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-email-link { color: var(--gold-light); font-size: 13px; font-weight: 700; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.footer-email-label { color: #cfd6e2; font-weight: 600; }
.footer-email-addr { unicode-bidi: isolate; overflow-wrap: anywhere; }
.footer-email-link:hover .footer-email-addr, .footer-email-link:focus-visible .footer-email-addr { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom span { display: flex; align-items: center; gap: 6px; }

/* ===== Star rating ===== */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.stars svg { width: 14px; height: 14px; color: var(--gold); }

/* ===== Detailed product card (store grid) ===== */
.store-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.sp-card {
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sp-media {
  position: relative;
  aspect-ratio: 4/3.4;
  overflow: hidden;
}
.sp-media .placeholder-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.sp-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  background: var(--navy); color: var(--text-light);
}
.sp-info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-cat { font-size: 12px; color: var(--muted); margin: 0; display: flex; align-items: center; gap: 6px; }
.sp-cat::before { content: ""; width: 16px; height: 1px; background: var(--muted); }
.sp-name { font-size: 17px; font-weight: 800; margin: 0; }
.sp-desc {
  font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sp-desc:empty { display: none; }
.sp-meta {
  display: flex; align-items: center; justify-content: space-between;
}
.sp-stock {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: #eaf6ec; color: #2f8f4e;
}
.sp-stock.limited { background: #eef2f8; color: #c06a1f; }
.sp-stock.out { background: #fbe4e4; color: #c33f3f; }
.sp-price-row {
  display: flex; align-items: baseline; justify-content: space-between;
}
.sp-price-row .label { font-size: 12px; color: var(--muted); }
.sp-price { font-size: 22px; font-weight: 900; }
.sp-price .cur { font-size: 13px; font-weight: 600; margin-inline-end: 4px; }
.sp-cta {
  width: 100%; padding: 13px; border-radius: 10px;
  background: var(--navy); color: var(--text-light);
  font-weight: 700; font-size: 14px; text-align: center;
  border: none; font-family: inherit; cursor: pointer;
  transition: background .25s ease;
}
.sp-cta.disabled { background: #e4e4e4; color: #9b9b9b; cursor: not-allowed; }
.sp-cta.added { background: #2f8f4e; }

/* ===== Detailed product card wish button ===== */
.sp-wish-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease;
}
.sp-wish-btn svg { width: 16px; height: 16px; transition: fill .15s ease, stroke .15s ease; }
.sp-wish-btn:active { transform: scale(.88); }
.sp-wish-btn.active svg { fill: #e05a7a; stroke: #e05a7a; }

/* ===== Numbered feature cards ===== */
.numbered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.numbered-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(16,29,48,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.numbered-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,29,48,.12); }
.numbered-card .top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 30px;
}
.numbered-card .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.numbered-card .num { font-size: 13px; font-weight: 800; color: var(--muted); }
.numbered-card h4 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.numbered-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== Step cards (circle number) ===== */
.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(16,29,48,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,29,48,.12); }
.step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin: 0 auto 18px;
  box-shadow: 0 6px 16px rgba(16,29,48,.25), inset 0 0 0 1px rgba(217,164,65,.3);
}
.step-card h4 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.step-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

/* ===== Adoption quick-action cards ===== */
.adoption-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.adoption-action-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,29,48,.08);
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.adoption-action-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,29,48,.16); }
.adoption-action-card .placeholder-img { height: 150px; object-fit: cover; }
.adoption-action-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(16,29,48,.18);
  margin: -26px 20px 0;
  position: relative; z-index: 2;
}
.adoption-action-icon svg { width: 22px; height: 22px; }
.adoption-action-body { padding: 14px 20px 22px; }
.adoption-action-body h4 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.adoption-action-body p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.adoption-action-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--navy); }
.adoption-action-link svg { width: 14px; height: 14px; }
.adoption-action-card.dark { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--text-light); }
.adoption-action-card.dark .adoption-action-icon { background: var(--gold); color: var(--navy); margin-top: 24px; box-shadow: 0 8px 20px rgba(217,164,65,.35); }
.adoption-action-card.dark .adoption-action-body p { color: #c7cede; }
.adoption-action-card.dark .adoption-action-link { color: var(--gold-light); }

@media (max-width: 900px) {
  .adoption-action-grid { grid-template-columns: 1fr; }
}

/* Decorative glow on shared CTA banners (adoption + hotel pages) */
.cta-banner::before {
  content: "";
  position: absolute;
  top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(217,164,65,.25) 0%, rgba(217,164,65,0) 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }

/* ===== Icon feature row (hotel trust) ===== */
.icon-feature-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.icon-feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 2px 10px rgba(16,29,48,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.icon-feature-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,29,48,.12); }
.icon-feature-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.icon-feature-card p { margin: 0; font-size: 12px; color: var(--muted); }
.icon-feature-card .icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: var(--tan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.icon-feature-card .icon svg { width: 20px; height: 20px; }

/* ===== Pricing cards ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pricing-card {
  background: var(--navy-2);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,29,48,.28); }
.pricing-card.featured { border: 2px solid var(--gold); box-shadow: 0 14px 34px rgba(217,164,65,.2); }
.pricing-badge {
  position: absolute; top: 0; right: 0;
  background: var(--gold); color: var(--navy);
  font-size: 12px; font-weight: 800;
  padding: 8px 20px; border-radius: 0 var(--radius-lg) 0 var(--radius);
}
.pricing-label { font-size: 13px; color: var(--gold-light); font-weight: 700; margin-bottom: 10px; }
.pricing-card h3 { font-size: 26px; font-weight: 900; margin: 0 0 14px; }
.pricing-card > p.desc { color: #c7cede; font-size: 14px; line-height: 1.7; margin: 0 0 26px; max-width: 380px; }
.pricing-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 26px; }
.pricing-amount .num { font-size: 40px; font-weight: 900; }
.pricing-amount .unit { font-size: 13px; color: #c7cede; }
.pricing-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.pricing-features li {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.pricing-features li:last-child { border-bottom: none; padding-bottom: 0; }
.pricing-features .check {
  width: 22px; height: 22px; border-radius: 50%; background: rgba(217,164,65,.2); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pricing-features .check svg { width: 12px; height: 12px; }
.pricing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }

/* ===== Booking form ===== */
.booking-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16,29,48,.14);
}
.booking-form-panel { background: var(--cream); padding: 48px; }
.booking-info-panel { background: var(--navy); color: var(--text-light); padding: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field.form-field-collapsed { display: none; }
.form-field label { font-size: 13px; font-weight: 700; }
.form-field .optional { font-weight: 400; color: var(--muted); font-size: 12px; }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit;
  background: #fff;
  border: 1px solid #d7dfeb;
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  color: var(--text-dark);
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-field input[type="checkbox"] { padding: 0; border: none; width: 18px; height: 18px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.booking-info-box {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 22px;
  margin: 24px 0 28px;
}
.booking-info-box h4 { margin: 0 0 8px; font-size: 15px; }
.booking-info-box p { margin: 0; font-size: 13px; color: #c7cede; line-height: 1.7; }
.booking-checklist { display: flex; flex-direction: column; gap: 16px; }
.booking-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #d7dce6; line-height: 1.6; }
.booking-checklist .check {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(217,164,65,.2); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.booking-checklist .check svg { width: 11px; height: 11px; }

/* ===== Info checklist grid (2 col) ===== */
.info-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.info-check-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.info-check-item p { margin: 0; font-size: 14px; font-weight: 600; }
.info-check-item .check {
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-check-item .check svg { width: 14px; height: 14px; }

/* ===== FAQ accordion ===== */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 28px;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; list-style: none; font-size: 16px; font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--tan); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
}
.faq-item[open] .faq-icon { background: var(--navy); color: var(--text-light); }
.faq-item p { margin: 16px 0 0; font-size: 14px; color: var(--muted); line-height: 1.8; padding-top: 16px; border-top: 1px solid #ece5d8; }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}
.cta-banner .eyebrow { justify-content: center; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.cta-banner .eyebrow::before { display: none; }
.cta-banner h2 { font-size: 32px; font-weight: 900; margin: 14px 0; }
.cta-banner p { color: #c7cede; font-size: 15px; max-width: 560px; margin: 0 auto 30px; }
.cta-banner .btn-row { display: flex; align-items: center; justify-content: center; gap: 16px; }

/* ===== Filter panel ===== */
.filter-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(16,29,48,.07);
  border: 1px solid rgba(16,29,48,.05);
}
.adoption-search-row { display: flex; gap: 14px; margin-bottom: 28px; }
.adoption-search-input {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 1px solid #ece5d8;
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--muted);
}
.adoption-search-input input,
.adoption-search-input select {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: inherit; font-size: 14px; color: var(--text-dark);
  cursor: pointer;
}
.adoption-search-input input { cursor: text; }
.adoption-search-input input:disabled { cursor: not-allowed; opacity: .6; }
.adoption-search-input svg { width: 18px; height: 18px; flex-shrink: 0; }
.adoption-search-row .btn-gold { flex-shrink: 0; box-shadow: 0 10px 26px rgba(217,164,65,.3); }

.adoption-combo { position: relative; flex: 1; min-width: 170px; }
.adoption-combo .adoption-search-input { width: 100%; }
.adoption-combo-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; left: 0;
  background: #fff;
  border: 1px solid #ece5d8;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(16,29,48,.18);
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  z-index: 30;
}
.adoption-combo-option {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.adoption-combo-option:hover { background: var(--cream); }
.adoption-combo-option.all {
  font-weight: 800;
  color: var(--navy);
  border-bottom: 1px solid #ece5d8;
  border-radius: 0;
  margin-bottom: 4px;
  padding-bottom: 12px;
}
.adoption-combo-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .adoption-search-row { flex-wrap: wrap; }
  .adoption-search-row .adoption-search-input,
  .adoption-search-row .adoption-combo { flex-basis: 100%; }
  .adoption-search-row .btn-gold { flex: 1; justify-content: center; }
}

.filter-row { margin-bottom: 22px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-row-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.filter-row-head h4 { margin: 0; font-size: 15px; font-weight: 800; }
.filter-row-head p { margin: 0; font-size: 12px; color: var(--muted); }
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--cream); color: var(--text-dark);
  border: 1px solid #ece5d8;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.filter-pill:hover { transform: translateY(-1px); border-color: var(--gold-light); }
.filter-empty-msg {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 60px 20px;
}
.filter-pill.active { background: var(--navy); color: var(--text-light); border-color: var(--navy); box-shadow: 0 8px 18px rgba(16,29,48,.22); }
.filter-pill .bullet { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }

/* Names page filter panel: put each row's label beside its pills
   instead of stacking (which, combined with the head's own
   space-between, pushed the hint text away and left the pills
   clustered with a big empty gap after them). */
.names-filter { padding: 20px 24px; }
.names-filter .filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 14px;
}
.names-filter .filter-row-head {
  flex: 0 0 auto;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  margin-bottom: 0;
}
.names-filter .filter-pills { flex: 1; min-width: 220px; }
@media (max-width: 720px) {
  .names-filter .filter-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .names-filter .filter-row-head { width: auto; }
}
.count-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 700;
  border: 1px solid rgba(217,164,65,.35);
  box-shadow: 0 6px 16px rgba(16,29,48,.06);
}
.count-chip b { color: var(--gold); font-size: 15px; }

/* ===== Pet listing cards (adoption/lost) ===== */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pet-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ece5d8;
  box-shadow: 0 6px 18px rgba(16,29,48,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pet-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16,29,48,.14); }
.pet-media { position: relative; aspect-ratio: 4/3; }
.pet-media .placeholder-img { border-radius: 0; }
.pet-status {
  position: absolute; top: 16px; right: 16px;
  background: var(--tan); color: var(--text-dark);
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.pet-status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.pet-status.lost { background: #101d30cc; color: var(--text-light); }
.pet-time-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(16,29,48,.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--text-light);
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; gap: 5px;
}
.pet-time-badge svg { width: 13px; height: 13px; flex: 0 0 auto; }
.pet-name-overlay {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.65), transparent);
  color: #fff;
}
.pet-name-overlay .kind { font-size: 12px; color: var(--gold-light); margin-bottom: 4px; }
.pet-name-overlay h4 { margin: 0; font-size: 22px; font-weight: 800; }
.pet-tags { display: flex; gap: 10px; padding: 18px 18px 0; }
.pet-tags .tag-box { flex: 1; background: var(--cream); border-radius: 10px; padding: 10px; text-align: center; }
.pet-tags .tag-box .k { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }
.pet-tags .tag-box .v { font-size: 13px; font-weight: 800; }
.pet-vax-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; }
.pet-vax-row .k { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.pet-vax-row .v { font-size: 13px; font-weight: 800; }
.pet-vax-row .v.yes { color: #2f8f4e; }
.pet-vax-row .v.no { color: #c33f3f; }
.pet-card-cta {
  margin: 0 18px 18px; padding: 14px; border-radius: 10px;
  background: var(--navy); color: var(--text-light);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pet-card-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(16,29,48,.25); }
.pet-card-cta svg { width: 16px; height: 16px; }

/* ===== Adoption hero cards ===== */
.adoption-hero-cards { position: relative; height: 420px; }
.hero-pet-card {
  position: absolute; border-radius: var(--radius); overflow: hidden;
}
.hero-pet-card .placeholder-img { border-radius: 0; height: 100%; }
.hero-pet-card .overlay-top {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hero-pet-card .overlay-top svg { width: 16px; height: 16px; }
.hero-pet-card .overlay-bottom {
  position: absolute; bottom: 0; right: 0; left: 0; z-index: 2;
  padding: 40px 18px 18px;
  background: linear-gradient(to top, rgba(16,29,48,.9), transparent);
  color: #fff;
}
.hero-pet-card .overlay-bottom .kind { font-size: 11px; color: var(--gold-light); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.hero-pet-card .overlay-bottom h4 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.hero-pet-card .overlay-bottom p { margin: 0; font-size: 12px; color: #d7dce6; }
.card-dog { width: 44%; height: 320px; bottom: 0; left: 0; z-index: 1; }
.card-cat { width: 48%; height: 420px; bottom: 0; right: 0; z-index: 2; }

/* ===== Names page ===== */
.names-hero-photo { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; }
.names-hero-photo .placeholder-img { border-radius: 0; height: 100%; }
/* A finished graphic (its own name bubbles + caption baked in) — show it
   whole at its own ratio instead of the fixed-height crop above. */
.names-hero-photo--art { height: auto; aspect-ratio: 1368 / 1149; border-radius: 22px; }
.names-hero-photo--art .placeholder-img { height: 100%; object-fit: cover; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: 14px 24px; font-weight: 700; font-size: 14px; color: var(--text-light);
}
.stat-chip b { color: var(--gold-light); }

.name-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #ece5d8;
}
.name-card .nc-media { position: relative; aspect-ratio: 1/0.85; }
.name-card .nc-media .placeholder-img { border-radius: 0; }
.name-card .nc-kind {
  position: absolute; top: 12px; right: 12px;
  background: var(--navy); color: var(--text-light);
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.name-card .nc-gender {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.name-card .nc-info { padding: 16px; }
.name-card .nc-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .5px; margin-bottom: 8px;
}
.name-card .nc-eyebrow .spark {
  width: 24px; height: 24px; border-radius: 8px; background: var(--tan);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.name-card h4 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.name-card p.desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.names-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }

/* ===== Cart page ===== */
.cart-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; align-items: flex-start; }
.cart-layout > * { min-width: 0; }

.cart-products-head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px;
}
.cart-products-head h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.cart-products-head p { margin: 0; font-size: 13px; color: var(--muted); }
.cart-clear-link {
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  background: none; border: none; cursor: pointer; font-family: inherit;
}

.cart-list { display: flex; flex-direction: column; gap: 12px; }

.cart-row {
  background: #fff; border: 1px solid #ece5d8; border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 14px;
}
.cart-thumb { width: 68px; height: 68px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.cart-thumb .placeholder-img { border-radius: 10px; font-size: 10px; padding: 4px; }

.cart-row-info { flex: 1; min-width: 0; text-align: right; }
.cart-row-info h4 {
  margin: 0 0 4px; font-size: 15px; font-weight: 800;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-row-info .price { margin: 0; font-size: 16px; font-weight: 900; color: var(--navy); }
.cart-row-info .price .unit { font-size: 12px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }

.cart-qty {
  display: flex; align-items: center; gap: 12px;
  background: var(--cream); border-radius: 999px; padding: 6px 12px; flex-shrink: 0;
}
.cart-qty button {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; cursor: pointer; border: none; font-family: inherit; font-size: 14px;
}
.cart-qty span { min-width: 14px; text-align: center; font-weight: 700; font-size: 13px; }

.cart-row-remove {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; background: var(--cream); border: none; font-family: inherit;
  transition: background .2s ease, color .2s ease;
}
.cart-row-remove:hover { background: #fbe2df; color: #c0392b; }
.cart-row-remove svg { width: 16px; height: 16px; }

/* ---- Order summary card ---- */
.order-summary-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid #ece5d8; position: sticky; top: 90px;
}
.order-summary-head {
  background: var(--navy); color: var(--text-light); padding: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.order-summary-head .label { font-size: 12px; color: var(--gold-light); margin: 0 0 4px; }
.order-summary-head h3 { margin: 0; font-size: 19px; font-weight: 900; }
.order-summary-head .icon {
  width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.order-summary-head .icon svg { width: 20px; height: 20px; }

.order-summary-body { padding: 24px; }

.free-shipping-banner {
  background: #eaf6ec; border-radius: 12px; padding: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px;
}
.free-shipping-banner h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #235b34; }
.free-shipping-banner p { margin: 0; font-size: 12px; color: #3f7a52; }
.free-shipping-banner .check {
  width: 30px; height: 30px; border-radius: 50%; background: #2f8f4e; color: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.free-shipping-banner .check svg { width: 14px; height: 14px; }

.coupon-block { margin-bottom: 22px; }
.coupon-block h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; }
.coupon-block p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.coupon-row { display: flex; gap: 10px; }
.coupon-row input {
  flex: 1; font-family: inherit; background: var(--cream); border: 1px solid #ece5d8;
  border-radius: 10px; padding: 11px 14px; font-size: 13px; color: var(--text-dark);
}
.coupon-row button {
  padding: 11px 18px; border-radius: 10px; border: none; font-family: inherit;
  font-weight: 700; font-size: 13px; background: #e4e4e4; color: #9b9b9b; cursor: not-allowed;
}

.cart-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid #ece5d8; font-size: 14px; color: var(--muted);
}
.cart-summary-row .free { color: #2f8f4e; font-weight: 700; }
.cart-summary-row.total {
  font-size: 19px; font-weight: 900; padding-top: 18px; border-bottom: none; color: var(--text-dark);
}
.cart-summary-shipping { border-bottom: 1px solid #ece5d8; padding-bottom: 12px; }
.cart-summary-shipping .cart-summary-row { border-bottom: none; padding-bottom: 0; }
.free-shipping-progress { height: 6px; border-radius: 999px; background: #ece5d8; overflow: hidden; }
.free-shipping-progress-bar {
  height: 100%; width: 0; border-radius: 999px; background: var(--gold);
  transition: width .3s ease, background .3s ease;
}
.free-shipping-progress-bar.complete { background: #2f8f4e; }
.order-summary-body .btn { width: 100%; justify-content: center; margin-top: 20px; }
#cart-checkout-btn.is-loading { opacity: .7; pointer-events: none; }
.cart-min-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.cart-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; color: var(--muted); text-align: center;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #ece5d8;
}
.cart-secure-note svg { width: 13px; height: 13px; }

.cart-empty-state { text-align: center; padding: 90px 20px; }
.cart-empty-state .icon { font-size: 56px; margin-bottom: 20px; }
.cart-empty-state h2 { font-size: 26px; font-weight: 900; margin: 0 0 10px; }
.cart-empty-state p { color: var(--muted); margin: 0 0 26px; }

/* ===== Account dashboard page ===== */
.acct-hero { padding: 28px 0 0; }
.acct-stats-section { padding-top: 28px; }
.acct-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 24px;
}
.acct-hero-card img.placeholder-img { position: absolute; inset: 0; z-index: 0; border-radius: 0; }
.acct-hero-card::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,16,28,.92) 10%, rgba(10,16,28,.55) 55%, rgba(10,16,28,.15) 100%);
}
.acct-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: row-reverse; align-items: center; gap: 14px; }
.acct-avatar-wrap { position: relative; width: 84px; flex-shrink: 0; }
.acct-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
  background: rgba(16,29,48,.75);
  border: 3px solid rgba(232,194,122,.6);
  color: var(--gold-light); font-size: 30px; font-weight: 900;
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar svg { width: 40px; height: 40px; }
.acct-avatar-dot {
  position: absolute; top: 2px; left: 2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #3ecf6e; border: 3px solid #0a1422;
}
.acct-avatar-crown {
  position: absolute; bottom: -2px; right: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
  color: var(--navy);
  border: 3px solid #0a1422;
  font-size: 13px;
}
.acct-hero-text { padding-bottom: 4px; }
.acct-hero-greeting { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: #d7dce6; }
.acct-hero-text h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #fff; font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; }
.acct-hero-text h1.accent { color: var(--gold-light); }
.acct-hero-sub { margin: 0; font-size: 13.5px; color: #d7dce6; }
.acct-edit-btn {
  position: absolute; top: 22px; right: 22px; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(16,29,48,.35);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(232,194,122,.5);
  color: var(--gold-light); font-size: 13px; font-weight: 700;
  white-space: nowrap;
}
.acct-edit-btn:hover { background: rgba(232,194,122,.12); color: #fff; }
.acct-edit-btn svg { width: 14px; height: 14px; }
.acct-cover-edit-btn {
  position: absolute; top: 22px; left: 22px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,29,48,.45);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(232,194,122,.5);
  color: var(--gold-light);
}
.acct-cover-edit-btn:hover { background: rgba(16,29,48,.7); }
.acct-cover-edit-btn svg { width: 17px; height: 17px; }

.cover-picker-overlay {
  position: fixed; inset: 0;
  background: rgba(10,16,28,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 210;
}
.cover-picker-modal {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 24px;
  padding: 32px 26px 26px;
  background: var(--cream);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.cover-picker-modal h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; color: var(--navy); font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; }
.cover-picker-modal p { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.cover-picker-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cover-picker-item {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 14px; overflow: hidden;
  border: 3px solid transparent;
  background: none; padding: 0;
}
.cover-picker-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-picker-item.selected { border-color: var(--gold); }
.cover-picker-item.selected::after {
  content: "✓";
  position: absolute; top: 8px; left: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.acct-stat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 10px; border-radius: 18px;
  background: var(--navy); color: var(--text-light);
  border: 1px solid rgba(232,194,122,.18);
}
.acct-stat svg { width: 20px; height: 20px; color: var(--gold-light); }
.acct-stat b { font-size: 22px; font-weight: 900; }
.acct-stat span { font-size: 12px; color: #9ba6b8; }

.acct-menu { background: #fff; border-radius: 24px; border: 1px solid #ece5d8; overflow: hidden; box-shadow: 0 10px 30px rgba(16,29,48,.06); }
.acct-menu-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 18px 20px;
  border-bottom: 1px solid #f1ebdd;
  color: var(--text-dark); text-align: right;
  background: none;
}
.acct-menu-row:last-child { border-bottom: none; }
.acct-menu-row:hover { background: var(--cream); }
.acct-menu-row:disabled { opacity: .5; cursor: not-allowed; }
.acct-menu-row:disabled:hover { background: none; }
.acct-menu-row .acct-menu-chevron { color: var(--muted); flex-shrink: 0; }
.acct-menu-row .acct-menu-chevron svg { width: 16px; height: 16px; }
.acct-menu-row-text { flex: 1; }
.acct-menu-row-text b { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 2px; }
.acct-menu-row-text span { font-size: 12px; color: var(--muted); }
.acct-menu-row-icon {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
}
.acct-menu-row-icon svg { width: 19px; height: 19px; }
.acct-menu-row-icon.tan { background: #e9eef6; color: #b9832c; }
.acct-menu-row-icon.pink { background: #fbe4ea; color: #d1557c; }
.acct-menu-row-icon.blue { background: #e2ecfb; color: #3d6fc2; }
.acct-menu-row-icon.gray { background: #ece9e3; color: #6b7280; }
.acct-menu-row-icon.red { background: #fbe2df; color: #c0392b; }

@media (max-width: 560px) {
  .acct-hero-card { min-height: 220px; padding: 20px 18px 22px; }
  .acct-edit-btn { top: 16px; right: 16px; padding: 9px 14px; font-size: 12px; }
}

/* ===== Favorites page ===== */
.fav-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 28px; flex-wrap: wrap;
}
.fav-head-text { text-align: right; }
.fav-head-text .note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.fav-head-text h2 { margin: 0; font-size: 22px; font-weight: 900; }
#fav-empty { padding: 40px 20px; }

.fav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fav-card { background: #fff; border: 1px solid #ece5d8; border-radius: var(--radius); overflow: hidden; }
.fav-media { position: relative; aspect-ratio: 4/3.2; }
.fav-media .placeholder-img { border-radius: 0; }
.fav-wish-btn {
  position: absolute; top: 14px; left: 14px;
  width: 34px; height: 34px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
}
.fav-wish-btn svg { width: 16px; height: 16px; fill: #d9a441; stroke: #d9a441; }
.fav-info { padding: 18px; }
.fav-cat { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--gold); margin: 0 0 12px; }
.fav-cat::after { content: ""; flex: 1; height: 1px; background: #ece5d8; }
.fav-name { font-size: 17px; font-weight: 800; margin: 0 0 16px; }
.fav-divider { border-top: 1px solid #ece5d8; margin-bottom: 14px; }
.fav-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fav-price-block .label { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.fav-price-block .price { font-size: 20px; font-weight: 900; }
.fav-price-block .price .cur { font-size: 12px; font-weight: 600; margin-inline-end: 4px; }
.fav-add-btn {
  padding: 12px 20px; border-radius: 10px; background: var(--navy); color: var(--text-light);
  font-weight: 700; font-size: 13px; cursor: pointer; border: none; font-family: inherit;
  transition: background .25s ease;
}
.fav-add-btn.disabled { background: #e4e4e4; color: #9b9b9b; cursor: not-allowed; }
.fav-add-btn.added { background: #2f8f4e; }

/* ===== Orders page ===== */
.orders-list { display: grid; gap: 18px; }
.order-card { background: #fff; border: 1px solid #ece5d8; border-radius: var(--radius); padding: 22px 24px; }
.order-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #ece5d8;
}
.order-card-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card-status {
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--tan); color: #b9832c;
}
.order-card-date { font-size: 13px; color: var(--muted); }
.order-card-total { font-size: 18px; font-weight: 900; color: var(--navy); white-space: nowrap; }
.order-card-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-card-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.order-card-items li .qty { color: var(--muted); font-size: 13px; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .store-tiles, .store-product-grid,
  .numbered-grid, .step-grid, .icon-feature-row, .pet-grid, .names-grid, .fav-grid { grid-template-columns: repeat(3, 1fr); }
  .split-banner, .why-us, .name-banner, .pricing-grid, .booking-grid, .cart-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .adoption-hero-cards { height: 360px; }
  .order-summary-card { position: static; }
  .name-banner .mascot-area { height: 400px; width: min(100%, 400px); }
  .name-orbit { --orbit-r: 155px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .name-banner .mascot-area { height: 340px; width: min(100%, 340px); }
  .name-banner .cat-face { width: 190px; height: 190px; }
  .name-orbit { --orbit-r: 125px; }
  .name-tag { font-size: 11px; padding: 6px 12px; }
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
    padding: 8px 20px 16px;
  }
  .main-nav.open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav.open li:last-child a { border-bottom: none; }
  .main-nav.open .nav-extra {
    display: block;
    padding-top: 4px;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-extra-icons { display: flex; flex-direction: column; }
  .nav-extra-icons .icon-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: 15px;
    font-weight: 500;
  }
  .nav-extra-icons .icon-btn-label { display: block; flex: 1; }
  .nav-extra-icons .icon-btn .badge { position: static; flex-shrink: 0; }
  .nav-extra-icons .icon-btn:last-child { border-bottom: none; }
  .nav-extra-utils {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0 4px;
  }
  .header-icons { gap: 14px; }
  /* The hero video is landscape and the cat sits on the right side of the
     frame — on a narrow portrait screen, cover-cropping to the default
     horizontal center misses the cat entirely. Shift the crop toward it. */
  .hero-scrub-video { object-position: 78% 40%; }
  .hero-content { left: 24px; right: 24px; max-width: none; }
  .hero-content h1 { font-size: 32px; }
  .hero-scrub-sticky { min-height: 560px; }
  .store-tiles, .trust-bar .container,
  .store-product-grid, .numbered-grid, .step-grid, .icon-feature-row,
  .pet-grid, .names-grid, .info-check-grid, .fav-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-pills { gap: 14px 10px; }
  .footer-top { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 24px; }
  .feature-slide-content { padding: 28px; }
  .booking-form-panel, .booking-info-panel, .cta-banner { padding: 28px; }
  .form-grid { grid-template-columns: 1fr; }
  .adoption-hero-cards { height: auto; position: static; display: flex; flex-direction: column; gap: 16px; }
  .card-dog, .card-cat { position: static; width: 100%; height: 260px; }
  .cart-row { padding: 10px; gap: 10px; }
  .cart-thumb { width: 54px; height: 54px; }
  .cart-row-info h4 { font-size: 13.5px; }
  .cart-row-info .price { font-size: 14px; }
  .cart-qty { gap: 8px; padding: 5px 9px; }
  .cart-qty button { width: 20px; height: 20px; font-size: 13px; }
  .cart-row-remove { width: 30px; height: 30px; }

  /* Pages set a fixed 2-column grid via inline style on .page-hero / .step-grid /
     .filter-panel; override it so they stack instead of overflowing horizontally. */
  .page-hero { display: flex !important; flex-direction: column !important; gap: 24px !important; }
  .page-hero > div:last-child { width: 100%; }
  .page-hero > div:last-child [style*="width:220px"] { width: 160px !important; height: 160px !important; }
  .page-hero > div:last-child [style*="width:150px"] { width: 110px !important; height: 110px !important; }
  .step-grid { grid-template-columns: 1fr !important; }
  .filter-panel-grid { grid-template-columns: 1fr !important; }
}

/* ===== Account / Auth modal ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(10, 18, 32, .45), rgba(10, 18, 32, .72)), url('../img/login-room.jpg') center / cover no-repeat, #101d30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.confirm-overlay {
  position: fixed; inset: 0;
  background: rgba(10,16,28,.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  z-index: 210;
}
.confirm-modal {
  width: 100%; max-width: 340px;
  border-radius: 24px;
  padding: 30px 26px 26px;
  text-align: center;
  color: var(--text-light);
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(217,164,65,.2), transparent 65%),
    linear-gradient(160deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  border: 1px solid rgba(232,194,122,.2);
}
.confirm-icon {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(217,164,65,.16); color: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(217,164,65,.08);
}
.confirm-icon svg { width: 26px; height: 26px; }
.confirm-modal--danger .confirm-icon {
  background: rgba(227,106,92,.18); color: #ff8a75;
  box-shadow: 0 0 0 6px rgba(227,106,92,.1);
}
.confirm-modal--danger { border-color: rgba(227,106,92,.35); }
.confirm-msg { margin: 0 0 24px; font-size: 15.5px; font-weight: 700; line-height: 1.6; }
.confirm-actions { display: flex; gap: 12px; }
.confirm-actions .btn, .confirm-actions .hx-ghost-btn { flex: 1; justify-content: center; }
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  box-shadow: 0 20px 60px rgba(16, 29, 48, .35);
}
.auth-modal.listing-modal { max-width: 520px; }
.auth-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-dark);
  z-index: 2;
}

/* Premium dark treatment — the real login/signup/account modal, not the
   plain listing-post form (auth-modal.listing-modal), which stays light. */
.auth-modal:not(.listing-modal) {
  max-width: 400px;
  padding: 36px 28px 28px;
  border-radius: 28px;
  color: var(--text-light);
  font-family: 'Tajawal', sans-serif;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(217,164,65,.2), transparent 65%),
    linear-gradient(160deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.auth-modal:not(.listing-modal)::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid rgba(232,194,122,.18);
  border-radius: 22px;
  pointer-events: none;
}
.auth-modal:not(.listing-modal) .form-field { position: relative; z-index: 1; gap: 6px; }
.auth-modal:not(.listing-modal) .form-field label { color: #cfd6e2; }
.auth-modal:not(.listing-modal) .form-field input {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-modal:not(.listing-modal) .form-field input::placeholder { color: #8792a5; }
.auth-modal:not(.listing-modal) .form-field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217,164,65,.18);
}
/* Browsers force their own light autofill background otherwise, which is
   what made some fields look white instead of matching the others. */
.auth-modal:not(.listing-modal) .form-field input:-webkit-autofill,
.auth-modal:not(.listing-modal) .form-field input:-webkit-autofill:hover,
.auth-modal:not(.listing-modal) .form-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #1b2c47 inset;
  box-shadow: 0 0 0 1000px #1b2c47 inset;
  transition: background-color 9999s ease-in-out 0s;
}
.auth-modal:not(.listing-modal) .pw-toggle { color: #9ba6b8; }
.auth-modal:not(.listing-modal) .pw-toggle:hover { background: rgba(255,255,255,.08); color: #fff; }
.auth-modal:not(.listing-modal) .auth-hint { color: #9ba6b8; }
.auth-modal:not(.listing-modal) .auth-link-btn { color: var(--gold-light); }
.auth-modal:not(.listing-modal) .auth-remember-label { color: #9aa3b5; }
.auth-modal:not(.listing-modal) .auth-switch-text { color: #9aa3b5; }
.auth-modal:not(.listing-modal) .auth-link-btn.danger { color: #e36a5c; }
.auth-modal:not(.listing-modal) .auth-msg.error { color: #e36a5c; }
.auth-modal:not(.listing-modal) .auth-msg.success { color: #7fd99a; }
.auth-modal:not(.listing-modal) .auth-close {
  top: 20px; left: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.auth-modal:not(.listing-modal) .auth-close:hover { background: rgba(255,255,255,.16); }

.auth-tabs {
  position: relative; z-index: 1;
  display: flex; gap: 6px; margin-bottom: 20px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 4px;
}
.auth-tab {
  flex: 1;
  background: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #9ba6b8;
  transition: color .2s ease;
}
.auth-tab.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(217,164,65,.3);
}
.auth-panel { position: relative; z-index: 1; }
.auth-panel form { display: flex; flex-direction: column; gap: 14px; }
.auth-msg { font-size: 13px; margin: 0; min-height: 16px; }
.auth-msg:empty { display: none; }
.auth-msg.error { color: #c0392b; }
.auth-msg.success { color: #2f7d4f; }
.auth-cover-wrap {
  position: relative;
  margin: -36px -28px 0;
  height: 112px;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}
.auth-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-cover-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,16,28,0) 35%, rgba(10,16,28,.95) 100%);
}
.auth-avatar-wrap { position: relative; width: 96px; margin: -52px auto 22px; z-index: 10; }
.auth-account-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(155deg, var(--gold-light), var(--gold));
  color: var(--navy); font-size: 34px; font-weight: 900;
  border: 3px solid rgba(232,194,122,.5);
  box-shadow: 0 0 0 5px rgba(232,194,122,.14), 0 16px 36px rgba(0,0,0,.4);
}
.auth-account-avatar img, .account-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-edit-btn {
  position: absolute; bottom: -2px; left: -2px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light);
  border: 3px solid #0e1c30;
}
.avatar-edit-btn:hover { background: #0a1422; }
.avatar-edit-btn svg { width: 14px; height: 14px; }
.avatar-menu {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; min-width: 190px;
  background: #fff; border: 1px solid rgba(232,194,122,.35); border-radius: 14px; padding: 6px;
  box-shadow: 0 20px 50px rgba(16,29,48,.4);
  z-index: 5;
}
.avatar-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--text-dark);
  background: none; text-align: right;
}
.avatar-menu-item:hover { background: var(--cream); }
.avatar-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.avatar-menu-item.danger { color: #c0392b; }
.avatar-menu-item.danger svg { color: #c0392b; }
.auth-account-name {
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
  font-size: 22px; font-weight: 800; text-align: center; margin: 0; color: #fff;
}
.auth-account-email { font-size: 13px; color: #9ba6b8; text-align: center; margin: 0 0 26px; word-break: break-all; }
.auth-username-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 2px; }
.username-edit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; color: #9ba6b8; background: none;
}
.username-edit-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.username-edit-btn svg { width: 13px; height: 13px; }
.auth-username-edit { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.auth-username-edit input {
  flex: 1; font-family: inherit; font-size: 14px; text-align: center;
  padding: 9px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.auth-username-edit input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.username-save-btn { padding: 9px 16px !important; font-size: 13px !important; }
#username-msg { position: relative; z-index: 1; text-align: center; margin: 0 0 10px; }
.pw-field { position: relative; }
.pw-field input { width: 100%; padding-left: 44px; }
.pw-toggle {
  position: absolute; top: 50%; left: 6px; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); background: none;
}
.pw-toggle:hover { background: var(--cream); color: var(--text-dark); }
.pw-toggle svg { width: 18px; height: 18px; }
.auth-hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.auth-link-btn {
  background: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-align: center;
  padding: 4px;
}
.auth-link-btn.auth-link-inline { display: inline; padding: 0; }
.auth-options-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: -4px;
}
.auth-remember-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.auth-remember-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer;
}
.auth-switch-text { font-size: 13px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ----- Account-modal settings menu (dark) ----- */
.acct-modal-menu { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; margin: 22px 0; }
.modal-menu-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff; text-align: right;
}
.modal-menu-row:hover { background: rgba(255,255,255,.08); }
.modal-menu-row.featured { background: rgba(217,164,65,.1); border-color: rgba(217,164,65,.5); }
.modal-menu-row:disabled { opacity: .5; cursor: not-allowed; }
.modal-menu-row:disabled:hover { background: rgba(255,255,255,.04); }
.modal-menu-row-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: rgba(217,164,65,.15); color: var(--gold-light);
}
.modal-menu-row-icon svg { width: 18px; height: 18px; }
.modal-menu-row-text { flex: 1; }
.modal-menu-row-text b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.modal-menu-row-text span { font-size: 11px; color: #9ba6b8; }
.modal-menu-chevron { color: #6b7688; flex-shrink: 0; }
.modal-menu-chevron svg { width: 15px; height: 15px; }

.modal-password-edit {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(217,164,65,.25);
}
.modal-password-edit .form-field { gap: 6px; }
.modal-password-edit .form-field label { color: #cfd6e2; }

.modal-subview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.modal-subview-head-text b { display: block; font-size: 16px; font-weight: 800; color: #fff; }
.modal-subview-head-text span { font-size: 12px; color: #9ba6b8; }

.field-hint { margin: 0; font-size: 11px; color: #8792a5; line-height: 1.4; }

.pw-hint { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11px; color: #8792a5; transition: color .15s ease; }
.pw-hint-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #8792a5;
  transition: background .15s ease, color .15s ease;
}
.pw-hint-icon svg { width: 9px; height: 9px; }
.pw-hint.valid { color: #7fd99a; }
.pw-hint.valid .pw-hint-icon { background: rgba(127,217,154,.18); color: #7fd99a; }
.pw-hint.error { color: #e36a5c; }
.pw-hint.error .pw-hint-icon { background: rgba(227,106,92,.18); color: #e36a5c; }

.modal-subview-actions { display: flex; gap: 10px; }
.modal-subview-actions .btn {
  flex: 1; justify-content: center;
  padding: 13px 10px; font-size: 13px; white-space: nowrap;
}
.modal-cancel-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 13px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap;
}
.modal-cancel-btn:hover { background: rgba(255,255,255,.1); }

.modal-logout-btn {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; border-radius: 16px;
  background: rgba(192,57,43,.12);
  border: 1px solid rgba(192,57,43,.5);
  color: #e36a5c; font-weight: 800; font-size: 14px;
}
.modal-logout-btn:hover { background: rgba(192,57,43,.2); }
.modal-logout-btn svg { width: 17px; height: 17px; }

/* ===== Bouncing mascot ===== */
.bounce-ball {
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 150;
  will-change: transform;
  background-image: url('../img/bounce-cat.png');
  background-size: cover;
  background-position: center;
  box-shadow:
    0 16px 32px rgba(16,29,48,.34),
    0 4px 12px rgba(16,29,48,.24),
    0 0 0 3px rgba(250,245,236,.9),
    0 0 0 5px rgba(217,164,65,.55);
}
@media (max-width: 720px) {
  .bounce-ball { width: 46px; height: 46px; }
}

/* ===== Page-load splash ===== */
.maintenance-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden auto;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.maintenance-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.maintenance-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  filter: blur(6px) brightness(.5);
  transform: scale(1.06);
}
.maintenance-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,29,48,.7), rgba(16,29,48,.88));
}
.maintenance-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 440px;
  width: 100%;
  margin: auto;
}
.maintenance-brand { display: flex; flex-direction: column; align-items: center; }
.maintenance-brand img { height: 48px; width: auto; }
.maintenance-card {
  position: relative;
  width: 100%;
  background: rgba(13,23,40,.72);
  border: 1px solid rgba(217,164,65,.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 20px;
  padding: 30px 34px 26px;
  text-align: center;
  color: var(--text-light);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.maintenance-title { margin: 0 0 10px; font-size: 21px; font-weight: 800; }
.maintenance-title span:first-child { color: #fff; }
.maintenance-title span:last-child { color: var(--gold-light); }
.maintenance-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 22px;
  font-size: 13.5px;
  color: #cfd6e2;
}
.loader-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.maintenance-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  margin-bottom: 20px;
}
.maintenance-progress-bar {
  height: 100%;
  width: 6%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  animation: maintenance-fill 1.8s ease-out forwards;
  box-shadow: 0 0 12px rgba(217,164,65,.7);
}
@keyframes maintenance-fill {
  from { width: 6%; }
  to { width: 90%; }
}
.maintenance-overlay.loaded .maintenance-progress-bar {
  width: 100% !important;
  animation: none;
  transition: width .3s ease;
}
.loader-paws { display: flex; align-items: center; justify-content: center; gap: 8px; }
.loader-pip { width: 5px; height: 5px; border-radius: 50%; background: rgba(217,164,65,.5); }
.loader-paw {
  font-size: 16px;
  line-height: 1;
  animation: loader-paw-bounce 1.2s ease-in-out infinite;
}
@keyframes loader-paw-bounce {
  0%, 100% { transform: translateY(0) scale(1); opacity: .85; }
  50% { transform: translateY(-4px) scale(1.15); opacity: 1; }
}

@media (max-width: 600px) {
  .maintenance-card { padding: 26px 22px 22px; }
  .maintenance-title { font-size: 18px; }
}

/* ===== Touch cat cursor (mobile) ===== */
.touch-cat-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 400;
  font-size: 30px;
  line-height: 40px;
  text-align: center;
  opacity: 0;
  transition: opacity .12s ease;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.4));
  will-change: transform, opacity;
}

/* ===== Mobile bottom nav (replaces the hamburger menu on phones) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; right: 0; left: 0;
  z-index: 150;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -10px 30px rgba(0,0,0,.3);
}
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1;
  padding: 4px 0;
  color: #9ba6b8;
  font-size: 11px; font-weight: 700;
}
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item.active { color: var(--gold-light); }
.bottom-nav-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin-top: 1px; }
.bottom-nav-center-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex: 0 0 auto;
}
.bottom-nav-center {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  padding: 0;
  margin-top: -29px;
  border-radius: 50%;
  overflow: hidden;
  background: none;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(217,164,65,.4);
}
.bottom-nav-center svg { width: 24px; height: 24px; }
.bottom-nav-center img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bottom-nav-center-label { font-size: 11px; font-weight: 700; color: var(--gold-light); }

/* Decorative "shine" rays next to the services button — hidden while the
   services panel is open. */
.bottom-nav-center-rays {
  position: absolute;
  top: -40px; right: -4px;
  width: 34px; height: 34px;
  pointer-events: none;
  opacity: 1;
  transition: opacity .15s ease;
}
.bottom-nav-center-rays i {
  position: absolute;
  width: 3px; height: 13px;
  border-radius: 2px;
  background: var(--gold-light);
  box-shadow: 0 0 6px rgba(217,164,65,.7);
}
.bottom-nav-center-rays i:nth-child(1) { top: 0; left: 11px; transform: rotate(18deg); }
.bottom-nav-center-rays i:nth-child(2) { top: 9px; left: 21px; height: 10px; transform: rotate(38deg); }
.bottom-nav-center-rays i:nth-child(3) { top: 20px; left: 26px; height: 8px; transform: rotate(58deg); }
.bottom-nav-center-wrap.is-open .bottom-nav-center-rays { opacity: 0; }

/* ===== Full-screen services panel (opened from the bottom-nav center button) ===== */
.services-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px 18px calc(96px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(217,164,65,.2), transparent 60%),
    linear-gradient(180deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
}
.services-close {
  position: absolute;
  top: calc(18px + env(safe-area-inset-top));
  left: 18px;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.services-header { text-align: center; padding-top: 8px; margin-bottom: 24px; }
.services-logo { height: 32px; margin-bottom: 14px; }
.services-title { font-size: 21px; font-weight: 800; color: var(--text-light); margin: 0 0 6px; }
.services-title span { color: var(--gold-light); }
.services-sub { font-size: 13px; color: #9ba6b8; margin: 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  max-width: 460px; margin: 0 auto;
}
.services-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(232,194,122,.18);
  border-radius: 20px;
  padding: 12px 12px 16px;
  text-align: center;
}
.services-card-media {
  width: 100%; aspect-ratio: 1.1 / 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
}
.services-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.services-card-title { font-size: 13.5px; font-weight: 700; color: var(--text-light); }
.services-card-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.services-card-arrow svg { width: 15px; height: 15px; }
.services-links { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; margin-bottom: 96px; }
.services-link {
  display: flex; align-items: center; justify-content: center; padding: 14px 10px; border-radius: 16px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.35);
  color: var(--gold-light); font-weight: 700; font-size: 15px; text-align: center;
}
.services-link:hover { background: rgba(217,164,65,.16); }
.services-card-wide {
  grid-column: 1 / -1;
  flex-direction: row; text-align: right;
  padding: 12px 16px;
}
.services-card-wide .services-card-media { width: 78px; aspect-ratio: auto; align-self: stretch; flex: none; }
.services-card-wide .services-card-title { flex: 1; }
@media (max-width: 720px) {
  .bottom-nav { display: flex; align-items: flex-end; }
  .services-overlay:not([hidden]) { display: block; }
  body.has-bottom-nav { padding-bottom: 74px; }
  /* Wishlist/account are covered by the bottom nav; cart stays put in the
     top bar like it always has, since it isn't one of the 5 bottom tabs. */
  body.has-bottom-nav .header-icons .icon-btn:not([href$="cart"]):not([href$="cart.html"]):not([href$="favorites"]):not([href$="favorites.html"]) { display: none; }
  body.has-bottom-nav .site-timer { bottom: 90px; }
}

/* ===== Site visit timer ===== */
.site-timer {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,29,48,.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-light);
  border: 1px solid rgba(217,164,65,.4);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(16,29,48,.25);
  pointer-events: none;
}
.site-timer svg { width: 16px; height: 16px; color: var(--gold-light); flex: 0 0 auto; }
.site-timer-label { color: #c7cddb; font-weight: 500; }
.site-timer-value { font-variant-numeric: tabular-nums; color: var(--gold-light); font-weight: 800; letter-spacing: .5px; }

@media (max-width: 720px) {
  .site-timer { bottom: 14px; left: 14px; padding: 6px 12px; font-size: 12px; }
  .site-timer-label { display: none; }
}

/* ===== Admin: adoption listing moderation ===== */
.admin-listing-grid { display: flex; flex-direction: column; gap: 18px; }
.admin-listing-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 20px rgba(16,29,48,.08);
}
.admin-listing-card img { width: 160px; height: 160px; object-fit: cover; border-radius: 12px; }
.admin-listing-info h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.admin-listing-info h4 .tag { font-size: 11px; font-weight: 700; color: var(--navy); background: var(--tan); border-radius: 999px; padding: 3px 10px; margin-right: 8px; }
.admin-listing-info p { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.admin-listing-actions { display: flex; gap: 10px; margin-top: 12px; }
.admin-listing-actions .btn { padding: 10px 18px; font-size: 13px; }

@media (max-width: 560px) {
  .admin-listing-card { grid-template-columns: 1fr; }
  .admin-listing-card img { width: 100%; height: 200px; }
}

/* ===================================================================
   Hotel page (hx-*) — boutique-hotel identity for Bis Bis
   =================================================================== */
.hotel-page [id] { scroll-margin-top: 96px; }
.hotel-page main img.placeholder-img, .hotel-page section img.placeholder-img { padding: 0; }

.hx-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold-light);
  font-size: 13px; font-weight: 800; letter-spacing: .5px;
}
.hx-kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.hx-kicker.dark { color: #b9832c; }

.hx-title {
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
  font-size: 40px; line-height: 1.25; font-weight: 800;
  color: var(--navy); margin: 14px 0 12px;
}
.hx-title.sm { font-size: 30px; }
.hx-lead { color: var(--muted); font-size: 15.5px; line-height: 1.8; margin: 0; max-width: 560px; }
.hx-head { text-align: center; margin-bottom: 44px; }
.hx-head .hx-kicker { justify-content: center; }
.hx-head .hx-lead { margin: 0 auto; }

/* ----- Hero ----- */
.hx-hero { padding: 28px 0 0; }
.hx-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 64px 60px 120px;
  border-radius: 32px;
  color: var(--text-light);
  background:
    radial-gradient(ellipse 60% 70% at 18% 30%, rgba(217,164,65,.18), transparent 70%),
    linear-gradient(155deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
}
.hx-hero-card::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(232,194,122,.16);
  border-radius: 24px;
  pointer-events: none;
}
.hx-hero-text { position: relative; z-index: 1; font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; }
.hx-hero-text h1 { font-size: 54px; line-height: 1.18; font-weight: 800; color: #fff; margin: 20px 0 18px; }
.hx-hero-text h1 .accent {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-hero-text p { font-family: 'Tajawal', sans-serif; color: #cfd6e2; font-size: 16px; line-height: 1.85; max-width: 500px; margin: 0 0 32px; }
.hx-hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hx-hero-actions .btn-gold { box-shadow: 0 14px 34px rgba(217,164,65,.35); }
.hx-ghost-btn {
  display: inline-flex; align-items: center;
  padding: 14px 26px; border-radius: 999px;
  background: none;
  border: 1px solid rgba(232,194,122,.45);
  color: var(--gold-light); font-weight: 700; font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.hx-ghost-btn:hover { background: rgba(232,194,122,.12); color: #fff; }
.hx-hero-stats { display: flex; font-family: 'Tajawal', sans-serif; }
.hx-stat { padding: 0 26px; border-right: 1px solid rgba(255,255,255,.12); }
.hx-stat:first-child { padding-right: 0; border-right: none; }
.hx-stat b { display: block; font-size: 24px; font-weight: 900; color: #fff; }
.hx-stat b small { font-size: 13px; font-weight: 700; color: var(--gold-light); }
.hx-stat span { font-size: 12.5px; color: #9ba6b8; }

.hx-hero-visual { position: relative; z-index: 1; display: flex; justify-content: center; }
.hx-arch {
  width: min(360px, 100%);
  aspect-ratio: 4 / 5;
  padding: 10px;
  border-radius: 999px 999px 28px 28px;
  border: 1px solid rgba(232,194,122,.5);
  background: rgba(255,255,255,.04);
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.hx-arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 20px 20px; }

/* A finished graphic (its own logo, heading and icon row baked in) — show
   it whole at its own ratio instead of the arch crop above. */
.hotel-hero-frame { aspect-ratio: 1369 / 1149; border-radius: 28px; }
.hotel-hero-frame img { border-radius: 24px; }

/* ----- Amenities (overlaps the bottom edge of the hero) ----- */
.hx-amenities { position: relative; z-index: 2; margin-top: -64px; }
.hx-amenities-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16,29,48,.14);
  margin: 0 32px;
}
.hx-amenity { display: flex; align-items: center; gap: 14px; padding: 26px 24px; border-right: 1px solid #efe7d8; }
.hx-amenity:first-child { border-right: none; }
.hx-amenity-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--navy); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.hx-amenity-icon svg { width: 22px; height: 22px; }
.hx-amenity h4 { margin: 0 0 3px; font-size: 15px; font-weight: 800; color: var(--navy); }
.hx-amenity p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ----- Experience ----- */
.hx-experience { padding-top: 96px; }
.hx-experience-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: start; }
.hx-experience-visual { position: relative; padding-bottom: 60px; padding-left: 60px; }
.hx-photo-lg { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: 0 24px 60px rgba(16,29,48,.16); }
.hx-photo-lg img, .hx-photo-sm img { width: 100%; height: 100%; object-fit: cover; }
.hx-photo-sm {
  position: absolute; bottom: 0; left: 0;
  width: 46%; aspect-ratio: 1;
  border-radius: 24px; overflow: hidden;
  border: 8px solid var(--cream);
  box-shadow: 0 20px 40px rgba(16,29,48,.18);
}
.hx-photo-tag {
  position: absolute; top: 22px; right: 22px;
  background: var(--navy); color: var(--gold-light);
  padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 800;
  box-shadow: 0 10px 24px rgba(16,29,48,.3);
}
.hx-care-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.hx-care-list li {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: 16px; padding: 14px 18px;
  border: 1px solid #efe7d8;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hx-care-list li:hover { transform: translateX(-4px); box-shadow: 0 14px 30px rgba(16,29,48,.08); border-color: rgba(217,164,65,.45); }
.hx-care-icon {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  background: var(--tan); color: #b9832c;
  display: flex; align-items: center; justify-content: center;
}
.hx-care-icon svg { width: 18px; height: 18px; }
.hx-care-list h4 { margin: 1px 0 3px; font-size: 15px; font-weight: 800; color: var(--navy); }
.hx-care-list p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ----- Suites ----- */
.hx-suites-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 1080px; margin: 0 auto; }
.hx-suite {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 28px; overflow: hidden;
  border: 1px solid #efe7d8;
  box-shadow: 0 18px 44px rgba(16,29,48,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hx-suite:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,29,48,.16); }
.hx-suite.featured { background: var(--navy); color: var(--text-light); border-color: rgba(217,164,65,.6); }
.hx-suite-media { position: relative; height: 230px; }
.hx-suite-media img { width: 100%; height: 100%; object-fit: cover; }
.hx-suite-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16,29,48,.45), transparent 55%); }
.hx-suite-ribbon {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  background: var(--gold); color: var(--navy);
  padding: 7px 16px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800;
}
.hx-suite-body { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.hx-suite-tag { font-size: 13px; font-weight: 800; color: #b9832c; }
.hx-suite.featured .hx-suite-tag { color: var(--gold-light); }
.hx-suite h3 { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 26px; font-weight: 800; margin: 6px 0 10px; color: var(--navy); }
.hx-suite.featured h3 { color: #fff; }
.hx-suite-body > p { margin: 0 0 22px; font-size: 14px; line-height: 1.8; color: var(--muted); }
.hx-suite.featured .hx-suite-body > p { color: #b8c2d3; }
.hx-suite-features { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.hx-suite-features li { position: relative; padding-right: 26px; font-size: 13.5px; font-weight: 600; }
.hx-suite-features li::before {
  content: "";
  position: absolute; right: 0; top: 2px;
  width: 17px; height: 17px; border-radius: 50%;
  background: rgba(217,164,65,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9832c' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.hx-suite-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid #efe7d8;
}
.hx-suite.featured .hx-suite-foot { border-top-color: rgba(255,255,255,.1); }
.hx-suite-price { display: flex; align-items: center; gap: 10px; }
.hx-suite-price b { font-size: 44px; font-weight: 900; line-height: 1; color: var(--navy); }
.hx-suite.featured .hx-suite-price b { color: var(--gold-light); }
.hx-suite-price span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.hx-suite.featured .hx-suite-price span { color: #9ba6b8; }
.hx-note { text-align: center; color: var(--muted); font-size: 13px; margin: 26px 0 0; }

/* ----- Process ----- */
.hx-process { padding-top: 24px; }

/* ----- Process timeline ----- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.hx-steps::before {
  content: "";
  position: absolute; top: 30px; right: 12.5%; left: 12.5%;
  border-top: 2px dashed rgba(217,164,65,.5);
}
.hx-steps li { position: relative; text-align: center; padding: 0 8px; }
.hx-step-num {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  font-size: 17px; font-weight: 900;
  box-shadow: 0 0 0 8px var(--cream), 0 14px 28px rgba(16,29,48,.22);
  margin-bottom: 18px;
}
.hx-steps h4 { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--navy); }
.hx-steps p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ----- Booking ----- */
.hx-booking { display: grid; grid-template-columns: 1.4fr .9fr; gap: 28px; align-items: start; }
.hx-form-card {
  background: #fff; border-radius: 28px;
  padding: 44px 44px 36px;
  box-shadow: 0 24px 60px rgba(16,29,48,.1);
  border: 1px solid #efe7d8;
}
.hx-form-card .form-field input:focus,
.hx-form-card .form-field select:focus,
.hx-form-card .form-field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(217,164,65,.15);
}
.hbc-banner {
  position: relative; width: 100%; min-height: clamp(440px, 32vw, 560px); overflow: hidden;
}
.hbc-banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hbc-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hbc-banner-content {
  position: absolute; top: 0; bottom: 0; right: 0; width: 46%;
  z-index: 3; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 40px 6% 40px 4%;
}
.hbc-paw { position: absolute; z-index: 2; color: rgba(217,164,65,.8); pointer-events: none; }
.hbc-paw svg { display: block; width: 54px; height: 54px; }
.hbc-paw-1 { top: 12%; right: 8%; transform: rotate(-15deg); }
.hbc-paw-2 { top: 42%; right: 3%; width: 40px; transform: rotate(20deg); }
.hbc-paw-2 svg { width: 40px; height: 40px; }
.hbc-paw-3 { bottom: 10%; left: 6%; transform: rotate(-25deg); }
.hbc-heart {
  position: absolute; z-index: 2; top: 55%; right: 2%; color: rgba(217,164,65,.75); pointer-events: none;
}
.hbc-heart svg { width: 34px; height: 34px; }
.hbc-icon-wrap { margin-bottom: 22px; }
.hbc-icon {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1c2f4c, var(--navy) 60%, #0a1422 100%);
  color: var(--gold-light); box-shadow: 0 14px 28px rgba(16,29,48,.28), inset 0 0 0 1px rgba(217,164,65,.35);
}
.hbc-icon svg { width: 27px; height: 27px; }
.hbc-banner-content h3 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: var(--navy); }
.hbc-banner-content h3 .hbc-accent { color: var(--gold); }
.hbc-subtitle { margin: 0 0 18px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 800; color: #a9761c; }
.hbc-desc { margin: 0 auto 30px; max-width: 420px; color: #5a6472; font-size: clamp(13.5px, 1.1vw, 15.5px); line-height: 1.9; }
.hbc-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--navy); color: var(--gold-light);
  font-weight: 800; font-size: 15px; padding: 8px 8px 8px 28px; border-radius: 999px;
  box-shadow: 0 16px 34px rgba(16,29,48,.28); transition: transform .18s ease, box-shadow .18s ease;
}
.hbc-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(16,29,48,.34); }
.hbc-btn-icon {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 70%); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hbc-btn-icon svg { width: 19px; height: 19px; }

@media (max-width: 860px) {
  .hbc-wave { display: none; }
  .hbc-banner { display: flex; flex-direction: column; min-height: 0; }
  .hbc-banner-photo { position: static; width: 100%; height: 220px; }
  .hbc-banner-content {
    position: static; width: 100%; padding: 36px 24px 40px;
    background: linear-gradient(165deg, #ffffff 0%, var(--cream) 100%);
  }
  .hbc-paw-2, .hbc-heart { display: none; }
  .hbc-paw-1 { top: 10px; right: 16px; }
  .hbc-paw-3 { bottom: 10px; left: 16px; }
}
.hx-summary {
  position: sticky; top: 110px;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(217,164,65,.2), transparent 70%),
    var(--navy);
  color: var(--text-light);
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: 0 24px 60px rgba(16,29,48,.25);
}
.hx-summary h3 { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 22px; font-weight: 800; margin: 0 0 20px; }
.hx-summary-rows { margin: 0; }
.hx-summary-rows > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.hx-summary-rows dt { font-size: 13.5px; color: #9ba6b8; }
.hx-summary-rows dd { margin: 0; font-size: 14px; font-weight: 700; text-align: left; }
.hx-summary-rows .total { border-bottom: none; padding-top: 18px; }
.hx-summary-rows .total dt { color: #fff; font-weight: 700; }
.hx-summary-rows .total dd { font-size: 24px; font-weight: 900; color: var(--gold-light); }
.hx-summary-rows .discount dt { color: #7fd99a; font-weight: 700; }
.hx-discount-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(127,217,154,.18), rgba(127,217,154,.06));
  border: 1px solid rgba(127,217,154,.4);
  color: #7fd99a; font-size: 13px; font-weight: 800;
}
.hx-discount-badge svg { width: 13px; height: 13px; flex-shrink: 0; }
.hx-summary-note { font-size: 12px; color: #8792a5; margin: 4px 0 22px; }
.hx-summary-checks { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.08); display: grid; gap: 12px; }
.hx-summary-checks li { position: relative; padding-right: 26px; font-size: 13px; line-height: 1.6; color: #cfd6e2; }
.hx-summary-checks li::before {
  content: "";
  position: absolute; right: 0; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(217,164,65,.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c27a' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* ----- Before the stay + FAQ ----- */
.hx-info { padding-bottom: 16px; }
.hx-info-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.hx-prep { background: var(--tan); border-radius: 28px; padding: 40px 36px; }
.hx-prep-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.hx-prep-list li {
  position: relative;
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  padding: 14px 48px 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--navy);
}
.hx-prep-list li::before {
  content: "";
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c27a' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.hx-faq { padding: 8px 4px; }
.hx-faq .hx-title { margin-bottom: 24px; }
.hx-faq details {
  background: #fff; border-radius: 18px;
  border: 1px solid #efe7d8;
  margin-bottom: 12px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hx-faq details[open] { border-color: rgba(217,164,65,.5); box-shadow: 0 14px 30px rgba(16,29,48,.07); }
.hx-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px;
  font-size: 15.5px; font-weight: 800; color: var(--navy);
}
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--tan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.hx-faq details[open] summary::after { transform: rotate(45deg); background: var(--navy); color: var(--gold-light); }
.hx-faq details p { margin: 0; padding: 0 22px 20px; font-size: 14px; line-height: 1.85; color: var(--muted); }

/* ----- Responsive ----- */
@media (max-width: 1100px) {
  .hx-hero-card { padding: 56px 44px 110px; }
  .hx-hero-text h1 { font-size: 44px; }
  .hx-amenities-card { grid-template-columns: repeat(2, 1fr); margin: 0; }
  .hx-amenity:nth-child(3) { border-right: none; }
  .hx-amenity:nth-child(-n+2) { border-bottom: 1px solid #efe7d8; }
  .hx-experience-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .hx-hero-card { grid-template-columns: 1fr; padding: 48px 28px 100px; gap: 48px; }
  .hx-hero-visual { order: -1; }
  .hx-arch { width: min(280px, 80%); }
  .hx-experience-grid,
  .hx-suites-grid,
  .hx-booking,
  .hx-info-grid { grid-template-columns: 1fr; }
  .hx-experience-visual { max-width: 520px; margin: 0 auto; }
  .hx-summary { position: static; }
  .hx-steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .hx-steps::before { display: none; }
  .hx-title { font-size: 32px; }
  .hx-title.sm { font-size: 26px; }
}
@media (max-width: 560px) {
  .hx-hero { padding-top: 16px; }
  .hx-hero-card { padding: 40px 22px 90px; border-radius: 26px; }
  .hx-hero-card::after { inset: 8px; border-radius: 20px; }
  .hx-hero-text h1 { font-size: 34px; }
  .hx-hero-actions { flex-direction: column; align-items: stretch; }
  .hx-hero-actions .btn, .hx-ghost-btn { width: 100%; justify-content: center; text-align: center; white-space: nowrap; }
  .hx-hero-stats { justify-content: space-between; }
  .hx-stat { padding: 0 12px; }
  .hx-stat b { font-size: 19px; }
  .hx-amenities-card { grid-template-columns: 1fr; }
  .hx-amenity { border-right: none !important; border-bottom: 1px solid #efe7d8; padding: 20px; }
  .hx-amenity:last-child { border-bottom: none; }
  .hx-experience { padding-top: 64px; }
  .hx-experience-visual { padding-left: 30px; padding-bottom: 40px; }
  .hx-suite-body { padding: 24px 22px 26px; }
  .hx-suite-features { grid-template-columns: 1fr; }
  .hx-suite-foot { flex-direction: column; align-items: stretch; }
  .hx-suite-foot .btn { justify-content: center; }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-form-card { padding: 30px 22px; }
  .hx-summary, .hx-prep { padding: 30px 22px; }
  .hx-title { font-size: 28px; }
}

/* ===================================================================
   Adoption page (ad-*) — reuses the hotel page's hx-* identity
   =================================================================== */
.adoption-page [id] { scroll-margin-top: 96px; }
.adoption-page section img.placeholder-img { padding: 0; }

/* ----- Hero image (a designed graphic, not a plain photo — no arch crop,
   just a rounded frame at its own aspect ratio so none of its corner
   content, like the logo, gets cut off) ----- */
.ad-hero-frame { aspect-ratio: 1214 / 1295; border-radius: 28px; }
.ad-hero-frame img { border-radius: 24px; }

/* ----- Listings header ----- */
.ad-listings { padding-top: 80px; }
.ad-listings-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.ad-listings-head .hx-title { margin-bottom: 8px; }
.adoption-page .count-chip {
  flex-shrink: 0;
  background: var(--navy); color: var(--text-light);
  border-color: rgba(217,164,65,.5);
  padding: 10px 20px;
  box-shadow: 0 14px 30px rgba(16,29,48,.2);
}
.adoption-page .count-chip b { color: var(--gold-light); }

/* ----- Filter panel ----- */
.ad-filter {
  border-radius: 28px;
  padding: 30px 32px;
  border: 1px solid #efe7d8;
  box-shadow: 0 24px 60px rgba(16,29,48,.08);
  margin-bottom: 40px;
}
.ad-filter .adoption-search-row { margin-bottom: 24px; }
.ad-filter .adoption-search-input {
  background: #fff;
  border-color: #ddd2b8;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ad-filter .adoption-search-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.15); }
.ad-filter .adoption-search-input svg { color: #b9832c; }
.ad-filter .adoption-search-input input::placeholder { color: #6b7280; opacity: 1; }
.ad-filter .adoption-search-input:has(input:disabled) { background: var(--cream); border-color: #ece5d8; }
.ad-filter .adoption-search-input:has(input:disabled) svg { color: #b3aa98; }
.ad-filter .adoption-search-input input:disabled::placeholder { color: #948c7c; font-style: italic; }
.ad-filter-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; padding-top: 24px; border-top: 1px solid #efe7d8; }
.ad-filter-grid .filter-row { margin: 0; }
.ad-filter .filter-row-head h4 { font-size: 13px; color: #b9832c; }
.ad-filter .filter-pill { background: #fff; border-color: #efe7d8; }
.ad-filter .filter-pill:hover { border-color: rgba(217,164,65,.6); }
.ad-filter .filter-pill.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* ----- Listing cards ----- */
.adoption-page .pet-grid { gap: 28px; }
.adoption-page .pet-card {
  display: flex; flex-direction: column;
  border-radius: 24px;
  border-color: #efe7d8;
  box-shadow: 0 18px 44px rgba(16,29,48,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.adoption-page .pet-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,29,48,.16); }
.adoption-page .pet-media { overflow: hidden; }
.adoption-page .pet-media img { transition: transform .5s ease; }
.adoption-page .pet-card:hover .pet-media img { transform: scale(1.04); }
.adoption-page .pet-status { background: var(--gold); color: var(--navy); font-size: 12.5px; font-weight: 800; }
.adoption-page .pet-status .dot { background: var(--navy); }
.adoption-page .pet-status[data-value="مفقود"] { background: var(--navy); color: var(--gold-light); border: 1px solid rgba(232,194,122,.5); }
.adoption-page .pet-status[data-value="مفقود"] .dot { background: #e36a5c; }
.adoption-page .pet-time-badge { background: rgba(16,29,48,.55); }
.adoption-page .pet-name-overlay { padding: 56px 22px 18px; background: linear-gradient(to top, rgba(16,29,48,.88), transparent); }
.adoption-page .pet-name-overlay h4 { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 24px; }
.adoption-page .pet-tags { padding: 20px 20px 0; }
.adoption-page .pet-tags .tag-box { border: 1px solid #efe7d8; border-radius: 14px; }
.adoption-page .pet-tags .tag-box .k { color: #b9832c; font-weight: 700; }
.adoption-page .pet-tags .tag-box .v { color: var(--navy); }
.adoption-page .pet-vax-row { margin-top: auto; padding: 16px 20px; }
.adoption-page .pet-card-cta {
  margin: 0 20px 20px;
  border-radius: 999px;
  color: var(--gold-light); font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.adoption-page .pet-card-cta:hover { background: #0a1422; box-shadow: 0 14px 28px rgba(16,29,48,.28); }
.adoption-page .filter-empty-msg {
  background: #fff;
  border: 1px dashed rgba(217,164,65,.55);
  border-radius: 24px;
}

/* ----- Empty state ----- */
.ad-empty {
  text-align: center;
  background: #fff;
  border: 1px solid #efe7d8;
  border-radius: 28px;
  padding: 56px 28px;
  box-shadow: 0 24px 60px rgba(16,29,48,.08);
}
.ad-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--navy); color: var(--gold-light);
  box-shadow: 0 0 0 8px var(--tan);
  margin-bottom: 24px;
}
.ad-empty-icon svg { width: 30px; height: 30px; }
.ad-empty h3 { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 26px; font-weight: 800; color: var(--navy); margin: 0 0 8px; }
.ad-empty p { max-width: 420px; margin: 0 auto 26px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.ad-empty-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ----- Three-step process ----- */
.ad-steps { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: 0 auto; }
.ad-steps::before { right: 16.66%; left: 16.66%; }

@media (max-width: 900px) {
  .ad-listings { padding-top: 58px; }
  .ad-listings-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .ad-filter-grid { grid-template-columns: 1fr; }
  .ad-steps { grid-template-columns: 1fr; }
  .ad-listings { padding-top: 40px; }
}
@media (max-width: 560px) {
  .ad-filter { padding: 22px 18px; border-radius: 24px; }
  .ad-empty { padding: 44px 20px; }
  .ad-empty-actions .btn { width: 100%; justify-content: center; }
  /* Two-up cards left too little room for the time + status badges and
     felt cramped on phones — give each listing the full row instead. */
  .pet-grid { grid-template-columns: 1fr !important; }
  .adoption-page .pet-status, .adoption-page .pet-time-badge { padding: 5px 12px; font-size: 11px; }
  .adoption-page .pet-name-overlay h4 { font-size: 20px; }
}

/* ===== Games page ===== */
.game-panel[hidden] { display: none; }
.game-stage-wrap { display: flex; justify-content: center; }
.game-stage {
  position: relative; width: 100%; max-width: 480px;
  background: linear-gradient(180deg, #dff0ff 0%, #f3ecd8 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16,29,48,.08);
  box-shadow: 0 20px 50px rgba(16,29,48,.12);
  overflow: hidden;
}
.game-canvas { display: block; width: 100%; height: auto; touch-action: none; }
.game-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: rgba(16,29,48,.78); color: #fff;
}
.game-overlay .icon { font-size: 40px; }
.game-overlay h3 { font-size: 21px; font-weight: 800; margin: 0; }
.game-overlay p { font-size: 14px; color: #d7dce6; margin: 0; max-width: 300px; }
.game-overlay .best-score { color: var(--gold-light); font-weight: 800; }
.game-controls-hint {
  text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px;
}

/* ----- Bis Bis Run ----- */
.game-stage.run-stage {
  width: min(100%, 560px, max(360px, calc((100vh - 170px) * 0.64)));
  max-width: none; flex-shrink: 0; background: #f1e2c8; border-radius: 20px;
  border: 3px solid rgba(232,194,122,.4);
  box-shadow: 0 22px 55px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.18) inset;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  overscroll-behavior: contain;
}
@media (min-width: 1024px) {
  /* Players reported the fixed 620px stage running well past the fold on
     typical laptop windows, forcing a scroll mid-game just to see the whole
     lane. Beyond just shrinking, crop the tall portrait canvas to a wider,
     shorter 4:5 frame — the game's camera math (out.y = HORIZON + (CAM_H -
     y) * scale, with every in-game height comfortably below CAM_H) makes it
     mathematically impossible for the player, obstacles or collectibles to
     render above the horizon line, so trimming the sky above it only removes
     background, never gameplay. object-fit:cover anchored to the bottom
     keeps the near lane fully framed. */
  .game-stage.run-stage {
    /* as tall as the window allows under the site's top bar (it scrolls into view when a run starts) */
    width: min(660px, 100%, max(380px, calc((100vh - 96px) * 0.8)));
    aspect-ratio: 4 / 5;
  }
  .run-stage .run-canvas, .run-stage .run-foreground {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center bottom;
  }
}

/* ----- Run page: compact hero + premium dark arcade frame (game + side panel) ----- */
.run-page-hero .eyebrow { justify-content: center; }
.run-page-hero h1 { text-align: center; margin-bottom: 0; }
.run-page-hero-paw { display: inline-block; }
.run-layout {
  display: flex; flex-wrap: wrap; gap: 34px; align-items: flex-start; justify-content: center;
  max-width: 1180px; margin: 0 auto; padding: 36px;
  background: linear-gradient(160deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
  border-radius: 32px; box-shadow: 0 30px 80px rgba(16,29,48,.35);
  position: relative; overflow: hidden;
}
.run-layout::before {
  content: ""; position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 320px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(217,164,65,.22), transparent 70%);
}
.run-main-column, .run-side-panel { position: relative; z-index: 1; }
.run-main-column { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.run-main-column .game-stage-wrap { flex: 1 1 auto; min-width: 0; }
.run-side-panel {
  flex: 0 0 320px; display: flex; flex-direction: column; gap: 16px;
  align-self: stretch; justify-content: center;
}
.run-side-card {
  background: rgba(255,255,255,.05); border-radius: var(--radius-lg); padding: 20px 22px;
  border: 1px solid rgba(232,194,122,.18);
}
.run-side-card h3 { font-size: 16px; font-weight: 800; color: var(--gold-light); margin: 0 0 8px; }
.run-side-card p { font-size: 13.5px; color: #b9c2d1; line-height: 1.7; margin: 0; }
.run-side-controls { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.run-side-controls li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 600; color: #e7ecf5; }
.run-side-key {
  min-width: 42px; height: 32px; padding: 0 8px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; direction: ltr;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.35); color: var(--gold-light);
  font-weight: 800; font-size: 13px;
}
.run-side-note { font-size: 12px; color: #8b93a5; }
.run-side-stats { display: flex; flex-direction: column; gap: 10px; }
.run-side-stat {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05);
}
.run-side-stat span { font-size: 13px; font-weight: 700; color: #9aa3b5; }
.run-side-stat b { font-size: 16px; font-weight: 800; color: var(--gold-light); }
@media (max-width: 980px) {
  .run-layout { padding: 26px 20px; border-radius: 26px; }
  .run-side-panel { flex: 1 1 100%; order: 2; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; }
  .run-side-card { flex: 1 1 260px; }
  .run-main-column { order: 1; flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .run-side-panel { flex-direction: column; }
  .run-side-card { flex: 1 1 auto; }
}
.run-stage .run-canvas { touch-action: pan-y; }
.run-stage.is-playing, .run-stage.is-playing .run-canvas { touch-action: none; }
.run-foreground {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}
.run-hud {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.run-hud-end { display: flex; align-items: center; gap: 5px; }
.run-chip {
  display: flex; align-items: center; gap: 6px; height: 33px; padding: 0 11px;
  border-radius: 999px; background: rgba(16,29,48,.76); border: 1px solid rgba(232,194,122,.3);
  color: #fff; font-weight: 800; font-size: 13.5px; line-height: 1;
  box-shadow: 0 5px 13px rgba(0,0,0,.16);
}
.run-chip svg { width: 18px; height: 18px; flex-shrink: 0; }
.run-hearts { gap: 2px; padding: 0 10px; }
.run-heart { color: #ea3a4f; transition: opacity .25s ease, transform .25s ease; }
.run-heart.off { opacity: .25; transform: scale(.82); }
.run-best-chip { padding: 0 10px 0 8px; }
.run-best-chip svg { width: 21px; }
.run-best-text { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.run-best-text small { font-size: 8.5px; font-weight: 700; color: var(--gold-light); }
.run-pause-btn {
  width: 33px; height: 33px; border-radius: 50%; flex-shrink: 0; pointer-events: auto;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16,29,48,.76); border: 1px solid rgba(232,194,122,.3); color: #fff;
}
.run-pause-btn svg { width: 13px; height: 13px; }
.run-hints {
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 5;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  pointer-events: none; transition: opacity .6s ease, transform .6s ease;
}
.run-hints.is-hidden { opacity: 0; transform: translateY(14px); }
.run-hint {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 10px 6px 9px; border-radius: 16px;
  background: rgba(16,29,48,.74); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.35;
}
.run-hint svg { width: 50px; height: 30px; }
.run-overlay { background: linear-gradient(160deg, rgba(22,38,63,.93), rgba(10,20,34,.95)); }
.run-overlay.run-start {
  justify-content: flex-start; padding-top: 24%;
  background: linear-gradient(180deg, rgba(10,20,34,.18) 0%, rgba(10,20,34,.42) 50%, rgba(10,20,34,.12) 100%);
}
.run-start-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 300px;
  padding: 20px 18px 16px; border-radius: 22px;
  background: rgba(16,29,48,.84); border: 1px solid rgba(232,194,122,.32);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.run-title {
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif;
  font-size: 30px; font-weight: 800; color: var(--gold-light); line-height: 1.15;
}
.run-kbd-hint { color: #9ba6b8; font-size: 12px; }
.run-overlay-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.run-ghost-btn {
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); color: #fff;
}
.run-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; max-width: 320px; }
.run-stat {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.25); border-radius: 14px;
}
.run-stat span { font-size: 11.5px; color: #b7c0cf; }
.run-stat b { font-size: 20px; color: var(--gold-light); }
@media (max-width: 560px) {
  .game-stage.run-stage { width: min(calc(100vw - 16px), max(320px, calc((100vh - 160px) * 0.6))); border-radius: 18px; }
  .run-title { font-size: 25px; }
  .run-overlay { gap: 11px; padding: 18px; }
  .run-hud { top: 10px; left: 9px; right: 9px; gap: 4px; }
  .run-chip { height: 34px; padding: 0 10px; font-size: 14px; gap: 5px; }
  .run-chip svg { width: 18px; height: 18px; }
  .run-best-chip svg { width: 21px; }
  .run-hearts { padding: 0 9px; gap: 2px; }
  .run-pause-btn { width: 34px; height: 34px; }
  .run-hint { font-size: 10.5px; padding: 8px 4px; border-radius: 13px; }
  .run-hint svg { width: 42px; height: 26px; }
}
@supports (height: 100svh) {
  @media (max-width: 560px) {
    .game-stage.run-stage { width: min(calc(100vw - 16px), max(320px, calc((100svh - 160px) * 0.6))); }
  }
}
@media (max-width: 560px) {
  .game-hud-chip { padding: 6px 11px; font-size: 12px; }
  .game-overlay h3 { font-size: 18px; }
}

/* ----- Bis Bis Run: profile chip on the start card ----- */
.run-profile-chip {
  display: flex; gap: 10px; font-size: 12.5px; font-weight: 700; color: #d7dce6;
}
.run-profile-chip b { color: var(--gold-light); }

/* ----- Bis Bis Run: customize screen (coins, levels, characters/accessories/worlds) ----- */
.run-shop {
  width: 100%; max-width: 480px; margin: 0 auto;
  background: linear-gradient(160deg, #16263f 0%, var(--navy) 55%, #0a1422 100%);
  border-radius: 22px; padding: 16px; color: #fff;
  box-shadow: 0 20px 50px rgba(16,29,48,.25);
}
.run-shop-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.run-shop-close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.run-shop-close svg { width: 17px; height: 17px; }
.run-shop-coins {
  display: flex; align-items: center; gap: 4px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: rgba(217,164,65,.16); border: 1px solid rgba(232,194,122,.4);
  font-weight: 800; font-size: 14px; color: var(--gold-light); white-space: nowrap;
}
.run-shop-level { flex: 1; min-width: 0; }
.run-shop-level-label { font-size: 12px; font-weight: 700; color: #cfd6e2; margin-bottom: 3px; }
.run-shop-level-label b { color: var(--gold-light); }
.run-shop-level-bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.run-shop-level-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 999px; transition: width .3s ease; }
.run-shop-level-text { font-size: 10.5px; color: #9aa3b5; margin-top: 2px; text-align: left; direction: ltr; }

.run-shop-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.run-shop-tab {
  flex: 1; min-width: 0; padding: 10px 6px; border-radius: 999px; text-align: center;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: #cfd6e2; font-size: 12.5px; font-weight: 800;
}
.run-shop-tab.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.run-shop-preview { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.run-shop-arrow {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.run-shop-arrow svg { width: 17px; height: 17px; }
.run-shop-preview-stage {
  width: 180px; height: 180px; border-radius: 20px; flex-shrink: 0;
  background: radial-gradient(ellipse at 50% 35%, rgba(232,194,122,.18), transparent 70%), rgba(255,255,255,.04);
  border: 1px solid rgba(232,194,122,.22);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.run-shop-preview-stage canvas { width: 100%; height: 100%; }
.run-shop-preview-name { text-align: center; font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.run-shop-action {
  display: block; width: 100%; padding: 12px; border-radius: 999px;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 14px;
  margin-bottom: 16px;
}
.run-shop-action.is-selected { background: rgba(63,207,110,.18); color: #7fd99a; border: 1px solid rgba(63,207,110,.4); }
.run-shop-action.is-locked { background: rgba(255,255,255,.08); color: #9aa3b5; border: 1px solid rgba(255,255,255,.14); }

.run-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 260px; overflow-y: auto; padding-bottom: 2px; }
.run-shop-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; min-width: 0; padding: 8px 4px 9px; border-radius: 14px; background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.1); text-align: center;
}
.run-shop-card .name { word-break: break-word; }
.run-shop-card.active { border-color: var(--gold); background: rgba(217,164,65,.14); }
.run-shop-card canvas { width: 54px; height: 54px; }
.run-shop-card .name { font-size: 10.5px; font-weight: 700; color: #e6eaf0; line-height: 1.2; }
.run-shop-card .status { font-size: 9.5px; font-weight: 800; color: #9aa3b5; }
.run-shop-card.locked canvas { opacity: .45; filter: grayscale(.4); }
.run-shop-card .lock-badge {
  position: absolute; top: 5px; left: 5px; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(16,29,48,.8); display: flex; align-items: center; justify-content: center;
}
.run-shop-card .lock-badge svg { width: 9px; height: 9px; color: var(--gold-light); }
@media (max-width: 560px) {
  .run-shop-preview-stage { width: 150px; height: 150px; }
  .run-shop-grid { grid-template-columns: repeat(3, 1fr); max-height: 220px; }
}

/* ===== About & Contact pages ===== */
.about-page, .contact-page { padding-top: 56px; padding-bottom: 72px; }
.about-hero, .contact-hero { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.about-eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(217,164,65,.14); color: var(--gold);
  font-size: 13px; font-weight: 700;
}
.about-hero h1, .contact-hero h1 { font-size: 40px; font-weight: 800; color: var(--text-dark); margin: 0 0 12px; }
.about-lead { font-size: 16px; line-height: 1.8; color: #4a5568; margin: 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card {
  padding: 28px; border-radius: 22px;
  background: var(--navy); color: var(--text-light);
  border: 1px solid rgba(232,194,122,.2);
  box-shadow: 0 18px 40px rgba(16,29,48,.12);
}
.about-card h2 { font-size: 20px; margin: 0 0 12px; color: var(--gold-light); }
.about-card p { margin: 0; line-height: 1.85; font-size: 15px; }
.about-card ul { margin: 0; padding: 0 18px 0 0; line-height: 2; font-size: 15px; }
.about-card-wide { grid-column: 1 / -1; }

.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.contact-form {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px; border-radius: 22px; background: #fff;
  border: 1px solid #dfe6f0; box-shadow: 0 18px 40px rgba(16,29,48,.08);
}
.contact-form textarea {
  font-family: inherit; font-size: 14px; resize: vertical;
  padding: 13px 14px; border-radius: 10px; border: 1px solid #d7dfeb; background: #fff; color: var(--text-dark);
}
.contact-msg { margin: 0; font-size: 14px; min-height: 0; }
.contact-msg:empty { display: none; }
.contact-msg.error { color: #c0392b; }
.contact-msg.success { color: #2e7d32; }
.contact-info {
  padding: 28px; border-radius: 22px; background: var(--navy); color: var(--text-light);
  border: 1px solid rgba(232,194,122,.2); display: flex; flex-direction: column; gap: 12px;
  align-self: start;
}
.contact-info h2 { font-size: 20px; margin: 0 0 6px; color: var(--gold-light); }
.contact-info-row {
  display: block; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--text-light); font-weight: 600;
}
.contact-info-row:hover { background: rgba(217,164,65,.14); color: var(--gold-light); }
.contact-social { margin-top: 6px; }
@media (max-width: 720px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-hero h1, .contact-hero h1 { font-size: 30px; }
}

/* ===== Contact page: send animation ===== */
.contact-form { position: relative; overflow: hidden; }
.contact-form input, .contact-form textarea { transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.2); }
.contact-form .form-field:focus-within label { color: var(--gold); }
.contact-info-row { display: flex; align-items: center; gap: 12px; transition: background .25s, color .25s; }
.contact-info-row[hidden] { display: none; }
.contact-info-row svg { width: 22px; height: 22px; flex: none; color: var(--gold-light); }

#contact-submit { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
#contact-submit .cs-icon { display: inline-flex; width: 20px; height: 20px; transition: transform .45s cubic-bezier(.5,-0.4,.5,1.4), opacity .3s; }
#contact-submit .cs-icon svg { width: 100%; height: 100%; }
#contact-submit:hover .cs-icon { transform: translate(-3px, -3px) rotate(-8deg); }
.contact-form.is-sending #contact-submit { pointer-events: none; animation: cs-squish .5s both; }
.contact-form.is-sending #contact-submit .cs-icon { transform: translate(-140%, -140%) scale(.4); opacity: 0; }
@keyframes cs-squish { 0% { transform: scale(1); } 30% { transform: scale(.94, .88); } 100% { transform: scale(1); } }

.contact-form .form-field, .contact-form .contact-msg, .contact-form #contact-submit { transition: opacity .5s, transform .6s cubic-bezier(.6,0,.4,1), filter .5s; }
.contact-form.is-sending .form-field, .contact-form.is-sending .contact-msg { opacity: 0; transform: scale(.82) translateY(14px); filter: blur(3px); }
.contact-form.is-sending #contact-submit { opacity: 0; transition-delay: .35s; }
.contact-form.is-sent .form-field, .contact-form.is-sent .contact-msg, .contact-form.is-sent #contact-submit { display: none; }

/* paper plane + trail: lifts off from the middle of the card and flies away top-right */
.contact-flight { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.cf-plane { position: absolute; width: 54px; height: 54px; margin: -27px 0 0 -27px; color: var(--gold); opacity: 0; display: block; }
.cf-plane svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(16,29,48,.25)); }
.cf-dot { position: absolute; width: 9px; height: 9px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold-light); opacity: 0; }
.contact-form.is-sending .cf-plane { animation: cf-fly 1.5s .25s cubic-bezier(.45,0,.35,1) both; }
.contact-form.is-sending .cf-dot { animation: cf-trail 1.5s cubic-bezier(.45,0,.35,1) both; }
.contact-form.is-sending .cf-dot:nth-of-type(1) { animation-delay: .38s; }
.contact-form.is-sending .cf-dot:nth-of-type(2) { animation-delay: .5s; }
.contact-form.is-sending .cf-dot:nth-of-type(3) { animation-delay: .62s; }
.contact-form.is-sending .cf-dot:nth-of-type(4) { animation-delay: .74s; }
@keyframes cf-fly {
  0%   { opacity: 0; transform: translate(0, 24px) scale(.3) rotate(10deg); }
  18%  { opacity: 1; transform: translate(0, 0) scale(1.1) rotate(0); }
  34%  { transform: translate(-10px, 14px) scale(1) rotate(8deg); }
  62%  { opacity: 1; transform: translate(120px, -90px) scale(1) rotate(-6deg); }
  100% { opacity: 0; transform: translate(380px, -330px) scale(.5) rotate(-14deg); }
}
@keyframes cf-trail {
  0%   { opacity: 0; transform: translate(0, 0) scale(1); }
  20%  { opacity: .9; }
  100% { opacity: 0; transform: translate(220px, -190px) scale(.2); }
}

/* success state */
.contact-sent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 28px; opacity: 0; visibility: hidden; }
.contact-form.is-sent .contact-sent { opacity: 1; visibility: visible; transition: opacity .4s; }
.contact-form.is-sent { min-height: 380px; }
.cs-check { width: 92px; height: 92px; color: #2e9e5b; transform: scale(.4); }
.cs-check svg { width: 100%; height: 100%; }
.cs-check circle, .cs-check path { stroke-dasharray: 150; stroke-dashoffset: 150; }
.contact-form.is-sent .cs-check { animation: cs-pop .6s cubic-bezier(.2,1.5,.4,1) .1s both; }
.contact-form.is-sent .cs-check circle { animation: cs-draw .7s .1s ease-out forwards; }
.contact-form.is-sent .cs-check path { animation: cs-draw .5s .65s ease-out forwards; }
@keyframes cs-pop { to { transform: scale(1); } }
@keyframes cs-draw { to { stroke-dashoffset: 0; } }
.contact-sent h3 { margin: 6px 0 0; font-size: 24px; color: var(--text-dark); }
.contact-sent p { margin: 0 0 8px; color: #4a5568; }
.contact-form.is-sent .contact-sent h3, .contact-form.is-sent .contact-sent p, .contact-form.is-sent .contact-sent .btn { animation: cs-rise .5s .8s both; }
@keyframes cs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cs-confetti { position: absolute; left: 50%; top: 38%; width: 0; height: 0; pointer-events: none; }
.cs-confetti span { position: absolute; font-size: 18px; opacity: 0; animation: cs-burst 1.3s .55s cubic-bezier(.15,.8,.3,1) forwards; }
@keyframes cs-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)); }
}
.contact-form .field-error-text { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: #c0392b; animation: contact-shake .4s both; }
.contact-form .field-error { border-color: #c0392b !important; box-shadow: 0 0 0 4px rgba(192,57,43,.15) !important; }
.contact-msg.error { animation: contact-shake .4s both; }
@keyframes contact-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .contact-flight { display: none; }
  .contact-form *, .contact-form *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; transition-delay: 0s !important; }
}

/* ===== Mating listings ===== */
.mating-page { padding-top: 56px; padding-bottom: 72px; }
.mating-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.mating-rules {
  max-width: 880px; margin: 0 auto 36px; padding: 24px 28px; border-radius: 20px;
  background: var(--navy); color: var(--text-light); border: 1px solid rgba(232,194,122,.2);
}
.mating-rules h2 { margin: 0 0 12px; font-size: 18px; color: var(--gold-light); }
.mating-rules ul { margin: 0; padding: 0 18px 0 0; line-height: 1.9; font-size: 14px; }
.mating-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mating-grid .pet-card { margin: 0; }
.mating-details-btn { border: none; font: inherit; cursor: pointer; width: 100%; }
.mating-rules-section { padding-top: 40px; padding-bottom: 80px; }
.mating-rules-section .mating-rules { margin: 0; max-width: none; }
.mating-detail-box { position: relative; max-width: 440px; width: calc(100vw - 32px); max-height: 90vh; overflow-y: auto; padding: 0 0 22px; }
.mating-detail-box img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 18px 18px 0 0; }
.mating-detail-box h3 { margin: 16px 22px 10px; font-size: 22px; }
.mating-detail-list { margin: 0 22px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mating-detail-list div { background: #f1f5fa; border-radius: 12px; padding: 10px 12px; }
.mating-detail-list dt { font-size: 11px; color: #b9832c; font-weight: 700; }
.mating-detail-list dd { margin: 2px 0 0; font-size: 14px; color: var(--navy); font-weight: 600; }
.mating-detail-notes { margin: 0 22px 16px; font-size: 13px; line-height: 1.7; color: #3d4450; }
.mating-detail-close {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--text-dark); border: none; font-size: 20px; cursor: pointer; z-index: 2;
}
.mating-detail-box .btn { margin: 0 22px; width: calc(100% - 44px); }
@media (max-width: 1050px) { .mating-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .mating-grid { grid-template-columns: 1fr; }
  .mating-detail-list { grid-template-columns: 1fr; }
}
.mating-health-notes {
  margin: 0; padding: 10px 12px; border-radius: 10px; background: #f1f5fa;
  font-size: 13px; line-height: 1.7; color: #3d4450;
}

/* ===== User notifications ===== */
.acct-notifications { margin: 8px 0 20px; }
.acct-notifications-head h2 { font-size: 20px; margin: 0 0 12px; }
.acct-notif-list { display: flex; flex-direction: column; gap: 10px; }
.acct-notif {
  display: flex; align-items: stretch; gap: 8px;
  background: #fff; border: 1px solid #dfe6f0; border-radius: 16px; overflow: hidden;
}
.acct-notif.unread { background: #f8fafd; border-color: #e8cf93; }
.acct-notif-main {
  flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  text-align: start; padding: 14px 16px; background: none; border: none; font: inherit; cursor: pointer;
}
.acct-notif-title { font-weight: 800; color: var(--text-dark); font-size: 15px; }
.acct-notif-body { font-size: 14px; color: #4a5568; line-height: 1.7; white-space: pre-line; }
.acct-notif-time { font-size: 12px; color: #8a8f99; }
.acct-notif-delete {
  width: 40px; background: none; border: none; color: #8a8f99; font-size: 20px; cursor: pointer;
}
.acct-notif-delete:hover { color: #c0392b; }
.acct-notif-empty { color: #8a8f99; font-size: 14px; }
.listing-highlight { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 18px; }

/* Bell stays visible in the header on phones too */
body.has-bottom-nav .header-icons #notif-btn { display: flex; }

#notif-btn { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.notif-panel {
  position: fixed; z-index: 170; width: min(360px, calc(100vw - 24px));
  max-height: min(480px, 70vh); overflow-y: auto;
  background: var(--navy); color: var(--text-light);
  border: 1px solid rgba(232,194,122,.2); border-radius: 18px;
  box-shadow: 0 24px 50px rgba(0,0,0,.45);
}
.notif-panel-head { padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--gold-light); }
.notif-panel-guard { padding: 22px 18px; text-align: center; }
.notif-panel-guard p { margin: 0 0 12px; font-size: 14px; }
.notif-panel-list { display: flex; flex-direction: column; }
.notif-panel-empty { margin: 0; padding: 22px 18px; text-align: center; font-size: 14px; color: #9ba6b8; }
.notif-item { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255,255,255,.06); }
.notif-item.unread { background: rgba(217,164,65,.08); }
.notif-item-main {
  flex: 1; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: start;
  padding: 12px 16px; background: none; border: none; color: inherit; font: inherit; cursor: pointer;
}
.notif-item-main:hover { background: rgba(255,255,255,.04); }
.notif-item-title { font-weight: 800; font-size: 14px; color: var(--text-light); }
.notif-item-body { font-size: 13px; line-height: 1.6; color: #c9d1de; white-space: pre-line; }
.notif-item-time { font-size: 11px; color: #8a93a3; }
.notif-item-delete { width: 36px; background: none; border: none; color: #8a93a3; font-size: 20px; cursor: pointer; }
.notif-item-delete:hover { color: #e57373; }

/* Phone header: bell sits before the cart, the mascot button sits next to the logo */
@media (max-width: 720px) {
  body.has-bottom-nav .site-header .header-icons { display: contents; }
  body.has-bottom-nav .site-header .lang-switch { order: 0; }
  body.has-bottom-nav .site-header #notif-btn { order: 1; }
  body.has-bottom-nav .site-header .icon-btn[href$="cart"], body.has-bottom-nav .site-header .icon-btn[href$="cart.html"] { order: 2; }
body.has-bottom-nav .site-header .icon-btn[href$="favorites"], body.has-bottom-nav .site-header .icon-btn[href$="favorites.html"] { order: 2; margin-inline-end: auto; }
  body.has-bottom-nav .site-header .mascot-toggle { order: 3; }
  body.has-bottom-nav .site-header .logo-group { order: 4; }
}

/* ===== Listing form pages (inline version of the listing modal) ===== */
#listing-overlay.listing-inline { position: static; background: none; padding: 0; display: flex; justify-content: center; }
#listing-overlay.listing-inline .auth-modal.listing-modal { width: 100%; max-width: 620px; margin: 0 auto; max-height: none; overflow: visible; }
.listing-form-page { padding-top: 48px; padding-bottom: 80px; }
.listing-form-page .about-hero { margin-bottom: 28px; }
.listing-back { text-align: center; margin: 24px 0 0; }
.listing-back a { color: var(--gold); font-weight: 700; }

/* Main listing sections (التبنّي | المفقودات | التزاوج) as equal tabs above the filters */
.listing-sections { margin: 0 0 22px; }
.listing-sections-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.listing-section-tab {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 14px 10px; font-size: 16px; font-weight: 800;
}
@media (max-width: 720px) { .listing-section-tab { min-height: 48px; font-size: 14px; } }

/* Homepage adoption panel: section shortcuts (التبنّي | المفقودات | التزاوج) */
.panel-sections { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-sections a {
  padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; color: var(--navy); border: 1px solid #d7dfeb; box-shadow: 0 6px 14px rgba(16,29,48,.12);
}
.panel-sections a:hover { background: var(--navy); color: var(--gold-light); }

/* Store: empty category state */
.store-empty-state {
  grid-column: 1 / -1; width: 100%; position: relative; overflow: hidden;
  max-width: 640px; margin: 20px auto 10px; padding: 34px 28px 32px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(217,164,65,.14), transparent 70%), #fff;
  border: 1px solid rgba(217,164,65,.35); border-radius: 28px; box-shadow: 0 22px 46px rgba(16,29,48,.09);
  animation: sesIn .7s cubic-bezier(.2,.9,.3,1.1) backwards;
}
@keyframes sesIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.ses-art { position: relative; width: min(320px, 82%); margin: 0 auto 12px; }
.ses-art img { position: relative; z-index: 2; width: 100%; height: auto; display: block; border-radius: 22px; animation: sesFloat 4s ease-in-out infinite; }
@keyframes sesFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.ses-ring { position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; margin: -38% 0 0 -38%; border-radius: 50%; border: 2px solid rgba(217,164,65,.4); animation: sesRing 3.2s ease-out infinite; }
.ses-ring.r2 { animation-delay: 1.6s; }
@keyframes sesRing { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.ses-spark { position: absolute; z-index: 3; width: 16px; height: 16px; color: #e0a93d; animation: sesTwinkle 2.6s ease-in-out infinite; }
.ses-spark.s1 { top: 6%; left: 8%; }
.ses-spark.s2 { top: 18%; right: 6%; width: 11px; height: 11px; animation-delay: .9s; }
.ses-spark.s3 { bottom: 12%; left: 16%; width: 12px; height: 12px; animation-delay: 1.7s; }
@keyframes sesTwinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .35; } 50% { transform: scale(1.15) rotate(25deg); opacity: 1; } }
.store-empty-state h3 { margin: 8px 0 6px; font-size: 22px; color: var(--navy); font-weight: 900; }
.store-empty-state p { margin: 0 0 20px; font-size: 14.5px; line-height: 1.8; color: #6b7280; }
.ses-btn { transition: transform .2s, box-shadow .25s; }
.ses-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,29,48,.25); }
.ses-chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(217,164,65,.45); }
.ses-chips > span { width: 100%; font-size: 13px; font-weight: 800; color: var(--muted); }
.ses-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid #e3dccd; background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy); cursor: pointer; animation: sesChip .5s ease backwards; animation-delay: calc(var(--i, 0) * 70ms + .3s); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.ses-chips button b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; background: rgba(217,164,65,.18); color: #9a6b13; transition: background .25s, color .25s; }
.ses-chips button:hover { background: var(--navy); color: var(--gold-light); border-color: var(--navy); transform: translateY(-2px); }
.ses-chips button:hover b { background: rgba(232,194,122,.25); color: #f4d58b; }
@keyframes sesChip { from { opacity: 0; transform: translateY(10px) scale(.94); } }
.ses-suggest { grid-column: 1 / -1; margin-top: 30px; animation: sesIn .7s .2s cubic-bezier(.2,.9,.3,1.1) backwards; }
.ses-suggest h4 { margin: 0 0 16px; font-size: 19px; font-weight: 900; color: var(--navy); }
@media (max-width: 720px) {
  .store-empty-state { padding: 26px 18px 26px; border-radius: 22px; }
  .store-empty-state h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-empty-state, .ses-art img, .ses-ring, .ses-spark, .ses-chips button, .ses-suggest { animation: none !important; }
}
/* Multi-animal listings */
.listing-optional { font-size: 12px; color: #8a8f99; font-weight: 500; }
.listing-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 4px; scroll-snap-type: x mandatory; }
.listing-gallery img { flex: 0 0 100%; height: 240px; object-fit: cover; border-radius: 18px 18px 0 0; scroll-snap-align: start; }
.listing-gallery img:first-child { border-radius: 18px 18px 0 0; }

.pet-img-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(232,194,122,.35);
  background: rgba(16,29,48,.6); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  transition: background .2s ease;
}
.pet-img-nav:hover { background: var(--gold); color: var(--navy); }
.pet-img-nav svg { width: 18px; height: 18px; }
.pet-img-nav.prev { inset-inline-start: 12px; }
.pet-img-nav.next { inset-inline-end: 12px; }
.listing-desc { margin: 12px 20px 0; font-size: 13px; line-height: 1.7; color: #4a5568; white-space: pre-line; }

/* Status dots: adoption green, mating blue (lost keeps its red dot) */
.adoption-page .pet-status[data-value="للتبنّي"] .dot { background: #3ecf6e; }
.adoption-page .pet-status[data-value="للتزاوج"] .dot { background: #6aa8ff; }

/* Login cat: eyes covered by paws while the password is hidden */
/* ===== One-time code screen: circular cells ===== */
.otp-row { --cs: min(50px, calc((100vw - 128px) / 6)); display: flex; justify-content: center; gap: 7px; margin: 18px 0 10px; direction: ltr; }
.otp-cell { position: relative; width: var(--cs); height: var(--cs); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); transition: box-shadow .25s, background .25s; }
.otp-cell.is-focus { background: rgba(217,164,65,.12); box-shadow: 0 0 0 4px rgba(217,164,65,.14); }
.otp-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.otp-track { fill: none; stroke: rgba(232,194,122,.3); stroke-width: 2.5; transition: stroke .3s; }
.otp-prog { fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset .55s cubic-bezier(.4,0,.2,1), stroke .3s; }
.otp-cell.is-filled .otp-prog { stroke-dashoffset: 0; }
.otp-cell input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; background: transparent; font-size: 16px; cursor: text; z-index: 2; }
.otp-digit { font-size: calc(var(--cs) * .46); font-weight: 800; color: var(--gold-light); line-height: 1; }
.otp-cell.is-filled .otp-digit { animation: otp-in .65s cubic-bezier(.2,.8,.2,1) both; }
/* the digit swings in along a small circle around the cell, then settles in the middle */
@keyframes otp-in {
  0%   { opacity: 0; transform: rotate(-320deg) translateX(calc(var(--cs) * .42)) rotate(320deg) scale(.3); }
  55%  { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) translateX(0) rotate(0deg) scale(1); }
}
@keyframes otp-out {
  0%   { opacity: 1; transform: rotate(0deg) translateX(0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: rotate(320deg) translateX(calc(var(--cs) * .42)) rotate(-320deg) scale(.3); }
}
.otp-orbit { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--gold-light); opacity: 0; pointer-events: none; box-shadow: 0 0 8px rgba(232,194,122,.9); }
.otp-cell.is-focus:not(.is-filled) .otp-orbit { opacity: 1; animation: otp-orbit 1.6s linear infinite; }
@keyframes otp-orbit {
  from { transform: rotate(0deg) translateY(calc(var(--cs) / -2)); }
  to   { transform: rotate(360deg) translateY(calc(var(--cs) / -2)); }
}
/* checking the code: the rings chase each other around */
.otp-row.is-verifying .otp-ring { animation: otp-ring-spin 1s ease-in-out infinite; }
.otp-row.is-verifying .otp-cell:nth-child(2) .otp-ring { animation-delay: .08s; }
.otp-row.is-verifying .otp-cell:nth-child(3) .otp-ring { animation-delay: .16s; }
.otp-row.is-verifying .otp-cell:nth-child(4) .otp-ring { animation-delay: .24s; }
.otp-row.is-verifying .otp-cell:nth-child(5) .otp-ring { animation-delay: .32s; }
.otp-row.is-verifying .otp-cell:nth-child(6) .otp-ring { animation-delay: .4s; }
@keyframes otp-ring-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.otp-row.is-success .otp-prog, .otp-row.is-success .otp-track { stroke: #38b26a; }
.otp-row.is-success .otp-digit { color: #86e3a8; }
.otp-row.is-success .otp-cell { animation: otp-pop .6s cubic-bezier(.3,1.6,.5,1) both; }
.otp-row.is-success .otp-cell:nth-child(2) { animation-delay: .07s; }
.otp-row.is-success .otp-cell:nth-child(3) { animation-delay: .14s; }
.otp-row.is-success .otp-cell:nth-child(4) { animation-delay: .21s; }
.otp-row.is-success .otp-cell:nth-child(5) { animation-delay: .28s; }
.otp-row.is-success .otp-cell:nth-child(6) { animation-delay: .35s; }
@keyframes otp-pop { 0% { transform: scale(1); } 45% { transform: scale(1.28) rotate(12deg); } 100% { transform: scale(1) rotate(0); } }
.otp-row.is-error { animation: otp-shake .5s; }
.otp-row.is-error .otp-prog, .otp-row.is-error .otp-track { stroke: #e5675a; }
.otp-row.is-error .otp-digit { color: #ff9a8e; animation: otp-out .55s .2s ease-in forwards; }
@keyframes otp-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
#auth-panel-otp .otp-email { color: var(--gold-light); font-weight: 700; }
#auth-panel-otp .otp-hint { font-size: 12.5px; opacity: .75; margin-top: 12px; }
#otp-resend:disabled { opacity: .55; cursor: default; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
  .otp-row *, .otp-row { animation: none !important; transition: none !important; }
}

/* ===== Login entrance: the cat pulling the box on a rope ===== */
.auth-overlay.is-entering { overflow: hidden !important; }
.push-cat { position: fixed; z-index: 206; pointer-events: none; will-change: transform; }
.pc-svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 12px rgba(0,0,0,.35)); }
.pc-leg { transform-box: fill-box; transform-origin: 50% 8%; }
.pc-tail { transform-box: fill-box; transform-origin: 90% 90%; }
.pc-lean { transform-box: fill-box; transform-origin: 50% 100%; transform: rotate(7deg); }
.push-cat.is-running .pc-bob { animation: pc-bob .42s ease-in-out infinite; }
.push-cat.is-running .pc-leg-b1, .push-cat.is-running .pc-leg-f2 { animation: pc-leg-a .42s ease-in-out infinite; }
.push-cat.is-running .pc-leg-b2, .push-cat.is-running .pc-leg-f1 { animation: pc-leg-b .42s ease-in-out infinite; }
.push-cat.is-running .pc-tail { animation: pc-tail .8s ease-in-out infinite; }
.push-cat.is-done .pc-lean { transform: rotate(0); transition: transform .5s ease; }
.push-cat.is-done .pc-tail { animation: pc-tail 1s ease-in-out infinite; }
.push-rope { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 205; pointer-events: none; overflow: visible; }
.push-rope path { fill: none; stroke-linecap: round; }
.push-rope .pr-shadow { stroke: rgba(0,0,0,.28); stroke-width: 6; filter: blur(2px); }
.push-rope .pr-rope { stroke: #7a4f26; stroke-width: 7; }
.push-rope .pr-twist { stroke: #d8b274; stroke-width: 7; stroke-dasharray: 3 6; opacity: .85; }
.push-rope .pr-ring { fill: none; stroke: #e6bd5c; stroke-width: 3.5; }
@keyframes pc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes pc-leg-a { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(30deg); } }
@keyframes pc-leg-b { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(-30deg); } }
@keyframes pc-tail { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@media (prefers-reduced-motion: reduce) { .push-cat, .push-rope { display: none; } }

.auth-cat { display: none; justify-content: center; margin: -6px 0 2px; }
.auth-cat-svg { width: min(230px, 64vw); height: auto; overflow: visible; }
.auth-cat .cat-paw-l,
.auth-cat .cat-paw-r { transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.auth-cat.is-covered .cat-paw-l { transform: translate(14px, -48px); }
.auth-cat.is-covered .cat-paw-r { transform: translate(-14px, -48px); }
.auth-cat .cat-head { transform-origin: 100px 140px; transition: transform .45s cubic-bezier(.4, 0, .2, 1); }
.auth-cat:not(.is-covered) .cat-head { transform: rotate(-5deg); }
.auth-cat .cat-pupils { transform: translate(var(--gaze-x, 0px), var(--gaze-y, 0px)); transition: transform .35s ease; }
.auth-cat.look-field { --gaze-y: 4px; }
.auth-cat .cat-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: cat-blink 4.8s infinite; }
.auth-cat.is-covered .cat-lid { animation: none; }
@keyframes cat-blink {
  0%, 92%, 100% { transform: scaleY(0); }
  95% { transform: scaleY(1); }
  98% { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-cat *, .auth-cat { transition: none !important; animation: none !important; }
}

/* Login view: transparent navy card, gold touches, cat peeking over the top edge */
.auth-overlay:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) {
  align-items: flex-start;
  overflow-y: auto;
  padding-top: calc(0.75 * min(200px, 58vw) + 28px);
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) {
  max-height: none;
  overflow: visible;
  margin-bottom: 24px;
  background: linear-gradient(160deg, rgba(22, 38, 63, .62) 0%, rgba(10, 20, 34, .72) 100%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(232, 194, 122, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(232, 194, 122, .25);
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-panel { position: static; }
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-cat {
  position: absolute;
  left: 50%;
  top: calc(-0.75 * min(200px, 58vw) + 26px);
  transform: translateX(-50%);
  margin: 0;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-cat-svg { width: min(200px, 58vw); }
.auth-login-head { text-align: center; margin: 0 0 18px; }
.auth-login-head h3 { margin: 0 0 6px; font-size: 26px; font-weight: 800; color: var(--gold-light); }
.auth-login-head p { margin: 0; font-size: 14px; color: #9aa3b5; }
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-email,
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-password {
  height: 52px;
  border-radius: 16px;
  padding-right: 46px;
  border-color: rgba(232, 194, 122, .2);
  background-color: rgba(255, 255, 255, .05);
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px 18px;
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c27a' stroke-width='1.8'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8c27a' stroke-width='1.8'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-form .btn-gold {
  height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f3d27e 0%, #d9a441 100%);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(217, 164, 65, .35);
}
@media (max-width: 480px) {
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) { padding: 28px 20px 22px; }
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) { padding-top: 64px; }
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-close { top: 18px; left: 18px; }

/* Signup uses the same card, cat and field treatment as login */
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-cat {
  display: flex;
  transform-origin: 50% 0;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .form-field input {
  height: 52px;
  border-radius: 16px;
  border-color: rgba(232, 194, 122, .2);
  background-color: rgba(255, 255, 255, .05);
}
.auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #signup-form .btn-gold {
  height: 54px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f3d27e 0%, #d9a441 100%);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(217, 164, 65, .35);
}

/* Phones: a more compact signup card, so the whole form fits within one screen with the cat above it */
@media (max-width: 480px) {
  .auth-modal:has(#auth-panel-signup:not([hidden])) { padding: 52px 20px 18px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-cat-svg { width: min(170px, 52vw); }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-cat { top: calc(-0.75 * min(170px, 52vw) + 22px); }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head { margin-bottom: 12px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head h3 { font-size: 22px; margin-bottom: 2px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head p { font-size: 13px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) #signup-form { gap: 10px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .form-field input { height: 46px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .field-hint { margin: 0; font-size: 11px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) #signup-form .btn-gold { height: 48px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-hint { margin: 4px 0 0; font-size: 11px; }
  .auth-overlay:has(#auth-panel-signup:not([hidden])) { padding-top: calc(0.75 * min(170px, 52vw) + 14px); }
}

/* Keyboard-aware layout (phones only). The big cat steps aside, the form is pinned to the visible area, and a small cat sits beside each password label. */
#auth-overlay .auth-modal .form-field .auth-cat--mini { display: none; }
@media (max-width: 480px) {
  #auth-overlay.auth-overlay.is-kb-open {
    top: var(--vv-top, 0px);
    bottom: auto;
    height: var(--vv-height, 100vh);
    padding: 10px 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    align-items: flex-start;
  }
  #auth-overlay.auth-overlay.is-kb-open .auth-modal { margin-bottom: 0; }
  .form-field.has-mini-cat { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: end; }
  .form-field.has-mini-cat > label { grid-column: 1; grid-row: 1; }
  .form-field.has-mini-cat > .pw-field { grid-column: 1 / -1; grid-row: 2; }
  .form-field.has-mini-cat > .pw-hint { grid-column: 1 / -1; }
  #auth-overlay .auth-modal .form-field .auth-cat--mini {
    display: flex;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    margin: 0;
    z-index: auto;
    transform: none;
    grid-column: 2;
    grid-row: 1;
    height: 38px;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
  }
  #auth-overlay .auth-modal .form-field .auth-cat--mini .auth-cat-svg { width: 52px; height: 38px; }
}

/* Phones: the big cat is hidden; small cats stay beside the password and confirm-password labels */
@media (max-width: 480px) {
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) {
    display: flex;
    flex-direction: column;
  }
  #auth-overlay .auth-modal .auth-cat:not(.auth-cat--mini) {
    display: none;
    order: 10;
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    margin: 16px 0 0;
    z-index: auto;
    transform: none;
  }
  #auth-overlay.auth-overlay:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) {
    padding-top: 20px;
  }
}

/* Hero paw prints: faint marks in empty space; gold glow + name fade on hover or tap */
.hero-paws { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-paw {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-paw svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: rgba(255, 255, 255, .16);
  transition: fill .5s ease, filter .5s ease, transform .5s ease;
}
.hero-paw-name {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  font-family: 'Tajawal', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--gold-light);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 29, 48, .62);
  border: 1px solid rgba(232, 194, 122, .35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.hero-paw:hover svg,
.hero-paw:focus-visible svg,
.hero-paw.is-on svg {
  fill: var(--gold-light);
  transform: scale(1.08);
  filter: drop-shadow(0 0 6px rgba(232, 194, 122, .9)) drop-shadow(0 0 16px rgba(217, 164, 65, .5));
}
.hero-paw:hover .hero-paw-name,
.hero-paw:focus-visible .hero-paw-name,
.hero-paw.is-on .hero-paw-name {
  opacity: 1;
  transform: translate(-50%, 0);
}
.hero-paw:focus-visible { outline: none; }
@media (max-width: 768px) {
  .hero-paw svg { width: 30px; height: 30px; }
  .hero-paw { left: var(--mx); top: var(--my); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-paw svg, .hero-paw-name { transition: none; }
}

/* Bottom-nav cat: a tiny cat that sits on the nav edge above the active tab (mobile only, the nav is hidden on desktop) */
.bottom-nav-cat {
  position: absolute;
  bottom: calc(100% - 3px);
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  transform-origin: 50% 100%;
  transition: opacity .3s ease, bottom .33s ease;
  z-index: 1;
}
.bottom-nav-cat.is-on { opacity: 1; }
.bottom-nav-cat.is-high { bottom: calc(100% + 14px); }



/* The cat is a PNG now: centered on its anchor, with a soft gold glow and a light bob */
.bottom-nav-cat .nav-cat-img {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 46px;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(232, 194, 122, .55)) drop-shadow(0 4px 6px rgba(0, 0, 0, .35));
  animation: navCatBob 2.6s ease-in-out infinite;
}
@keyframes navCatBob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -2px); } }
@media (prefers-reduced-motion: reduce) {
  .bottom-nav-cat .nav-cat-img { animation: none; }
}

/* Bis Bis initiative: a small, quiet note in the hero and under the cart summary */
.hero-content .hero-impact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 44px 0 0;
  padding-inline-start: 12px;
  border-inline-start: 1px solid rgba(232, 194, 122, .35);
  font-size: 13px;
  line-height: 1.7;
  color: #c9d0dc;
}
.hero-impact strong { font-size: 14px; font-weight: 800; color: var(--gold-light); letter-spacing: .02em; }
.cart-impact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(217, 164, 65, .35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.cart-impact strong { font-size: 13.5px; font-weight: 800; color: var(--gold); }

/* ===== Bis Bis ID (هوية حيوانك) ===== */

/* --- Page and form --- */
.pid-page { padding-block: 40px 80px; }
.pid-wrap { display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.pid-hero h1 { margin: 10px 0 6px; font-size: clamp(26px, 4vw, 36px); }
.pid-hero p { margin: 0; color: var(--muted); }
.pid-card {
  background: #fff; border: 1px solid rgba(16,29,48,.08); border-radius: 22px;
  padding: 22px; box-shadow: 0 16px 40px rgba(16,29,48,.08);
  display: flex; flex-direction: column; gap: 16px;
}
.pid-gate { align-items: center; text-align: center; }
.pid-gate p { margin: 0; color: var(--text-dark); }
.pid-form { display: flex; flex-direction: column; gap: 18px; }
.pid-photo-pick {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 160px; border: 1.5px dashed rgba(217,164,65,.5); border-radius: 18px;
  background: #faf7f0; cursor: pointer; overflow: hidden;
}
.pid-photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pid-photo-hint { font-weight: 700; color: var(--navy); }
.pid-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pid-grid > * { min-width: 0; }
.pid-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-dark); min-width: 0; }
.pid-field input, .pid-field select {
  display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; height: 46px; border-radius: 14px;
  border: 1px solid rgba(16,29,48,.14); padding: 0 14px; font: inherit; background: #fff; color: var(--text-dark);
}
.pid-field input[type="date"] { -webkit-appearance: none; appearance: none; }
/* Selects look the same as the other fields on every browser (iOS draws them grey by default) */
.pid-field select {
  -webkit-appearance: none; appearance: none; padding-inline-end: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101d30' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat left 14px center / 16px;
}
:root[dir="ltr"] .pid-field select { background-position: right 14px center; }
.pid-field input:focus, .pid-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.pid-section-title { font-size: 14px; font-weight: 800; color: var(--navy); }
.pid-privacy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.pid-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dark); cursor: pointer; }
.pid-toggle input { width: 18px; height: 18px; accent-color: var(--gold); }
.pid-msg { margin: 0; font-size: 13px; color: var(--muted); min-height: 16px; }
#pid-msg:empty, #pid-result-msg:empty { display: none; }
.pid-submit { width: 100%; justify-content: center; }
.pid-result { display: flex; flex-direction: column; gap: 18px; }
.pid-result-card { display: flex; justify-content: center; }
.pid-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.pid-ghost { background: #fff; color: var(--navy); border: 1px solid rgba(16,29,48,.2); }
.pid-mine #pid-list { display: flex; flex-direction: column; gap: 10px; }
.pid-list-item {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  border-radius: 14px; border: 1px solid rgba(16,29,48,.1); background: #faf7f0; text-align: start; cursor: pointer;
}
.pid-list-item span { font-size: 12px; color: var(--muted); }
.pid-public-host { display: flex; justify-content: center; }

/* --- Photo crop tool --- */
.pid-crop-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pid-crop {
  position: relative; width: 240px; height: 240px; border-radius: 50%; overflow: hidden;
  border: 3px solid #d9a441; background: #faf7f0; box-shadow: 0 10px 30px rgba(16,29,48,.2);
  cursor: grab; touch-action: none; user-select: none;
}
.pid-crop:active { cursor: grabbing; }
.pid-crop img { position: absolute; max-width: none; pointer-events: none; }
.pid-zoom-row { display: flex; align-items: center; gap: 12px; width: min(300px, 100%); font-size: 13px; font-weight: 700; color: var(--navy); }
.pid-zoom-row input { flex: 1; accent-color: var(--gold); }
.pid-crop-wrap .pid-msg { text-align: center; }

/* --- Live preview --- */
.pid-live-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#pid-live { display: flex; justify-content: center; width: 100%; }

/* --- Design options: a scaled sample card per design, gold border on the selected one --- */
.pid-design-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.pid-design-option { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; cursor: pointer; }
.pid-design-option input { position: absolute; opacity: 0; pointer-events: none; }
.pid-design-option > span {
  display: block; text-align: center; padding: 8px 6px; border-radius: 12px;
  border: 1px solid rgba(16,29,48,.14); font-weight: 700; background: #fff;
}
.pid-design-thumb {
  position: relative; width: 100%; min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 12px;
  background: #faf7f0; border: 2px solid transparent; transition: border-color .2s ease, box-shadow .2s ease;
}
.pid-design-thumb .pid-art { position: absolute; top: 0; left: 0; width: 380px; height: 253px; max-width: none; transform-origin: top left; box-shadow: none; }
.pid-design-option.is-selected .pid-design-thumb { border-color: #d9a441; box-shadow: 0 0 0 3px rgba(217,164,65,.28); }
.pid-design-option.is-selected > span { border-color: #d9a441; color: var(--navy); box-shadow: 0 0 0 3px rgba(217,164,65,.2); }

/* --- Phones --- */
@media (max-width: 480px) {
  .pid-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pid-design-options {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .pid-design-option { flex: 0 0 72%; scroll-snap-align: center; }
  .pid-live-wrap { margin-inline: -6px; }
  #pid-privacy-card { display: none !important; }
}

/* ===== The ID card =====
   One card for all three designs: the design's blank template is the background, and every element
   is placed in % of the card, so it stays on its frame at any size. Text sizes use --u (1% of the card
   width): 1cqw where supported, set from JS on older browsers. */
.pid-art {
  --u: 1cqw;
  position: relative; display: block; box-sizing: border-box;
  width: min(380px, 100%); aspect-ratio: 3 / 2; height: auto; padding: 0; margin: 0; overflow: hidden;
  container-type: inline-size; direction: rtl; text-align: right;
  font-family: 'Tajawal', Arial, sans-serif; border-radius: 14px;
  background-color: #f7f0e2; background-position: center; background-size: 100% 100%; background-repeat: no-repeat;
}
.pid-art .pid-art-top, .pid-art .pid-art-body, .pid-art .pid-art-foot { display: block; position: static; margin: 0; padding: 0; background: none; border: 0; }
.pid-art .pid-art-logo, .pid-art .pid-art-tag, .pid-art .pid-art-photo, .pid-art .pid-art-rows,
.pid-art .pid-art-qr, .pid-art .pid-art-id, .pid-art .pid-art-note { position: absolute; margin: 0; box-sizing: border-box; }

.pid-art .pid-art-logo { height: auto; max-width: none; }
.pid-art .pid-art-tag {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: calc(var(--u) * 3.6); font-weight: 800; letter-spacing: .08em; line-height: 1.25; white-space: nowrap;
}
.pid-art .pid-art-tag small { display: block; font-size: calc(var(--u) * 2); font-weight: 700; letter-spacing: 0; line-height: 1.4; }

.pid-art .pid-art-photo { border-radius: 50%; overflow: hidden; background: #fff; }
.pid-art .pid-art-photo:empty { background: transparent; } /* no photo: the template's own frame shows */
.pid-art .pid-art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pid-art .pid-art-rows {
  display: flex; flex-direction: column; padding: 0; border: 1px solid; border-radius: calc(var(--u) * 3.6); overflow: hidden;
}
.pid-art .pid-art-rows div {
  flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 2);
  padding: 0 calc(var(--u) * 1.4); border-bottom: 1px solid;
}
.pid-art .pid-art-rows div:last-child { border-bottom: 0; }
.pid-art .pid-art-rows dt, .pid-art .pid-art-rows dd {
  margin: 0; font-size: calc(var(--u) * 2.8); line-height: 1.6; white-space: nowrap; overflow: visible;
}
.pid-art .pid-art-rows dt { flex: 0 0 auto; font-weight: 600; }
/* Each value takes its direction from its content: Arabic right-to-left, English and dates left-to-right. */
.pid-art .pid-art-rows dd { flex: 1 1 0; min-width: 0; font-weight: 700; text-align: left; unicode-bidi: plaintext; }

.pid-art .pid-art-qr { height: auto; aspect-ratio: 1; max-width: none; padding: 0; background: #fff; border-radius: 0; }
.pid-art .pid-art-id { display: block; text-align: center; padding: 0; background: none; border: 0; direction: ltr; }
.pid-art .pid-art-id b { display: block; font-size: calc(var(--u) * 2.05); font-weight: 800; line-height: 1.15; white-space: nowrap; letter-spacing: .02em; }
.pid-art .pid-art-id small { display: block; font-size: calc(var(--u) * 1.45); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pid-art .pid-art-note {
  left: 0; right: 0; bottom: 2.4%; padding: 0 4%; text-align: center;
  font-size: calc(var(--u) * 2.3); font-weight: 700; line-height: 1.3; white-space: nowrap;
}

/* English: labels on the left, values on the right */
:root[dir="ltr"] .pid-art .pid-art-rows { direction: ltr; }
:root[dir="ltr"] .pid-art .pid-art-rows dd { text-align: right; }

/* Classic */
.pid-art--classic {
  background-image: url("../img/pid/classic-template.jpg");
  border: 1px solid rgba(217,164,65,.45); box-shadow: 0 16px 34px rgba(16,29,48,.18);
}
.pid-art--classic .pid-art-logo { left: 17%; top: 7.5%; width: 13%; }
.pid-art--classic .pid-art-tag { left: 45%; top: 13.6%; width: 35%; height: 11%; color: #101d30; }
.pid-art--classic .pid-art-tag small { color: #8a6420; }
.pid-art--classic .pid-art-photo { left: 9.8%; top: 25.9%; width: 31.45%; height: 47.2%; }
.pid-art--classic .pid-art-rows { left: 43%; top: 25.6%; width: 37.8%; height: 52.3%; background: #fbf6ec; border-color: #d9a441; }
.pid-art--classic .pid-art-rows div { border-bottom-color: rgba(217,164,65,.45); }
.pid-art--classic .pid-art-rows dt { color: #8a6420; }
.pid-art--classic .pid-art-rows dd { color: #101d30; }
.pid-art--classic .pid-art-qr { left: 82.9%; top: 46.8%; width: 11.4%; }
.pid-art--classic .pid-art-id { left: 82.2%; top: 66.9%; width: 13%; }
.pid-art--classic .pid-art-id b { color: #101d30; }
.pid-art--classic .pid-art-id small { color: #8a6420; }
.pid-art--classic .pid-art-note { color: #101d30; }

/* Luxury */
.pid-art--luxury {
  background-color: #0b1a33; background-image: url("../img/pid/luxury-template.jpg");
  border: 1px solid #e8c27a; box-shadow: 0 18px 36px rgba(0,0,0,.35);
}
.pid-art--luxury .pid-art-logo { left: 6.2%; top: 8.3%; width: 13.9%; }
.pid-art--luxury .pid-art-tag { left: 50.1%; top: 17.3%; width: 38.5%; height: 15.9%; color: #e8c27a; }
.pid-art--luxury .pid-art-tag small { color: #f7f2e7; }
.pid-art--luxury .pid-art-photo { left: 9.3%; top: 26.6%; width: 33%; height: 48.4%; }
.pid-art--luxury .pid-art-rows { left: 43.2%; top: 35.1%; width: 38%; height: 42.9%; background: rgba(8,20,42,.92); border-color: #e8c27a; }
.pid-art--luxury .pid-art-rows div { border-bottom-color: rgba(232,194,122,.35); }
.pid-art--luxury .pid-art-rows dt { color: #e8c27a; }
.pid-art--luxury .pid-art-rows dd { color: #f7f2e7; }
.pid-art--luxury .pid-art-qr { left: 83.25%; top: 47.5%; width: 11.2%; }
.pid-art--luxury .pid-art-id { left: 82.4%; top: 67.4%; width: 12.9%; }
.pid-art--luxury .pid-art-id b { color: #101d30; }
.pid-art--luxury .pid-art-id small { color: #8a6420; }
.pid-art--luxury .pid-art-note { color: #0b1a33; }

/* Cute */
.pid-art--cute {
  background-color: #fbf3ee; background-image: url("../img/pid/cute-template.jpg");
  border: 1px solid #e8c27a; box-shadow: 0 16px 34px rgba(216,107,139,.2);
}
.pid-art--cute .pid-art-logo { left: 6.4%; top: 7.6%; width: 13.2%; }
.pid-art--cute .pid-art-tag { left: 52.4%; top: 13.3%; width: 29.4%; height: 16.9%; color: #1f2a44; }
.pid-art--cute .pid-art-tag small { color: #8a4a62; }
.pid-art--cute .pid-art-photo { left: 9.4%; top: 26.8%; width: 32.6%; height: 48%; }
.pid-art--cute .pid-art-rows { left: 43%; top: 32.6%; width: 37.3%; height: 40.7%; background: #fff; border-color: #f2b8c9; }
.pid-art--cute .pid-art-rows div { border-bottom-color: rgba(216,107,139,.28); }
.pid-art--cute .pid-art-rows dt { color: #8a6170; }
.pid-art--cute .pid-art-rows dd { color: #1f2a44; }
.pid-art--cute .pid-art-qr { left: 82.2%; top: 44.8%; width: 11%; }
.pid-art--cute .pid-art-id { left: 81.4%; top: 64.4%; width: 12.6%; }
.pid-art--cute .pid-art-id b { color: #1f2a44; }
.pid-art--cute .pid-art-id small { color: #8a4a62; }
.pid-art--cute .pid-art-note { color: #8a4a62; }

/* Public ID page: a call to action for visitors who scanned a QR */
.pid-public-cta { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 8px 0 0; }
.pid-public-cta p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Names page: unified Bis Bis cards, community names, add-a-name form ===== */
.names-add-btn { margin-top: 16px; }
.names-add-btn svg { width: 16px; height: 16px; }
.names-search {
  width: 100%; max-width: 420px; height: 46px; padding: 0 18px; border-radius: 999px; box-sizing: border-box;
  border: 1px solid rgba(16,29,48,.14); font: inherit; background: #fff; color: var(--text-dark);
}
.names-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.names-results { margin: 0 0 14px; font-size: 13px; font-weight: 700; color: var(--muted); }
.names-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.names-more { background: #fff; color: var(--navy); border: 1px solid rgba(16,29,48,.2); padding: 14px 34px; }
.names-more b { font-weight: 800; }

/* One shared look for every name: a navy card with the Bis Bis logo and a soft glow tinted by the animal type */
.name-card .nc-media--brand {
  --glow: rgba(217,164,65,.34);
  aspect-ratio: 16 / 9; position: relative;
  background:
    radial-gradient(ellipse 70% 80% at 50% 45%, var(--glow), transparent 72%),
    linear-gradient(155deg, #16263f 0%, #0d1828 100%);
}
.name-card .nc-media--brand::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/logo.png") center / auto 52% no-repeat;
}
.nc-media--brand[data-kind="قطط"] { --glow: rgba(217,164,65,.36); }
.nc-media--brand[data-kind="كلاب"] { --glow: rgba(205,140,90,.38); }
.nc-media--brand[data-kind="أرانب"] { --glow: rgba(240,150,185,.36); }
.nc-media--brand[data-kind="طيور"] { --glow: rgba(106,168,255,.36); }
.nc-media--brand[data-kind="أسماك"] { --glow: rgba(64,200,205,.34); }
.nc-media--brand[data-kind="سلاحف"] { --glow: rgba(110,200,130,.34); }
.nc-media--brand[data-kind="هامستر"] { --glow: rgba(255,170,90,.36); }
.name-card .nc-kind, .name-card .nc-gender { z-index: 1; }
.name-card .nc-gender[data-value="ذكر"] { background: #a9cdff; color: #0d1828; }
.name-card .nc-gender[data-value="أنثى"] { background: #f7b6cf; color: #4a1830; }
.name-card .nc-gender[data-value="ذكر"]::before { content: "♂ "; }
.name-card .nc-gender[data-value="أنثى"]::before { content: "♀ "; }
.name-card--community { border-color: rgba(217,164,65,.55); }
.name-card--community .nc-eyebrow { color: #8a6420; }
.nc-delete {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); font-size: 18px; line-height: 1; cursor: pointer;
}
.nc-delete:hover { background: #c0392b; border-color: #c0392b; }

.names-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 300; max-width: min(92vw, 440px);
  background: var(--navy); color: var(--text-light); border: 1px solid rgba(232,194,122,.4); border-radius: 16px;
  padding: 14px 20px; font-size: 14px; font-weight: 700; text-align: center; box-shadow: 0 16px 40px rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
}
.names-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* The add-a-name dialog reuses the dark auth dialog look */
.auth-overlay.pn-overlay { background: rgba(10, 18, 32, .72); }
.pn-modal { max-width: 420px; }
.pn-modal form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.pn-modal .auth-login-head { margin-top: 6px; }
.pn-modal select {
  display: block; width: 100%; height: 50px; box-sizing: border-box; padding: 0 16px; border-radius: 14px;
  background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.16); font: inherit;
  -webkit-appearance: none; appearance: none;
}
.pn-modal select option { color: #101d30; background: #fff; }
.pn-modal select:focus, .pn-modal input[type="text"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.pn-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pn-gender-opt { position: relative; cursor: pointer; }
.pn-gender-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pn-gender-opt span {
  display: block; text-align: center; padding: 13px 8px; border-radius: 14px; font-weight: 700;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); color: #cfd6e2;
}
.pn-gender-opt input:checked + span { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); border-color: transparent; }

@media (max-width: 480px) {
  .names-more { width: 100%; justify-content: center; }
}

/* ===== Home page: services panel as a 3D carousel (only when .is-carousel is set by services-carousel.js) ===== */
.services-overlay.is-carousel { overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y; }
.services-overlay.is-carousel .services-grid { overflow-x: clip; overflow-y: visible; transform: translateX(var(--drag, 0px)); transition: transform .3s cubic-bezier(.2,.85,.25,1); }
.services-overlay.is-carousel .services-grid.is-dragging { transition: none; }
.services-overlay.is-carousel .services-grid {
  display: block; position: relative; max-width: 520px; height: 372px; margin: 6px auto 0;
  perspective: 1100px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.services-overlay.is-carousel .services-card,
.services-overlay.is-carousel .services-card.services-card-wide {
  position: absolute; left: 50%; top: 0; width: 232px; height: 340px; margin-left: -116px; padding: 12px 12px 18px;
  grid-column: auto; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; gap: 10px;
  background: linear-gradient(160deg, rgba(31,52,86,.97), rgba(12,23,41,.98)); border: 1px solid rgba(232,194,122,.3); border-radius: 24px;
  box-shadow: 0 14px 24px rgba(0,0,0,.4);
  transition: transform .42s cubic-bezier(.2, .85, .25, 1), opacity .3s ease, border-color .3s; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  -webkit-user-drag: none;
}
.services-overlay.is-carousel .services-card-media,
.services-overlay.is-carousel .services-card-wide .services-card-media { width: 100%; height: 222px; flex: none; aspect-ratio: auto; align-self: auto; border-radius: 16px; }
.services-overlay.is-carousel .services-card-title,
.services-overlay.is-carousel .services-card-wide .services-card-title { flex: none; font-size: 17px; }
.services-overlay.is-carousel .services-card-arrow { width: 36px; height: 36px; }
.services-overlay.is-carousel .services-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(5,11,24,.5); pointer-events: none; transition: opacity .3s; }
.services-overlay.is-carousel .services-card img { pointer-events: none; -webkit-user-drag: none; }
.services-overlay.is-carousel .services-card[data-pos="c"] { transform: translate3d(0, 0, 40px) scale(1.04); opacity: 1; z-index: 5; border-color: rgba(232,194,122,.8); box-shadow: 0 18px 30px rgba(0,0,0,.45), 0 0 22px rgba(217,164,65,.28); }
.services-overlay.is-carousel .services-card[data-pos="c"]::after { opacity: 0; }
.services-overlay.is-carousel .services-card[data-pos="l"] { transform: translate3d(-160px, 0, -170px) rotateY(38deg) scale(.82); opacity: .92; z-index: 3; }
.services-overlay.is-carousel .services-card[data-pos="r"] { transform: translate3d(160px, 0, -170px) rotateY(-38deg) scale(.82); opacity: .92; z-index: 3; }
.services-overlay.is-carousel .services-card[data-pos="far-l"] { transform: translate3d(-340px, 0, -420px) rotateY(60deg) scale(.6); opacity: 0; pointer-events: none; z-index: 1; }
.services-overlay.is-carousel .services-card[data-pos="far-r"] { transform: translate3d(340px, 0, -420px) rotateY(-60deg) scale(.6); opacity: 0; pointer-events: none; z-index: 1; }
.services-overlay.is-carousel .services-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.services-overlay.is-carousel .services-grid.sv-rise { animation: sv-rise .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sv-rise { from { opacity: 0; transform: translateY(26px) scale(.96); } }
/* until the script has placed the cards nothing is shown, so the plain grid can never flash */
.services-overlay.is-carousel .services-card:not([data-pos]) { opacity: 0; }
.sv-nav { display: none; }
.services-overlay.is-carousel .sv-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 12px 0 0; }
.sv-arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gold-light);
  background: rgba(255,255,255,.07); border: 1px solid rgba(232,194,122,.4); box-shadow: 0 8px 18px rgba(0,0,0,.3); transition: transform .2s, background .2s;
}
.sv-arrow:active { transform: scale(.92); background: rgba(232,194,122,.18); }
.sv-arrow svg { width: 20px; height: 20px; }
.sv-dots { display: flex; gap: 7px; }
.sv-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.25); transition: all .4s; }
.sv-dots i.on { width: 20px; border-radius: 999px; background: var(--gold-light); }
@media (prefers-reduced-motion: reduce) {
  .services-overlay.is-carousel .services-card, .sv-dots i { transition-duration: .01s !important; }
  .services-overlay.is-carousel .services-grid.sv-rise { animation: none; }
}

/* ===== Mobile bottom nav: premium look and motion ===== */
.bottom-nav {
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(24,41,68,.97) 0%, rgba(11,21,37,.98) 100%);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(232,194,122,.3);
  box-shadow: 0 -14px 34px rgba(0,0,0,.38), 0 -1px 0 rgba(255,255,255,.04) inset;
  animation: navRise .7s cubic-bezier(.2, .9, .3, 1.08) backwards;
}
.bottom-nav::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(232,194,122,.85), transparent);
}
@keyframes navRise { from { transform: translateY(105%); opacity: 0; } }
.bottom-nav > .bottom-nav-item, .bottom-nav > .bottom-nav-center-wrap { animation: navFade .5s ease backwards; }
.bottom-nav > :nth-child(2) { animation-delay: .12s; }
.bottom-nav > :nth-child(3) { animation-delay: .2s; }
.bottom-nav > :nth-child(4) { animation-delay: .28s; }
.bottom-nav > :nth-child(5) { animation-delay: .36s; }
.bottom-nav > :nth-child(6) { animation-delay: .44s; }
@keyframes navFade { from { opacity: 0; transform: translateY(12px); } }

/* the gold pill that slides to the active tab (also across page loads, see initBottomNavFx) */
.bottom-nav-indicator {
  position: absolute; left: 0; top: 7px; width: 58px; height: 46px; border-radius: 18px; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,194,122,.3), rgba(217,164,65,.08) 70%);
  border: 1px solid rgba(232,194,122,.28); box-shadow: 0 0 18px rgba(217,164,65,.18);
  transition: transform .55s cubic-bezier(.34, 1.35, .5, 1), opacity .3s;
}
.bottom-nav-indicator.is-on { opacity: 1; }

.bottom-nav-item { position: relative; overflow: hidden; border-radius: 16px; -webkit-tap-highlight-color: transparent; transition: color .3s, transform .2s; }
.bottom-nav-item:active { transform: scale(.9); }
.bottom-nav-item svg { transition: transform .35s cubic-bezier(.34, 1.6, .5, 1), filter .3s, fill .3s; }
.bottom-nav-item.active svg { color: var(--gold-light); fill: rgba(232,194,122,.16); filter: drop-shadow(0 0 7px rgba(217,164,65,.6)); animation: navPop .6s cubic-bezier(.3, 1.7, .5, 1); }
.bottom-nav-item.active span { color: var(--gold-light); }
@keyframes navPop { 0% { transform: scale(.6) translateY(4px); } 60% { transform: scale(1.18) translateY(-3px); } 100% { transform: none; } }
.bottom-nav-dot { box-shadow: 0 0 8px rgba(217,164,65,.9); animation: navDot 2.4s ease-in-out infinite; }
@keyframes navDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .65; } }
.bottom-nav-ripple {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(232,194,122,.55), rgba(232,194,122,0) 70%); animation: navRipple .6s ease-out forwards;
}
@keyframes navRipple { to { transform: scale(9); opacity: 0; } }

/* centre button: a soft halo, a light float, and a full spin when the services panel opens */
.bottom-nav-center-wrap::before {
  content: ""; position: absolute; left: 50%; top: -40px; width: 74px; height: 74px; margin-left: -37px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(217,164,65,.5), rgba(217,164,65,0) 68%); animation: navHalo 2.8s ease-in-out infinite;
}
@keyframes navHalo { 0%, 100% { transform: scale(.85); opacity: .35; } 50% { transform: scale(1.3); opacity: .9; } }
.bottom-nav-center { z-index: 1; transition: transform .7s cubic-bezier(.3, 1.3, .4, 1), box-shadow .4s; animation: navFloat 3.4s ease-in-out infinite; }
@keyframes navFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
.bottom-nav-center:active { transform: scale(.92); }
.bottom-nav-center-wrap.is-open .bottom-nav-center { transform: rotate(360deg) scale(1.08); box-shadow: 0 12px 30px rgba(217,164,65,.6); }
.bottom-nav-center-wrap.is-open::before { animation-duration: 1.4s; }
.bottom-nav-center-label { transition: color .3s, transform .3s; }
.bottom-nav-center-wrap.is-open .bottom-nav-center-label { transform: translateY(1px); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bottom-nav, .bottom-nav > *, .bottom-nav-dot, .bottom-nav-center, .bottom-nav-center-wrap::before, .bottom-nav-item.active svg { animation: none !important; }
  .bottom-nav-indicator, .bottom-nav-item svg, .bottom-nav-center { transition-duration: .01s !important; }
}

/* ===== Header: scroll glass, gliding nav underline, lively icons ===== */
.site-header {
  transition: background .35s ease, box-shadow .35s ease, transform .45s cubic-bezier(.3, .8, .3, 1);
  animation: hdrDrop .75s cubic-bezier(.2, .9, .3, 1.05) backwards;
}
@keyframes hdrDrop { from { transform: translateY(-100%); opacity: 0; } }
.site-header .container > * { animation: hdrIn .6s ease backwards; }
.site-header .container > :nth-child(1) { animation-delay: .12s; }
.site-header .container > :nth-child(2) { animation-delay: .2s; }
.site-header .container > :nth-child(3) { animation-delay: .28s; }
@keyframes hdrIn { from { opacity: 0; transform: translateY(-10px); } }
.site-header .container { transition: padding .3s ease; }
.site-header.is-scrolled {
  background: rgba(14, 26, 44, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 10px 30px rgba(0,0,0,.28), 0 1px 0 rgba(232,194,122,.22);
}
.site-header.is-scrolled .container { padding-top: 8px; padding-bottom: 8px; }
.site-header.is-hidden { transform: translateY(-110%); }
.logo img { transition: height .3s ease, transform .4s cubic-bezier(.34, 1.6, .5, 1); }
.site-header.is-scrolled .logo img { height: 38px; }
.logo:hover img { transform: scale(1.07) rotate(-2deg); }

/* page-scroll progress, drawn as a thin gold line on the header's lower edge */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, #d9a441, #f4d58b); transform: scaleX(var(--scroll-p, 0)); transform-origin: right center;
  transition: opacity .3s;
}
html[dir="ltr"] .site-header::after { transform-origin: left center; }
.site-header.is-scrolled::after { opacity: 1; }

/* nav: one gold underline glides between the links */
.main-nav ul { position: relative; }
.main-nav a, .nav-services-toggle { border-bottom-color: transparent !important; transition: color .25s ease, transform .25s ease; }
.main-nav a:hover, .nav-services-toggle:hover { transform: translateY(-1px); }
.nav-glider {
  position: absolute; left: 0; bottom: 0; height: 2px; width: 0; border-radius: 2px; pointer-events: none; opacity: 0;
  background: var(--gold); box-shadow: 0 0 10px rgba(217,164,65,.7);
  transition: transform .5s cubic-bezier(.34, 1.3, .5, 1), width .5s cubic-bezier(.34, 1.3, .5, 1), opacity .25s;
}
.nav-glider.is-on { opacity: 1; }

/* the services menu opens with a little spring and its items arrive one after another */
.nav-services-menu:not([hidden]) { animation: menuIn .34s cubic-bezier(.2, .9, .3, 1.2); transform-origin: 85% 0; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
.nav-services-menu:not([hidden]) a { animation: menuItem .38s ease backwards; transition: background .2s, color .2s, transform .2s; }
.nav-services-menu a:nth-child(1) { animation-delay: .05s; }
.nav-services-menu a:nth-child(2) { animation-delay: .1s; }
.nav-services-menu a:nth-child(3) { animation-delay: .15s; }
.nav-services-menu a:nth-child(4) { animation-delay: .2s; }
.nav-services-menu a:nth-child(5) { animation-delay: .25s; }
@keyframes menuItem { from { opacity: 0; transform: translateX(12px); } }
.nav-services-menu a:hover { transform: translateX(-4px); }

/* icons lift and glow, the bell rings, the cart hops, badges pop when their number changes */
.icon-btn { transition: transform .3s cubic-bezier(.34, 1.6, .5, 1), color .25s; }
.icon-btn::before {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; opacity: 0; transform: scale(.4);
  background: radial-gradient(circle, rgba(217,164,65,.3), rgba(217,164,65,0) 70%); transition: transform .3s ease, opacity .3s ease;
}
.icon-btn:hover { color: var(--gold-light); transform: translateY(-2px); }
.icon-btn:hover::before { opacity: 1; transform: scale(1); }
#notif-btn:hover svg { animation: hdrRing .8s ease; transform-origin: 50% 0; }
.icon-btn[href$="cart"]:hover svg, .icon-btn[href$="cart.html"]:hover svg { animation: hdrHop .55s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes hdrRing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-13deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@keyframes hdrHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px) rotate(-6deg); } 70% { transform: translateY(0) rotate(3deg); } }
.badge.bump { animation: badgePop .55s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes badgePop { 0% { transform: scale(.4); } 60% { transform: scale(1.4); } 100% { transform: scale(1); } }

/* language switch: the gold thumb slides instead of jumping */
.lang-switch { position: relative; }
.lang-switch .lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: var(--gold); box-shadow: 0 4px 12px rgba(217,164,65,.35);
  transition: transform .45s cubic-bezier(.34, 1.4, .5, 1), width .45s cubic-bezier(.34, 1.4, .5, 1);
}
.lang-switch.has-thumb button { position: relative; z-index: 1; }
.lang-switch.has-thumb button.active { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .container > *, .nav-services-menu, .nav-services-menu a, .badge.bump, .icon-btn svg { animation: none !important; }
  .nav-glider, .lang-switch .lang-thumb, .site-header, .logo img, .icon-btn { transition-duration: .01s !important; }
}

/* ===== Notifications panel ===== */
.notif-panel {
  width: min(390px, calc(100vw - 24px)); overflow-x: hidden;
  background: linear-gradient(160deg, #182a45 0%, #0d1a2e 100%); border: 1px solid rgba(232,194,122,.3);
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset; transform-origin: 85% 0;
}
.notif-panel:not([hidden]) { animation: notifIn .38s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes notifIn { from { opacity: 0; transform: translateY(-10px) scale(.94); } }
.notif-panel-head {
  display: flex; align-items: center; gap: 10px; padding: 16px 18px; position: sticky; top: 0; z-index: 2;
  background: rgba(17,31,53,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(232,194,122,.16);
}
.notif-panel-head b { font-size: 16px; font-weight: 800; }
.notif-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: #1b1405; background: linear-gradient(145deg, #f4d58b, #d9a441); }
.notif-markall { margin-inline-start: auto; border: 0; background: rgba(232,194,122,.12); color: var(--gold-light); padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; transition: background .2s; }
.notif-markall:hover { background: rgba(232,194,122,.24); }
.notif-markall:disabled { opacity: .5; }
.notif-group-label { padding: 12px 18px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .3px; color: #8793a8; }
.notif-item { position: relative; align-items: center; gap: 4px; padding-inline-start: 12px; max-height: 220px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.05); transition: background .2s, max-height .28s ease, opacity .25s, transform .28s; }
.notif-panel-list:not(.is-static) .notif-item { animation: notifItemIn .5s cubic-bezier(.2, .9, .3, 1.1) backwards; animation-delay: calc(var(--i, 0) * 55ms + 120ms); }
@keyframes notifItemIn { from { opacity: 0; transform: translateX(16px); } }
.notif-item.is-leaving { max-height: 0 !important; opacity: 0; transform: translateX(-30px); border-bottom-width: 0; }
.notif-item:hover { background: rgba(255,255,255,.035); }
.notif-item.unread { background: linear-gradient(90deg, rgba(217,164,65,.12), rgba(217,164,65,.03)); }
.notif-item-icon { position: relative; flex: none; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--gold-light); background: rgba(232,194,122,.1); }
.notif-item-icon svg { width: 20px; height: 20px; }
.notif-item-icon.ok { color: #6fdc9a; background: rgba(63,207,110,.12); }
.notif-item-icon.bad { color: #ff8f84; background: rgba(227,106,92,.14); }
.notif-item-icon.warn { color: #f0c570; background: rgba(217,164,65,.14); }
.notif-item.unread .notif-item-icon::after { content: ""; position: absolute; top: -3px; inset-inline-start: -3px; width: 10px; height: 10px; border-radius: 50%; background: #e8b84a; border: 2px solid #12223a; animation: notifDot 2.2s ease-in-out infinite; }
@keyframes notifDot { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.notif-item-main { padding: 13px 12px; }
.notif-item.unread .notif-item-title { color: #fff; }
.notif-item-delete { opacity: .5; transition: opacity .2s, color .2s, transform .2s; }
.notif-item:hover .notif-item-delete { opacity: 1; }
.notif-item-delete:hover { transform: scale(1.2); }
.notif-panel-empty { padding: 34px 20px 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.notif-panel-empty[hidden] { display: none; }
.notif-empty-icon, .notif-guard-icon { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-light); background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.25); animation: notifFloat 3.4s ease-in-out infinite; }
.notif-empty-icon svg, .notif-guard-icon svg { width: 28px; height: 28px; }
@keyframes notifFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.notif-panel-empty p { margin: 8px 0 0; font-size: 15px; font-weight: 800; color: var(--text-light); }
.notif-panel-empty small { font-size: 12.5px; color: #8793a8; }
.notif-panel-guard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 20px 26px; }
.notif-panel-guard[hidden] { display: none; }
#notif-btn.has-unread svg { animation: bellNudge 5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes bellNudge { 0%, 86%, 100% { transform: rotate(0); } 89% { transform: rotate(14deg); } 92% { transform: rotate(-12deg); } 95% { transform: rotate(7deg); } 98% { transform: rotate(-3deg); } }

/* ===== Cart ===== */
.cart-row { position: relative; overflow: hidden; max-height: 220px; transition: transform .3s cubic-bezier(.34, 1.4, .5, 1), box-shadow .3s, max-height .3s ease, opacity .3s ease, margin .3s ease, padding .3s ease; }
.cart-row:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(16,29,48,.1); }
.cart-row.is-new { animation: cartRowIn .6s cubic-bezier(.2, .9, .3, 1.1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes cartRowIn { from { opacity: 0; transform: translateX(28px) scale(.97); } }
.cart-row.is-removing { max-height: 0 !important; opacity: 0; transform: translateX(-50px) scale(.96); margin-bottom: -12px; padding-top: 0; padding-bottom: 0; }
.cart-row.bump { animation: cartBump .55s ease; }
@keyframes cartBump { 0% { box-shadow: 0 0 0 0 rgba(217,164,65,.55); } 100% { box-shadow: 0 0 0 16px rgba(217,164,65,0); } }
.cart-row.bump .cart-qty span, .cart-row.bump .price { animation: cartNum .5s cubic-bezier(.3, 1.8, .5, 1); display: inline-block; }
@keyframes cartNum { 0% { transform: scale(.6); color: #d9a441; } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
.cart-thumb { transition: transform .35s ease; }
.cart-row:hover .cart-thumb { transform: scale(1.06) rotate(-1.5deg); }
.cart-qty button { transition: transform .15s, background .2s, color .2s; }
.cart-qty button:hover { background: var(--navy); color: var(--gold-light); }
.cart-qty button:active { transform: scale(.82); }
.cart-row-remove { transition: transform .2s, background .2s, color .2s; }
.cart-row-remove:hover { transform: rotate(-10deg) scale(1.1); }
.order-summary-card { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; scrollbar-width: thin; transition: box-shadow .3s; }
@media (max-width: 900px) { .order-summary-card { position: static; max-height: none; overflow: visible; } }
.free-shipping-banner:not([hidden]) { position: relative; animation: bannerIn .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes bannerIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.free-shipping-banner .check { animation: checkPop .7s .2s cubic-bezier(.3, 1.8, .5, 1) backwards; }
@keyframes checkPop { from { transform: scale(0) rotate(-90deg); } }
.free-shipping-progress { position: relative; height: 8px; }
.free-shipping-progress-bar { position: relative; background: linear-gradient(90deg, #d9a441, #f4d58b); transition: width .7s cubic-bezier(.3, 1, .4, 1), background .4s; overflow: hidden; }
.free-shipping-progress-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shipShine 2.4s ease-in-out infinite; }
@keyframes shipShine { 0% { transform: translateX(-120%); } 70%, 100% { transform: translateX(300%); } }
.free-shipping-progress-bar.complete { background: linear-gradient(90deg, #2f8f4e, #5bd184); }
.cart-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 5; }
.cart-burst i { position: absolute; width: 7px; height: 7px; margin: -3px; border-radius: 50%; animation: cartBurst 1s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes cartBurst { from { transform: translate(0, 0) scale(.4); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
#cart-checkout-btn { position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s; }
#cart-checkout-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: shipShine 3.4s 1.2s ease-in-out infinite; pointer-events: none; }
#cart-checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(217,164,65,.4); }
#cart-checkout-btn:active { transform: scale(.98); }
#cart-checkout-btn.is-loading::after { animation: none; }
.cart-empty-state .cart-illu { width: 112px; height: 112px; margin: 0 auto 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); background: radial-gradient(circle, rgba(217,164,65,.2), rgba(217,164,65,.04) 70%); border: 1px solid rgba(217,164,65,.3); animation: notifFloat 3.6s ease-in-out infinite; }
.cart-empty-state .cart-illu svg { width: 52px; height: 52px; }
.cart-empty-state.is-success .cart-illu { color: #2f8f4e; background: radial-gradient(circle, rgba(47,143,78,.2), rgba(47,143,78,.04) 70%); border-color: rgba(47,143,78,.35); animation: none; }
.cart-empty-state.is-success .cart-illu svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: cartDraw .8s .2s ease-out forwards; }
@keyframes cartDraw { to { stroke-dashoffset: 0; } }
.cart-empty-state:not([hidden]) h2, .cart-empty-state:not([hidden]) p, .cart-empty-state:not([hidden]) .btn { animation: cartRise .6s ease backwards; }
.cart-empty-state:not([hidden]) p { animation-delay: .1s; }
.cart-empty-state:not([hidden]) .btn { animation-delay: .2s; }
@keyframes cartRise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .notif-panel, .notif-item, .notif-item-icon::after, .notif-empty-icon, .notif-guard-icon, #notif-btn.has-unread svg,
  .cart-row, .cart-row.bump *, .free-shipping-banner, .free-shipping-banner .check, .free-shipping-progress-bar::after, #cart-checkout-btn::after, .cart-illu { animation: none !important; }
}

/* ===== Favorites: premium page ===== */
.fav-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; padding: 22px 26px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(217,164,65,.22), transparent 60%), linear-gradient(150deg, #18294a 0%, #0d1a2e 100%);
  color: var(--text-light); border: 1px solid rgba(232,194,122,.25); box-shadow: 0 20px 44px rgba(16,29,48,.18);
  animation: favHeroIn .7s cubic-bezier(.2,.9,.3,1.05) backwards;
}
@keyframes favHeroIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.fav-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.07) 50%, transparent 60%); transform: translateX(-120%); animation: favSheen 5s 1s ease-in-out infinite; }
@keyframes favSheen { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.fav-hero-main { display: flex; align-items: center; gap: 16px; }
.fav-hero-icon { flex: none; width: 58px; height: 58px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #f4d58b; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.38); animation: notifFloat 3.4s ease-in-out infinite; }
.fav-hero-icon svg { width: 28px; height: 28px; }
@keyframes favBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.14); } 24% { transform: scale(1); } 36% { transform: scale(1.1); } 48% { transform: scale(1); } }
.fav-hero .fav-head-text .note { color: #a9b4c7; margin: 0 0 6px; }
.fav-hero .fav-head-text h2 { color: #fff; }
.fav-hero .count-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(232,194,122,.35); color: var(--text-light); padding: 10px 18px; font-size: 14px; }
.fav-hero .count-chip b { color: #f4d58b; font-size: 22px; font-variant-numeric: tabular-nums; }

.fav-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; animation: favRise .6s .15s ease backwards; }
@keyframes favRise { from { opacity: 0; transform: translateY(12px); } }
.fav-search { position: relative; flex: 1 1 220px; max-width: 340px; display: block; }
.fav-search svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; margin-top: -9px; color: var(--muted); pointer-events: none; }
.fav-search input { width: 100%; padding: 12px 16px 12px 16px; padding-inline-start: 42px; border-radius: 999px; border: 1px solid #e3dccd; background: #fff; font-family: inherit; font-size: 14px; color: var(--text-dark); transition: border-color .2s, box-shadow .2s; }
.fav-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.18); }
.fav-sort { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid #e3dccd; }
.fav-sort button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.fav-sort button:hover { color: var(--navy); }
.fav-sort button.on { background: var(--navy); color: var(--gold-light); box-shadow: 0 6px 14px rgba(16,29,48,.2); }
.fav-sort button:active { transform: scale(.94); }
.fav-addall { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; padding: 12px 20px; border-radius: 999px; font-family: inherit; font-size: 13.5px; font-weight: 800; color: #1b1405; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 10px 22px rgba(217,164,65,.35); position: relative; overflow: hidden; transition: transform .2s, box-shadow .25s, background .3s; }
.fav-addall svg { width: 18px; height: 18px; }
.fav-addall:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(217,164,65,.45); }
.fav-addall:active { transform: scale(.97); }
.fav-addall.busy { opacity: .7; pointer-events: none; }
.fav-addall.done { background: linear-gradient(145deg, #5bd184, #2f8f4e); color: #fff; box-shadow: 0 10px 22px rgba(47,143,78,.35); }
.fav-noresult { text-align: center; padding: 40px 10px; color: var(--muted); font-weight: 700; }
.fav-noresult[hidden] { display: none; }

.fav-grid { gap: 22px; }
.fav-card { position: relative; border-radius: 20px; border: 1px solid #ece5d8; box-shadow: 0 6px 18px rgba(16,29,48,.05); transition: transform .35s cubic-bezier(.34, 1.4, .5, 1), box-shadow .35s, border-color .35s, opacity .3s; }
.fav-grid:not(.is-static) .fav-card { animation: favCardIn .65s cubic-bezier(.2,.9,.3,1.1) backwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@keyframes favCardIn { from { opacity: 0; transform: translateY(26px) scale(.95); } }
.fav-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,.55); box-shadow: 0 22px 40px rgba(16,29,48,.14); }
.fav-card.is-removing { opacity: 0; transform: scale(.88) translateY(8px); pointer-events: none; }
.fav-media { overflow: hidden; }
.fav-media .placeholder-img { transition: transform .6s ease; }
.fav-card:hover .fav-media .placeholder-img { transform: scale(1.08); }

.fav-wish-btn { z-index: 2; box-shadow: 0 6px 16px rgba(16,29,48,.2); transition: transform .3s cubic-bezier(.34, 1.7, .5, 1), background .2s; }
.fav-wish-btn:hover { transform: scale(1.15); }
.fav-wish-btn:active { transform: scale(.85); }
.fav-wish-btn.popping svg { animation: favPop .35s ease forwards; }
@keyframes favPop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(0); opacity: 0; } }
.fav-tag, .fav-sold { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.fav-tag { color: #1b1405; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 6px 14px rgba(217,164,65,.4); }
.fav-sold { color: #fff; background: rgba(16,29,48,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fav-card.is-sold .fav-media .placeholder-img { filter: grayscale(.55); }
.fav-rating { display: inline-flex; align-items: center; gap: 4px; margin: -8px 0 12px; font-size: 12.5px; font-weight: 800; color: #b9862b; }
.fav-rating svg { width: 14px; height: 14px; }
.fav-add-btn { position: relative; overflow: hidden; border-radius: 12px; transition: background .25s, transform .2s, box-shadow .25s; }
.fav-add-btn:not(.disabled):hover { background: #1a2d4a; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(16,29,48,.25); }
.fav-add-btn:not(.disabled):active { transform: scale(.95); }
.fav-add-btn.added { animation: favAdded .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes favAdded { 0% { transform: scale(.9); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

.fav-empty { padding: 36px 20px 50px; }
.fav-empty-art { position: relative; width: 150px; height: 150px; margin: 0 auto 26px; display: flex; align-items: center; justify-content: center; }
.fav-big-heart { position: relative; z-index: 2; width: 66px; height: 66px; color: #d9a441; filter: drop-shadow(0 10px 18px rgba(217,164,65,.4)); animation: notifFloat 3.4s ease-in-out infinite; }
.fav-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(217,164,65,.35); animation: favRing 3s ease-out infinite; }
.fav-ring.r2 { animation-delay: 1.5s; }
@keyframes favRing { from { transform: scale(.45); opacity: .9; } to { transform: scale(1.15); opacity: 0; } }
.fav-mini { position: absolute; width: 18px; height: 18px; color: #e8c27a; opacity: 0; animation: favFloat 4s ease-in infinite; }
.fav-mini.h1 { left: 22px; bottom: 30px; animation-delay: .2s; }
.fav-mini.h2 { right: 20px; bottom: 36px; width: 13px; height: 13px; animation-delay: 1.4s; }
.fav-mini.h3 { left: 62px; bottom: 20px; width: 11px; height: 11px; color: #d9a441; animation-delay: 2.5s; }
@keyframes favFloat { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-90px) scale(1.1) rotate(14deg); opacity: 0; } }
.fav-empty:not([hidden]) h2, .fav-empty:not([hidden]) p, .fav-empty:not([hidden]) .btn { animation: cartRise .6s ease backwards; }
.fav-empty:not([hidden]) p { animation-delay: .1s; }
.fav-empty:not([hidden]) .btn { animation-delay: .2s; }

@media (max-width: 720px) {
  .fav-hero { padding: 18px; border-radius: 20px; }
  .fav-hero-icon { width: 48px; height: 48px; border-radius: 15px; }
  .fav-hero .fav-head-text h2 { font-size: 18px; }
  .fav-toolbar { gap: 10px; }
  .fav-search { max-width: none; flex-basis: 100%; }
  .fav-sort { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .fav-sort button { flex: 1; white-space: nowrap; padding: 8px 10px; }
  .fav-addall { width: 100%; justify-content: center; margin-inline-start: 0; }
  .fav-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fav-hero, .fav-hero::after, .fav-hero-icon, .fav-toolbar, .fav-card, .fav-big-heart, .fav-ring, .fav-mini, .fav-empty h2, .fav-empty p, .fav-empty .btn, .fav-add-btn.added { animation: none !important; }
}

/* ===== Cart: same family as the favourites page ===== */
.cart-hero { animation: favHeroIn .7s cubic-bezier(.2,.9,.3,1.05) backwards; }
.cart-products-head { align-items: center; flex-wrap: wrap; gap: 12px; }
.cart-head-actions { display: flex; align-items: center; gap: 10px; }
.cart-continue { padding: 9px 16px; border-radius: 999px; border: 1px solid #e3dccd; background: #fff; color: var(--navy); font-size: 13px; font-weight: 700; transition: background .25s, color .25s, transform .2s; }
.cart-continue:hover { background: var(--navy); color: var(--gold-light); transform: translateY(-1px); }
.cart-clear-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid #f0c7c1; background: #fff; color: #b3382c; font-size: 13px; font-weight: 700; transition: background .25s, color .25s, transform .2s; }
.cart-clear-link svg { width: 15px; height: 15px; }
.cart-clear-link:hover { background: #b3382c; color: #fff; transform: translateY(-1px); }

.cart-row { border-radius: 20px; padding: 14px 18px; gap: 16px; box-shadow: 0 6px 18px rgba(16,29,48,.05); }
.cart-row:hover { border-color: rgba(217,164,65,.5); }
.cart-thumb { width: 84px; height: 84px; border-radius: 16px; }
.cart-thumb .placeholder-img { border-radius: 16px; }
.cart-row-cat { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; color: var(--gold); letter-spacing: .2px; }
.cart-row-info h4 { font-size: 16px; }
.cart-row-info .price .each { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-inline-start: 8px; }
.cart-row-total { flex-shrink: 0; min-width: 76px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.cart-row-total small { font-size: 11px; color: var(--muted); }
.cart-row-total b { font-size: 17px; font-weight: 900; color: var(--navy); }
.cart-row-total b .unit { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }
.cart-row.bump .cart-row-total b { animation: cartNum .5s cubic-bezier(.3, 1.8, .5, 1); display: inline-block; }
.cart-qty { padding: 7px 14px; }
.cart-qty button { width: 26px; height: 26px; box-shadow: 0 2px 6px rgba(16,29,48,.1); }

.order-summary-card { border-radius: 24px; box-shadow: 0 18px 40px rgba(16,29,48,.1); }
.order-summary-head { background: radial-gradient(ellipse 80% 140% at 100% 0%, rgba(217,164,65,.22), transparent 60%), linear-gradient(150deg, #18294a 0%, #0d1a2e 100%); }
.order-summary-head .icon { color: #f4d58b; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.35); }
.cart-summary-row.total span:last-child { color: var(--navy); font-size: 22px; font-variant-numeric: tabular-nums; }

.cart-suggest { margin-top: 30px; }
.cart-suggest h4 { margin: 0 0 14px; font-size: 17px; font-weight: 900; }
.cart-suggest[hidden] { display: none; }
.cart-suggest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cart-suggest-card { background: #fff; border: 1px solid #ece5d8; border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 8px; animation: favCardIn .6s cubic-bezier(.2,.9,.3,1.1) backwards; animation-delay: calc(var(--i, 0) * 70ms); transition: transform .3s cubic-bezier(.34,1.4,.5,1), box-shadow .3s, border-color .3s; }
.cart-suggest-card:hover { transform: translateY(-4px); border-color: rgba(217,164,65,.5); box-shadow: 0 14px 28px rgba(16,29,48,.1); }
.cart-suggest-img { aspect-ratio: 1.15; border-radius: 12px; overflow: hidden; }
.cart-suggest-img .placeholder-img { border-radius: 12px; transition: transform .5s ease; }
.cart-suggest-card:hover .cart-suggest-img .placeholder-img { transform: scale(1.08); }
.cart-suggest-card h5 { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.4; min-height: 36px; }
.cart-suggest-foot { display: flex; align-items: center; justify-content: space-between; }
.cart-suggest-foot b { font-size: 15px; font-weight: 900; }
.cart-suggest-foot b span { font-size: 11px; font-weight: 600; color: var(--muted); margin-inline-start: 3px; }
.cart-suggest-foot button { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; font-size: 18px; font-weight: 800; line-height: 1; color: #1b1405; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 6px 14px rgba(217,164,65,.35); transition: transform .2s; }
.cart-suggest-foot button:hover { transform: scale(1.12) rotate(90deg); }
.cart-suggest-foot button:active { transform: scale(.9); }
.cart-suggest-foot button:disabled { opacity: .6; }

@media (max-width: 900px) {
  .cart-suggest-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .cart-row { flex-wrap: wrap; padding: 12px 14px; gap: 12px; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-row-info { flex-basis: calc(100% - 100px); }
  .cart-qty { order: 3; }
  .cart-row-total { order: 4; margin-inline-start: auto; }
  .cart-row-remove { order: 5; }
  .cart-head-actions { width: 100%; }
  .cart-head-actions > * { flex: 1; justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .cart-hero, .cart-suggest-card { animation: none !important; } }

/* ===== Order without an account ===== */
.go-overlay { z-index: 215; overflow-y: auto; align-items: flex-start; }
.go-modal { margin: auto; max-width: 440px; }
.go-summary { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 16px; padding: 12px 16px; border-radius: 14px; background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.28); color: var(--text-light); font-weight: 700; }
.go-summary b { color: #f4d58b; font-size: 18px; }
.go-modal .form-field textarea {
  width: 100%; resize: vertical; min-height: 64px; padding: 13px 16px; border-radius: 14px; font-family: inherit; font-size: 14px; line-height: 1.6;
  color: var(--text-light); background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.22); transition: border-color .2s, box-shadow .2s;
}
.go-modal .form-field textarea::placeholder { color: #8792a5; }
.go-modal .form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.18); }
.go-modal .form-field .optional { font-size: 11.5px; font-weight: 600; color: #8792a5; margin-inline-start: 6px; }
.go-modal .field-error { border-color: #e5675a !important; box-shadow: 0 0 0 4px rgba(229,103,90,.16) !important; }
.go-modal .field-error-text { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #ff9a8e; }
.go-submit { width: 100%; justify-content: center; gap: 10px; margin-top: 6px; padding: 15px 20px; font-size: 16px; }
.go-submit svg { width: 18px; height: 18px; transition: transform .25s; }
.go-submit:hover svg { transform: translateX(-4px); }
.go-submit:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.go-submit:disabled svg { transform: none; }
.go-head { text-align: center; margin-bottom: 14px; }
.go-head h3 { margin: 10px 0 6px; font-size: 24px; color: var(--gold-light); }
.go-head p { margin: 0 auto; max-width: 320px; font-size: 13.5px; line-height: 1.7; color: #9aa6b8; }
.go-modal::after { display: none; }
.go-badge { display: inline-flex; width: 54px; height: 54px; border-radius: 18px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 10px 24px rgba(217,164,65,.35); animation: goBadge 3.2s ease-in-out infinite; }
.go-badge svg { width: 26px; height: 26px; }
@keyframes goBadge { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4px) rotate(3deg); } }
.go-sum-label { display: inline-flex; align-items: center; gap: 8px; }
.go-sum-label svg { width: 18px; height: 18px; color: #f4d58b; }
.go-sum-label em { font-style: normal; }
.go-group { margin: 0 0 14px; padding: 14px 14px 4px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(232,194,122,.16); animation: goUp .5s ease backwards; animation-delay: calc(var(--d, 0) * 100ms + .1s); }
@keyframes goUp { from { opacity: 0; } }
.go-group h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 14.5px; font-weight: 800; color: var(--gold-light); }
.go-group h4 i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12.5px; color: #1b2538; background: var(--gold); }
.go-modal .form-field { margin-bottom: 14px; }
.go-modal .form-field label { display: block; margin-bottom: 0; font-size: 13px; font-weight: 700; color: #cbd3e0; }
.go-input { position: relative; }
.go-input > svg { position: absolute; inset-inline-start: 14px; top: 24px; width: 18px; height: 18px; margin-top: -9px; color: #8792a5; pointer-events: none; transition: color .2s; }
.go-input.is-area > svg { top: 24px; }
.go-input:focus-within > svg { color: var(--gold); }
.go-modal .go-input input, .go-modal .go-input textarea { display: block; width: 100%; box-sizing: border-box; padding-inline-start: 44px; }
.go-secure { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 2px; font-size: 12.5px; color: #8792a5; }
.go-secure svg { width: 15px; height: 15px; }
@media (prefers-reduced-motion: reduce) { .go-badge, .go-group { animation: none !important; } }
.cart-order-number { margin: -8px 0 20px; font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: .5px; }
.cart-order-number[hidden] { display: none; }
.cart-hero[hidden] { display: none; }
.cart-empty-state.is-success { padding-top: 70px; }
.cart-empty-state.is-success .cart-illu { animation: orderPop .7s cubic-bezier(.2,1.2,.3,1) backwards; }
.cart-empty-state.is-success .cart-illu svg path { stroke-dasharray: 30; stroke-dashoffset: 0; animation: orderTick .6s .35s ease backwards; }
@keyframes orderPop { from { transform: scale(.4); opacity: 0; } }
@keyframes orderTick { from { stroke-dashoffset: 30; } }
@media (prefers-reduced-motion: reduce) { .cart-empty-state.is-success .cart-illu, .cart-empty-state.is-success .cart-illu svg path { animation: none; } }

/* ===== Store category tiles v2: photo cards ===== */
.store-tiles { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 16px; }
.store-tiles .store-tile {
  position: relative; overflow: hidden; isolation: isolate; min-height: 300px; padding: 16px 16px 18px;
  align-items: flex-start; justify-content: flex-end; text-align: start; gap: 2px;
  background: var(--navy); color: #fff; border: 2px solid transparent; border-radius: 24px;
  box-shadow: 0 14px 30px rgba(16,29,48,.14);
  transition: transform .35s cubic-bezier(.2,.9,.3,1.1), box-shadow .35s, border-color .3s;
  animation: tileIn .6s cubic-bezier(.2,.9,.3,1.1) backwards;
}
.store-tiles .store-tile:nth-child(1) { animation-delay: .05s; } .store-tiles .store-tile:nth-child(2) { animation-delay: .1s; }
.store-tiles .store-tile:nth-child(3) { animation-delay: .15s; } .store-tiles .store-tile:nth-child(4) { animation-delay: .2s; }
.store-tiles .store-tile:nth-child(5) { animation-delay: .25s; } .store-tiles .store-tile:nth-child(6) { animation-delay: .3s; }
.store-tiles .store-tile:nth-child(7) { animation-delay: .35s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.store-tiles .store-tile:hover { transform: translateY(-6px); box-shadow: 0 24px 46px rgba(16,29,48,.26); }
.store-tiles .store-tile .store-tile-photo { position: absolute; inset: 0; z-index: -1; min-height: 0; border-radius: 0; box-shadow: none; }
.store-tiles .store-tile .store-tile-photo img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.store-tiles .store-tile:hover .store-tile-photo img { transform: scale(1.09); }
.store-tiles .store-tile .store-tile-photo::after { background: linear-gradient(180deg, rgba(10,20,34,.1) 0%, rgba(10,20,34,.2) 38%, rgba(10,20,34,.88) 100%); }
.store-tiles .store-tile .tile-icon { position: absolute; top: 14px; inset-inline-start: 14px; width: 44px; height: 44px; border-radius: 14px; color: var(--gold-light); background: rgba(16,29,48,.55); border: 1px solid rgba(232,194,122,.35); box-shadow: none; transition: background .3s, color .3s, transform .4s; }
.store-tiles .store-tile:hover .tile-icon { transform: rotate(-8deg) scale(1.06); }
.store-tiles .store-tile h4 { margin: 0; font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.store-tiles .store-tile p { margin: 0; padding-inline-end: 44px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8); }
.store-tiles .store-tile .tile-arrow { bottom: 14px; left: 14px; right: auto; width: 34px; height: 34px; transform: translateX(8px); opacity: 0; transition: transform .35s, opacity .3s; }
.store-tiles .store-tile:hover .tile-arrow { transform: none; opacity: 1; }
.tile-count { position: absolute; top: 18px; inset-inline-end: 14px; min-width: 26px; height: 26px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 800; color: #fff; background: rgba(16,29,48,.6); border: 1px solid rgba(255,255,255,.25); }
.store-tiles .store-tile.active { border-color: var(--gold); background: var(--navy); color: #fff; box-shadow: 0 0 0 4px rgba(217,164,65,.22), 0 22px 44px rgba(16,29,48,.28); }
.store-tiles .store-tile.active .tile-icon { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.store-tiles .store-tile.active .tile-count { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.store-tiles .store-tile.active p { color: #f4d58b; }
.store-tiles .store-tile.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
@media (max-width: 720px) {
  .store-tiles { display: flex; grid-template-columns: none; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 6px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .store-tiles::-webkit-scrollbar { display: none; }
  .store-tiles .store-tile { flex: 0 0 152px; min-height: 220px; scroll-snap-align: center; border-radius: 20px; }
  .store-tiles .store-tile h4 { font-size: 15.5px; }
  .store-tiles .store-tile p { font-size: 11.5px; padding-inline-end: 0; }
  .store-tiles .store-tile .tile-icon { width: 38px; height: 38px; top: 10px; inset-inline-start: 10px; }
  .store-tiles .store-tile .tile-icon svg { width: 18px !important; height: 18px !important; }
  .tile-count { top: 14px; inset-inline-end: 10px; }
  .store-tiles .store-tile .tile-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) { .store-tiles .store-tile { animation: none; transition: none; } .store-tiles .store-tile .store-tile-photo img { transition: none; } }

/* ===== Store hero v2 ===== */
.store-hero { position: relative; overflow: hidden; isolation: isolate; }
.sh-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.sh-glow-a { width: 340px; height: 340px; top: -90px; inset-inline-end: 8%; background: rgba(217,164,65,.28); animation: shDrift 9s ease-in-out infinite; }
.sh-glow-b { width: 260px; height: 260px; bottom: -80px; inset-inline-start: 6%; background: rgba(90,130,200,.22); animation: shDrift 11s ease-in-out infinite reverse; }
@keyframes shDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, 18px); } }
.store-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.3); font-size: 12.5px; font-weight: 800; margin-bottom: 18px; }
.store-hero .eyebrow svg { width: 14px; height: 14px; animation: shSpin 6s linear infinite; }
@keyframes shSpin { to { transform: rotate(360deg); } }
.store-hero h1 { font-size: 46px; line-height: 1.25; }
.store-hero h1 em { font-style: normal; background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
@keyframes shShine { to { background-position: -200% 0; } }
.store-hero .sh-copy > * { animation: shUp .7s cubic-bezier(.2,.9,.3,1.1) backwards; }
.store-hero .sh-copy > :nth-child(2) { animation-delay: .08s; } .store-hero .sh-copy > :nth-child(3) { animation-delay: .16s; }
.store-hero .sh-copy > :nth-child(4) { animation-delay: .24s; } .store-hero .sh-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes shUp { from { opacity: 0; transform: translateY(20px); } }
.sh-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.sh-actions .btn-gold { box-shadow: 0 14px 34px rgba(217,164,65,.35); }
.sh-ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.22); transition: background .25s, transform .2s; }
.sh-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-chips button { padding: 8px 16px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 700; color: var(--gold-light); background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.3); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.sh-chips button:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.sh-frame { position: relative; width: 100%; animation: shFloat 6s ease-in-out infinite; }
@keyframes shFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.sh-frame::before { content: ""; position: absolute; inset: -10px; border-radius: 32px; border: 1px solid rgba(232,194,122,.35); transform: rotate(2deg); pointer-events: none; }
.store-hero .cat-face.store-hero-photo { position: relative; z-index: 1; box-shadow: 0 30px 70px rgba(0,0,0,.45), 0 0 0 1px rgba(232,194,122,.3); }
.sh-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; color: var(--navy); background: rgba(255,255,255,.95); box-shadow: 0 14px 30px rgba(0,0,0,.28); font-size: 13px; }
.sh-badge svg { width: 16px; height: 16px; color: #d9a441; }
.sh-badge small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.sh-badge-a { top: 14px; inset-inline-start: -14px; animation: shFloat 5s ease-in-out infinite; }
.sh-badge-b { bottom: 18px; inset-inline-end: -14px; flex-direction: column; align-items: flex-start; gap: 0; animation: shFloat 5.5s .8s ease-in-out infinite; }
@media (max-width: 720px) {
  .store-hero h1 { font-size: 32px; }
  .sh-badge-a { inset-inline-start: 6px; } .sh-badge-b { inset-inline-end: 6px; }
  .sh-badge { padding: 8px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .store-hero *, .sh-glow { animation: none !important; } }

/* ===== Animal listings hero v2 ===== */
.ad-hero .hx-hero-card { isolation: isolate; }
.adh-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.adh-glow-a { width: 360px; height: 360px; top: -110px; inset-inline-start: 38%; background: rgba(217,164,65,.26); animation: shDrift 10s ease-in-out infinite; }
.adh-glow-b { width: 280px; height: 280px; bottom: -90px; inset-inline-end: 4%; background: rgba(90,130,200,.24); animation: shDrift 12s ease-in-out infinite reverse; }
.ad-hero .hx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.3); }
.ad-hero .hx-kicker::before { display: none; }
.ad-hero .hx-hero-text h1 .accent { background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.ad-hero .hx-hero-text > * { animation: shUp .7s cubic-bezier(.2,.9,.3,1.1) backwards; }
.ad-hero .hx-hero-text > :nth-child(2) { animation-delay: .08s; } .ad-hero .hx-hero-text > :nth-child(3) { animation-delay: .16s; }
.ad-hero .hx-hero-text > :nth-child(4) { animation-delay: .24s; } .ad-hero .hx-hero-text > :nth-child(5) { animation-delay: .32s; }
.ad-hero .hx-hero-text > :nth-child(6) { animation-delay: .4s; }
.adh-browse { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; font-family: 'Tajawal', sans-serif; }
.adh-browse > span { font-size: 13px; font-weight: 800; color: #9ba6b8; }
.adh-browse button { padding: 8px 18px; border-radius: 999px; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--gold-light); background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.3); cursor: pointer; transition: background .25s, color .25s, transform .2s; }
.adh-browse button:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.ad-hero .hx-hero-actions { margin-bottom: 34px; }
.ad-hero .hx-hero-visual { animation: shFloat 6.5s ease-in-out infinite; }
.ad-hero .ad-hero-frame { box-shadow: 0 40px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(232,194,122,.35); }
.ad-hero .hx-hero-visual::before { content: ""; position: absolute; inset: -10px; border-radius: 34px; border: 1px solid rgba(232,194,122,.3); transform: rotate(-2deg); pointer-events: none; }
.adh-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; color: var(--navy); background: rgba(255,255,255,.95); box-shadow: 0 14px 30px rgba(0,0,0,.28); font-size: 13px; font-family: 'Tajawal', sans-serif; }
.adh-badge svg { width: 17px; height: 17px; color: #d9a441; }
.adh-badge-a { top: 22px; inset-inline-end: -12px; animation: shFloat 5s ease-in-out infinite; }
.adh-badge-b { bottom: 26px; inset-inline-start: -12px; animation: shFloat 5.5s .8s ease-in-out infinite; }
@media (max-width: 720px) {
  .adh-badge { padding: 8px 12px; font-size: 12px; } .adh-badge-a { inset-inline-end: 6px; } .adh-badge-b { inset-inline-start: 6px; }
}
@media (prefers-reduced-motion: reduce) { .ad-hero *, .adh-glow { animation: none !important; } }

/* ===== Animal listings: discover section, filters v2 ===== */
.adl-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(217,164,65,.14); }
.adl-kicker::before { display: none; }
.ad-listings-head { padding-bottom: 22px; border-bottom: 1px solid #efe7d8; position: relative; }
.ad-listings-head::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 90px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #f4d58b); }
.ad-listings-head .hx-title { font-size: 38px; }
.adl-count { display: inline-flex; align-items: center; gap: 10px; }
.adl-count::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 0 rgba(62,207,142,.6); animation: adlPulse 1.8s infinite; flex-shrink: 0; }
@keyframes adlPulse { 70% { box-shadow: 0 0 0 9px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.listing-sections-pills { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--navy); box-shadow: 0 16px 34px rgba(16,29,48,.2); }
.listing-sections-pills .filter-pill { background: transparent; border-color: transparent; color: #cfd6e2; padding: 11px 22px; font-size: 14px; box-shadow: none; }
.listing-sections-pills .filter-pill:hover { color: #fff; transform: none; border-color: transparent; }
.listing-sections-pills .filter-pill.active { background: linear-gradient(135deg, #f4d58b, #d9a441); color: var(--navy); box-shadow: 0 8px 20px rgba(217,164,65,.4); }
.filter-pill .pi { width: 16px; height: 16px; flex-shrink: 0; }
.ad-filter { position: relative; overflow: hidden; padding: 32px 34px; }
.ad-filter::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
.adf-label { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.adf-label h4 { margin: 0; font-size: 16px !important; font-weight: 900; color: var(--navy) !important; }
.adf-label p { margin: 0; font-size: 12.5px; color: var(--muted); }
.adf-num { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 900; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); }
.ad-filter .adoption-search-input { border-radius: 16px; padding: 4px 6px; min-height: 54px; box-shadow: 0 2px 8px rgba(16,29,48,.04); }
.ad-filter .adoption-search-input:hover:not(:has(input:disabled)) { border-color: var(--gold); }
.ad-filter .adoption-search-input input { font-weight: 700; }
.ad-filter .adoption-combo-dropdown { margin-top: 8px; border-radius: 16px; border: 1px solid #efe7d8; box-shadow: 0 24px 50px rgba(16,29,48,.18); max-height: 280px; overflow-y: auto; animation: adlDrop .22s ease; }
@keyframes adlDrop { from { opacity: 0; transform: translateY(-6px); } }
.ad-filter .adoption-combo-option { padding: 12px 16px; font-weight: 600; transition: background .15s, padding .15s; }
.ad-filter .adoption-combo-option:hover { background: rgba(217,164,65,.14); padding-inline-start: 22px; }
.ad-filter-grid { display: block; padding-top: 24px; }
.ad-filter-grid .filter-pills { gap: 10px; }
.ad-filter-grid .filter-pill { padding: 12px 20px; font-size: 14px; border-width: 1.5px; }
.ad-filter-grid .filter-pill .pi { color: #b9832c; transition: color .2s, transform .3s; }
.ad-filter-grid .filter-pill:hover .pi { transform: rotate(-8deg) scale(1.1); }
.ad-filter-grid .filter-pill.active { box-shadow: 0 10px 22px rgba(16,29,48,.25); }
.ad-filter-grid .filter-pill.active .pi { color: var(--gold-light); }
@media (max-width: 720px) {
  .ad-listings-head .hx-title { font-size: 28px; }
  .listing-sections-pills { display: flex; width: 100%; } .listing-sections-pills .filter-pill { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .listing-sections-pills .filter-pill .pi { display: none; }
  .ad-filter { padding: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) { .adl-count::before, .ad-filter .adoption-combo-dropdown { animation: none; } }

/* ===== Combo select: bottom sheet on phones ===== */
.combo-sheet { position: fixed; left: 0; right: 0; top: 0; height: 100%; z-index: 400; display: flex; align-items: flex-end; background: rgba(8,16,28,0); transition: background .25s; }
.combo-sheet.is-open { background: rgba(8,16,28,.6); }
.combo-sheet.is-closing { background: rgba(8,16,28,0); }
.combo-sheet-panel { position: relative; width: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.3); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.3,1); overflow: hidden; }
.combo-sheet.is-open .combo-sheet-panel { transform: translateY(0); }
.combo-sheet.is-closing .combo-sheet-panel { transform: translateY(100%); }
.combo-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; }
.combo-sheet-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: #d9d2c3; }
.combo-sheet-head h4 { margin: 8px 0 0; font-size: 18px; font-weight: 900; color: var(--navy); }
.combo-sheet-close { width: 36px; height: 36px; margin-top: 8px; border-radius: 50%; border: none; background: var(--cream); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; }
.combo-sheet-search { position: relative; margin: 8px 16px 10px; }
.combo-sheet-search svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 18px; height: 18px; margin-top: -9px; color: #b9832c; pointer-events: none; }
.combo-sheet-search input { width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px; padding-inline-start: 44px; border-radius: 14px; border: 1.5px solid #ddd2b8; background: #fff; font-family: inherit; font-size: 16px; color: var(--navy); }
.combo-sheet-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.16); }
.combo-sheet-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 12px 18px; }
.combo-sheet-option { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; margin-bottom: 4px; border: none; border-radius: 14px; background: transparent; font-family: inherit; font-size: 16px; font-weight: 700; color: var(--navy); text-align: start; cursor: pointer; }
.combo-sheet-option svg { width: 20px; height: 20px; color: var(--gold); opacity: 0; }
.combo-sheet-option:active { background: rgba(217,164,65,.16); }
.combo-sheet-option.all { color: #9a6b13; background: rgba(217,164,65,.1); }
.combo-sheet-option.is-selected { background: rgba(217,164,65,.18); }
.combo-sheet-option.is-selected svg { opacity: 1; }
.combo-sheet-empty { padding: 30px 12px; text-align: center; color: var(--muted); font-size: 15px; }
body.combo-sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .combo-sheet, .combo-sheet-panel { transition: none; } }

/* ===== Adoption / lost listing card v2 ===== */
.adoption-page .pet-card:not(.mating-card) .pet-media { aspect-ratio: 5 / 4; }
.adoption-page .pet-card .pet-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,34,.28) 0%, transparent 30%); pointer-events: none; }
.pet-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 18px 6px; }
.pet-facts .pf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--cream); border: 1px solid #efe7d8; min-width: 0; transition: transform .2s, border-color .2s; }
.pet-facts .pf:hover { transform: translateY(-2px); border-color: rgba(217,164,65,.6); }
.pet-facts .pf-wide { grid-column: 1 / -1; }
.pet-facts .pf-ic { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #9a6b13; background: #fff; box-shadow: 0 4px 10px rgba(16,29,48,.07); }
.pet-facts .pf-ic svg { width: 18px; height: 18px; }
.pet-facts .pf-t { display: flex; flex-direction: column; min-width: 0; }
.pet-facts .k { font-size: 11px; font-weight: 700; color: #b9832c; }
.pet-facts .v { font-size: 13.5px; font-weight: 800; color: var(--navy); overflow-wrap: anywhere; }
.pet-facts .pf-vax.yes { background: rgba(47,143,78,.1); border-color: rgba(47,143,78,.3); }
.pet-facts .pf-vax.yes .pf-ic { color: #2f8f4e; }
.pet-facts .pf-vax.yes .v { color: #2f8f4e; }
.pet-facts .pf-vax.no { background: rgba(195,63,63,.07); border-color: rgba(195,63,63,.25); }
.pet-facts .pf-vax.no .pf-ic { color: #c33f3f; }
.pet-facts .pf-vax.no .v { color: #c33f3f; }
.adoption-page .pet-card .listing-desc { margin: 10px 20px 4px; font-size: 13.5px; line-height: 1.8; color: #5b6472; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.adoption-page .pet-card .pet-card-cta { margin-top: auto; background: linear-gradient(135deg, #16263f, var(--navy)); }
.adoption-page .pet-card .listing-desc + .pet-card-cta, .adoption-page .pet-card .pet-facts + .pet-card-cta { margin-top: 14px; }

/* ===== Listing form v2 (adoption / lost / mating) ===== */
.auth-modal.listing-modal.lf-modal { max-width: 640px; padding: 30px 26px 26px; border-radius: 28px; background: #fff; box-shadow: 0 30px 80px rgba(16,29,48,.28); }
.lf-head { text-align: center; margin-bottom: 14px; }
.lf-badge { display: inline-flex; width: 56px; height: 56px; border-radius: 18px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 12px 26px rgba(217,164,65,.38); animation: goBadge 3.2s ease-in-out infinite; }
.lf-badge svg { width: 28px; height: 28px; }
.lf-head h3 { margin: 12px 0 6px !important; font-size: 24px; font-weight: 900; color: var(--navy); }
.lf-head p { margin: 0 auto; max-width: 380px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.lf-note { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: rgba(217,164,65,.12); border: 1px solid rgba(217,164,65,.35); font-size: 13px; font-weight: 700; color: #7a5410; }
.lf-note svg { width: 20px; height: 20px; flex-shrink: 0; color: #b9832c; }
.lf-form { position: relative; display: flex; flex-direction: column; gap: 16px; }
.lf-hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.lf-sec { padding: 18px 16px 6px; border-radius: 20px; background: #fbf8f1; border: 1px solid #efe7d8; display: flex; flex-direction: column; gap: 14px; animation: goUp .5s ease backwards; }
.lf-sec[hidden] { display: none; }
.lf-sec:nth-of-type(2) { animation-delay: .08s; } .lf-sec:nth-of-type(3) { animation-delay: .16s; } .lf-sec:nth-of-type(4) { animation-delay: .24s; }
.lf-sec-head { display: flex; align-items: center; gap: 10px; margin: 0 0 2px; font-size: 15px; font-weight: 900; color: var(--navy); }
.lf-sec-head i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-modal .form-field { margin: 0; padding-bottom: 12px; gap: 7px; }
.lf-grid .form-field { padding-bottom: 0; }
.lf-modal .form-field label { font-size: 13px; font-weight: 800; color: var(--navy); }
.lf-modal .form-field input:not([type="checkbox"]):not([type="file"]), .lf-modal .form-field select, .lf-modal .form-field textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 14px; border: 1.5px solid #e3dccd; background: #fff; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.lf-modal .form-field input:focus, .lf-modal .form-field select:focus, .lf-modal .form-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.16); }
.lf-hidden-select { display: none !important; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chips button { padding: 10px 18px; border-radius: 999px; border: 1.5px solid #e3dccd; background: #fff; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.lf-chips button:hover { border-color: var(--gold); transform: translateY(-1px); }
.lf-chips button.is-on { background: var(--navy); color: var(--gold-light); border-color: var(--navy); box-shadow: 0 8px 18px rgba(16,29,48,.22); }
.lf-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border-radius: 18px; border: 2px dashed rgba(217,164,65,.6); background: rgba(217,164,65,.07); text-align: center; cursor: pointer; transition: background .25s, transform .2s, border-color .2s; }
.lf-drop:hover { background: rgba(217,164,65,.14); border-color: var(--gold); transform: translateY(-2px); }
.lf-drop svg { width: 34px; height: 34px; color: #b9832c; }
.lf-drop b { font-size: 15px; color: var(--navy); }
.lf-drop small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lf-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lf-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.lf-previews:empty { display: none; }
.lf-thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 1px solid #e3dccd; animation: sesChip .35s ease backwards; }
.lf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lf-main { position: absolute; bottom: 6px; inset-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; color: var(--navy); background: var(--gold); }
.lf-thumb-x { position: absolute; top: 5px; inset-inline-end: 5px; width: 24px; height: 24px; border-radius: 50%; border: none; background: rgba(16,29,48,.75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.lf-hint { font-size: 12px; color: var(--muted); }
.lf-check { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0 12px; font-size: 13px; line-height: 1.7; color: #4b5563; cursor: pointer; }
.lf-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.lf-submit { width: 100%; justify-content: center; gap: 10px; padding: 16px 20px; font-size: 16px; box-shadow: 0 14px 30px rgba(217,164,65,.35); }
.lf-submit svg { width: 18px; height: 18px; transition: transform .25s; }
.lf-submit:hover svg { transform: translateX(-4px); }
.lf-submit:disabled { opacity: .65; }
.lf-modal .auth-msg { margin: 0; min-height: 0; }
.lf-modal .auth-msg.error { color: #c0392b; font-weight: 700; }
.lf-success { text-align: center; padding: 18px 8px 8px; animation: goUp .5s ease backwards; }
.lf-success[hidden] { display: none; }
.lf-success-ic { display: inline-flex; width: 92px; height: 92px; border-radius: 50%; align-items: center; justify-content: center; color: #2f8f4e; background: rgba(47,143,78,.12); animation: orderPop .7s cubic-bezier(.2,1.2,.3,1) backwards; }
.lf-success-ic svg { width: 52px; height: 52px; }
.lf-success h3 { margin: 16px 0 8px; font-size: 24px; font-weight: 900; color: var(--navy); }
.lf-success p { margin: 0 auto 22px; max-width: 380px; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.lf-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.lf-again { background: #fff; color: var(--navy); border: 1.5px solid #e3dccd; }
.lf-again:hover { border-color: var(--gold); }
#listing-overlay.listing-inline .auth-modal.listing-modal.lf-modal { max-width: 680px; }
@media (max-width: 600px) {
  .auth-modal.listing-modal.lf-modal { padding: 24px 14px 20px; border-radius: 22px; }
  .lf-grid { grid-template-columns: 1fr; }
  .lf-sec { padding: 16px 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .lf-badge, .lf-sec, .lf-success, .lf-success-ic, .lf-thumb { animation: none !important; } }
.lf-modal.is-done .lf-note { display: none; }

/* ===== Names page v2 ===== */
.names-hero { position: relative; overflow: hidden; isolation: isolate; }
.names-hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.3); font-size: 12.5px; font-weight: 800; margin-bottom: 18px; }
.names-hero .eyebrow svg { width: 14px; height: 14px; animation: shSpin 6s linear infinite; }
.names-hero h1 em { font-style: normal; background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.names-hero .nm-copy > * { animation: shUp .7s cubic-bezier(.2,.9,.3,1.1) backwards; }
.names-hero .nm-copy > :nth-child(2) { animation-delay: .08s; } .names-hero .nm-copy > :nth-child(3) { animation-delay: .16s; } .names-hero .nm-copy > :nth-child(4) { animation-delay: .24s; }
.nm-ghost { background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.22); gap: 8px; transition: background .25s, transform .2s; }
.nm-ghost:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.nm-ghost svg, .nm-suggest-btn svg { width: 18px; height: 18px; }
.nm-visual { position: relative; animation: shFloat 6.5s ease-in-out infinite; }
.nm-visual::before { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 1px solid rgba(232,194,122,.32); transform: rotate(2deg); pointer-events: none; }
.nm-visual .names-hero-photo { box-shadow: 0 30px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(232,194,122,.3); }
.nm-tag { position: absolute; z-index: 2; padding: 9px 18px; border-radius: 999px; font-size: 15px; font-weight: 900; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 12px 26px rgba(0,0,0,.28); }
.nm-tag-a { top: 10px; inset-inline-start: -14px; animation: shFloat 5s ease-in-out infinite; }
.nm-tag-b { top: 46%; inset-inline-end: -16px; background: var(--gold); animation: shFloat 5.6s .6s ease-in-out infinite; }
.nm-tag-c { bottom: 16px; inset-inline-start: 18px; animation: shFloat 6s 1.2s ease-in-out infinite; }

.nm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.nm-actions .names-add-btn { margin-top: 0; }
.nm-suggest-btn { gap: 8px; background: var(--navy); color: var(--gold-light); box-shadow: 0 12px 26px rgba(16,29,48,.22); transition: transform .2s, box-shadow .25s; }
.nm-suggest-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16,29,48,.3); }

.nm-reveal { margin: 0 0 24px; }
.nm-reveal[hidden] { display: none; }
.nm-reveal-card { position: relative; max-width: 520px; margin: 0 auto; padding: 30px 24px 26px; text-align: center; border-radius: 28px; color: #fff; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(217,164,65,.3), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); border: 1px solid rgba(232,194,122,.45); box-shadow: 0 26px 60px rgba(16,29,48,.35); animation: sesIn .5s cubic-bezier(.2,.9,.3,1.1) backwards; }
.nm-reveal-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.nm-reveal-k { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .5px; color: var(--gold-light); }
.nm-reveal-name { display: block; margin: 10px 0 6px; font-size: 54px; line-height: 1.2; font-weight: 900; font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; background: linear-gradient(100deg, #f4d58b, #fff 50%, #f4d58b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nm-reveal-card.is-shuffling .nm-reveal-name { opacity: .7; filter: blur(1px); }
.nm-reveal-card.is-done .nm-reveal-name { animation: orderPop .5s cubic-bezier(.2,1.2,.3,1); }
.nm-reveal-m { display: block; min-height: 20px; margin-bottom: 18px; font-size: 14px; color: #cfd6e2; }
.nm-reveal-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.nm-reveal-again { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.nm-reveal-again:hover { background: rgba(255,255,255,.16); }

.names-filter { position: relative; overflow: hidden; border-radius: 28px; padding: 26px 28px; border: 1px solid #efe7d8; box-shadow: 0 24px 60px rgba(16,29,48,.08); }
.names-filter::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
.names-filter .filter-row-head h4 { font-size: 15px; font-weight: 900; color: var(--navy); }
.names-filter .filter-pill { background: #fff; border-color: #efe7d8; padding: 10px 18px; font-weight: 700; }
.names-filter .filter-pill:hover { border-color: rgba(217,164,65,.7); }
.names-filter .filter-pill.active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); box-shadow: 0 8px 18px rgba(16,29,48,.22); }
.names-filter .filter-pill[data-value="ذكر"]::before { content: "♂"; color: #5a8fd6; }
.names-filter .filter-pill[data-value="أنثى"]::before { content: "♀"; color: #d86a98; }
.nm-search-wrap { position: relative; flex: 1; min-width: 220px; max-width: 460px; }
.nm-search-wrap svg { position: absolute; top: 50%; inset-inline-start: 16px; width: 18px; height: 18px; margin-top: -9px; color: #b9832c; pointer-events: none; }
.nm-search-wrap .names-search { max-width: none; padding-inline-start: 44px; border-color: #e3dccd; }
.nm-letters { flex: 1; min-width: 220px; display: flex; flex-wrap: wrap; gap: 6px; }
.nm-letters button { min-width: 38px; height: 38px; padding: 0 10px; border-radius: 12px; border: 1px solid #efe7d8; background: #fff; font-family: inherit; font-size: 15px; font-weight: 800; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, transform .15s, border-color .2s; }
.nm-letters button:hover { border-color: var(--gold); transform: translateY(-2px); }
.nm-letters button.is-on { background: linear-gradient(135deg, #f4d58b, #d9a441); border-color: transparent; color: var(--navy); box-shadow: 0 8px 18px rgba(217,164,65,.35); }

.names-results { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(217,164,65,.14); color: #7a5410; }
.names-grid .name-card { border-radius: 22px; border-color: #efe7d8; box-shadow: 0 10px 26px rgba(16,29,48,.07); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s, border-color .3s; animation: nmCardIn .45s ease backwards; }
.names-grid .name-card:nth-child(5n+2) { animation-delay: .04s; } .names-grid .name-card:nth-child(5n+3) { animation-delay: .08s; }
.names-grid .name-card:nth-child(5n+4) { animation-delay: .12s; } .names-grid .name-card:nth-child(5n) { animation-delay: .16s; }
@keyframes nmCardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.names-grid .name-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,.6); box-shadow: 0 24px 46px rgba(16,29,48,.16); }
.name-card .nc-media--brand::before { transition: transform .5s ease; }
.name-card:hover .nc-media--brand::before { transform: scale(1.1) rotate(-3deg); }
.nc-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.nc-title-row h4 { margin: 0; font-size: 22px; font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; color: var(--navy); }
.nc-copy { flex-shrink: 0; width: 34px; height: 34px; border-radius: 12px; border: 1px solid #efe7d8; background: var(--cream); color: #9a6b13; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.nc-copy svg { width: 16px; height: 16px; }
.nc-copy:hover { background: var(--navy); color: var(--gold-light); transform: scale(1.08); }
@media (max-width: 720px) {
  .nm-reveal-name { font-size: 42px; }
  .nm-tag { font-size: 13px; padding: 7px 14px; } .nm-tag-a { inset-inline-start: 6px; } .nm-tag-b { inset-inline-end: 6px; }
  .names-filter { padding: 22px 16px; }
  .nm-letters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .nm-letters::-webkit-scrollbar { display: none; }
  .nm-letters button { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .names-hero *, .nm-visual, .names-grid .name-card, .nm-reveal-card { animation: none !important; } }

/* ===== Cat hotel page v2 ===== */
.ht-hero .hx-hero-card { isolation: isolate; }
.ht-hero .hx-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.3); }
.ht-hero .hx-kicker::before { display: none; }
.ht-hero .hx-hero-text h1 .accent { background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.ht-hero .hx-hero-text > * { animation: shUp .7s cubic-bezier(.2,.9,.3,1.1) backwards; }
.ht-hero .hx-hero-text > :nth-child(2) { animation-delay: .08s; } .ht-hero .hx-hero-text > :nth-child(3) { animation-delay: .16s; }
.ht-hero .hx-hero-text > :nth-child(4) { animation-delay: .24s; } .ht-hero .hx-hero-text > :nth-child(5) { animation-delay: .32s; }
.ht-hero .hx-hero-visual { animation: shFloat 6.5s ease-in-out infinite; }
.ht-hero .hx-hero-visual::before { content: ""; position: absolute; inset: -10px; border-radius: 34px; border: 1px solid rgba(232,194,122,.3); transform: rotate(-2deg); pointer-events: none; }
.ht-hero .hotel-hero-frame { box-shadow: 0 40px 80px rgba(0,0,0,.4), 0 0 0 1px rgba(232,194,122,.35); }
.ht-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 16px; color: var(--navy); background: rgba(255,255,255,.96); box-shadow: 0 14px 30px rgba(0,0,0,.28); font-size: 13px; font-family: 'Tajawal', sans-serif; }
.ht-badge svg { width: 17px; height: 17px; color: #d9a441; }
.ht-badge-a { top: 24px; inset-inline-end: -12px; animation: shFloat 5s ease-in-out infinite; }
.ht-badge-b { bottom: 28px; inset-inline-start: -12px; animation: shFloat 5.6s .8s ease-in-out infinite; }

/* scroll reveal (classes are added by main.js) */
.rv { opacity: 0; }
.rv.rv-in { opacity: 1; animation: rvIn .7s cubic-bezier(.2,.9,.3,1.1) backwards; animation-delay: calc(var(--rv, 0) * 90ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(26px); } }

.hx-amenity { transition: background .25s; }
.hx-amenity:hover { background: rgba(217,164,65,.07); }
.hx-amenity-icon { transition: transform .35s cubic-bezier(.2,1.2,.3,1), background .25s, color .25s; }
.hx-amenity:hover .hx-amenity-icon { transform: rotate(-8deg) scale(1.12); background: var(--gold); color: var(--navy); }

.hx-photo-lg img, .hx-photo-sm img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.hx-experience-visual:hover .hx-photo-lg img { transform: scale(1.05); }
.hx-photo-sm { transition: transform .4s cubic-bezier(.2,.9,.3,1.1); }
.hx-experience-visual:hover .hx-photo-sm { transform: translateY(-8px) rotate(-3deg); }
.hx-photo-tag { animation: shFloat 5s ease-in-out infinite; }
.hx-care-icon { transition: background .25s, color .25s, transform .3s; }
.hx-care-list li:hover .hx-care-icon { background: var(--navy); color: var(--gold-light); transform: rotate(-6deg); }

.hx-suite { position: relative; }
.hx-suite.featured { box-shadow: 0 0 0 3px rgba(217,164,65,.3), 0 30px 64px rgba(16,29,48,.28); }
.hx-suite-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.hx-suite:hover .hx-suite-media img { transform: scale(1.07); }
.hx-suite-media { overflow: hidden; }
.hx-suite-ribbon { overflow: hidden; }
.hx-suite-ribbon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); transform: translateX(-120%); animation: htShine 3.4s ease-in-out infinite; }
@keyframes htShine { 55%, 100% { transform: translateX(120%); } }
.hx-suite-price { padding: 8px 16px; border-radius: 18px; background: rgba(217,164,65,.12); }
.hx-suite.featured .hx-suite-price { background: rgba(232,194,122,.14); }
.hx-suite-foot .btn { transition: transform .2s, box-shadow .25s; }
.hx-suite-foot .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(16,29,48,.28); }

.hx-steps::before { border-top-style: dashed; animation: htDash 1.2s linear infinite; background: none; }
@keyframes htDash { to { background-position: 0 0; } }
.hx-step-num { background: linear-gradient(145deg, #1c2f4c, var(--navy)); transition: transform .35s cubic-bezier(.2,1.2,.3,1), background .3s, color .3s; }
.hx-steps li:hover .hx-step-num { transform: scale(1.12) rotate(-6deg); background: linear-gradient(135deg, #f4d58b, #d9a441); color: var(--navy); }

.hx-form-card { position: relative; overflow: hidden; }
.hx-form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
.hx-form-card .form-field input:not([type="checkbox"]), .hx-form-card .form-field select, .hx-form-card .form-field textarea { border-radius: 14px; border-width: 1.5px; border-color: #e3dccd; }
.hx-form-card .form-field label { font-weight: 800; color: var(--navy); }
.hx-summary { position: sticky; top: 100px; }

.hx-faq details { margin-bottom: 10px; padding: 0 18px; border-radius: 18px; background: #fff; border: 1px solid #efe7d8; transition: border-color .25s, box-shadow .25s; }
.hx-faq details[open] { border-color: rgba(217,164,65,.6); box-shadow: 0 14px 30px rgba(16,29,48,.08); }
.hx-faq summary { position: relative; padding: 16px 0; padding-inline-end: 30px; font-weight: 800; color: var(--navy); cursor: pointer; list-style: none; }
.hx-faq summary::-webkit-details-marker { display: none; }
.hx-faq summary::after { content: "+"; position: absolute; inset-inline-end: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: #9a6b13; background: rgba(217,164,65,.16); transition: transform .3s, background .25s, color .25s; }
.hx-faq details[open] summary::after { content: "−"; background: var(--gold); color: var(--navy); transform: rotate(180deg); }
.hx-faq details p { margin: 0; padding-bottom: 16px; animation: shUp .35s ease; }
.hx-prep-list li { transition: transform .2s; }
.hx-prep-list li:hover { transform: translateX(-4px); }
@media (max-width: 720px) {
  .ht-badge { padding: 8px 12px; font-size: 12px; } .ht-badge-a { inset-inline-end: 6px; } .ht-badge-b { inset-inline-start: 6px; }
  .hx-summary { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-hero *, .hx-photo-tag, .hx-suite-ribbon::after, .hx-steps::before, .hx-faq details p { animation: none !important; }
  .rv, .rv.rv-in { opacity: 1; animation: none; }
}

/* ===== Pet ID page v2 ===== */
.pid-hero-v2 { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 34px 22px 26px; border-radius: 28px; color: #fff; background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(217,164,65,.22), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); box-shadow: 0 24px 60px rgba(16,29,48,.22); animation: sesIn .6s cubic-bezier(.2,.9,.3,1.1) backwards; }
.pid-hero-v2 .sh-glow-a { width: 240px; height: 240px; top: -80px; inset-inline-end: 6%; }
.pid-hero-v2 .sh-glow-b { width: 200px; height: 200px; bottom: -80px; inset-inline-start: 4%; }
.pid-hero-ic { display: inline-flex; width: 60px; height: 60px; border-radius: 20px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 12px 28px rgba(217,164,65,.4); animation: goBadge 3.2s ease-in-out infinite; }
.pid-hero-ic svg { width: 30px; height: 30px; }
.pid-hero-v2 .about-eyebrow { display: block; margin: 14px auto 0; width: fit-content; padding: 6px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(232,194,122,.3); color: var(--gold-light); font-size: 12.5px; font-weight: 800; }
.pid-hero-v2 h1 { margin: 12px 0 8px; color: #fff; }
.pid-hero-v2 h1 em { font-style: normal; background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.pid-hero-v2 p { max-width: 520px; margin: 0 auto; color: #cfd6e2; line-height: 1.8; }
.pid-steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pid-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #e6ebf3; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.pid-steps li i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 900; color: var(--navy); background: var(--gold); }
.pid-card { border-radius: 26px; border-color: #efe7d8; box-shadow: 0 24px 60px rgba(16,29,48,.09); position: relative; overflow: hidden; animation: shUp .6s .1s cubic-bezier(.2,.9,.3,1.1) backwards; }
#pid-form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
.pid-step-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 -4px; font-size: 16px; font-weight: 900; color: var(--navy); }
.pid-step-head i { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); }
.pid-photo-pick { gap: 4px; min-height: 170px; border-width: 2px; background: rgba(217,164,65,.07); transition: background .25s, transform .2s, border-color .2s; }
.pid-photo-pick:hover { background: rgba(217,164,65,.14); border-color: var(--gold); transform: translateY(-2px); }
.pid-photo-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; color: #9a6b13; background: #fff; box-shadow: 0 8px 18px rgba(16,29,48,.1); }
.pid-photo-ic svg { width: 26px; height: 26px; }
.pid-photo-sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pid-field > span { font-weight: 800; color: var(--navy); }
.pid-field input, .pid-field select { border-width: 1.5px; border-color: #e3dccd; height: 48px; }
.pid-design-option { transition: transform .25s cubic-bezier(.2,.9,.3,1.1); }
.pid-design-option:hover { transform: translateY(-4px); }
.pid-design-option.is-selected .pid-design-thumb::after { content: ""; position: absolute; top: 8px; inset-inline-end: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101d30' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 6px 14px rgba(0,0,0,.25); animation: orderPop .35s cubic-bezier(.2,1.2,.3,1); }
.pid-live-wrap { padding: 20px 12px; border-radius: 22px; background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(217,164,65,.2), transparent 75%), #fbf8f1; border: 1px solid #efe7d8; }
#pid-live .pid-art, .pid-result-card .pid-art { box-shadow: 0 22px 46px rgba(16,29,48,.22); animation: shFloat 6s ease-in-out infinite; }
.pid-submit { gap: 10px; padding: 16px 20px; font-size: 16px; box-shadow: 0 14px 30px rgba(217,164,65,.35); }
.pid-submit svg { width: 18px; height: 18px; transition: transform .25s; }
.pid-submit:hover svg { transform: translateX(-4px); }
.pid-result-card { padding: 26px 12px; border-radius: 26px; background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(217,164,65,.25), transparent 75%), #fbf8f1; border: 1px solid #efe7d8; animation: orderPop .6s cubic-bezier(.2,1.1,.3,1) backwards; }
.pid-actions .btn { transition: transform .2s, box-shadow .25s; }
.pid-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(16,29,48,.18); }
.pid-gate { padding: 34px 22px; background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(217,164,65,.14), transparent 70%), #fff; }
.pid-list-item { transition: transform .2s, border-color .2s, box-shadow .2s; }
.pid-list-item:hover { transform: translateX(-4px); border-color: rgba(217,164,65,.6); box-shadow: 0 12px 26px rgba(16,29,48,.1); }
@media (max-width: 480px) { .pid-hero-v2 { padding: 28px 16px 22px; border-radius: 22px; } .pid-steps li { font-size: 12px; padding: 6px 12px 6px 8px; } }
@media (prefers-reduced-motion: reduce) { .pid-hero-v2, .pid-hero-v2 *, .pid-card, #pid-live .pid-art, .pid-result-card .pid-art, .pid-result-card { animation: none !important; } }

/* ===== Games page v2 ===== */
.run-page-hero { position: relative; isolation: isolate; }
.run-page-hero .container { position: relative; }
.run-page-hero .sh-glow-a { width: 280px; height: 280px; top: -60px; inset-inline-end: 12%; }
.run-page-hero .sh-glow-b { width: 220px; height: 220px; top: 20px; inset-inline-start: 10%; }
.run-page-hero .eyebrow { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: rgba(217,164,65,.14); border: 1px solid rgba(217,164,65,.35); color: #9a6b13; font-size: 12.5px; font-weight: 800; }
.run-page-hero h1 { font-size: 46px; font-weight: 900; background: linear-gradient(100deg, #101d30, #b9832c 60%, #101d30); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 6s linear infinite; }
.run-page-hero-paw svg { width: .8em; height: .8em; vertical-align: -.05em; color: #d9a441; -webkit-text-fill-color: currentColor; animation: shFloat 3s ease-in-out infinite; }
.run-page-sub { margin: 6px auto 0; max-width: 520px; font-size: 15px; color: var(--muted); text-align: center; }
.run-layout { position: relative; }
.run-stage { box-shadow: 0 0 0 1px rgba(232,194,122,.5), 0 30px 70px rgba(0,0,0,.45), 0 0 60px rgba(217,164,65,.18); }
.run-side-card { transition: transform .25s, border-color .25s; }
.run-side-card:hover { transform: translateY(-3px); border-color: rgba(232,194,122,.45); }
.run-powers ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.run-powers li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.6; color: #cfd6e2; }
.run-powers li strong { color: var(--gold-light); }
.rp { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px rgba(255,255,255,.55), 0 6px 14px rgba(0,0,0,.35); }
.rp-magnet { background: linear-gradient(#86b8ff, #3567cf); }
.rp-shield { background: linear-gradient(#74e0ae, #1f9a6b); }
.rp-double { background: linear-gradient(#ffcf5c, #e0820f); }
.rp::after { color: #fff; font-weight: 900; font-size: 13px; }
.rp-double::after { content: "x2"; }
.rp-magnet::after { content: "U"; font-size: 15px; }
.rp-shield::after { content: ""; width: 12px; height: 14px; background: #fff; clip-path: polygon(50% 0, 100% 20%, 100% 55%, 50% 100%, 0 55%, 0 20%); }
@media (max-width: 720px) { .run-page-hero h1 { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .run-page-hero h1, .run-page-hero-paw svg { animation: none !important; } }

/* ===== Store product section v2 ===== */
.sg-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sg-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(217,164,65,.14); }
.sg-eyebrow svg { width: 13px; height: 13px; color: #d9a441; animation: shSpin 6s linear infinite; }
.sg-count { flex-shrink: 0; background: var(--navy); color: var(--text-light); border-color: rgba(217,164,65,.5); box-shadow: 0 12px 26px rgba(16,29,48,.18); }
.sg-count b { color: var(--gold-light); }
.sg-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 24px; padding: 14px 16px; border-radius: 22px; background: #fff; border: 1px solid #efe7d8; box-shadow: 0 14px 34px rgba(16,29,48,.06); }
.sg-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.sg-search svg { position: absolute; top: 50%; inset-inline-start: 16px; width: 18px; height: 18px; margin-top: -9px; color: #b9832c; pointer-events: none; }
.sg-search input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px; padding-inline-start: 44px; border-radius: 999px; border: 1.5px solid #e3dccd; font: inherit; background: #fff; color: var(--text-dark); transition: border-color .2s, box-shadow .2s; }
.sg-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.16); }
.sg-sort { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--navy); }
.sg-sort button { padding: 9px 16px; border-radius: 999px; border: none; background: transparent; color: #cfd6e2; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.sg-sort button:hover { color: #fff; }
.sg-sort button.is-on { background: linear-gradient(135deg, #f4d58b, #d9a441); color: var(--navy); box-shadow: 0 6px 14px rgba(217,164,65,.35); }

.store-product-grid .sp-card { position: relative; border-radius: 22px; border-color: #efe7d8; box-shadow: 0 10px 26px rgba(16,29,48,.07); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s, border-color .3s; animation: nmCardIn .5s ease backwards; animation-delay: calc(var(--i, 0) * 50ms); }
.store-product-grid .sp-card:hover { transform: translateY(-6px); border-color: rgba(217,164,65,.6); box-shadow: 0 26px 50px rgba(16,29,48,.16); }
.sp-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sp-card:hover .sp-media img { transform: scale(1.07); }
.sp-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,34,.14), transparent 35%); pointer-events: none; }
.sp-tag { z-index: 1; background: linear-gradient(135deg, #f4d58b, #d9a441); color: var(--navy); font-weight: 800; box-shadow: 0 8px 18px rgba(217,164,65,.4); }
.sp-wish-btn { z-index: 2; background: rgba(255,255,255,.92); box-shadow: 0 8px 18px rgba(16,29,48,.18); transition: transform .2s, background .2s; }
.sp-wish-btn:hover { transform: scale(1.1); }
.sp-name { color: var(--navy); font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 18px; }
.sp-cat { color: #b9832c; font-weight: 700; }
.sp-cat::before { background: #b9832c; }
.sp-price-row { padding-top: 10px; border-top: 1px dashed #e3dccd; }
.sp-price { color: var(--navy); }
.sp-price .cur { color: #b9832c; }
.sp-cta { border-radius: 14px; padding: 14px; transition: background .25s, color .25s, transform .2s, box-shadow .25s; }
.sp-cta:not(.disabled):hover { background: linear-gradient(135deg, #f4d58b, #d9a441); color: var(--navy); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(217,164,65,.35); }
.sp-card:has(.sp-cta.disabled) .sp-media img { filter: grayscale(.55); opacity: .85; }
@media (max-width: 720px) { .sg-head { flex-direction: column; align-items: flex-start; } .sg-toolbar { padding: 12px; } .sg-sort { width: 100%; } .sg-sort button { flex: 1; padding: 9px 6px; } .sg-search { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .store-product-grid .sp-card, .sg-eyebrow svg { animation: none !important; } }

/* ===== Home page polish ===== */
.hero-cue { position: absolute; left: 50%; bottom: 100px; z-index: 5; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(16,29,48,.45); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: heroCue 2.2s ease-in-out infinite; transition: background .25s; }
.hero-cue:hover { background: var(--gold); color: var(--navy); }
.hero-cue svg { width: 22px; height: 22px; }
@keyframes heroCue { 0%, 100% { transform: translateY(0); opacity: .85; } 50% { transform: translateY(9px); opacity: 1; } }
.hero-content h1 .accent { background: linear-gradient(100deg, #f4d58b, #d9a441 60%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.hero-content .btn-gold { box-shadow: 0 14px 34px rgba(217,164,65,.4); transition: transform .2s, box-shadow .25s; }
.hero-content .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 42px rgba(217,164,65,.5); }

.trust-item { transition: transform .3s cubic-bezier(.2,.9,.3,1.1); }
.trust-item:hover { transform: translateY(-4px); }
.trust-item .icon { transition: transform .4s cubic-bezier(.2,1.2,.3,1), background .25s, color .25s; }
.trust-item:hover .icon { transform: rotate(-8deg) scale(1.12); }

.cs-head, .section-head { position: relative; padding-bottom: 18px; }
.cs-head::after, .section-head:not(.sg-head)::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 80px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #f4d58b); }
.section-link, .cs-viewall { transition: transform .2s, box-shadow .25s, background .25s, color .25s; }
.section-link svg, .cs-viewall svg { transition: transform .25s; }
.section-link:hover svg, .cs-viewall:hover svg { transform: translateX(-5px); }

.cs-card { transition: transform .35s cubic-bezier(.2,.9,.3,1.1), box-shadow .35s; }
.cs-card:hover { transform: translateY(-8px); box-shadow: 0 30px 56px rgba(16,29,48,.28); }
.cs-card img { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.cs-card:hover img { transform: scale(1.09); }
.cs-icon { transition: transform .4s cubic-bezier(.2,1.2,.3,1), background .25s; }
.cs-card:hover .cs-icon { transform: rotate(-8deg) scale(1.1); }

.split-banner .panel { transition: transform .35s cubic-bezier(.2,.9,.3,1.1), box-shadow .35s; overflow: hidden; }
.split-banner .panel:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,29,48,.22); }
.split-banner .panel-photo { transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.split-banner .panel:hover .panel-photo { transform: scale(1.06); }
.panel-sections a { transition: transform .2s, background .25s, color .25s; }
.panel-sections a:hover { transform: translateY(-2px); }

.name-banner .name-tag { transition: transform .3s, box-shadow .3s; }
.name-banner .name-tag:hover { transform: scale(1.12); box-shadow: 0 12px 24px rgba(0,0,0,.3); }
.name-banner .cat-face { animation: shFloat 6s ease-in-out infinite; }

.feature-slide { transition: box-shadow .35s; }
.feature-slide:hover { box-shadow: 0 30px 60px rgba(16,29,48,.22); }
.why-row { transition: transform .25s, background .25s; border-radius: 18px; }
.why-row:hover { transform: translateX(-6px); background: rgba(217,164,65,.07); }
.why-row .circle { transition: transform .4s cubic-bezier(.2,1.2,.3,1), background .25s, color .25s; }
.why-row:hover .circle { transform: rotate(-10deg) scale(1.12); background: var(--gold); color: var(--navy); }
@media (max-width: 720px) { .hero-cue { bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .hero-cue, .hero-content h1 .accent, .name-banner .cat-face { animation: none !important; } }

/* ===== Footer v2 ===== */
.site-footer { position: relative; overflow: hidden; margin-top: 60px; background: radial-gradient(ellipse 60% 80% at 85% 0%, rgba(217,164,65,.12), transparent 70%), radial-gradient(ellipse 50% 70% at 5% 100%, rgba(90,130,200,.1), transparent 70%), var(--navy); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold), #f4d58b, var(--gold), transparent); background-size: 200% 100%; animation: ftLine 6s linear infinite; z-index: 1; }
@keyframes ftLine { to { background-position: -200% 0; } }
.site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; background: url("../img/logo.png") 3% 62% / 260px auto no-repeat; }
.footer-top { border-top: none; position: relative; z-index: 1; padding-block: 64px 48px; }
.footer-top h4 { position: relative; padding-bottom: 12px; margin-bottom: 20px; }
.footer-top h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), #f4d58b); transition: width .35s; }
.footer-top > div:hover h4::after { width: 56px; }
.footer-top p { color: #aab4c6; }
.footer-top ul { list-style: none; margin: 0; padding: 0; }
.footer-top ul li { margin-bottom: 4px; }
.footer-top ul li a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: #d7dce6; transition: color .2s, transform .25s; }
.footer-top ul li a::before { content: ""; width: 0; height: 2px; border-radius: 2px; background: var(--gold); transition: width .25s; }
.footer-top ul li a:hover { color: var(--gold-light); transform: translateX(-4px); }
.footer-top ul li a:hover::before { width: 12px; }
.footer-top .btn-gold { box-shadow: 0 14px 30px rgba(217,164,65,.3); transition: transform .2s, box-shadow .25s; }
.footer-top .btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(217,164,65,.42); }
.footer-email-link { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.25); transition: background .25s, transform .2s; }
.footer-email-link:hover { background: rgba(232,194,122,.2); transform: translateY(-2px); }
.footer-brand .logo img { transition: transform .4s cubic-bezier(.2,1.2,.3,1); }
.footer-brand .logo:hover img { transform: rotate(-4deg) scale(1.06); }
.footer-tagline { padding: 7px 14px 7px 12px; width: fit-content; border-radius: 999px; background: rgba(232,194,122,.1); }
.footer-social-bar { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.07); }
.footer-bottom { position: relative; z-index: 1; border-top-color: rgba(232,194,122,.14); color: #8e9ab0; }

.to-top { position: fixed; z-index: 190; bottom: 28px; inset-inline-start: 22px; width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(232,194,122,.5); background: linear-gradient(145deg, #1c2f4c, var(--navy)); color: var(--gold-light); cursor: pointer; box-shadow: 0 14px 30px rgba(16,29,48,.35); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s cubic-bezier(.2,1.2,.3,1), background .25s, color .25s; }
.to-top svg { width: 20px; height: 20px; }
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy); }
body.has-bottom-nav .to-top { bottom: 100px; inset-inline-start: 14px; }
@media (prefers-reduced-motion: reduce) { .site-footer::before { animation: none; } .to-top { transition: opacity .2s; } }

/* ===== Contact page v2 ===== */
.ct-hero { position: relative; isolation: isolate; }
.ct-hero .sh-glow-a { width: 260px; height: 260px; top: -70px; inset-inline-end: 10%; }
.ct-hero .sh-glow-b { width: 200px; height: 200px; top: 30px; inset-inline-start: 8%; }
.ct-hero .about-eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(217,164,65,.35); }
.ct-hero .about-eyebrow svg { width: 13px; height: 13px; animation: shSpin 6s linear infinite; }
.ct-hero h1 { font-size: 46px; font-weight: 900; }
.ct-hero h1 em { font-style: normal; background: linear-gradient(100deg, #b9832c, #f0b946 55%, #b9832c); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 5s linear infinite; }
.ct-hero > * { animation: shUp .6s cubic-bezier(.2,.9,.3,1.1) backwards; }
.ct-hero > :nth-child(4) { animation-delay: .08s; } .ct-hero > :nth-child(5) { animation-delay: .16s; }

.contact-form { position: relative; padding: 32px 30px 28px; border-radius: 28px; border-color: #efe7d8; box-shadow: 0 24px 60px rgba(16,29,48,.09); }
.contact-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold), #f4d58b, var(--gold)); }
.ct-form-head h2 { margin: 0 0 4px; font-size: 22px; font-weight: 900; color: var(--navy); }
.ct-form-head p { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .form-field label { font-weight: 800; color: var(--navy); }
.ct-input { position: relative; }
.ct-input > svg { position: absolute; top: 24px; inset-inline-start: 14px; width: 18px; height: 18px; margin-top: -9px; color: #b9832c; pointer-events: none; transition: color .2s, transform .3s; }
.ct-input.ct-area > svg { top: 26px; }
.ct-input:focus-within > svg { color: var(--gold); transform: scale(1.12); }
.contact-form .ct-input input, .contact-form .ct-input textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; padding-inline-start: 44px; border-radius: 14px; border: 1.5px solid #e3dccd; background: #fff; font-size: 15px; font-family: inherit; }
.contact-form .ct-input textarea { min-height: 130px; line-height: 1.7; }
.ct-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ct-chips button { padding: 7px 14px; border-radius: 999px; border: 1px solid #e3dccd; background: var(--cream); font-family: inherit; font-size: 12.5px; font-weight: 700; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.ct-chips button:hover { background: var(--navy); color: var(--gold-light); border-color: var(--navy); transform: translateY(-2px); }
.ct-count { align-self: flex-end; font-size: 12px; color: var(--muted); font-weight: 700; }
.ct-count.is-near { color: #c0392b; }
#contact-submit { padding: 16px 20px; font-size: 16px; box-shadow: 0 14px 30px rgba(217,164,65,.35); }

.contact-info { position: relative; overflow: hidden; padding: 30px 26px; border-radius: 28px; background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(217,164,65,.22), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); box-shadow: 0 24px 60px rgba(16,29,48,.22); }
.ct-info-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 10px 24px rgba(217,164,65,.38); animation: goBadge 3.2s ease-in-out infinite; }
.ct-info-ic svg { width: 26px; height: 26px; }
.ct-info-sub { margin: -2px 0 6px; font-size: 13.5px; color: #b8c2d3; line-height: 1.7; }
.contact-info-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,.08); transition: background .25s, color .25s, transform .25s, border-color .25s; }
.contact-info-row svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(232,194,122,.14); box-sizing: border-box; transition: background .25s, color .25s, transform .35s; }
.contact-info-row:hover { transform: translateX(-4px); border-color: rgba(232,194,122,.4); }
.contact-info-row:hover svg { background: var(--gold); color: var(--navy); transform: rotate(-8deg); }
.ct-quick { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.ct-quick-title { font-size: 12.5px; font-weight: 800; color: var(--gold-light); letter-spacing: .3px; margin-bottom: 4px; }
.ct-quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #e6ebf3; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.ct-quick a > svg:first-child { width: 18px; height: 18px; color: var(--gold-light); flex-shrink: 0; }
.ct-quick a span { flex: 1; }
.ct-quick a > svg:last-child { width: 15px; height: 15px; opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .25s; }
.ct-quick a:hover { background: rgba(232,194,122,.12); color: var(--gold-light); transform: translateX(-3px); }
.ct-quick a:hover > svg:last-child { opacity: 1; transform: none; }
@media (max-width: 720px) { .ct-hero h1 { font-size: 34px; } .ct-two { grid-template-columns: 1fr; } .contact-form { padding: 26px 16px 22px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .ct-hero *, .ct-info-ic { animation: none !important; } }
.ct-form-head, .ct-two { transition: opacity .4s; }
.contact-form.is-sending .ct-form-head, .contact-form.is-sent .ct-form-head { opacity: 0; }
.ct-count { direction: ltr; unicode-bidi: isolate; }

/* ===== About page v2 ===== */
.ab-hero { position: relative; isolation: isolate; }
.ab-hero .sh-glow-a { width: 280px; height: 280px; top: -80px; inset-inline-end: 8%; }
.ab-hero .sh-glow-b { width: 220px; height: 220px; top: 20px; inset-inline-start: 6%; }
.ab-hero .about-eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(217,164,65,.35); }
.ab-hero .about-eyebrow svg { width: 13px; height: 13px; animation: shSpin 6s linear infinite; }
.ab-hero h1 { font-size: 60px; font-weight: 900; margin-bottom: 14px; }
.ab-hero h1 em { font-style: normal; background: linear-gradient(100deg, #101d30, #b9832c 55%, #101d30); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 6s linear infinite; }
.ab-hero > * { animation: shUp .6s cubic-bezier(.2,.9,.3,1.1) backwards; }
.ab-hero > :nth-child(4) { animation-delay: .08s; } .ab-hero > :nth-child(5) { animation-delay: .16s; }
.ab-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 15px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 10px 22px rgba(217,164,65,.34); transition: transform .4s cubic-bezier(.2,1.2,.3,1); }
.ab-ic svg { width: 24px; height: 24px; }
.ab-grid { max-width: 980px; margin: 0 auto 56px; grid-template-columns: repeat(2, 1fr); }
.ab-card { position: relative; overflow: hidden; padding: 30px 28px; border-radius: 26px; background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(217,164,65,.2), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s; }
.ab-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(16,29,48,.28); }
.ab-card:hover .ab-ic { transform: rotate(-8deg) scale(1.08); }
.ab-card .ab-ic { margin-bottom: 14px; }
.ab-head { text-align: center; max-width: 640px; margin: 0 auto 30px; }
.ab-head h2 { margin: 12px 0 0; font-size: 30px; font-weight: 900; color: var(--navy); }
.ab-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 56px; }
.ab-svc { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px; border-radius: 22px; background: #fff; border: 1px solid #efe7d8; box-shadow: 0 12px 30px rgba(16,29,48,.07); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s, border-color .3s; }
.ab-svc:hover { transform: translateY(-6px); border-color: rgba(217,164,65,.6); box-shadow: 0 26px 50px rgba(16,29,48,.15); }
.ab-svc:hover .ab-ic { transform: rotate(-8deg) scale(1.1); }
.ab-svc h3 { margin: 10px 0 0; font-size: 18px; font-weight: 900; color: var(--navy); }
.ab-svc p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.ab-svc i { position: absolute; top: 22px; inset-inline-end: 20px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: #9a6b13; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .3s, background .25s; }
.ab-svc i svg { width: 15px; height: 15px; }
.ab-svc:hover i { opacity: 1; transform: none; background: var(--gold); color: var(--navy); }
.ab-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto 40px; }
.ab-value { text-align: center; padding: 26px 18px; border-radius: 22px; background: var(--cream); border: 1px dashed rgba(217,164,65,.55); transition: transform .3s, background .3s; }
.ab-value:hover { transform: translateY(-4px); background: #fff; }
.ab-value:hover .ab-ic { transform: rotate(-8deg) scale(1.1); }
.ab-value h4 { margin: 12px 0 4px; font-size: 18px; font-weight: 900; color: var(--navy); }
.ab-value p { margin: 0; font-size: 13.5px; color: var(--muted); }
.ab-impact { display: flex; align-items: center; gap: 18px; max-width: 980px; margin: 0 auto 40px; padding: 24px 26px; border-radius: 24px; background: linear-gradient(135deg, rgba(217,164,65,.18), rgba(217,164,65,.06)); border: 1px solid rgba(217,164,65,.45); }
.ab-impact .ab-ic { flex-shrink: 0; width: 56px; height: 56px; animation: goBadge 3.2s ease-in-out infinite; }
.ab-impact h3 { margin: 0 0 4px; font-size: 20px; font-weight: 900; color: var(--navy); }
.ab-impact p { margin: 0; font-size: 14.5px; line-height: 1.8; color: #5b4a1e; }
.ab-cta { max-width: 980px; margin: 0 auto; text-align: center; padding: 40px 24px; border-radius: 28px; color: #fff; background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(217,164,65,.28), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); box-shadow: 0 26px 60px rgba(16,29,48,.25); }
.ab-cta h3 { margin: 0 0 8px; font-size: 26px; font-weight: 900; color: #fff; }
.ab-cta p { margin: 0 0 22px; color: #cfd6e2; }
.ab-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ab-cta .btn-gold { box-shadow: 0 14px 30px rgba(217,164,65,.38); }
.ab-ghost { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.28); transition: background .25s, transform .2s; }
.ab-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
@media (max-width: 860px) { .ab-services { grid-template-columns: repeat(2, 1fr); } .ab-values { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ab-hero h1 { font-size: 44px; } .ab-grid, .ab-services { grid-template-columns: 1fr; } .ab-head h2 { font-size: 24px; } .ab-impact { flex-direction: column; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .ab-hero *, .ab-impact .ab-ic { animation: none !important; } }

/* ===== Account page v2 ===== */
.acct-lock svg { width: 44px; height: 44px; color: #b9832c; }
.acct-hero-card { min-height: 290px; border-radius: 32px; box-shadow: 0 28px 64px rgba(16,29,48,.28); animation: sesIn .6s cubic-bezier(.2,.9,.3,1.1) backwards; }
.acct-hero-card img.placeholder-img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.acct-hero-card:hover img.placeholder-img { transform: scale(1.05); }
.acct-hero-card::before { content: ""; position: absolute; inset: 12px; z-index: 2; border: 1px solid rgba(232,194,122,.22); border-radius: 22px; pointer-events: none; }
.acct-avatar-wrap::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(232,194,122,.5); animation: sesRing 3s ease-out infinite; }
.acct-avatar { box-shadow: 0 14px 32px rgba(0,0,0,.4); }
.acct-avatar-crown svg { width: 15px; height: 15px; }
.acct-hero-text h1 { font-size: 28px; }
.acct-hero-text h1.accent { background: linear-gradient(100deg, #f4d58b, #fff 50%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 6s linear infinite; }
.acct-edit-btn { transition: background .25s, transform .2s, color .25s; }
.acct-edit-btn:hover { transform: translateY(-2px); }

.acct-stats { gap: 14px; }
.acct-stat { position: relative; overflow: hidden; padding: 22px 10px 18px; border-radius: 22px; background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(217,164,65,.22), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); box-shadow: 0 16px 36px rgba(16,29,48,.18); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s; animation: shUp .6s cubic-bezier(.2,.9,.3,1.1) backwards; }
.acct-stat:nth-child(2) { animation-delay: .08s; } .acct-stat:nth-child(3) { animation-delay: .16s; }
.acct-stat:hover { transform: translateY(-6px); box-shadow: 0 26px 48px rgba(16,29,48,.28); }
.acct-stat svg { width: 44px; height: 44px; padding: 11px; box-sizing: border-box; border-radius: 14px; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 8px 18px rgba(217,164,65,.35); transition: transform .4s cubic-bezier(.2,1.2,.3,1); }
.acct-stat:hover svg { transform: rotate(-8deg) scale(1.1); }
.acct-stat b { font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; }
.acct-stat span { font-weight: 700; color: #cfd6e2; }

.acct-menu { border-radius: 28px; border-color: #efe7d8; box-shadow: 0 22px 54px rgba(16,29,48,.09); }
.acct-menu-row { transition: background .25s, transform .25s; }
.acct-menu-row:hover:not(:disabled) { background: linear-gradient(270deg, rgba(217,164,65,.12), transparent); transform: translateX(-4px); }
.acct-menu-row-icon { transition: transform .35s cubic-bezier(.2,1.2,.3,1); }
.acct-menu-row:hover:not(:disabled) .acct-menu-row-icon { transform: rotate(-8deg) scale(1.1); }
.acct-menu-chevron { transition: transform .25s, color .25s; }
.acct-menu-row:hover:not(:disabled) .acct-menu-chevron { transform: translateX(-4px); color: #b9832c; }
#acct-logout-row:hover:not(:disabled) { background: linear-gradient(270deg, rgba(192,57,43,.1), transparent); }
@media (max-width: 720px) { .acct-hero-card { min-height: 250px; border-radius: 26px; } .acct-hero-text h1 { font-size: 24px; } .acct-stat b { font-size: 24px; } .acct-stat svg { width: 38px; height: 38px; padding: 9px; } }
@media (prefers-reduced-motion: reduce) { .acct-hero-card, .acct-stat, .acct-avatar-wrap::before, .acct-hero-text h1.accent { animation: none !important; } }

/* ===== Cover button + picker v2 ===== */
.acct-cover-edit-btn { width: auto; height: 40px; padding: 0 14px; gap: 8px; border-radius: 999px; font-family: inherit; font-size: 13px; font-weight: 700; transition: background .25s, transform .2s, color .25s; }
.acct-cover-edit-btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.acct-cover-label { white-space: nowrap; }
@media (max-width: 480px) { .acct-cover-label { display: none; } .acct-cover-edit-btn { width: 40px; padding: 0; justify-content: center; } }

.cover-picker-overlay { background: rgba(8,16,28,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: cpFade .25s ease; }
@keyframes cpFade { from { opacity: 0; } }
.cover-picker-modal { max-width: 520px; padding: 30px 24px 24px; border-radius: 28px; background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(217,164,65,.22), transparent 70%), linear-gradient(155deg, #16263f, #0a1422); border: 1px solid rgba(232,194,122,.3); animation: orderPop .4s cubic-bezier(.2,1.1,.3,1); }
.cover-picker-modal .auth-close { background: rgba(255,255,255,.1); color: #fff; }
.cp-ic { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 10px 24px rgba(217,164,65,.38); margin-bottom: 12px; }
.cp-ic svg { width: 26px; height: 26px; }
.cover-picker-modal h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.cover-picker-modal p { color: #aab4c6; margin-bottom: 16px; }
.cp-preview { position: relative; height: 96px; margin-bottom: 16px; border-radius: 18px; overflow: hidden; border: 1px solid rgba(232,194,122,.4); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.cp-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.cp-preview span { position: absolute; bottom: 8px; inset-inline-start: 10px; padding: 4px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: var(--navy); background: var(--gold); }
.cover-picker-item { border-radius: 16px; border: 2px solid rgba(255,255,255,.12); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), border-color .25s, box-shadow .3s; animation: sesChip .4s ease backwards; animation-delay: calc(var(--i, 0) * 60ms); cursor: pointer; }
.cover-picker-item img { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.cover-picker-item:hover { transform: translateY(-4px); border-color: rgba(232,194,122,.6); box-shadow: 0 16px 32px rgba(0,0,0,.4); }
.cover-picker-item:hover img { transform: scale(1.08); }
.cover-picker-item.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.28), 0 16px 32px rgba(0,0,0,.4); }
.cover-picker-item.selected::after { content: ""; top: 8px; left: 8px; width: 26px; height: 26px; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101d30' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.500l4.500 4.500L19 7.500'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 6px 14px rgba(0,0,0,.35); animation: orderPop .35s cubic-bezier(.2,1.2,.3,1); }
.cover-picker-grid.is-saving { pointer-events: none; }
.cover-picker-grid.is-saving .cover-picker-item:not(.selected) { opacity: .55; }

/* ===== Edit-profile modal (account modal) v2 ===== */
.auth-cover-wrap { overflow: hidden; }
.auth-cover-img { transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
#auth-panel-account:hover .auth-cover-img { transform: scale(1.06); }
.auth-avatar-wrap::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(232,194,122,.45); animation: sesRing 3s ease-out infinite; pointer-events: none; }
.avatar-edit-btn { background: linear-gradient(145deg, #f4d58b, #d9a441); color: var(--navy); border-color: #0e1c30; transition: transform .25s cubic-bezier(.2,1.2,.3,1); box-shadow: 0 8px 18px rgba(217,164,65,.4); }
.avatar-edit-btn:hover { background: linear-gradient(145deg, #f4d58b, #d9a441); transform: scale(1.15) rotate(-8deg); }
.avatar-menu { border-radius: 18px; padding: 8px; animation: sesIn .25s cubic-bezier(.2,.9,.3,1.1); }
.avatar-menu-item { border-radius: 12px; transition: background .2s, transform .2s; }
.avatar-menu-item:hover { background: rgba(217,164,65,.14); transform: translateX(-3px); }
.avatar-menu-item svg { color: #b9832c; }
.auth-account-name { font-size: 26px; background: linear-gradient(100deg, #f4d58b, #fff 50%, #f4d58b); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shShine 6s linear infinite; }
.username-edit-btn { width: 30px; height: 30px; background: rgba(232,194,122,.14); color: var(--gold-light); transition: background .2s, color .2s, transform .25s; }
.username-edit-btn:hover { background: var(--gold); color: var(--navy); transform: rotate(-10deg); }
.username-edit-btn svg { width: 15px; height: 15px; }
.auth-account-email { display: block; width: fit-content; max-width: 100%; margin: 6px auto 22px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #cfd6e2; }
.auth-username-edit input { padding: 11px 14px; font-size: 15px; font-weight: 700; }
.modal-menu-row { border-radius: 18px; transition: background .25s, transform .25s, border-color .25s; }
.modal-menu-row:hover:not(:disabled) { background: rgba(217,164,65,.12); border-color: rgba(232,194,122,.4); transform: translateX(-4px); }
.modal-menu-row.featured { background: linear-gradient(270deg, rgba(217,164,65,.22), rgba(217,164,65,.06)); }
.modal-menu-row-icon { transition: transform .35s cubic-bezier(.2,1.2,.3,1), background .25s, color .25s; }
.modal-menu-row:hover:not(:disabled) .modal-menu-row-icon { transform: rotate(-8deg) scale(1.1); background: var(--gold); color: var(--navy); }
.modal-menu-chevron { transition: transform .25s, color .25s; }
.modal-menu-row:hover:not(:disabled) .modal-menu-chevron { transform: translateX(-4px); color: var(--gold-light); }
.modal-password-edit { border-radius: 22px; background: rgba(255,255,255,.04); animation: sesIn .3s ease; }
.modal-password-edit .form-field input { border-radius: 14px; }
.modal-subview-actions .btn-gold { box-shadow: 0 12px 26px rgba(217,164,65,.32); }
@media (prefers-reduced-motion: reduce) { .cover-picker-overlay, .cover-picker-modal, .cover-picker-item, .auth-avatar-wrap::before, .auth-account-name, .avatar-menu, .modal-password-edit { animation: none !important; } }

/* ===== Confirm dialog v2 ===== */
.confirm-overlay { background: rgba(8,16,28,.68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: cpFade .25s ease; }
.confirm-modal { position: relative; max-width: 380px; padding: 34px 26px 24px; border-radius: 28px; animation: confirmPop .45s cubic-bezier(.2,1.15,.3,1); }
@keyframes confirmPop { from { opacity: 0; transform: translateY(22px) scale(.92); } }
.confirm-icon { width: 64px; height: 64px; margin-bottom: 14px; box-shadow: 0 0 0 7px rgba(217,164,65,.1), 0 14px 30px rgba(0,0,0,.35); animation: confirmIcon 2.8s ease-in-out .5s infinite; }
@keyframes confirmIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.confirm-icon svg { width: 30px; height: 30px; }
.confirm-title { margin: 0 0 12px; font-size: 22px; font-weight: 900; color: #fff; font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; }
.confirm-title[hidden], .confirm-who[hidden], .confirm-detail[hidden] { display: none; }
.confirm-who { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(232,194,122,.25); text-align: start; }
.confirm-who-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; color: var(--navy); background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.confirm-who-av img { width: 100%; height: 100%; object-fit: cover; }
.confirm-who-t { display: flex; flex-direction: column; min-width: 0; }
.confirm-who-t b { font-size: 15px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confirm-who-t small { font-size: 12px; color: #aab4c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.confirm-msg { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.8; color: #e6ebf3; }
.confirm-detail { margin: 0 0 22px; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.7; color: #b8c2d3; background: rgba(217,164,65,.08); border: 1px dashed rgba(232,194,122,.3); }
.confirm-actions { flex-direction: column-reverse; gap: 10px; }
.confirm-actions .btn, .confirm-actions .hx-ghost-btn { width: 100%; min-height: 50px; font-size: 15px; transition: transform .2s, box-shadow .25s, background .25s; }
.confirm-actions .btn:hover, .confirm-actions .hx-ghost-btn:hover { transform: translateY(-2px); }
.confirm-actions .btn-gold { box-shadow: 0 12px 26px rgba(217,164,65,.32); }
@media (max-width: 560px) {
  .confirm-overlay { align-items: flex-end; padding: 0; }
  .confirm-modal { max-width: none; border-radius: 28px 28px 0 0; padding: 30px 20px calc(20px + env(safe-area-inset-bottom)); animation: confirmSheet .35s cubic-bezier(.2,.9,.3,1); }
  .confirm-modal::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,.25); }
}
@keyframes confirmSheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .confirm-overlay, .confirm-modal, .confirm-icon { animation: none !important; } }

/* ===== Account window v3: fits the screen, nicer scrollbar, richer buttons ===== */
.auth-modal:has(#auth-panel-account:not([hidden])) { max-height: min(94vh, 780px); max-height: min(94dvh, 780px); padding-bottom: 22px; scrollbar-width: thin; scrollbar-color: rgba(232,194,122,.5) transparent; }
.auth-modal:has(#auth-panel-account:not([hidden]))::after { display: none; }
.auth-modal:has(#auth-panel-account:not([hidden]))::-webkit-scrollbar { width: 6px; }
.auth-modal:has(#auth-panel-account:not([hidden]))::-webkit-scrollbar-track { background: transparent; margin-block: 18px; }
.auth-modal:has(#auth-panel-account:not([hidden]))::-webkit-scrollbar-thumb { background: rgba(232,194,122,.45); border-radius: 6px; }
.auth-modal:has(#auth-panel-account:not([hidden])) .auth-close { z-index: 12; width: 38px; height: 38px; background: rgba(10,16,28,.55); color: #fff; border: 1px solid rgba(232,194,122,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .25s, transform .25s; }
.auth-modal:has(#auth-panel-account:not([hidden])) .auth-close:hover { background: var(--gold); color: var(--navy); transform: rotate(90deg); }
.auth-cover-wrap { height: 120px; }
.auth-avatar-wrap { margin-bottom: 14px; }
.auth-account-name { font-size: 24px; }
.auth-account-email { margin-bottom: 16px; }
.acct-modal-menu { gap: 9px; margin: 14px 0 12px; }
.modal-menu-row { position: relative; overflow: hidden; gap: 14px; padding: 12px 14px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(270deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); cursor: pointer; animation: shUp .45s cubic-bezier(.2,.9,.3,1.1) backwards; }
.modal-menu-row:nth-child(2) { animation-delay: .06s; } .modal-menu-row:nth-child(3) { animation-delay: .12s; }
.modal-menu-row::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-end: 0; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold-light), var(--gold)); transform: scaleY(0); transition: transform .3s; }
.modal-menu-row:hover::before, .modal-menu-row.featured::before { transform: scaleY(1); }
.modal-menu-row:active { transform: scale(.98); }
.modal-menu-row-icon { width: 46px; height: 46px; border-radius: 15px; background: linear-gradient(145deg, rgba(244,213,139,.2), rgba(217,164,65,.1)); border: 1px solid rgba(232,194,122,.25); }
.modal-menu-row-icon svg { width: 21px; height: 21px; }
.modal-menu-row.featured .modal-menu-row-icon { background: linear-gradient(145deg, #f4d58b, #d9a441); color: var(--navy); border-color: transparent; box-shadow: 0 8px 18px rgba(217,164,65,.35); }
.modal-menu-row-text b { font-size: 14.5px; }
.modal-menu-row-text span { font-size: 12px; }
.modal-menu-chevron { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); }
.modal-menu-row:hover:not(:disabled) .modal-menu-chevron { background: var(--gold); color: var(--navy); }
.modal-logout-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; margin-top: 4px; border-radius: 18px; border: 1.5px solid rgba(227,106,92,.5); background: rgba(227,106,92,.08); color: #ff8f7e; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .25s, color .25s, transform .2s, box-shadow .25s; }
.modal-logout-btn svg { width: 19px; height: 19px; transition: transform .3s; }
.modal-logout-btn:hover { background: #d8503f; color: #fff; border-color: #d8503f; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(216,80,63,.35); }
.modal-logout-btn:hover svg { transform: translateX(4px); }
.modal-logout-btn:active { transform: scale(.98); }
.avatar-edit-btn { width: 34px; height: 34px; }
.avatar-edit-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .auth-modal:has(#auth-panel-account:not([hidden])) { max-height: 94vh; max-height: 94dvh; border-radius: 26px; } .auth-cover-wrap { height: 104px; } }
@media (prefers-reduced-motion: reduce) { .modal-menu-row { animation: none; } }

/* ===== Cat on the other password forms (change email / change password / recovery) ===== */
.auth-cat--inline { display: flex; justify-content: center; margin: 2px 0 -6px; pointer-events: none; }
.auth-cat--inline .auth-cat-svg { width: min(150px, 44vw); height: auto; overflow: visible; }
.modal-password-edit .auth-cat--inline { margin-top: -4px; }
#recovery-form .auth-cat--inline { margin: 0 0 4px; }
.auth-cat--inline:not(.is-covered) .cat-head { transform: rotate(-5deg); }
@media (max-width: 480px) {
  /* phones: like the login form, the cat sits beside each password label instead of above the form */
  .auth-cat--inline { display: none; }
  .modal-password-edit .form-field.has-mini-cat, #recovery-form .form-field.has-mini-cat { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: end; }
  .form-field.has-mini-cat > .pw-field { grid-column: 1 / -1; }
  .modal-password-edit .auth-cat--mini, #recovery-form .auth-cat--mini { display: flex; position: static; width: auto; margin: 0; transform: none; grid-column: 2; grid-row: 1; height: 38px; overflow: hidden; pointer-events: none; }
  .modal-password-edit .auth-cat--mini .auth-cat-svg, #recovery-form .auth-cat--mini .auth-cat-svg { width: 52px; height: 38px; }
  .modal-password-edit .auth-cat--mini:not(.is-covered) .cat-head, #recovery-form .auth-cat--mini:not(.is-covered) .cat-head { transform: rotate(-5deg); }
}

/* ===== My orders v2 ===== */
.orders-empty-ic svg { width: 44px; height: 44px; color: #b9832c; }
.orders-filter { display: flex; gap: 8px; margin: 0 0 20px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.orders-filter::-webkit-scrollbar { display: none; }
.orders-filter[hidden] { display: none; }
.orders-filter button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid #e3dccd; background: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--navy); cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.orders-filter button b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; background: rgba(217,164,65,.18); color: #9a6b13; }
.orders-filter button:hover { border-color: var(--gold); transform: translateY(-1px); }
.orders-filter button.is-on { background: var(--navy); color: var(--gold-light); border-color: var(--navy); box-shadow: 0 8px 18px rgba(16,29,48,.22); }
.orders-filter button.is-on b { background: var(--gold); color: var(--navy); }

.orders-list { gap: 20px; }
.order-card { position: relative; overflow: hidden; padding: 22px 24px 20px; border-radius: 26px; border-color: #efe7d8; box-shadow: 0 16px 40px rgba(16,29,48,.07); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), box-shadow .3s, border-color .3s; animation: nmCardIn .5s ease backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.order-card::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 5px; background: var(--gold); }
.order-card.oc-confirmed::before { background: #4a86e8; }
.order-card.oc-completed::before { background: #2f8f4e; }
.order-card.oc-cancelled::before { background: #c0392b; }
.order-card:hover { transform: translateY(-4px); border-color: rgba(217,164,65,.55); box-shadow: 0 26px 52px rgba(16,29,48,.14); }
.oc-id { display: flex; flex-direction: column; gap: 3px; }
.oc-no { font-size: 18px; font-weight: 900; color: var(--navy); letter-spacing: .5px; direction: ltr; text-align: start; }
.order-card-status { padding: 7px 16px; font-size: 12.5px; font-weight: 800; }
.order-card-status.oc-st-pending { background: rgba(217,164,65,.18); color: #9a6b13; }
.order-card-status.oc-st-confirmed { background: rgba(74,134,232,.14); color: #2f60b8; }
.order-card-status.oc-st-completed { background: rgba(47,143,78,.14); color: #1f7a3e; }
.order-card-status.oc-st-cancelled { background: rgba(192,57,43,.12); color: #b03225; }

.oc-track { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.oc-track::before { content: ""; position: absolute; top: 15px; inset-inline: 16.6%; height: 3px; border-radius: 3px; background: #ece5d8; }
.oc-track li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }
.oc-track li i { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 900; color: #9aa3b5; background: #fff; border: 2px solid #ece5d8; transition: background .3s, border-color .3s, color .3s; }
.oc-track li i svg { width: 15px; height: 15px; }
.oc-track li.is-done i, .oc-track li.is-now i { background: linear-gradient(145deg, #f4d58b, #d9a441); border-color: transparent; color: var(--navy); }
.oc-track li.is-now i { box-shadow: 0 0 0 5px rgba(217,164,65,.22); animation: ocPulse 2s ease-in-out infinite; }
.oc-track li.is-done, .oc-track li.is-now { color: var(--navy); }
.oc-track[data-at="2"] li i { background: linear-gradient(145deg, #5fcf86, #2f8f4e); color: #fff; }
@keyframes ocPulse { 50% { box-shadow: 0 0 0 9px rgba(217,164,65,.08); } }
.oc-cancelled { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 12px 14px; border-radius: 16px; background: rgba(192,57,43,.08); border: 1px solid rgba(192,57,43,.25); color: #b03225; font-size: 13.5px; font-weight: 800; }
.oc-cancelled svg { width: 20px; height: 20px; flex-shrink: 0; }

.order-card-items { gap: 10px; }
.order-card-items li { align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--cream); border: 1px solid #efe7d8; }
.oc-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #b9832c; }
.oc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oc-thumb svg { width: 24px; height: 24px; }
.oc-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.oc-name b { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.oc-name small { font-size: 12px; color: var(--muted); font-weight: 600; }
.oc-line { font-size: 14px; font-weight: 900; color: var(--navy); white-space: nowrap; }
.oc-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed #e3dccd; }
.oc-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.oc-total { margin-inline-start: auto; display: flex; align-items: baseline; gap: 8px; }
.oc-total small { font-size: 12px; color: var(--muted); font-weight: 700; }
.oc-total b { font-size: 22px; font-weight: 900; color: var(--navy); }
.oc-again { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: none; font-family: inherit; font-size: 13.5px; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); box-shadow: 0 10px 22px rgba(217,164,65,.34); cursor: pointer; transition: transform .2s, box-shadow .25s; }
.oc-again svg { width: 16px; height: 16px; transition: transform .5s; }
.oc-again:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(217,164,65,.45); }
.oc-again:hover svg { transform: rotate(180deg); }
.oc-again.is-added { background: linear-gradient(135deg, #5fcf86, #2f8f4e); color: #fff; }
.oc-again:disabled { opacity: .7; cursor: wait; }
@media (max-width: 560px) {
  .order-card { padding: 18px 16px 16px; border-radius: 22px; }
  .oc-foot { gap: 10px; }
  .oc-total { margin-inline-start: 0; width: 100%; justify-content: space-between; order: 3; }
  .oc-again { width: 100%; justify-content: center; order: 4; padding: 13px; }
  .oc-count { order: 1; }
}
@media (prefers-reduced-motion: reduce) { .order-card, .oc-track li.is-now i { animation: none !important; } }

/* Touch screens have no real hover: stop the hover effects of the product cards from sticking after a tap
   (on iPhones a hover effect can make the first tap on a button do nothing). */
@media (hover: none) {
  .store-product-grid .sp-card:hover { transform: none; border-color: #efe7d8; box-shadow: 0 10px 26px rgba(16,29,48,.07); }
  .sp-card:hover .sp-media img { transform: none; }
  .sp-wish-btn:hover { transform: none; }
  .sp-cta:not(.disabled):hover { background: var(--navy); color: var(--text-light); transform: none; box-shadow: none; }
  .sp-cta.added:hover { background: #2f8f4e; }
}

/* Favorites count on the phone bottom bar */
.bottom-nav-item { position: relative; }
.bottom-nav-badge { position: absolute; top: -2px; left: calc(50% + 4px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; line-height: 1; color: #fff; background: #e05a7a; box-shadow: 0 0 0 2px #0e1a2c, 0 4px 10px rgba(224,90,122,.5); pointer-events: none; }
.bottom-nav-badge[hidden] { display: none; }
.bottom-nav-badge.pop { animation: bnBadgePop .45s cubic-bezier(.2,1.4,.3,1); }
@keyframes bnBadgePop { 0% { transform: scale(.3); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .bottom-nav-badge.pop { animation: none; } }

/* ===== Quick view + heart button ===== */
.sp-media img[data-qv], .sp-name[data-qv] { cursor: pointer; }
.sp-name[data-qv]:hover { color: #9a6b13; }
.sp-qv-btn { position: absolute; z-index: 2; bottom: 12px; left: 50%; transform: translate(-50%, 12px); display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); background: rgba(16,29,48,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 800; white-space: nowrap; cursor: pointer; opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.2,.9,.3,1.1), background .2s, color .2s; }
.sp-qv-btn svg { width: 16px; height: 16px; }
.sp-card:hover .sp-qv-btn, .sp-qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.sp-qv-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
@media (hover: none) { .sp-qv-btn { opacity: 1; transform: translate(-50%, 0); bottom: 10px; padding: 8px 14px; } }

/* the heart on the card: bigger, glassy, fills with a burst */
.sp-wish-btn { position: absolute; width: 40px; height: 40px; background: rgba(255,255,255,.94); color: #5b6578; box-shadow: 0 8px 18px rgba(16,29,48,.2); transition: transform .2s cubic-bezier(.2,1.3,.3,1), background .2s, color .2s; }
.sp-wish-btn svg { width: 20px; height: 20px; }
.sp-wish-btn:hover { background: #fff; color: #e05a7a; }
.sp-wish-btn.active { background: #fff; color: #e05a7a; }
.sp-wish-btn.active svg { fill: #e05a7a; stroke: #e05a7a; }
.sp-wish-btn.burst svg, .qv-wish.burst svg { animation: wbPop .55s cubic-bezier(.2,1.4,.3,1); }
@keyframes wbPop { 0% { transform: scale(.6); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
.wb-burst { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.burst .wb-burst { animation: wbRing .6s ease-out; }
@keyframes wbRing { 0% { box-shadow: 0 0 0 0 rgba(224,90,122,.55); } 100% { box-shadow: 0 0 0 16px rgba(224,90,122,0); } }

.qv-overlay { position: fixed; inset: 0; z-index: 320; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8,16,28,.68); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: cpFade .25s ease; }
.qv-overlay[hidden] { display: none; }
.qv-modal { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 40px); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.5); animation: orderPop .4s cubic-bezier(.2,1.1,.3,1); }
.qv-close { position: absolute; z-index: 6; top: 14px; inset-inline-start: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(16,29,48,.12); background: rgba(255,255,255,.95); color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 8px 18px rgba(16,29,48,.18); transition: background .2s, color .2s, transform .25s; }
.qv-close:hover { background: var(--gold); transform: rotate(90deg); }
.qv-media { position: relative; min-height: 420px; background: #f1ece1; overflow: hidden; }
.qv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-media.qv-swap img { animation: qvIn .45s ease; }
@keyframes qvIn { from { opacity: 0; transform: scale(1.06); } }
.qv-tag { position: absolute; top: 16px; inset-inline-end: 16px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); box-shadow: 0 8px 18px rgba(217,164,65,.4); }
.qv-nav { position: absolute; z-index: 4; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(16,29,48,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.qv-nav[hidden] { display: none; }
.qv-nav svg { width: 20px; height: 20px; }
.qv-nav:hover { background: var(--gold); color: var(--navy); transform: scale(1.08); }
.qv-prev { right: 14px; } .qv-next { left: 14px; }
.qv-info { display: flex; flex-direction: column; gap: 12px; padding: 40px 32px 30px; overflow-y: auto; }
.qv-cat { margin: 0; display: inline-flex; align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: rgba(217,164,65,.16); color: #9a6b13; font-size: 12.5px; font-weight: 800; }
.qv-cat[hidden], .qv-desc[hidden], .qv-stock[hidden] { display: none; }
.qv-name { margin: 0; font-size: 28px; font-weight: 900; line-height: 1.35; color: var(--navy); font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; }
.qv-rate .stars { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #e0a93d; }
.qv-rate .stars svg { width: 18px; height: 18px; }
.qv-rate b { color: var(--navy); }
.qv-price { display: flex; align-items: baseline; gap: 8px; }
.qv-price b { font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1; }
.qv-price span { font-size: 15px; font-weight: 800; color: #b9832c; }
.qv-stock { align-self: flex-start; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #eaf6ec; color: #2f8f4e; }
.qv-stock.limited { background: #fff1e0; color: #c06a1f; }
.qv-stock.out { background: #fbe4e4; color: #c33f3f; }
.qv-desc { margin: 0; font-size: 14.5px; line-height: 1.9; color: #5b6472; padding-top: 12px; border-top: 1px dashed #e3dccd; }
.qv-row { display: flex; gap: 12px; align-items: stretch; margin-top: auto; }
.qv-qty { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; background: var(--cream); border: 1px solid #e3dccd; }
.qv-qty button { width: 38px; height: 38px; border-radius: 12px; border: none; background: #fff; color: var(--navy); font-size: 20px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 10px rgba(16,29,48,.08); transition: background .2s, transform .15s; }
.qv-qty button:hover { background: var(--gold); }
.qv-qty button:active { transform: scale(.9); }
.qv-qty span { min-width: 34px; text-align: center; font-size: 17px; font-weight: 900; color: var(--navy); }
.qv-add { flex: 1; justify-content: center; min-height: 52px; font-size: 15.5px; box-shadow: 0 12px 26px rgba(217,164,65,.34); transition: transform .2s, box-shadow .25s, background .25s; }
.qv-add:hover:not(:disabled) { transform: translateY(-2px); }
.qv-add.is-added { background: linear-gradient(135deg, #5fcf86, #2f8f4e); color: #fff; box-shadow: 0 12px 26px rgba(47,143,78,.34); }
.qv-add:disabled { background: #e4e4e4; color: #9b9b9b; box-shadow: none; cursor: not-allowed; }
.qv-wish { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; border-radius: 16px; border: 1.5px solid #f0c9d3; background: #fff6f8; color: #d1557c; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .2s; }
.qv-wish svg { width: 21px; height: 21px; }
.qv-wish:hover { background: #fde6ec; transform: translateY(-1px); }
.qv-wish.active, .qv-wish[aria-pressed="true"] { background: #e05a7a; border-color: #e05a7a; color: #fff; }
.qv-wish.active svg, .qv-wish[aria-pressed="true"] svg { fill: #fff; }
.qv-wish .wb-burst { border-radius: 16px; }
@media (max-width: 720px) {
  .qv-overlay { align-items: flex-end; padding: 0; }
  .qv-modal { grid-template-columns: 1fr; max-width: none; max-height: 94vh; max-height: 94dvh; overflow-y: auto; border-radius: 28px 28px 0 0; animation: confirmSheet .35s cubic-bezier(.2,.9,.3,1); }
  .qv-media { min-height: 0; height: 270px; }
  .qv-info { padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); overflow: visible; }
  .qv-name { font-size: 22px; } .qv-price b { font-size: 34px; }
  .qv-close { top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .qv-overlay, .qv-modal, .qv-media.qv-swap img, .sp-wish-btn.burst svg, .qv-wish.burst svg, .burst .wb-burst { animation: none !important; } }

/* ===== Currency switcher ===== */
.cur-switch { position: relative; display: flex; align-items: center; }
.cur-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: var(--text-light); font-family: inherit; font-size: 12px; font-weight: 800; letter-spacing: .3px; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.cur-btn svg { width: 16px; height: 16px; color: var(--gold-light); }
.cur-btn:hover { background: rgba(255,255,255,.14); border-color: rgba(232,194,122,.5); }
.cur-btn:active { transform: scale(.95); }
.cur-btn[aria-expanded="true"] { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cur-btn[aria-expanded="true"] svg { color: var(--navy); }
.cur-menu { position: fixed; inset: 0; z-index: 330; background: rgba(8,16,28,0); }
.cur-menu[hidden] { display: none; }
.cur-panel { position: fixed; width: 320px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 16px 14px 14px; border-radius: 24px; color: var(--text-light); background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(217,164,65,.2), transparent 70%), linear-gradient(160deg, #16263f, #0a1422); border: 1px solid rgba(232,194,122,.3); box-shadow: 0 30px 70px rgba(0,0,0,.5); animation: curIn .22s cubic-bezier(.2,.9,.3,1.1); }
@keyframes curIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.cur-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 10px; }
.cur-head b { font-size: 16px; font-weight: 900; color: var(--gold-light); }
.cur-x { width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(255,255,255,.1); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.cur-list { display: flex; flex-direction: column; gap: 6px; }
.cur-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; border: 1px solid transparent; background: rgba(255,255,255,.04); color: inherit; font-family: inherit; text-align: start; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.cur-opt:hover { background: rgba(232,194,122,.12); border-color: rgba(232,194,122,.35); }
.cur-opt:active { transform: scale(.98); }
.cur-opt.is-on { background: rgba(217,164,65,.18); border-color: rgba(232,194,122,.6); }
.cur-badge { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; color: #1b2538; background: linear-gradient(145deg, #f4d58b, #d9a441); box-shadow: 0 6px 14px rgba(0,0,0,.25); }
.cur-names { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cur-names b { font-size: 14.5px; font-weight: 800; color: #fff; }
.cur-names small { font-size: 11.5px; font-weight: 700; color: #9aa6ba; letter-spacing: .6px; }
.cur-opt > svg { width: 20px; height: 20px; color: var(--gold-light); opacity: 0; }
.cur-opt.is-on > svg { opacity: 1; }
.cur-note { margin: 12px 4px 2px; padding: 10px 12px; border-radius: 14px; font-size: 12px; line-height: 1.7; color: #aab4c6; background: rgba(217,164,65,.08); border: 1px dashed rgba(232,194,122,.3); }
.cart-cur-note { margin: 8px 0 0; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: #7a5410; background: rgba(217,164,65,.14); border: 1px dashed rgba(217,164,65,.5); }
body.cur-open { overflow: hidden; }
@media (max-width: 720px) {
  .cur-btn { height: 32px; padding: 0 9px; gap: 4px; font-size: 11px; }
  .cur-btn svg { width: 14px; height: 14px; }
  body.has-bottom-nav .site-header .cur-switch { order: 0; }
  .cur-menu { background: rgba(8,16,28,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; }
  .cur-menu[hidden] { display: none; }
  .cur-panel { position: relative; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 28px 28px 0 0; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); animation: confirmSheet .32s cubic-bezier(.2,.9,.3,1); }
  .cur-panel::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,.25); }
  .cur-opt { padding: 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .cur-panel { animation: none; } }
.cur-panel::-webkit-scrollbar { width: 6px; }
.cur-panel::-webkit-scrollbar-thumb { background: rgba(232,194,122,.45); border-radius: 6px; }
.qv-sar { margin: -6px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.qv-sar[hidden] { display: none; }
.cur-toast { position: fixed; z-index: 340; left: 50%; bottom: 96px; transform: translate(-50%, 24px); display: flex; align-items: center; gap: 14px; max-width: min(92vw, 420px); padding: 12px 14px 12px 18px; border-radius: 18px; color: #fff; font-size: 14px; font-weight: 700; background: linear-gradient(160deg, #16263f, #0a1422); border: 1px solid rgba(232,194,122,.4); box-shadow: 0 18px 44px rgba(0,0,0,.4); opacity: 0; transition: opacity .35s, transform .4s cubic-bezier(.2,1.1,.3,1); }
.cur-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cur-toast b { color: var(--gold-light); }
.cur-toast button { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: none; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--navy); background: linear-gradient(135deg, #f4d58b, #d9a441); cursor: pointer; }
@media (min-width: 721px) { .cur-toast { bottom: 28px; } }

/* ===== Currency menu v2: search + all currencies ===== */
.cur-panel { display: flex; flex-direction: column; max-height: min(640px, calc(100vh - 90px)); overflow: hidden; }
.cur-searchwrap { position: relative; margin: 0 2px 10px; }
.cur-searchwrap svg { position: absolute; top: 50%; inset-inline-start: 14px; width: 17px; height: 17px; margin-top: -8.5px; color: var(--gold-light); pointer-events: none; }
.cur-search { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; padding-inline-start: 42px; border-radius: 14px; border: 1.5px solid rgba(232,194,122,.3); background: rgba(255,255,255,.06); color: #fff; font-family: inherit; font-size: 16px; }
.cur-search::placeholder { color: #8f9bb0; }
.cur-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,164,65,.18); }
.cur-list { flex: 1; min-height: 0; overflow-y: auto; padding-inline-end: 2px; }
.cur-list::-webkit-scrollbar { width: 6px; }
.cur-list::-webkit-scrollbar-thumb { background: rgba(232,194,122,.45); border-radius: 6px; }
.cur-sec { margin: 12px 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: .4px; color: var(--gold-light); }
.cur-sec:first-child { margin-top: 2px; }
.cur-empty { margin: 24px 0; text-align: center; color: #9aa6ba; font-size: 14px; }
.cur-badge.is-long { font-size: 11px; letter-spacing: .3px; }
.cur-opt { margin-bottom: 6px; }
.cur-note { flex-shrink: 0; }
.cur-note a { color: var(--gold-light); text-decoration: underline; }
@media (max-width: 720px) { .cur-panel { max-height: none; } }

/* ===== Currency menu v3 ===== */
.cur-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.cur-list { scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: auto; }
.cur-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 8px; }
.cur-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 14px; border: 1px solid rgba(232,194,122,.22); background: rgba(255,255,255,.05); color: #fff; font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s, transform .15s; }
.cur-chip b { font-size: 12.5px; font-weight: 900; letter-spacing: .5px; }
.cur-chip span { font-size: 12px; font-weight: 700; color: var(--gold-light); }
.cur-chip:hover { background: rgba(232,194,122,.14); border-color: rgba(232,194,122,.5); }
.cur-chip:active { transform: scale(.95); }
.cur-chip.is-on { background: linear-gradient(145deg, #f4d58b, #d9a441); border-color: transparent; color: #1b2538; box-shadow: 0 8px 18px rgba(217,164,65,.35); }
.cur-chip.is-on span { color: #1b2538; }
.cur-sec { display: flex; align-items: center; justify-content: space-between; }
.cur-sec em { min-width: 26px; height: 20px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: var(--navy); background: var(--gold); }
.cur-names small { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cur-code-tag { padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 900; letter-spacing: .6px; color: var(--gold-light); background: rgba(232,194,122,.14); }
.cur-rate { font-size: 11.5px; font-weight: 700; color: #aab4c6; unicode-bidi: isolate; }
.cur-opt { padding: 9px 12px; }
.cur-badge { flex-basis: 40px; width: 40px; height: 40px; }
.cur-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 10px 2px 0; padding: 9px 12px; font-size: 11.5px; line-height: 1.6; }
.cur-note-line { font-weight: 800; color: var(--gold-light); }
.cur-note-sub { flex-basis: 100%; color: #9aa6ba; }
.cur-note a { font-size: 11px; opacity: .85; }
@media (max-width: 720px) { .cur-chips { grid-template-columns: repeat(4, 1fr); } .cur-panel { padding-bottom: calc(14px + env(safe-area-inset-bottom)); } }
@-moz-document url-prefix() { .cur-list { scrollbar-width: thin; scrollbar-color: rgba(232,194,122,.5) transparent; } }

/* ===== Flags on currencies ===== */
.cur-flag { display: block; object-fit: cover; user-select: none; }
.cur-badge.has-flag { padding: 0; overflow: hidden; background: #0e1a2c; box-shadow: 0 0 0 2px rgba(232,194,122,.55), 0 6px 14px rgba(0,0,0,.35); }
.cur-badge.has-flag .cur-flag { width: 100%; height: 100%; border-radius: inherit; }
.cur-badge-fb { display: none; font-style: normal; }
.cur-badge.has-flag .cur-badge-fb { display: none; }
.cur-badge:not(.has-flag) .cur-badge-fb { display: inline; }
.cur-badge .cur-flag + .cur-badge-fb { display: none; }
.cur-chip .cur-flag-sm { width: 26px; height: 18px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); margin-bottom: 2px; }
.cur-chip.is-on .cur-flag-sm { box-shadow: 0 0 0 1px rgba(16,29,48,.35); }
.cur-flagwrap { display: inline-flex; }
.cur-flagwrap:empty { display: none; }
.cur-flag-btn { width: 20px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.cur-btn[aria-expanded="true"] .cur-flag-btn { box-shadow: 0 0 0 1px rgba(16,29,48,.35); }
.cur-btn svg { display: none; }
.cur-btn .cur-flagwrap:empty + .cur-code::before { content: ""; }
@media (max-width: 720px) { .cur-flag-btn { width: 18px; height: 12px; } }
.cur-flagwrap { flex: 0 0 auto; width: 20px; height: 14px; }
.cur-flag-btn { width: 20px !important; max-width: none; min-width: 20px; height: 14px; flex-shrink: 0; }
@media (max-width: 720px) { .cur-flagwrap { width: 18px; height: 12px; } .cur-flag-btn { width: 18px !important; min-width: 18px; height: 12px; } }

/* ===== Phone header: everything fits in one row and the logo is always visible ===== */
@media (max-width: 720px) {
  body.has-bottom-nav .site-header .container { gap: 6px; flex-wrap: nowrap; }
  body.has-bottom-nav .site-header .logo-group { flex: 0 0 auto; min-width: 54px; }
  body.has-bottom-nav .site-header .logo-group .logo img { max-height: 40px; width: auto; }
  body.has-bottom-nav .site-header .lang-switch button { padding: 5px 9px; font-size: 11px; }
  body.has-bottom-nav .site-header .cur-btn { padding: 0 8px; height: 30px; }
  body.has-bottom-nav .site-header .cur-code { display: none; }
  body.has-bottom-nav .site-header .cur-flagwrap { width: 22px; height: 15px; }
  body.has-bottom-nav .site-header .cur-flag-btn { width: 22px !important; min-width: 22px; height: 15px; }
  body.has-bottom-nav .site-header .mascot-toggle { flex: 0 0 auto; }
  body.has-bottom-nav .site-header .icon-btn { flex: 0 0 auto; }
}
@media (max-width: 380px) {
  body.has-bottom-nav .site-header .container { gap: 4px; }
  body.has-bottom-nav .site-header .lang-switch button { padding: 5px 7px; }
}
@media (max-width: 340px) { body.has-bottom-nav .site-header .mascot-toggle-label { display: none; } body.has-bottom-nav .site-header .mascot-toggle { padding-inline: 10px; } }

/* The "play" (mascot ball) button is removed from the header on every screen size. */
.mascot-toggle { display: none !important; }

/* ===== Bottom-nav cat v2: bigger, with a shadow, and it reacts ===== */
.bottom-nav-cat { z-index: 3; }
.bottom-nav-cat .nav-cat-img { width: 54px; bottom: -9px; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 100%; }
.bottom-nav-cat .nav-cat-shadow { position: absolute; left: 0; bottom: -10px; width: 36px; height: 8px; margin-left: -18px; border-radius: 50%; background: rgba(0,0,0,.35); filter: blur(3px); animation: navCatShadow 2.6s ease-in-out infinite; }
@keyframes navCatShadow { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.88); opacity: .6; } }
.bottom-nav-cat .nav-cat-img.is-jump { animation: navCatJump .7s cubic-bezier(.3,1.3,.4,1); }
.bottom-nav-cat .nav-cat-img.is-cheer { animation: navCatCheer .8s cubic-bezier(.3,1.3,.4,1); }
.bottom-nav-cat .nav-cat-img.is-wiggle { animation: navCatWiggle 1s ease-in-out; }
@keyframes navCatJump { 0% { transform: translate(-50%, 0) scale(1.15, .85); } 35% { transform: translate(-50%, -18px) scale(.92, 1.1) rotate(-6deg); } 70% { transform: translate(-50%, 0) scale(1.12, .88); } 100% { transform: translate(-50%, 0) scale(1); } }
@keyframes navCatCheer { 0% { transform: translate(-50%, 0) scale(1.2, .8); } 25% { transform: translate(-50%, -22px) scale(.9, 1.15) rotate(8deg); } 50% { transform: translate(-50%, -4px) rotate(-8deg); } 75% { transform: translate(-50%, -14px) rotate(6deg); } 100% { transform: translate(-50%, 0) rotate(0); } }
@keyframes navCatWiggle { 0%, 100% { transform: translate(-50%, 0) rotate(0); } 20% { transform: translate(-50%, -2px) rotate(-7deg); } 45% { transform: translate(-50%, -2px) rotate(6deg); } 70% { transform: translate(-50%, 0) rotate(-3deg); } }
.nav-cat-bubble { position: absolute; left: 0; bottom: 62px; transform: translateX(-50%); padding: 6px 12px; border-radius: 14px; font-size: 12px; font-weight: 800; white-space: nowrap; color: var(--navy); background: #fff; box-shadow: 0 8px 18px rgba(0,0,0,.3); animation: navCatBubble 1.7s ease both; pointer-events: none; }
.nav-cat-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
@keyframes navCatBubble { 0% { opacity: 0; transform: translate(-50%, 8px) scale(.8); } 15%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px) scale(.95); } }
.nav-cat-heart { position: absolute; left: 0; bottom: 30px; width: 14px; height: 14px; margin-left: -7px; opacity: 0; pointer-events: none; background: #e05a7a; clip-path: path('M7 13 C-3 6 1 -1 7 3 C13 -1 17 6 7 13 Z'); animation: navCatHeart 1.2s ease-out forwards; }
@keyframes navCatHeart { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .bottom-nav-cat .nav-cat-shadow, .nav-cat-bubble, .nav-cat-heart { animation: none !important; } .nav-cat-heart { display: none; } }

/* notifications: visitor hint and info tone */
.notif-item-icon.info { color: #8fc2ff; background: rgba(90,150,255,.14); }
.notif-panel-visitor { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 12px; background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.25); font-size: 13px; line-height: 1.6; }
.notif-panel-visitor[hidden] { display: none; }
.notif-panel-visitor button { flex: none; border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 700; cursor: pointer; background: linear-gradient(135deg,#f3d58f,#d9a441); color: #1b2a44; }

/* Pet ID: save sheet (Android) and a larger card preview on phones */
.pid-save-sheet { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,16,30,.66); backdrop-filter: blur(4px); }
.pid-save-sheet[hidden] { display: none; }
.pid-save-box { width: min(440px, 100%); max-height: 94vh; overflow-y: auto; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: #fff; text-align: center; display: flex; flex-direction: column; gap: 10px; animation: shUp .35s ease backwards; }
.pid-save-box h3 { margin: 0; color: var(--navy); font-size: 19px; }
.pid-save-box p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #55627a; }
.pid-save-box img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 28px rgba(16,29,48,.25); -webkit-touch-callout: default; user-select: auto; }
.pid-save-box .btn { width: 100%; justify-content: center; }
@media (min-width: 700px) { .pid-save-sheet { align-items: center; } .pid-save-box { border-radius: 26px; } }
@media (max-width: 480px) {
  .pid-live-wrap { margin-inline: -16px; padding: 18px 4px; }
  .pid-result-card { margin-inline: -12px; padding: 20px 4px; }
  #pid-live .pid-art, .pid-result-card .pid-art { width: 100%; animation: none; }
}

/* Pet ID: the date field centres its value on every browser */
.pid-field input[type="date"] { display: flex; align-items: center; text-align: start; line-height: normal; }
.pid-field input[type="date"]::-webkit-datetime-edit { padding: 0; }
.pid-field input[type="date"]::-webkit-date-and-time-value { text-align: start; margin: 0; min-height: 1.3em; }
/* The template's paw medallion is redrawn above the photo from the same template image, so it always
   sits exactly on its frame. --mx/--my/--mw/--mh: its box in % of the card. */
.pid-art .pid-art-medal {
  position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; background-repeat: no-repeat;
  left: calc(var(--mx) * 1%); top: calc(var(--my) * 1%); width: calc(var(--mw) * 1%); height: calc(var(--mh) * 1%);
  background-size: calc(10000% / var(--mw)) calc(10000% / var(--mh));
  background-position: calc(var(--mx) / (100 - var(--mw)) * 100%) calc(var(--my) / (100 - var(--mh)) * 100%);
}
.pid-art--classic .pid-art-medal { background-image: url("../img/pid/classic-template.jpg"); --mx: 20.48; --my: 66.9; --mw: 10.3; --mh: 15.4; }
.pid-art--luxury .pid-art-medal { background-image: url("../img/pid/luxury-template.jpg"); --mx: 20.48; --my: 68; --mw: 10.3; --mh: 15.4; }
.pid-art--cute .pid-art-medal { background-image: url("../img/pid/cute-template.jpg"); --mx: 21.3; --my: 69.7; --mw: 9.3; --mh: 14; }
#pid-live .pid-art, .pid-result-card .pid-art { width: 100%; max-width: 560px; }
.pid-result-card { padding: 22px 10px; }
@media (max-width: 480px) { .pid-result-card { margin-inline: -14px; padding: 18px 2px; } }

/* Pet ID, cute design: a clearer logo (the cream outline logo sits on a rose badge so it reads on the pastel card) */
.pid-art--cute .pid-art-logo {
  left: 4.6%; top: 4.4%; width: 17.6%; box-sizing: border-box; padding: 0.9% 1.5% 0.5%;
  background: linear-gradient(145deg, #f27fa0, #dc5a84); border-radius: calc(var(--u) * 2.6);
  box-shadow: 0 0 0 calc(var(--u) * .35) rgba(255,255,255,.9), 0 calc(var(--u) * .6) calc(var(--u) * 1.6) rgba(150,40,80,.35);
}

/* Email chooser */
.mail-pick { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,16,30,.66); backdrop-filter: blur(5px); animation: mpFade .25s ease; }
.mail-pick[hidden] { display: none; }
@keyframes mpFade { from { opacity: 0; } }
@keyframes mpUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes mpPop { from { transform: translateY(14px) scale(.92); opacity: 0; } }
.mail-pick-box { position: relative; width: min(440px, 100%); padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #fffdf8, #fff 40%); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; animation: mpUp .38s cubic-bezier(.2,.9,.3,1.05); box-shadow: 0 -20px 60px rgba(8,16,30,.35); }
.mp-grip { width: 42px; height: 4px; border-radius: 4px; background: #e2d9c4; margin-bottom: 4px; }
.mp-x { position: absolute; top: 14px; inset-inline-start: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3eee1; color: #55627a; font-size: 22px; line-height: 1; cursor: pointer; }
.mp-badge { width: 60px; height: 60px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #101d30; background: linear-gradient(145deg, #f6dc9f, #d9a441); box-shadow: 0 12px 26px rgba(217,164,65,.45); animation: mpPop .5s .1s cubic-bezier(.2,1.2,.3,1) backwards; }
.mp-badge svg { width: 30px; height: 30px; }
.mail-pick-box h3 { margin: 4px 0 0; color: var(--navy); font-size: 21px; }
.mp-sub { margin: 0; color: #6b7690; font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.mp-card { width: 100%; margin: 6px 0 4px; border-radius: 16px; background: #fbf8f1; border: 1px solid #eadfc4; overflow: hidden; }
.mp-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 13.5px; }
.mp-row + .mp-row { border-top: 1px dashed #e6dcc3; }
.mp-row span { color: #8a7a55; font-weight: 700; flex: none; }
.mp-row b { color: var(--navy); text-align: end; min-width: 0; overflow-wrap: anywhere; }
.mp-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.mp-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 14px 8px 12px; border-radius: 18px; border: 1.5px solid #ece4d2; background: #fff; color: var(--navy); text-decoration: none; cursor: pointer; animation: mpPop .45s calc(.12s + var(--i) * .07s) cubic-bezier(.2,1.1,.3,1) backwards; transition: transform .18s, box-shadow .22s, border-color .2s; }
.mp-tile:hover, .mp-tile:active { transform: translateY(-3px); border-color: #d9a441; box-shadow: 0 14px 28px rgba(16,29,48,.14); }
.mp-tile b { font-size: 15px; }
.mp-tile small { color: #8a93a8; font-size: 11.5px; font-weight: 700; margin-top: -2px; }
.mp-tile em { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 8px; border-radius: 999px; background: #101d30; color: #e8c27a; font-size: 10.5px; font-style: normal; font-weight: 800; }
.mp-tile.is-last { border-color: #d9a441; background: linear-gradient(180deg, #fffaf0, #fff); }
.mp-ico { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.mp-ico svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 6px rgba(16,29,48,.18)); }
.mp-ico-app { padding: 9px; border-radius: 14px; background: linear-gradient(145deg, #2c3d5e, #101d30); box-sizing: border-box; }
.mp-ico-app svg { filter: none; }
.mp-copy { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: 1.5px dashed #d8cdb0; border-radius: 14px; background: transparent; color: #55627a; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.mp-copy svg { width: 18px; height: 18px; }
.mp-copy:hover { background: #fbf8f1; color: var(--navy); }
.mp-copy.is-done { border-style: solid; border-color: #3fcf6e; background: #effaf2; color: #1d7a3e; }
@media (min-width: 700px) { .mail-pick { align-items: center; } .mail-pick-box { border-radius: 28px; } .mp-grip { display: none; } }
@media (prefers-reduced-motion: reduce) { .mail-pick, .mail-pick-box, .mp-badge, .mp-tile { animation: none !important; } }

/* Pet ID save sheet: in-app browser warning and note */
.pid-save-warn { display: flex; flex-direction: column; gap: 6px; align-items: center; padding: 12px; border-radius: 14px; background: #fff4e0; border: 1px solid #f0cf8a; color: #5a4310; font-size: 13px; line-height: 1.7; }
.pid-save-warn b { color: #3e2e08; }
.pid-save-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #effaf2; border: 1px solid #bfe8cb; color: #1d7a3e; font-weight: 700; font-size: 13px; line-height: 1.7; }
.pid-save-note[hidden] { display: none; }

/* In-app browser notice */
.inapp-notice { position: relative; z-index: 60; margin: 0; padding: 10px 14px 12px; background: linear-gradient(135deg, #fff4e0, #ffe9c2); border-bottom: 1px solid #f0cf8a; color: #4a3608; font-family: inherit; }
.inapp-row { display: flex; align-items: center; gap: 10px; }
.inapp-ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #101d30; color: #e8c27a; }
.inapp-ico svg { width: 20px; height: 20px; }
.inapp-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.5; }
.inapp-text b { font-size: 13.5px; color: #3a2a05; }
.inapp-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(16,29,48,.08); color: #4a3608; font-size: 20px; line-height: 1; cursor: pointer; }
.inapp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inapp-btn { border: 1.5px solid #d9a441; border-radius: 999px; padding: 7px 14px; background: #fff; color: #3a2a05; font: inherit; font-size: 12.5px; font-weight: 800; text-decoration: none; cursor: pointer; }
.inapp-btn.gold { background: linear-gradient(135deg, #f3d58f, #d9a441); border-color: transparent; color: #1b2a44; }
.inapp-steps { margin: 10px 0 0; padding: 10px 28px 10px 14px; border-radius: 12px; background: rgba(255,255,255,.7); font-size: 12.5px; line-height: 1.9; }
.inapp-steps[hidden] { display: none; }

/* In-app notice: bilingual lines */
.inapp-text span { color: #4a3608; }
.inapp-text em, .inapp-steps em { display: block; font-style: normal; color: #7a6330; font-size: 11.5px; line-height: 1.5; text-align: left; margin-top: 2px; }
.inapp-btn small { display: block; font-size: 10.5px; font-weight: 700; color: #7a6330; margin-top: 1px; }
.inapp-btn.gold small { color: #4a3608; }
.inapp-btn { text-align: center; line-height: 1.25; }
.inapp-steps li { margin-bottom: 8px; }
.inapp-steps li span { display: block; }

/* In-app browser notice v2 */
.ia { position: relative; z-index: 60; padding: 12px 12px 4px; background: linear-gradient(180deg, #101d30 0, #16263f 100%); }
.ia-card { position: relative; padding: 16px 14px 14px; border-radius: 22px; background: linear-gradient(160deg, #fffaf0, #fff0cf); border: 1px solid #f0cf8a; box-shadow: 0 14px 34px rgba(0,0,0,.28); color: #3a2a05; animation: iaIn .45s cubic-bezier(.2,.9,.3,1.05) backwards; }
@keyframes iaIn { from { transform: translateY(-14px); opacity: 0; } }
.ia-x { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(16,29,48,.09); color: #3a2a05; font-size: 20px; line-height: 1; cursor: pointer; }
.ia-head { display: flex; align-items: center; gap: 12px; padding-inline-start: 0; margin-inline-start: 36px; }
.ia-ico { flex: none; width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #1b2c48, #0c1626); color: #e8c27a; box-shadow: 0 8px 18px rgba(16,29,48,.35); }
.ia-ico svg { width: 26px; height: 26px; }
.ia-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ia-titles b { font-size: 17px; color: #22170a; line-height: 1.35; }
.ia-titles small { font-size: 12px; color: #86702f; font-weight: 700; text-align: left; }
.ia-msg { margin: 12px 0 0; font-size: 13.5px; line-height: 1.85; color: #4a3608; }
.ia-msg u { text-decoration: none; font-weight: 800; background: linear-gradient(transparent 62%, rgba(217,164,65,.45) 62%); }
.ia-msg-en { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: #86702f; text-align: left; }
.ia-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ia-btn { flex: 1 1 auto; min-width: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 9px 12px; border-radius: 14px; border: 1.5px solid #e0b860; background: #fff; color: #3a2a05; font: inherit; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.ia-btn:active { transform: scale(.97); }
.ia-btn b { font-size: 13.5px; }
.ia-btn small { font-size: 10.5px; font-weight: 700; color: #86702f; }
.ia-gold { background: linear-gradient(135deg, #f6dc9f, #d9a441); border-color: transparent; box-shadow: 0 8px 18px rgba(217,164,65,.4); }
.ia-gold small { color: #4a3608; }
.ia-btn.is-done { background: #effaf2; border-color: #3fcf6e; color: #1d7a3e; }
.ia-btn.is-done small { color: #3a9a5c; }
.ia-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ia-steps[hidden] { display: none; }
.ia-steps li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: rgba(255,255,255,.85); border: 1px solid #f0dcaa; animation: iaStep .45s calc(var(--n) * .1s) ease backwards; }
@keyframes iaStep { from { transform: translateY(10px); opacity: 0; } }
.ia-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #101d30; color: #e8c27a; font-weight: 800; font-size: 14px; }
.ia-step-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.6; font-weight: 700; color: #3a2a05; }
.ia-step-text em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #86702f; text-align: left; }
.ia-art { flex: none; display: flex; align-items: center; justify-content: center; }
.ia-art-bar { width: 86px; height: 34px; border-radius: 10px; background: #1c1c1e; gap: 5px; padding: 0 8px; justify-content: space-between; }
.ia-art-bar i { width: 14px; height: 14px; border-radius: 50%; background: #3a3a3c; }
.ia-art-bar i:first-child { margin-inline-end: auto; }
.ia-art-bar b { color: #fff; font-size: 15px; letter-spacing: 1px; line-height: 1; padding: 3px 7px; border-radius: 8px; background: #d9a441; color: #1b2a44; animation: iaPulse 1.4s ease-in-out infinite; }
@keyframes iaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,164,65,.7); } 50% { box-shadow: 0 0 0 7px rgba(217,164,65,0); } }
.ia-art-menu { width: 104px; height: 34px; border-radius: 10px; background: #2c2c2e; gap: 6px; padding: 0 8px; justify-content: flex-start; }
.ia-art-menu i { width: 12px; height: 12px; border-radius: 4px; background: #7d7d82; flex: none; }
.ia-art-menu b { flex: 1; color: #fff; font-size: 9.5px; line-height: 1.1; padding: 5px 4px; border-radius: 6px; background: rgba(217,164,65,.9); color: #1b2a44; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-art-done { width: 40px; height: 40px; }
.ia-art-done svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 5px rgba(16,29,48,.25)); }
@media (prefers-reduced-motion: reduce) { .ia-card, .ia-steps li, .ia-art-bar b { animation: none !important; } }

.ia-steps li { flex-wrap: wrap; }
.ia-step-text { flex: 1 1 0; }
.ia-art { flex: 0 0 100%; margin-top: 4px; }
.ia-art-bar { width: 100%; max-width: 250px; margin-inline: auto; height: 38px; }
.ia-art-menu { width: 100%; max-width: 250px; margin-inline: auto; height: 38px; }
.ia-art-menu b { font-size: 11px; padding: 6px 8px; overflow: visible; text-overflow: clip; }
.ia-art-done { height: 44px; }
.ia-art-done svg { width: 44px; height: 44px; }
.ia-art-bar { direction: ltr; }

/* In-app notice v3: compact */
.ia { padding: 8px 10px 2px; }
.ia-card { padding: 11px 12px 12px; border-radius: 18px; }
.ia-head { margin-inline-start: 34px; gap: 10px; }
.ia-ico { width: 38px; height: 38px; border-radius: 12px; }
.ia-ico svg { width: 22px; height: 22px; }
.ia-titles b { font-size: 14.5px; }
.ia-titles small { font-size: 11px; }
.ia-x { top: 8px; width: 28px; height: 28px; font-size: 18px; }
.ia-actions { margin-top: 10px; gap: 7px; }
.ia-btn { min-width: 0; padding: 7px 10px; border-radius: 12px; }
.ia-btn b { font-size: 13px; }
.ia-steps { margin-top: 10px; gap: 7px; }
.ia-steps li { flex-wrap: nowrap; padding: 8px 10px; border-radius: 13px; }
.ia-step-text { font-size: 13px; }
.ia-step-text span bdi { background: rgba(217,164,65,.28); padding: 1px 6px; border-radius: 6px; }
.ia-art { flex: none; margin: 0; }
.ia-art-bar { width: 70px; height: 30px; max-width: none; margin: 0; }

/* Social sign-in buttons */
.oauth-block { margin-bottom: 14px; }
.oauth-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oauth-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px 9px; border-radius: 14px; border: 1.5px solid #e6dcc3; background: #fff; color: #1b2a44; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .15s, box-shadow .2s, border-color .2s; }
.oauth-btn:hover { transform: translateY(-2px); border-color: #d9a441; box-shadow: 0 10px 20px rgba(16,29,48,.12); }
.oauth-btn:active { transform: scale(.97); }
.oauth-ico { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.oauth-ico svg { width: 100%; height: 100%; }
.oauth-msg { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: #fff4e0; border: 1px solid #f0cf8a; color: #5a4310; font-size: 12.5px; line-height: 1.7; }
.oauth-msg[hidden] { display: none; }
.oauth-or { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: #8a93a8; font-size: 12px; font-weight: 700; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: #e6dcc3; }

.oauth-block[hidden], .oauth-btn[hidden] { display: none; }
.oauth-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }

/* Sign-in / sign-up polish */
.oauth-long { display: none; }
.oauth-block.is-single .oauth-row { grid-template-columns: 1fr; }
.oauth-block.is-single .oauth-btn { flex-direction: row; gap: 12px; padding: 13px 16px; border-radius: 16px; font-size: 15px; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.28); }
.oauth-block.is-single .oauth-name { display: none; }
.oauth-block.is-single .oauth-long { display: inline; }
.oauth-block.is-single .oauth-ico { width: 24px; height: 24px; }
.oauth-block.is-single .oauth-btn:hover { box-shadow: 0 14px 30px rgba(0,0,0,.36); border-color: #f0cf8a; }
.oauth-or { font-size: 12.5px; color: #9ba6b8; }
.oauth-or::before, .oauth-or::after { background: rgba(255,255,255,.14); }
.auth-perks { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.auth-perks li { padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--gold-light); background: rgba(232,194,122,.1); border: 1px solid rgba(232,194,122,.28); }
.auth-perks li::before { content: "✓"; margin-inline-end: 5px; font-size: 10px; }
.auth-modal:not(.listing-modal) .auth-login-head h3 { letter-spacing: 0; }

/* Signed-in indicators */
.bottom-nav-item.is-signed-in .nav-avatar { position: relative; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #f3d58f, #d9a441); color: #1b2a44; font-weight: 800; font-size: 13px; box-shadow: 0 0 0 2px rgba(232,194,122,.55); }
.bottom-nav-item.is-signed-in .nav-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.bottom-nav-item.is-signed-in .nav-avatar::after { content: ""; position: absolute; bottom: -1px; inset-inline-end: -1px; width: 9px; height: 9px; border-radius: 50%; background: #3fcf6e; border: 2px solid #12223a; }
.bottom-nav-item.is-signed-in .nav-account-name { font-size: 11px; font-weight: 800; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome-toast { position: fixed; top: 14px; left: 50%; z-index: 10001; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 18px; background: linear-gradient(145deg, #16294a, #0c1626); color: #fff; border: 1px solid rgba(232,194,122,.45); box-shadow: 0 16px 40px rgba(0,0,0,.4); transform: translate(-50%, -140%); opacity: 0; transition: transform .45s cubic-bezier(.2,1,.3,1.1), opacity .3s; max-width: calc(100vw - 28px); }
.welcome-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.wt-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; background: linear-gradient(145deg, #f3d58f, #d9a441); color: #1b2a44; font-weight: 800; box-shadow: 0 0 0 2px rgba(232,194,122,.5); overflow: hidden; }
.wt-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wt-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.wt-text b { font-size: 14px; color: #e8c27a; }
.wt-text small { font-size: 12.5px; color: #cfd6e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-check { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #3fcf6e; color: #0c1626; }
.wt-check svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .welcome-toast { transition: none; } }

.bottom-nav-item.is-signed-in .nav-account-name { max-width: none; overflow: visible; text-overflow: clip; }

/* Ad counts on the section tabs */
.listing-section-tab .ls-n { font-style: normal; margin-inline-start: 6px; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: rgba(16,29,48,.1); font-size: 11.5px; font-weight: 800; line-height: 1.5; display: inline-block; text-align: center; }
.listing-section-tab.active .ls-n { background: rgba(255,255,255,.28); }

/* Sign-in / sign-up on short laptop screens: a smaller cat, tighter spacing, and the page can always scroll (even during the entrance) */
.auth-overlay.is-entering { overflow-x: hidden !important; overflow-y: auto !important; }
@media (min-width: 481px) and (max-height: 900px) {
  .auth-overlay:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) { padding-top: calc(0.75 * 130px + 16px); padding-bottom: 12px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) { padding: 34px 26px 20px; margin-bottom: 12px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-cat { top: calc(-0.75 * 130px + 24px); }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-cat-svg { width: 130px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-tabs { margin-bottom: 10px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-login-head { margin-bottom: 10px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-login-head h3 { font-size: 22px; margin-bottom: 2px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-login-head p { font-size: 13px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-perks { margin-top: 6px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .oauth-block { margin-bottom: 8px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .oauth-block.is-single .oauth-btn { padding: 9px 16px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .oauth-or { margin-top: 8px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-email,
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-password,
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .form-field input { height: 44px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #login-form,
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) #signup-form { gap: 10px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .form-field { gap: 4px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .field-hint { margin: 0; font-size: 11px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .btn-gold { min-height: 46px; }
  .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-switch-text, .auth-modal:has(:is(#auth-panel-login, #auth-panel-signup):not([hidden])) .auth-hint { margin-top: 6px; }
}

/* The sign-up form is taller than login, so it is compacted on screens up to 1100px high */
@media (min-width: 481px) and (min-height: 901px) and (max-height: 1100px) {
  .auth-overlay:has(#auth-panel-signup:not([hidden])) { padding-top: calc(0.75 * 130px + 16px); padding-bottom: 12px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) { padding: 34px 26px 20px; margin-bottom: 12px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-cat { top: calc(-0.75 * 130px + 24px); }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-cat-svg { width: 130px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-tabs { margin-bottom: 10px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head { margin-bottom: 10px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head h3 { font-size: 22px; margin-bottom: 2px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-login-head p { font-size: 13px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-perks { margin-top: 6px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .oauth-block { margin-bottom: 8px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .oauth-block.is-single .oauth-btn { padding: 9px 16px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .oauth-or { margin-top: 8px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) #login-email,
  .auth-modal:has(#auth-panel-signup:not([hidden])) #login-password,
  .auth-modal:has(#auth-panel-signup:not([hidden])) .form-field input { height: 44px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) #login-form,
  .auth-modal:has(#auth-panel-signup:not([hidden])) #signup-form { gap: 10px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .form-field { gap: 4px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .field-hint { margin: 0; font-size: 11px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .btn-gold { min-height: 46px; }
  .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-switch-text, .auth-modal:has(#auth-panel-signup:not([hidden])) .auth-hint { margin-top: 6px; }
}

/* Bis Bis Run: stage bar (stage name + progress to the finish line) */
.run-stagebar { position: absolute; z-index: 4; top: 58px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(16,29,48,.55); color: #fff; font-size: 12px; font-weight: 800; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity .25s; }
.run-stage.is-playing .run-stagebar { opacity: 1; }
.run-stagebar i { display: block; width: 84px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); overflow: hidden; }
.run-stagebar b { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #f3d58f, #d9a441); transition: width .3s linear; }

.run-level-pick { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.run-level-pick span { min-width: 150px; text-align: center; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 800; font-size: 14px; }
.run-level-pick button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.1); color: #f3d58f; cursor: pointer; font-size: 13px; }
.run-level-pick button:disabled { opacity: .3; cursor: default; }
.run-lb ol { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 6px; }
.run-lb li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 7px 10px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.run-lb li.is-me { background: rgba(217,164,65,.22); outline: 1px solid rgba(217,164,65,.6); }
.run-lb .lb-rank { text-align: center; font-weight: 800; color: #e8c27a; }
.run-lb .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.run-lb .lb-name em { font-style: normal; color: #f3d58f; font-size: 11px; }
.run-lb .lb-lv { font-size: 11px; color: #9fb0cc; }
.run-lb .lb-score { color: #ffd35a; font-weight: 900; }
.run-lb .lb-empty { display: block; text-align: center; color: #9fb0cc; }

.run-lb-list { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 6px; width: min(92%, 380px); max-height: 440px; overflow: auto; }
.run-lb-list li { display: grid; grid-template-columns: 30px minmax(0,1fr) auto auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 14px; }
.run-lb-list li.is-me { background: rgba(217,164,65,.3); outline: 1px solid rgba(217,164,65,.7); }
.run-lb-list .lb-rank { text-align: center; font-weight: 800; color: #e8c27a; }
.run-lb-list .lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.run-lb-list .lb-name em { font-style: normal; color: #f3d58f; font-size: 11px; }
.run-lb-list .lb-lv { font-size: 11px; color: #b6c3da; }
.run-lb-list .lb-score { color: #ffd35a; font-weight: 900; }
.run-lb-list .lb-empty { display: block; text-align: center; color: #b6c3da; }
.run-over-rank { margin: 0 0 8px; font-weight: 800; color: #ffd35a; font-size: 14px; min-height: 1em; }
.run-level-pick[hidden] { display: none; }

/* Listing video: play button on the photo, then the player covers the photo */
.pet-media { position: relative; }
.pet-video-btn { position: absolute; inset-inline-end: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: rgba(16,29,48,.82); color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pet-video-btn:hover { background: var(--gold); color: var(--navy); }
.pet-video-btn svg { width: 16px; height: 16px; }
.pet-video { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; object-fit: contain; background: #000; }

.pet-owner-delete { display: block; width: calc(100% - 32px); margin: 8px 16px 14px; padding: 10px; border: 1px solid #e5484d; border-radius: 12px; background: transparent; color: #e5484d; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; }
.pet-owner-delete:hover { background: #e5484d; color: #fff; }
.pet-owner-delete:disabled { opacity: .6; cursor: wait; }

/* ----- Bis Bis Run: drawn icons instead of emoji, and buttons that look the same on iPhone, Android, Windows and Mac ----- */
.run-layout button, .run-shop button {
  -webkit-appearance: none; appearance: none; font-family: inherit;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.ri { width: 1.15em; height: 1.15em; flex-shrink: 0; display: inline-block; vertical-align: -0.18em; }
.ri-gold { color: var(--gold-light); }
.ri-row { display: inline-flex; align-items: center; gap: .4em; }
h3.ri-row, .run-title.ri-row { display: flex; justify-content: center; }
.run-side-card h3.ri-row { justify-content: flex-start; }
.run-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; line-height: 1.2; }
.run-btn .ri { width: 1.2em; height: 1.2em; }
.run-start-card .run-btn { width: 100%; }
.run-side-key { gap: 3px; }
.run-side-key .ri { width: 15px; height: 15px; }
.run-shop-coins .ri, .run-profile-chip .ri { width: 16px; height: 16px; }
.run-shop-action { display: flex; align-items: center; justify-content: center; gap: .4em; }
.run-shop-action .ri { width: 1.1em; height: 1.1em; }
.run-shop-tab .ri { width: 1.15em; height: 1.15em; }
.run-shop-card .status { display: flex; align-items: center; justify-content: center; gap: 3px; }
.run-shop-card .status .ri { width: 12px; height: 12px; }
.run-stat .ri-row { justify-content: center; }
.run-stat .ri { width: 13px; height: 13px; }
.lb-rank.lb-top {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #1f2a3c; font-weight: 800; font-size: 13px;
}
.lb-top1 { background: linear-gradient(145deg, #ffe58a, #e0a53a); box-shadow: 0 0 0 2px rgba(255,229,138,.35); }
.lb-top2 { background: linear-gradient(145deg, #f1f4f8, #aeb7c4); }
.lb-top3 { background: linear-gradient(145deg, #f3c39a, #b87333); }

/* on-screen controls: shown while playing on every device (keyboard and swipes still work) */
.run-pad {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 6;
  display: none; align-items: flex-end; justify-content: space-between; gap: 10px; pointer-events: none;
}
.run-stage.is-playing .run-pad { display: flex; }
.run-pad-mid { display: flex; gap: 10px; }
.run-pad-btn {
  pointer-events: auto; width: 62px; height: 62px; padding: 0; border-radius: 20px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #fff; background: rgba(16,29,48,.62); border: 1.5px solid rgba(232,194,122,.55);
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12);
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  transition: transform .08s ease, background .08s ease;
}
.run-pad-btn .ri { width: 28px; height: 28px; }
.run-pad-jump .ri, .run-pad-slide .ri { width: 24px; height: 24px; }
.run-pad-btn small { font-size: 10px; font-weight: 800; line-height: 1; color: #f3d79b; }
.run-pad-btn.is-down { transform: scale(.9); background: rgba(217,164,65,.6); }
@media (hover: hover) { .run-pad-btn:hover { background: rgba(16,29,48,.8); } }
.run-stage.is-playing .run-hints { bottom: 88px; }
@media (max-width: 560px) {
  .run-pad { left: 8px; right: 8px; bottom: 10px; }
  .run-pad-btn { width: 58px; height: 58px; border-radius: 18px; }
}
/* while playing, the site's floating bottom bar and timer step aside so they never cover the controls */
body.run-playing .bottom-nav, body.run-playing .site-timer { display: none !important; }
/* the labeled buttons replace the old swipe hint cards, which covered the runner for the first seconds on phones */
.run-stage .run-hints { display: none !important; }
.run-shop-tab.run-btn { gap: 4px; padding: 10px 4px; overflow: hidden; white-space: nowrap; }
.run-shop-tab .ri { width: 14px; height: 14px; }
.run-shop-tab span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 430px) { .run-shop-tab .ri { display: none; } }

/* ----- Bis Bis Run: ghost and live race ----- */
.run-rivals {
  position: absolute; top: 96px; left: 10px; right: 10px; z-index: 3; pointer-events: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
}
.run-rivals .rvl {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(16,29,48,.78); border: 1px solid var(--c); color: #fff; font-size: 12px; font-weight: 800;
  max-width: 100%; white-space: nowrap;
}
.run-rivals .rvl > span { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.run-rivals .rvl .ri { width: 14px; height: 14px; color: var(--c); }
.run-rivals .rvl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.run-rivals .rvl b { color: var(--gold-light); }
.run-rivals .rvl em { font-style: normal; font-size: 10.5px; color: #b8c1d1; }
.run-rivals .rvl-hp { display: inline-flex; gap: 1px; }
.run-rivals .rvl-hp .ri { width: 10px; height: 10px; color: #ea3a4f; }
.run-count {
  position: absolute; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; font-size: 96px; font-weight: 800; color: #fff;
  text-shadow: 0 6px 24px rgba(0,0,0,.45), 0 0 2px #1f3354; background: rgba(10,20,34,.35); pointer-events: none;
}
.run-count[hidden] { display: none; }
.run-race-open { border-color: rgba(232,194,122,.55); }
.run-race-linkbox { width: 100%; max-width: 320px; }
.run-race-linkbox input {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 12px; font: 600 13px/1 'Tajawal', sans-serif;
  background: rgba(255,255,255,.07); border: 1px solid rgba(232,194,122,.35); color: #fff; text-align: center;
}
.run-race-list { list-style: none; margin: 0; padding: 0; width: 100%; max-width: 300px; display: flex; flex-direction: column; gap: 6px; }
.run-race-list li, .run-race-results li {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,.06); color: #fff; font-weight: 700; font-size: 14px;
}
.run-race-list em, .run-race-results em { font-style: normal; font-size: 12px; color: var(--gold-light); }
.rr-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.run-race-status { font-size: 13px; color: #c9d1de; min-height: 18px; }
.run-race-results { width: 100%; max-width: 320px; }
.run-race-results .rr-title { font-weight: 800; color: var(--gold-light); margin-bottom: 6px; }
.run-race-results ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.run-race-results li.is-me { border: 1px solid rgba(242,193,78,.55); }
.run-race-results .rr-rank { width: 20px; text-align: center; color: #9aa3b5; }
.run-race-results b { color: var(--gold-light); }
.run-race-results small { font-size: 11px; color: #9aa3b5; }
.run-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .run-rivals { top: 92px; } .run-count { font-size: 80px; } }
/* small phones: the start card has four buttons now, keep it clear of the site's bottom bar */
@media (max-width: 560px) {
  .run-overlay.run-start { padding-top: 13%; }
  .run-start-card { gap: 7px; padding: 14px 14px 12px; }
  .run-start-card p { font-size: 13px; }
  .run-start-card .run-btn { padding: 10px 16px; font-size: 14px; }
  .run-start-card .run-title { font-size: 23px; }
  .run-kbd-hint { display: none; }
  #run-race .run-ghost-btn, #run-race .btn { padding: 10px 14px; font-size: 14px; }
  #run-race { gap: 8px; }
  #run-race p { font-size: 12.5px; }
}
/* race notices (a friend lost a heart, finished a level, lost) and the place chip */
.run-toasts {
  position: absolute; top: 128px; left: 10px; right: 10px; z-index: 7; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.run-toast {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px; border-radius: 14px;
  background: rgba(16,29,48,.9); border: 1.5px solid var(--c); color: #fff; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.25); animation: run-toast-in .25s ease-out; transition: opacity .45s ease, transform .45s ease;
}
.run-toast i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.run-toast.is-gone { opacity: 0; transform: translateY(-8px); }
.run-toast.k-hit { border-color: #ea3a4f; }
.run-toast.k-out { border-color: #ea3a4f; background: rgba(90,20,32,.92); font-size: 14.5px; }
.run-toast.k-out i { background: #ea3a4f; }
@keyframes run-toast-in { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
.run-rivals .rvl.is-out { opacity: .75; }
.run-rivals .rvl.is-out em { color: #ff7d8b; }
.run-rivals .rvl-place { background: rgba(217,164,65,.2); }
@media (max-width: 560px) { .run-toasts { top: 124px; } .run-toast { font-size: 12.5px; padding: 7px 12px; } }
.run-stage:not(.is-playing) .run-toasts { display: none; }
/* watching the others after losing a race */
.run-watch {
  position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 6;
  display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 18px;
  background: rgba(16,29,48,.88); border: 1px solid rgba(232,194,122,.45); color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.3);
}
.run-watch[hidden] { display: none; }
.run-watch-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.run-watch-head > .ri { width: 20px; height: 20px; color: var(--gold-light); flex-shrink: 0; }
.run-watch-head > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-watch-head b { color: var(--gold-light); }
.run-watch-exit {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; flex-shrink: 0;
  background: var(--gold); color: var(--navy); font-weight: 800; font-size: 13px; border: 0; cursor: pointer;
}
.run-watch-exit .ri { width: 15px; height: 15px; }
.run-watch-list { display: flex; flex-wrap: wrap; gap: 6px; }
.run-watch-list[hidden] { display: none; }
.run-watch-pick {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.15); color: #fff; font-weight: 700; font-size: 13px;
}
.run-watch-pick i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.run-watch-pick.on { border-color: var(--c); background: rgba(255,255,255,.14); }
.run-stage.is-watching .run-stagebar { opacity: 1; }
.run-stage.is-watching .run-toasts { display: flex; }
.run-watch-btn { border-color: rgba(232,194,122,.55); }

/* ----- Bis Bis Run on laptops: full screen, cards that fit, buttons in the HUD ----- */
.run-fs-btn .fs-off { display: none; }
#game-panel-run:fullscreen .run-fs-btn .fs-on, #game-panel-run:-webkit-full-screen .run-fs-btn .fs-on { display: none; }
#game-panel-run:fullscreen .run-fs-btn .fs-off, #game-panel-run:-webkit-full-screen .run-fs-btn .fs-off { display: block; }
.run-fs-btn[hidden] { display: none; }
#game-panel-run:fullscreen { max-width: none; width: 100vw; height: 100vh; margin: 0; padding: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; background: #0a1422; }
#game-panel-run:fullscreen .run-side-panel { display: none; }
#game-panel-run:fullscreen .run-main-column { flex: 0 0 auto; }
#game-panel-run:fullscreen .game-stage.run-stage { width: min(100vw, calc(100vh * 0.8)); max-width: none; aspect-ratio: 4 / 5; border-radius: 0; border: 0; }
#game-panel-run:-webkit-full-screen { width: 100vw; height: 100vh; margin: 0; padding: 0; border-radius: 0; display: flex; align-items: center; justify-content: center; background: #0a1422; }
#game-panel-run:-webkit-full-screen .run-side-panel { display: none; }
#game-panel-run:-webkit-full-screen .game-stage.run-stage { width: min(100vw, calc(100vh * 0.8)); aspect-ratio: 4 / 5; }
/* the cards over the game scroll instead of being cut when the screen is short */
.run-overlay:not(.run-start) { justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.run-overlay:not(.run-start) > :first-child { margin-top: auto; }
.run-overlay:not(.run-start) > :last-child { margin-bottom: auto; }
#run-over.is-race .run-stats, #run-over.is-race .run-over-rank { display: none; }
#run-over.is-race { gap: 10px; }
.run-rivals .rvl-none > span { max-width: 260px; font-weight: 700; }
/* someone is watching you */
.run-rivals .rvl-eye { background: rgba(30,90,70,.82); }
.run-rivals .rvl-eye > span { max-width: 180px; }
.run-toast.k-eye { border-color: #7fe0b4; }

/* ----- race: one row per runner (place, powers, score, hearts, level, metres left to the end of the race) ----- */
.run-rivals { flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 5px; }
.run-rivals .rv-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.run-rivals .rv-rows { display: flex; flex-direction: column; gap: 4px; width: min(100%, 350px); }
.rvr {
  position: relative; display: flex; align-items: center; gap: 6px; height: 25px; padding: 0 10px; border-radius: 13px; overflow: hidden;
  background: rgba(16,29,48,.82); border: 1px solid var(--c); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.rvr::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--p); background: var(--c); opacity: .3; pointer-events: none; }
.rvr > * { position: relative; }
.rvr.me { background: rgba(60,46,12,.86); border-width: 1.6px; }
.rvr.out { opacity: .72; }
.rvr-rank { width: 14px; text-align: center; color: var(--gold-light); font-size: 11px; }
.rvr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.rvr-score { color: var(--gold-light); min-width: 18px; text-align: center; }
.rvr-hp { display: inline-flex; gap: 1px; }
.rvr-hp .ri { width: 10px; height: 10px; color: #ea3a4f; }
.rvr-pw { width: 13px; height: 13px; color: #9fd8ff; }
.rvr-x2 { color: #ffd35a; font-size: 11px; }
.rvr-lv { color: #b8c1d1; font-size: 10.5px; }
.rvr-left { min-width: 62px; text-align: left; direction: rtl; color: #fff; }
.rvr.out .rvr-left { color: #ff8d99; }
.run-toast.k-pw { border-color: #9fd8ff; }
@media (max-width: 560px) { .rvr { height: 23px; font-size: 11.5px; padding: 0 8px; gap: 5px; } .rvr-left { min-width: 56px; } }

/* ----- race panel, small version: a corner of the screen, a flag and the metres left in this level ----- */
.run-rivals { align-items: stretch; }
.run-rivals .rv-chips { align-self: center; }
.run-rivals .rv-rows { align-self: flex-end; width: auto; min-width: 118px; max-width: 168px; gap: 3px; }
.rvr { height: 21px; padding: 0 8px; gap: 5px; border-radius: 11px; font-size: 11px; background: rgba(16,29,48,.72); border-width: 1px; }
.rvr::before { display: none; }
.rvr.me { background: rgba(60,46,12,.78); }
.rvr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.rvr-name { flex: 1; min-width: 0; max-width: 62px; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.rvr-score, .rvr-hp, .rvr-rank { display: none; }
.rvr-pw { width: 11px; height: 11px; }
.rvr-x2 { font-size: 10px; }
.rvr-lv { font-size: 10px; color: #b8c1d1; }
.rvr-left { display: inline-flex; align-items: center; gap: 3px; min-width: 0; text-align: left; direction: rtl; font-size: 11px; }
.rvr-flag { width: 12px; height: 12px; color: var(--gold-light); }
.rvr.out .rvr-left { color: #ff8d99; }
@media (max-width: 560px) { .rvr { height: 20px; font-size: 10.5px; padding: 0 7px; } .run-rivals .rv-rows { max-width: 150px; } .rvr-name { max-width: 52px; } }
/* the lobby: who is ready */
.run-race-list li .rr-state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #9aa3b5; font-weight: 700; }
.run-race-list li.is-ready .rr-state { color: #7fe0b4; }
.run-race-list li .rr-state .ri { width: 13px; height: 13px; }
.run-race-list li.is-ready { border: 1px solid rgba(127,224,180,.45); }
#run-race-start.is-ready { background: #2f8c5a; color: #fff; border-color: #2f8c5a; }

/* full screen made by the page itself (iPhone): the game covers the whole window */
body.run-pfs { overflow: hidden; }
body.run-pfs .bottom-nav, body.run-pfs .site-timer, body.run-pfs .site-header { display: none !important; }
#game-panel-run.is-pfs {
  position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100vh; height: 100dvh; max-width: none; margin: 0; padding: 0; border-radius: 0;
  display: flex; align-items: center; justify-content: center; background: #0a1422; overflow: hidden;
}
#game-panel-run.is-pfs::before { display: none; }
#game-panel-run.is-pfs .run-side-panel { display: none; }
#game-panel-run.is-pfs .run-main-column { flex: 0 0 auto; }
#game-panel-run.is-pfs .game-stage-wrap { flex: 0 0 auto; }
#game-panel-run.is-pfs .game-stage.run-stage { width: min(100vw, calc(100dvh * 0.6)); max-width: none; border-radius: 0; border: 0; }
@media (min-width: 1024px) { #game-panel-run.is-pfs .game-stage.run-stage { width: min(100vw, calc(100dvh * 0.8)); } }
#game-panel-run.is-pfs .run-fs-btn .fs-on { display: none; }
#game-panel-run.is-pfs .run-fs-btn .fs-off { display: block; }

/* race notices: small, top right, so they never hide the road */
.run-toasts { top: 96px !important; left: auto; right: 10px; width: min(54%, 215px); align-items: flex-end; gap: 4px; }
.run-toast { padding: 4px 10px; border-radius: 11px; font-size: 11.5px; gap: 6px; max-width: 100%; box-shadow: 0 4px 12px rgba(0,0,0,.22); line-height: 1.35; }
.run-toast i { width: 7px; height: 7px; }
.run-toast.k-out { font-size: 12px; padding: 5px 11px; }
.run-toasts .run-toast:first-child { font-size: 11.5px; }
.run-toast.k-out:first-child { font-size: 12px; }
@media (max-width: 560px) { .run-toasts { width: min(54%, 190px); } .run-toast { font-size: 11px; padding: 4px 9px; } }

/* the full screen button stays reachable on every screen of the game (start card, race room, results...), not only while playing */
.run-hud { z-index: 7; }
.run-stage:not(.is-playing) .run-hud .run-chip { opacity: .45; }
.run-fs-btn { pointer-events: auto; }

/* the music button in the game's top bar */
.run-music-btn { pointer-events: auto; }
.run-music-btn .mu-off { display: none; }
.run-music-btn.is-off .mu-on { display: none; }
.run-music-btn.is-off .mu-off { display: block; }
.run-music-btn.is-off { color: #9aa3b5; }
.run-music-btn svg { width: 16px; height: 16px; }
/* the top bar has three round buttons now: on narrow phones the "best" chip makes room (the best score is still in the side panel and the game over card) */
@media (max-width: 480px) {
  .run-best-chip { display: none; }
  .run-hud-end { gap: 4px; }
}

/* mobile-number sign-in */
.ph-entry { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; margin: 0 0 14px; border-radius: 16px; border: 1.5px solid var(--gold-light, #f2c14e); background: rgba(255,255,255,.06); color: inherit; font: inherit; font-weight: 800; cursor: pointer; }
.ph-entry:hover { background: rgba(242,193,78,.14); }
.ph-row { display: flex; gap: 8px; align-items: stretch; }
.ph-row input { flex: 1; min-width: 0; text-align: left; letter-spacing: .02em; }
.ph-country { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; min-height: 46px; border-radius: 12px; border: 1.5px solid rgba(128,128,128,.4); background: rgba(255,255,255,.08); color: inherit; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ph-country img, .ph-list li img { width: 22px; height: 16px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.ph-country i { font-style: normal; font-size: 11px; opacity: .7; }
.ph-list { margin-top: 8px; border: 1.5px solid rgba(128,128,128,.4); border-radius: 14px; background: #fff; color: #1d2b44; overflow: hidden; }
.ph-search { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid #e6dcc3; padding: 11px 14px; font: inherit; background: #fff; color: #1d2b44; }
.ph-list ul { list-style: none; margin: 0; padding: 4px; max-height: 220px; overflow-y: auto; }
.ph-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.ph-list li:hover, .ph-list li.on { background: #fbf3dc; }
.ph-list .ph-n { flex: 1; text-align: start; }
.ph-list .ph-d { opacity: .65; font-size: 13px; }
.ph-list li.ph-none { cursor: default; opacity: .6; justify-content: center; }
#ph-captcha { display: flex; justify-content: center; margin: 6px 0; }
.tg-entry { display: flex; flex-direction: column; align-items: center; margin: 0 0 14px; min-height: 40px; }
.tg-entry iframe { max-width: 100%; }
.tg-entry .tg-msg { margin-top: 6px; }

.tg-entry { align-items: stretch; }
.tg-btn { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 16px; border: 0; background: #fff; color: #1d2b44; font: inherit; font-size: 15px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.28); cursor: pointer; }
.tg-btn:hover { background: #f3f8fc; }

/* ===== Home: hero actions, three doors, hotel status, mobile question bar ===== */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions[hidden], .hero-actions > [hidden] { display: none; }
.btn-hero-ghost {
  background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn-hero-ghost:hover { background: rgba(255,255,255,.2); }
.home-portals { padding-top: 8px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.portal-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 26px 24px; border-radius: 22px; background: #fff; color: var(--navy);
  border: 1px solid rgba(16,29,48,.08); box-shadow: 0 10px 30px rgba(16,29,48,.06);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(16,29,48,.12); }
.portal-icon {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--gold-light);
}
.portal-icon svg { width: 26px; height: 26px; }
.portal-card h3 { margin: 4px 0 0; font-size: 22px; font-weight: 900; }
.portal-card p { margin: 0; line-height: 1.7; font-size: 15px; opacity: .8; }
.portal-cta { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--gold); font-size: 15px; }
.portal-status {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 13px; font-weight: 800;
}
.portal-status[hidden] { display: none; }
.portal-status.is-on { background: #e2f6e9; color: #14753a; }
.portal-status.is-off { background: #eceff4; color: #5a6578; }
.split-banner .panel.navy .portal-status.is-on { background: rgba(98,214,140,.18); color: #8be8ae; }
.split-banner .panel.navy .portal-status.is-off { background: rgba(255,255,255,.12); color: #d4dbe7; }
.ask-bar { display: none; }
@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; gap: 12px; }
  .portal-card { padding: 20px 18px; }
}
@media (max-width: 720px) {
  .ask-bar:not([hidden]) {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; right: 10px; left: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 140;
    padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none;
    box-shadow: 0 10px 28px rgba(0,0,0,.28); border: 1px solid rgba(232,194,122,.45);
  }
  .ask-bar-q { font-weight: 800; font-size: 15px; }
  .ask-bar-a { font-weight: 900; font-size: 14px; padding: 6px 16px; border-radius: 999px; background: var(--gold); color: var(--navy); }
}

/* ===== Phone first screen: a short hero, then every service within reach ===== */
.home-quick { display: none; }
@media (max-width: 720px) {
  .hero-scrub { height: auto; }
  .hero-scrub-sticky { height: 330px; min-height: 0; align-items: flex-end; }
  .hero-scrub-sticky::after { background: linear-gradient(to top, rgba(8,14,24,.92) 0%, rgba(8,14,24,.7) 45%, rgba(8,14,24,.35) 100%); }
  .hero-content { top: auto; bottom: 18px; transform: none; left: 18px; right: 18px; padding-right: 14px; }
  .hero-content .eyebrow, .hero-content .hero-impact, .hero-cue, .hero-paws { display: none; }
  .hero-content h1 { font-size: 27px; line-height: 1.25; margin: 0 0 8px; }
  .hero-content p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; max-width: none; color: #fff; }
  .hero-content .btn-gold, .hero-content .btn-hero-ghost { padding: 11px 22px; font-size: 15px; }
  .home-quick { display: block; padding: 14px 0 6px; background: #fff; }
  .quick-title { font-weight: 900; font-size: 17px; color: var(--navy); margin: 0 2px 10px; }
  .quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .quick-tile {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    min-height: 88px; padding: 10px 6px; border-radius: 16px; text-decoration: none; text-align: center;
    background: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(16,29,48,.18);
  }
  .quick-tile svg { width: 26px; height: 26px; color: var(--gold-light); }
  .quick-tile b { font-size: 13px; font-weight: 800; line-height: 1.3; }
  .quick-status {
    position: absolute; top: 6px; left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 800;
  }
  .quick-status[hidden] { display: none; }
  .quick-status.is-on { background: rgba(98,214,140,.2); color: #8be8ae; }
  .quick-status.is-off { background: rgba(255,255,255,.14); color: #d4dbe7; }
}
@media (max-width: 720px) { body:has(.home-quick) .site-timer { display: none; } }

/* the hero shows its first frame at once; the video fades in over it when ready */
.hero-scrub-sticky { background: var(--navy) url('../img/hero-poster.jpg') center 35% / cover no-repeat; }
@media (max-width: 720px) { .hero-scrub-sticky { background-position: 78% 40%; } }

/* on phones the six tiles replace the three doors; a help row sits under the tiles */
@media (max-width: 720px) {
  .home-portals { display: none; }
  .quick-help { display: flex; align-items: center; gap: 10px; margin: 12px 2px 4px; font-size: 14px; color: var(--navy); }
  .quick-help > span { font-weight: 800; flex: 1; }
  .quick-help a { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; text-decoration: none; }
  .quick-help-wa { background: #25a244; color: #fff; }
  .quick-help-contact { background: var(--tan); color: var(--navy); border: 1px solid rgba(16,29,48,.12); }
}
@media (min-width: 721px) { .quick-help { display: none; } }

/* clearer inner pages: friend race line on the game page, ID note, about contact links, status chips in the about list */
.run-page-friends { display: flex; align-items: center; gap: 10px; margin: 12px auto 0; padding: 10px 16px; max-width: 560px; border-radius: 16px; background: rgba(217,164,65,.14); border: 1px solid rgba(217,164,65,.45); color: var(--navy); font-size: 15px; line-height: 1.6; }
.run-page-friends svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.pid-note { display: block; margin-top: 4px; opacity: .7; font-size: 13px; }
.ab-cta-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin-top: 16px; font-size: 14px; }
.ab-cta-links a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }
.ab-svc .portal-status { align-self: flex-start; margin: 2px 0 0; }

/* ===== Policy pages ===== */
.legal-page .container { max-width: 880px; }
.lg-hero { text-align: center; padding: 28px 0 8px; }
.lg-hero h1 { font-size: clamp(28px, 6vw, 44px); margin: 10px 0 10px; color: var(--navy); }
.lg-lead { margin: 0 auto 12px; max-width: 620px; font-size: 17px; line-height: 1.8; color: #3d4a60; }
.lg-date { display: inline-block; padding: 5px 16px; border-radius: 999px; background: var(--tan); color: var(--navy); font-size: 13px; font-weight: 800; }
.lg-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px 0; }
.lg-toc a { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid rgba(16,29,48,.12); color: var(--navy); font-size: 13.5px; font-weight: 700; text-decoration: none; }
.lg-toc a:hover { background: var(--navy); color: #fff; }
.lg-card { background: #fff; border: 1px solid rgba(16,29,48,.08); border-radius: 24px; padding: 8px 28px 20px; box-shadow: 0 10px 30px rgba(16,29,48,.06); }
.lg-sec { padding: 22px 0; border-bottom: 1px solid rgba(16,29,48,.08); scroll-margin-top: 90px; }
.lg-sec:last-child { border-bottom: 0; }
.lg-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin: 0 0 12px; color: var(--navy); }
.lg-sec h2 span { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-light); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
.lg-sec p, .lg-sec li { font-size: 16px; line-height: 1.95; color: #2a3547; }
.lg-sec ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.lg-sec a { color: #8a6420; font-weight: 700; text-underline-offset: 3px; }
.lg-other { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; margin: 22px 0 6px; font-size: 14.5px; }
.lg-other span { font-weight: 800; color: var(--navy); }
.lg-other a { color: #8a6420; font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 720px) { .lg-card { padding: 4px 16px 12px; border-radius: 18px; } .lg-sec h2 { font-size: 19px; } }

/* ===== Accessibility: contrast (WCAG AA), focus, skip link ===== */
.skip-link { position: fixed; top: -80px; right: 12px; z-index: 100000; padding: 12px 20px; border-radius: 12px; background: #d9a441; color: #101d30; font-weight: 900; text-decoration: none; transition: top .15s; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [role="button"]:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible { outline: 3px solid #d9a441; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #d9a441; outline-offset: 1px; }
/* grey and gold text on light surfaces was under 4.5:1 */
#store-grid-subtitle, .hx-experience-text > .hx-lead, .ad-listings-head > div > .hx-lead, .pid-msg, .ct-form-head > p,
.name-card .nc-info .desc, .filter-row-head p, .pet-card .pet-facts .pf .pf-t .k { color: #5b6577; }
.adl-kicker, .hx-kicker.dark, .name-card .nc-info .nc-eyebrow, .about-hero .about-eyebrow, .ab-head .about-eyebrow, .lg-hero .about-eyebrow,
.ct-hero .about-eyebrow, .contact-hero .about-eyebrow { color: #7a5a14; }
.about-hero .about-eyebrow svg, .lg-hero .about-eyebrow svg { color: #7a5a14; fill: currentColor; }

.pet-facts .pf-vax.yes .v, .pet-facts .pf-vax.yes .k { color: #1d6b38; }

/* the visit timer sat on top of the text on phones */
@media (max-width: 720px) { .site-timer { display: none; } }

.ct-policy { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; font-size: 13.5px; }
.ct-policy a { color: inherit; opacity: .85; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Account: the signed-out page and the sign-in window ===== */
.acct-gate { padding-top: 28px; }
.ag-card { max-width: 720px; margin: 0 auto; text-align: center; background: linear-gradient(160deg, #16263f, #0f1b2e); color: #fff; border-radius: 28px; padding: 34px 28px 26px; box-shadow: 0 24px 60px rgba(16,29,48,.28); border: 1px solid rgba(232,194,122,.35); }
.ag-eyebrow { display: inline-block; padding: 5px 16px; border-radius: 999px; background: rgba(232,194,122,.16); color: #f0cf8a; font-size: 13px; font-weight: 800; }
.ag-card h1 { margin: 14px 0 8px; font-size: clamp(30px, 6vw, 44px); line-height: 1.2; color: #fff; }
.ag-card h1 em { font-style: normal; color: #f0cf8a; }
.ag-lead { margin: 0 auto 20px; max-width: 520px; font-size: 16.5px; line-height: 1.8; color: #dfe5ef; }
.ag-benefits { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: right; }
.ag-benefits li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.ag-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(232,194,122,.18); color: #f0cf8a; }
.ag-ic svg { width: 22px; height: 22px; }
.ag-benefits b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.ag-benefits span:not(.ag-ic) { display: block; font-size: 13.5px; line-height: 1.6; color: #cfd6e3; }
.ag-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ag-actions .btn { min-width: 190px; }
.ag-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.ag-ghost:hover { background: rgba(255,255,255,.12); }
.ag-methods { margin: 14px 0 0; font-size: 14.5px; color: #dfe5ef; }
.ag-methods b { color: #f0cf8a; }
.ag-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; justify-content: center; }
.ag-trust li { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #e8edf5; }
.ag-trust li::before { content: "✓"; color: #7fe0a3; font-weight: 900; margin-inline-end: 6px; }
.ag-legal { margin: 16px 0 0; font-size: 13px; color: #b9c2d2; }
.ag-legal a, .auth-consent a { color: #f0cf8a; text-underline-offset: 3px; }
.auth-consent { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.7; color: #b9c2d2; }
.tg-note { display: block; margin: 6px 4px 0; text-align: center; font-size: 12.5px; color: #b9c2d2; }
@media (max-width: 720px) {
  .ag-card { padding: 26px 16px 20px; border-radius: 22px; }
  .ag-benefits { grid-template-columns: 1fr; }
  .ag-actions .btn { width: 100%; }
}
@media (max-width: 720px) {
  .acct-gate { padding-top: 14px; }
  .ag-card { padding: 20px 14px 16px; }
  .ag-card h1 { margin: 10px 0 6px; font-size: 28px; }
  .ag-lead { font-size: 15px; line-height: 1.65; margin-bottom: 14px; }
  .ag-benefits { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
  .ag-benefits li { flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; }
  .ag-ic { width: 36px; height: 36px; border-radius: 12px; }
  .ag-benefits b { font-size: 13.5px; margin: 0; }
  .ag-benefits span:not(.ag-ic) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ag-methods { margin-top: 10px; font-size: 13.5px; }
  .ag-trust { margin-top: 12px; }
}

/* ===== Account after sign-in: numbers that matter, my listings ===== */
a.acct-stat, button.acct-stat { text-decoration: none; cursor: pointer; font: inherit; }
button.acct-stat { border: 1px solid rgba(232,194,122,.18); }
.acct-menu-row-text span { color: #5b6577; }
.acct-listings-section { padding-top: 6px; scroll-margin-top: 90px; }
.al-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.al-head h2 { margin: 0 0 4px; font-size: 26px; color: var(--navy); }
.al-head p { margin: 0; color: #5b6577; font-size: 14.5px; }
.al-add { display: flex; flex-wrap: wrap; gap: 8px; }
.al-ghost { background: #fff; color: var(--navy); border: 1.5px solid rgba(16,29,48,.2); }
.al-list { display: grid; gap: 12px; }
.al-card { display: flex; gap: 14px; padding: 12px; border-radius: 20px; background: #fff; border: 1px solid rgba(16,29,48,.08); box-shadow: 0 8px 24px rgba(16,29,48,.06); }
.al-img { flex: none; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: var(--tan); }
.al-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.al-body { flex: 1; min-width: 0; }
.al-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.al-top b { font-size: 16.5px; color: var(--navy); }
.al-status { padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.al-status.wait { background: #fff2d6; color: #7a5a14; }
.al-status.ok { background: #e2f6e9; color: #14753a; }
.al-status.no { background: #fde4e4; color: #a12a2a; }
.al-meta { margin: 4px 0 0; font-size: 13.5px; color: #5b6577; }
.al-why { margin: 6px 0 0; font-size: 13.5px; color: #a12a2a; }
.al-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.al-btn { padding: 7px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.al-btn-quiet { background: transparent; color: var(--navy); border: 1px solid rgba(16,29,48,.25); }
.al-empty { margin: 0; padding: 22px; border-radius: 18px; background: #fff; border: 1px dashed rgba(16,29,48,.2); text-align: center; color: #5b6577; }
@media (max-width: 720px) { .al-head h2 { font-size: 22px; } .al-img { width: 74px; height: 74px; } .al-add .btn { flex: 1 1 100%; text-align: center; } }

.acct-soon { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--tan); color: #3d4a60; font-size: 14px; font-weight: 700; text-align: center; }
.acct-soon[hidden] { display: none; }
.acct-soon svg { width: 20px; height: 20px; flex: none; color: #7a5a14; }

/* ===== Audit fixes ===== */
.listing-optional { color: #5b6577; }
#listing-modal-sub { color: #5b6577; }
.adl-note { margin: 8px 0 0; font-size: 13.5px; color: #5b6577; max-width: 62ch; }
.adoption-page .pet-card .listing-desc.is-open { -webkit-line-clamp: unset; display: block; }
.listing-more { display: block; background: none; border: 0; padding: 0 20px 4px; font: inherit; font-size: 13px; font-weight: 800; color: #7a5a14; cursor: pointer; text-align: start; }
.listing-more:hover { text-decoration: underline; }
.lf-keep { margin: 10px 0 0; font-size: 14px; color: #5b6577; }
.lf-keep a { color: #7a5a14; font-weight: 800; }
.pid-field input:focus-visible, .pid-field select:focus-visible { box-shadow: 0 0 0 3px rgba(217,164,65,.5); }
/* a finger needs about 44 px: the look stays, only the area that answers a tap grows */
@media (max-width: 900px) {
  .icon-btn, .lang-switch button, .cur-btn { position: relative; }
  .icon-btn::after, .lang-switch button::after, .cur-btn::after { content: ""; position: absolute; inset: -9px; }
  .site-footer li a, .site-footer .footer-email-link { display: inline-block; padding-block: 10px; }
  .ct-policy a, .lg-other a, .ab-cta-links a { display: inline-block; padding-block: 10px; }
}
.lf-drop > small, .lf-hint, #fav-empty > p, #orders-empty > p, #cart-empty > p { color: #5b6577; }
.listing-back a { color: #7a5a14; }

/* the hotel and listings panels were glued into one block: two separate cards with air between them */
.split-banner { gap: 20px; overflow: visible; border-radius: 0; }
.split-banner .panel { border-radius: var(--radius-lg); }
@media (max-width: 900px) { .split-banner { gap: 16px; } }
/* phones: the four sections sit two by two instead of four tall cards in a column */
@media (max-width: 720px) {
  .cs-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cs-card { aspect-ratio: 4 / 5; border-radius: 16px; }
  .cs-card h3 { font-size: 16px; }
  .cs-card .cs-card-overlay p { display: none; }
  .cs-card .cs-eyebrow { font-size: 11px; }
}
@media (max-width: 720px) { .cs-card .cs-arrow { display: none; } .cs-card-overlay { padding-inline: 12px; } }

/* desktop home = the phone design: a short hero, then the six service tiles and the help row, in one centred column */
@media (min-width: 721px) {
  .hero-scrub { height: auto; }
  .hero-scrub-sticky { height: 430px; min-height: 0; align-items: flex-end; }
  .hero-content { top: auto; bottom: 40px; transform: none; }
  .hero-content .eyebrow, .hero-content .hero-impact, .hero-cue, .hero-paws { display: none; }
  .hero-content h1 { font-size: 48px; margin: 0 0 10px; }
  .hero-content p { margin: 0 0 22px; color: #fff; }
  .home-quick { display: block; padding: 30px 0 10px; background: #fff; }
  .home-quick .container { max-width: 1100px; }
  .quick-title { font-weight: 900; font-size: 24px; color: var(--navy); margin: 0 0 16px; }
  .quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .quick-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 128px; padding: 14px 8px; border-radius: 18px; text-decoration: none; text-align: center; background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(16,29,48,.16); transition: transform .2s ease, box-shadow .2s ease; }
  .quick-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(16,29,48,.26); }
  .quick-tile svg { width: 32px; height: 32px; color: var(--gold-light); }
  .quick-tile b { font-size: 15px; font-weight: 800; line-height: 1.3; }
  .quick-status { position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
  .quick-status[hidden] { display: none; }
  .quick-status.is-on { background: rgba(98,214,140,.2); color: #8be8ae; }
  .quick-status.is-off { background: rgba(255,255,255,.14); color: #d4dbe7; }
  .quick-help { display: flex; align-items: center; gap: 12px; margin: 16px 2px 0; font-size: 15px; color: var(--navy); }
  .quick-help > span { font-weight: 800; flex: 1; }
  .quick-help a { padding: 9px 20px; border-radius: 999px; font-weight: 800; font-size: 14px; text-decoration: none; }
  .quick-help-wa { background: #25a244; color: #fff; }
  .quick-help-contact { background: var(--tan); color: var(--navy); border: 1px solid rgba(16,29,48,.12); }
  .home-portals { display: none; }
}
body:has(.home-quick) .site-timer { display: none; }
.pid-hero:not(.pid-hero-v2) .about-eyebrow { color: #7a5a14; }
.pid-hero:not(.pid-hero-v2) > p { color: #5b6577; }
.pid-public-cta > p { color: #5b6577; }
/* the little cat that stood on the bottom bar covered buttons and text on every page */
.bottom-nav-cat { display: none !important; }
.hx-head > .hx-lead { color: #5b6577; }

/* services panel: a plain grid, every service visible with one line of what it is */
.services-card-text { display: grid; gap: 4px; flex: 1; min-width: 0; justify-items: center; }
.services-card-wide .services-card-text { justify-items: start; text-align: right; }
.services-card-title { font-size: 15px; }
.services-card-desc { font-size: 12.5px; line-height: 1.55; color: #b9c3d3; }
.services-card .portal-status { justify-self: center; font-size: 11.5px; padding: 2px 10px; }
.services-card-wide .portal-status { justify-self: start; }
.services-card-arrow { display: none; }
.services-card { transition: transform .2s ease, border-color .2s ease; }
.services-card:hover { transform: translateY(-3px); border-color: rgba(232,194,122,.5); }
.services-card-wide .services-card-media { width: 92px; }
.services-card:not(.services-card-wide) .services-card-media { aspect-ratio: 16/10; }
.services-card:not(.services-card-wide) { padding: 10px 10px 12px; }
.services-grid { gap: 10px; }

.services-card:not(.services-card-wide) .services-card-media { aspect-ratio: 2/1; }
.services-card:not(.services-card-wide) .services-card-text { align-content: start; }
.services-card-icon { display: grid; place-items: center; color: #e8c27a; background: rgba(232,194,122,.1); }
.services-card-icon svg { width: 44px; height: 44px; }
.services-card-store .services-card-media { height: 78px; align-self: center; }
.services-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.services-card-store .services-card-media { width: 64px; height: 64px; }
.services-card-icon svg { width: 34px; height: 34px; }
.services-card-wide .services-card-media { width: 78px; }
.services-card-wide { padding: 8px 12px; }
/* services panel: every card is the same row — square picture, title, short line */
.services-grid { grid-template-columns: 1fr; gap: 10px; }
.services-grid .services-card, .services-grid .services-card.services-card-wide { flex-direction: row; align-items: center; gap: 14px; padding: 9px 12px; min-height: 0; }
.services-grid .services-card .services-card-media, .services-grid .services-card.services-card-wide .services-card-media, .services-grid .services-card-store .services-card-media { width: 74px; height: 74px; aspect-ratio: 1; flex: none; align-self: center; border-radius: 14px; }
.services-grid .services-card .services-card-text, .services-grid .services-card.services-card-wide .services-card-text { justify-items: start; text-align: right; align-content: center; }
.services-grid .services-card .portal-status { justify-self: start; }
.services-grid .services-card-title { font-size: 16px; }
.services-grid .services-card-icon svg { width: 36px; height: 36px; }
.services-grid { gap: 8px; }
.services-grid .services-card, .services-grid .services-card.services-card-wide { padding: 6px 10px; gap: 12px; }
.services-grid .services-card .services-card-media, .services-grid .services-card.services-card-wide .services-card-media, .services-grid .services-card-store .services-card-media { width: 58px; height: 58px; border-radius: 12px; }
.services-grid .services-card-text { gap: 2px; }
.services-grid .services-card-title { font-size: 15px; }
.services-grid .services-card-desc { font-size: 12px; }
.services-grid .services-card .portal-status { font-size: 11px; padding: 1px 9px; }
.services-grid .services-card-icon svg { width: 28px; height: 28px; }
.services-links a { padding-block: 10px; }
.services-grid .services-card .services-card-text { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.services-grid .services-card-desc { flex-basis: 100%; }
