:root {
  --navy: #061e5c;
  --navy-2: #082c87;
  --indigo: #082c87;
  --indigo-2: #0850a8;
  --purple: #0850a8;
  --cyan: #07b0c6;
  --sky: #07b0c6;
  --mint: #12b76a;
  --mint-dark: #0e9f6e;
  --coral: #f0a444;
  --orange: #f0a444;
  --gold: #f0a444;
  --bg: #f4f7fb;
  --bg-2: #e8eef6;
  --white: #ffffff;
  --border: #d9e3ef;
  --text: #061e5c;
  --muted: #5b6b86;
  --success: #12b76a;
  --danger: #f04438;
  --warning: #f0a444;
  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(6, 30, 92, 0.06);
  --shadow-lg: 0 24px 50px rgba(6, 30, 92, 0.12);
  --header-h: 68px;
  --cat-h: 76px;
  --bottom-nav: 72px;
  --font: "Quicksand", sans-serif;
  --max: 1240px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-2: #121a2d;
  --white: #152038;
  --border: #243049;
  --text: #e8eef8;
  --muted: #93a0b5;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14.5px;
  transition: 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--cyan); color: #fff; }
.btn-primary:hover { background: #0599ad; transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: #061e5c; }
.btn-coral:hover { background: #e0922f; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { min-height: 38px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:active { transform: scale(.97); }
.btn-icon {
  width: 44px; height: 44px; min-height: 44px; padding: 0;
  border-radius: 12px; border: 1px solid var(--border); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text);
}
.icon { width: 18px; height: 18px; }

/* Forms */
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 14px;
  background: #fff;
  color: var(--text);
  font-size: 15px;
}
.textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(7, 176, 198, 0.18);
  outline: none;
}
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.badge-sale { background: var(--coral); color: #fff; }
.badge-mint { background: #d1fadf; color: #067647; }
.badge-navy { background: #e6f8fb; color: #082c87; }
.badge-gold { background: #fef6d8; color: #854d0e; }
.badge-gray { background: #f2f4f7; color: #344054; }
.badge-danger { background: #fee4e2; color: #b42318; }
.badge-warn { background: #fef0c7; color: #b54708; }
.badge-sky { background: #e0f2fe; color: #0369a1; }
.badge-sponsored { background: #111827; color: #fff; }

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}
.stat-card { padding: 18px; display: grid; gap: 6px; }
.stat-card .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-card .value { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.stat-card .delta { font-size: 12px; font-weight: 700; color: var(--mint); }

/* Public header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; }
.topbar {
  background: #fff;
  color: var(--navy-2);
  min-height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: 20px;
  align-items: center;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}
.brand-cluster { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  display: flex; align-items: center; gap: 0;
  background: #fff;
  padding: 6px 10px;
  border-radius: 12px;
  min-height: 44px;
}
.topbar .logo {
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-height: 0;
  box-shadow: none;
}
.logo .brand-logo {
  height: 34px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  background: transparent;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}
.topbar .logo .brand-logo { height: 40px; max-width: 200px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-2), var(--cyan));
  display: grid; place-items: center; font-size: 16px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  max-width: 640px;
  justify-self: stretch;
}
.search-wrap::before { display: none; }
.search-lead {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--cyan); pointer-events: none; z-index: 1;
  display: grid; place-items: center;
}
.search-lead .icon { width: 18px; height: 18px; }
.search-wrap input {
  width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 50px 0 42px; font-size: 14px; font-weight: 600;
  background: #f4f7fb; color: var(--text);
  box-shadow: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.search-wrap:focus-within input {
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(7,176,198,.16);
}
.search-wrap .search-btn {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: var(--cyan);
  color: #fff; display: grid; place-items: center;
  box-shadow: none;
  transition: transform .2s ease, background .2s ease;
}
.search-wrap .search-btn:hover { transform: none; background: #0599ad; box-shadow: none; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-nav { display: flex; align-items: center; gap: 2px; }
.header-tools { display: flex; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--border); }
.header-actions a, .header-actions button {
  color: var(--navy-2); background: transparent; border: 0; min-width: 40px; min-height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border-radius: 10px; font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.header-desk {
  min-width: auto;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--navy-2);
}
.header-actions a:hover, .header-actions button:hover { background: #eef7fa; transform: none; color: var(--navy-2); }
.header-icon { position: relative; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; color: var(--navy-2); }
.header-avatar {
  width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0;
  border-radius: 10px; background: #e6f8fb; color: var(--navy-2);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.header-login { min-width: auto; }
.cart-count, .notif-count {
  position: absolute; top: 2px; right: 1px; margin: 0;
  background: var(--coral); color: #fff; font-size: 10px; min-width: 16px; height: 16px;
  border-radius: 99px; display: inline-grid; place-items: center; font-weight: 800;
  line-height: 1;
}
.catbar {
  background: #fff; border-bottom: 1px solid var(--border);
}
.catbar-shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
}
.catbar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  scrollbar-width: none;
}
.catbar-inner::-webkit-scrollbar { display: none; }
.cat-item {
  display: inline-flex; flex-direction: row; align-items: center; gap: 8px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--navy-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  animation: catIn .4s ease both;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.cat-item:nth-child(1) { animation-delay: .02s; }
.cat-item:nth-child(2) { animation-delay: .06s; }
.cat-item:nth-child(3) { animation-delay: .10s; }
.cat-item:nth-child(4) { animation-delay: .14s; }
.cat-item:nth-child(5) { animation-delay: .18s; }
.cat-item:nth-child(6) { animation-delay: .22s; }
.cat-item:nth-child(7) { animation-delay: .26s; }
.cat-item:nth-child(8) { animation-delay: .30s; }
.cat-item:nth-child(9) { animation-delay: .34s; }
.cat-item:nth-child(10) { animation-delay: .38s; }
.cat-item:hover, .cat-item.active { background: #e6f8fb; color: var(--navy-2); transform: translateY(-1px); }
.cat-item:hover .cat-emoji { animation-duration: .7s; }
.cat-label { line-height: 1; }
.cat-emoji {
  font-size: 18px; line-height: 1; width: 22px; height: 22px;
  display: grid; place-items: center;
  transform-origin: center;
}
.cat-anim-1 { animation: firePulse 1.4s ease-in-out infinite; }
.cat-anim-2 { animation: sparkleSpin 2s ease-in-out infinite; }
.cat-anim-3 { animation: targetPulse 1.6s ease-in-out infinite; }
.cat-anim-4 { animation: houseBob 2.2s ease-in-out infinite; }
.cat-anim-5 { animation: foodWiggle 1.8s ease-in-out infinite; }
.cat-anim-6 { animation: giftBounce 1.5s ease-in-out infinite; }
.cat-anim-7 { animation: pinDrop 1.7s ease-in-out infinite; }
.cat-anim-8 { animation: planeFly 2.4s ease-in-out infinite; }
.cat-anim-9 { animation: bagSwing 1.9s ease-in-out infinite; }
.cat-anim-10 { animation: ticketFlip 2.1s ease-in-out infinite; }
@keyframes firePulse {
  0%, 100% { transform: scale(1) translateY(0); filter: saturate(1); }
  50% { transform: scale(1.14) translateY(-1px); filter: saturate(1.3); }
}
@keyframes sparkleSpin {
  0%, 100% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
  50% { transform: rotate(18deg) scale(1.16); filter: hue-rotate(40deg); }
}
@keyframes targetPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@keyframes houseBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes foodWiggle {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(-4px) rotate(-8deg); }
  70% { transform: translateY(-1px) rotate(6deg); }
}
@keyframes pinDrop {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  55% { transform: translateY(1px); }
  70% { transform: translateY(-2px); }
}
@keyframes planeFly {
  0%, 100% { transform: translate(0, 0) rotate(-8deg); }
  50% { transform: translate(3px, -3px) rotate(8deg); }
}
@keyframes bagSwing {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
@keyframes ticketFlip {
  0%, 100% { transform: rotateY(0) scale(1); }
  50% { transform: rotateY(28deg) scale(1.08); }
}
.catbar-next {
  width: 36px; height: 36px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: #fff; color: var(--navy-2);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(6,30,92,.08);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.catbar-next:hover { background: #e6f8fb; transform: scale(1.06); box-shadow: 0 8px 18px rgba(6,30,92,.12); }
.catbar-next .icon { width: 18px; height: 18px; }
@keyframes catIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 8% -10%, rgba(7,176,198,.38), transparent 52%),
    radial-gradient(700px 380px at 92% 8%, rgba(240,164,68,.22), transparent 46%),
    linear-gradient(115deg, #061e5c 0%, #082c87 55%, #075e8a 100%);
  color: #fff;
  padding: 40px 0 36px;
}
.hero::before, .hero::after {
  content: "";
  position: absolute; border-radius: 50%; pointer-events: none;
  animation: orb 10s ease-in-out infinite;
}
.hero::before {
  width: 280px; height: 280px; left: -80px; top: -90px;
  background: radial-gradient(circle, rgba(7,176,198,.28), transparent 70%);
}
.hero::after {
  width: 220px; height: 220px; right: 8%; bottom: -80px;
  background: radial-gradient(circle, rgba(240,164,68,.22), transparent 70%);
  animation-delay: -4s;
}
@keyframes orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 12px) scale(1.08); }
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.12fr .88fr; gap: 36px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; animation: rise .7s ease both; }
.hero-pin { animation: rise .55s ease both; }
.hero h1 {
  font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; margin: 12px 0 12px;
  letter-spacing: -0.04em; min-height: 3.4em;
}
.hero p { color: #c9d4ea; margin: 0 0 22px; font-size: 16px; max-width: 540px; animation: rise .8s ease both; }
.hero-search {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.97);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(6,30,92,.22), 0 0 0 1px rgba(255,255,255,.4);
  backdrop-filter: blur(10px);
  animation: rise .85s ease both;
  pointer-events: auto;
}
.hs-row {
  display: grid;
  gap: 10px;
  align-items: end;
}
.hs-row-main {
  grid-template-columns: minmax(160px, 1.7fr) minmax(128px, .85fr) minmax(128px, .85fr) minmax(128px, .85fr) auto;
}
.hs-row-smart {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 10px;
  border-top: 1px dashed #d9e4f0;
}
.hero-search:focus-within { transform: none; box-shadow: 0 18px 40px rgba(6,30,92,.22), 0 0 0 2px rgba(7,176,198,.28); }
.hs-field {
  display: flex; flex-direction: column; align-items: stretch; gap: 5px;
  min-width: 0; min-height: 0; padding: 0; border: 0; color: var(--muted);
}
.hs-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #7a8aa3; padding-left: 4px;
}
.hs-control {
  display: flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 12px;
  background: #f4f7fb; border: 1px solid #e4ecf5; border-radius: 14px;
}
.hs-control:has(select) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23082C87' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
}
.hs-field .icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--cyan); pointer-events: none; }
.hs-field input, .hs-field select {
  flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent;
  color: var(--text); font: inherit; font-weight: 700; outline: none; padding: 0;
  appearance: none; -webkit-appearance: none;
}
.hs-field select { text-overflow: ellipsis; cursor: pointer; }
.hs-field input { cursor: text; }
.hs-query { min-width: 0; }
.hs-submit {
  border: 0; border-radius: 14px; min-height: 48px; padding: 0 26px;
  background: linear-gradient(135deg, #f0a444, #e08a20);
  color: #fff; font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 8px 18px rgba(240,164,68,.35);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.hs-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(240,164,68,.45); filter: brightness(1.04); }
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: rise .95s ease both;
}
.hero-cta .btn {
  min-width: 196px;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-cta .btn:hover { transform: translateY(-2px); }
.featured-deal {
  background: #fff; color: var(--text); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(6, 30, 92, 0.22);
  animation: rise .75s ease both .12s;
  transition: transform .35s ease, box-shadow .35s ease;
}
.featured-deal:hover { transform: translateY(-6px); box-shadow: 0 28px 56px rgba(6,30,92,.28); }
.fd-media { position: relative; overflow: hidden; height: 210px; }
.fd-media img {
  width: 100%; height: 210px; object-fit: cover; display: block;
  transition: transform .7s ease;
}
.featured-deal:hover .fd-media img { transform: scale(1.07); }
.featured-deal .body { padding: 16px 16px 18px; }
.featured-deal h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.featured-deal .btn { margin-top: 12px; }
.hero-slider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(6, 30, 92, 0.22);
  animation: rise .75s ease both .12s;
  background: #fff;
}
.hero-slides { position: relative; }
.hero-slide {
  display: none;
  background: #fff;
  color: var(--text);
  border-radius: 0;
  box-shadow: none;
  animation: none;
}
.hero-slide.is-active {
  display: block;
  animation: slideIn .55s ease both;
}
.hero-slider .featured-deal:hover { transform: none; }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
.hs-nav button {
  position: absolute; top: 88px; z-index: 3;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy-2); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 18px rgba(6,30,92,.18);
}
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-nav .icon { width: 18px; height: 18px; }
.hs-dots {
  position: absolute; left: 0; right: 0; top: 188px;
  display: flex; justify-content: center; gap: 6px; z-index: 3;
}
.hs-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255,255,255,.55); cursor: pointer;
}
.hs-dot.is-active { width: 22px; background: #fff; }
.hs-progress {
  position: absolute; left: 0; right: 0; top: 207px; height: 3px; background: rgba(255,255,255,.28); z-index: 4;
}
.hs-progress span {
  display: block; height: 100%; width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  animation: hsBar 5.2s linear infinite;
}
.hero-slider:hover .hs-progress span { animation-play-state: paused; }
@keyframes hsBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.countdown {
  display: flex; gap: 8px; margin-top: 10px;
}
.countdown span {
  background: var(--navy); color: #fff; min-width: 54px; padding: 8px 6px; border-radius: 10px;
  text-align: center; font-weight: 800;
}
.countdown small { display: block; font-size: 10px; font-weight: 600; color: #9aa8c2; }

/* Sections */
.section { padding: 32px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.link { color: var(--cyan); font-weight: 700; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pop-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* Kurum / bakanlık / sendika */
.inst-section { margin-top: 8px; }
.inst-toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 0 0 16px;
}
.inst-toolbar .input, .inst-toolbar .select {
  min-height: 44px; border-radius: 12px;
}
.inst-toolbar .input { flex: 1 1 220px; max-width: 360px; }
.inst-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.inst-tab {
  border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 999px; padding: 8px 14px; font: inherit; font-weight: 700;
  cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.inst-tab.active, .inst-tab:hover {
  background: #082c87; color: #fff; border-color: #082c87;
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.inst-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 16px 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  color: var(--text); text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  min-height: 168px;
}
.inst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(6,30,92,.12);
  border-color: #9ee3ee;
}
.inst-logo {
  width: 72px; height: 72px; object-fit: contain;
  background: #f7fafc; border-radius: 16px; padding: 8px;
  border: 1px solid #eef2f7;
}
.inst-card strong {
  font-size: 13px; line-height: 1.35; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.inst-card small { color: var(--muted); font-weight: 700; font-size: 11px; }
.inst-card .inst-disc {
  margin-top: auto;
  font-size: 12px; font-weight: 800; color: #082c87;
  background: #e6f8fb; border-radius: 999px; padding: 4px 10px;
}
.inst-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 20px; border-radius: 22px; margin-bottom: 20px;
  background: linear-gradient(115deg, #061e5c 0%, #082c87 55%, #075e8a 100%);
  color: #fff;
}
.inst-hero img {
  width: 96px; height: 96px; object-fit: contain;
  background: #fff; border-radius: 20px; padding: 10px;
}
.inst-hero h1 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.03em; }
.inst-hero p { margin: 0; color: #c9d4ea; }
.inst-hero .btn { margin-top: 12px; }
.inst-staff-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff3e0; color: #b86a00; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 4px 10px;
}
@media (max-width: 1024px) {
  .inst-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.pop-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
  animation: rise .55s ease both;
  animation-delay: var(--d, 0s);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pop-cat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #9ee3ee;
}
.pop-cat-ico {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #e6f8fb, #d7eef8);
  color: var(--navy-2);
  transition: transform .3s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.pop-cat-ico .icon { width: 22px; height: 22px; }
.pop-cat:hover .pop-cat-ico {
  transform: scale(1.08) rotate(-8deg);
  background: linear-gradient(135deg, #07b0c6, #082c87);
  color: #fff;
  box-shadow: 0 8px 16px rgba(7,176,198,.28);
}
.pop-cat-copy { display: grid; gap: 2px; min-width: 0; }
.pop-cat-copy strong { font-size: 15px; letter-spacing: -.02em; }
.pop-cat-copy small { color: var(--muted); font-weight: 600; font-size: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.scroll-row { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.scroll-row > * { min-width: 240px; }

/* Deal / product cards — Groupon-like photo-first */
.deal-card, .product-card, .listing-card, .store-card, .brand-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  transition: 0.2s ease; position: relative;
}
.deal-card:hover, .product-card:hover, .listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; background: #d7e0ee; min-height: 180px; }
.thumb img { width: 100%; height: 180px; object-fit: cover; display: block; }
.store-card .thumb, .brand-card .thumb { min-height: 140px; }
.store-card .thumb img, .brand-card .thumb img { height: 140px; }
.fav-btn {
  position: absolute; top: 78px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 3;
}
.pts-float {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  min-width: 72px; padding: 8px 10px 7px;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border-radius: 16px;
  color: #061e5c;
  background: linear-gradient(160deg, #ffe7b0 0%, #f0a444 48%, #07b0c6 130%);
  box-shadow: 0 8px 18px rgba(240,164,68,.42), 0 0 18px rgba(7,176,198,.35);
  transform: translateZ(0);
  animation: ptsGlow 2.4s ease-in-out infinite;
}
.pts-float strong { font-size: 15px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pts-float small { font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.pts-float i {
  position: absolute; font-style: normal; color: #fff; font-size: 9px;
  text-shadow: 0 0 6px rgba(255,255,255,.8);
}
.pts-float i:first-child { top: 3px; left: 6px; }
.pts-float i:first-child::before { content: "✦"; }
.pts-float i:nth-child(2) { top: 3px; right: 6px; }
.pts-float i:nth-child(2)::before { content: "✦"; }
.product-card:hover .pts-float {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 24px rgba(240,164,68,.55), 0 0 24px rgba(7,176,198,.5);
}
@keyframes ptsGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.gold-tag {
  position: absolute; left: 10px; top: 44px; z-index: 3;
  background: linear-gradient(90deg, #082c87, #07b0c6);
  color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 5px 8px; border-radius: 8px;
  box-shadow: 0 6px 14px rgba(8,44,135,.28);
}
.fav-btn.active { color: var(--danger); }
.sale-tag {
  position: absolute; left: 10px; top: 10px; background: var(--coral); color: #fff;
  font-weight: 800; font-size: 12px; padding: 5px 9px; border-radius: 8px;
}
.card-body { padding: 12px 14px 16px; }
.merchant { color: var(--muted); font-size: 12px; font-weight: 700; }
.card-title { font-weight: 700; font-size: 15px; margin: 4px 0 8px; line-height: 1.35; min-height: 40px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 20px; font-weight: 800; color: var(--navy); }
.old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 8px; font-weight: 600; }
.stars { color: var(--coral); font-weight: 800; }

/* Loyalty strip */
.loyalty-strip {
  background: linear-gradient(90deg, #082c87, #07b0c6);
  color: #fff; border-radius: 18px; padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.digital-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 128px;
  padding: 10px 12px 8px;
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(6, 30, 92, .18);
}
.digital-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.digital-card span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.loyalty-card-mini {
  background: linear-gradient(135deg, #061e5c, #07b0c6);
  color: #fff; border-radius: 18px; padding: 18px; position: relative; overflow: hidden;
}
.pw-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 28px;
  padding: 28px 28px 22px;
  margin-bottom: 18px;
  background:
    radial-gradient(620px 240px at 100% -10%, rgba(240,164,68,.28), transparent 55%),
    radial-gradient(520px 280px at -8% 120%, rgba(7,176,198,.35), transparent 50%),
    linear-gradient(135deg, #061e5c 0%, #082c87 52%, #075e8a 100%);
  box-shadow: 0 22px 48px rgba(6, 30, 92, .28);
}
.pw-glow {
  position: absolute; right: -40px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.pw-top {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.pw-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: #9ee3ee; margin-bottom: 6px;
}
.pw-name { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.pw-hero { position: relative; z-index: 1; margin: 22px 0 8px; }
.pw-total {
  font-size: clamp(44px, 7vw, 72px); font-weight: 800; line-height: .95;
  letter-spacing: -.05em;
}
.pw-total-label {
  margin-top: 8px; font-size: 15px; font-weight: 800; color: #c9d4ea;
}
.pw-try {
  margin: 10px 0 0; font-size: 16px; font-weight: 700; color: #f0a444;
}
.pw-rule {
  margin: 4px 0 0; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.62);
}
.pw-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px; margin-top: 22px;
}
.pw-stat {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 12px 14px;
}
.pw-stat span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase; color: #c9d4ea; margin-bottom: 6px;
}
.pw-stat strong { font-size: 20px; letter-spacing: -.03em; }

.earn-sim { margin-top: 18px; }
.earn-sim-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: stretch;
}
.earn-copy h3 { margin: 0 0 8px; }
.earn-math {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px;
}
.earn-math span {
  background: #eef4fb; border-radius: 999px; padding: 6px 10px;
  font-size: 12px; font-weight: 800; color: var(--navy);
}
.earn-sim .product-card { max-width: 280px; }
.earn-sim [data-add] { display: none; }

.confetti-layer {
  position: fixed; inset: 0; z-index: 240; pointer-events: none;
}
.pay-sim, .celeb-back {
  position: fixed; inset: 0; z-index: 220;
  display: grid; place-items: center;
  background: rgba(6, 30, 92, .28);
  backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.pay-sim.open, .celeb-back.open { opacity: 1; pointer-events: auto; }
.pay-sim-card {
  background: #fff; border-radius: 22px; padding: 28px 32px; min-width: 280px;
  text-align: center; box-shadow: 0 24px 50px rgba(6,30,92,.28);
}
.pay-sim-card p { margin: 12px 0 0; font-weight: 800; color: var(--navy); }
.pay-spin {
  width: 42px; height: 42px; margin: 0 auto;
  border: 4px solid #e4ecf5; border-top-color: var(--cyan);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.celeb-modal {
  width: min(460px, 92vw); text-align: center; color: #fff;
}
.celeb-hello {
  margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.03em;
}
.celeb-gain {
  font-size: clamp(48px, 9vw, 72px); font-weight: 800; line-height: 1;
  letter-spacing: -.05em; color: #f0a444;
  text-shadow: 0 0 0 rgba(240,164,68,0);
}
.celeb-gain.is-ticking, .celeb-bal.is-ticking {
  animation: countGlow .7s ease-in-out infinite;
}
.celeb-won {
  margin: 10px 0 0; font-size: 15px; font-weight: 800; letter-spacing: .16em;
  color: #9ee3ee; opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.celeb-won.is-in { opacity: 1; transform: none; }
.celeb-bal-wrap {
  margin-top: 22px; opacity: 0; transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.celeb-bal-wrap.is-in { opacity: 1; transform: none; }
.celeb-bal-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #c9d4ea; margin-bottom: 6px;
}
.celeb-bal {
  font-size: clamp(28px, 5vw, 40px); font-weight: 800; letter-spacing: -.04em;
}
.celeb-bal-unit {
  font-size: 13px; font-weight: 800; letter-spacing: .18em; color: #f0a444; margin-top: 2px;
}
.celeb-lvl {
  margin-top: 18px; opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.celeb-lvl.is-in { opacity: 1; transform: none; }
.celeb-lvl-row {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 10px;
}
.celeb-lvl-arrow { font-weight: 800; color: #c9d4ea; }
.celeb-lvl .lvl-track { height: 12px; background: rgba(255,255,255,.18); }
.celeb-lvl-kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .2em; color: #9ee3ee;
}
.celeb-lvl-name {
  margin: 8px 0 6px; font-size: clamp(36px, 7vw, 52px); letter-spacing: .08em;
  text-transform: uppercase;
}
.level-rozet {
  position: relative; width: 120px; height: 120px; margin: 8px auto 16px;
  border-radius: 50%;
  background: linear-gradient(145deg, #07b0c6, #082c87 55%, #f0a444);
  box-shadow: 0 16px 40px rgba(7,176,198,.35), 0 0 0 8px rgba(255,255,255,.08);
  animation: giftBounce .8s cubic-bezier(.2,1.4,.3,1);
  display: grid; place-items: center;
}
.level-rozet.is-gold { background: linear-gradient(145deg, #ffe7b0, #f0a444 50%, #e08a20); }
.level-rozet.is-platinum { background: linear-gradient(145deg, #dbeafe, #07b0c6 40%, #082c87); }
.level-rozet-gem {
  font-size: 42px; color: #fff; text-shadow: 0 8px 18px rgba(0,0,0,.25);
  z-index: 1;
}
.level-rozet-ring {
  position: absolute; inset: 10px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.45);
  animation: rozetSpin 6s linear infinite;
}
@keyframes rozetSpin { to { transform: rotate(360deg); } }
@keyframes countGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(240,164,68,.35), 0 0 18px rgba(7,176,198,.2); filter: brightness(1); }
  50% { text-shadow: 0 0 18px rgba(240,164,68,.85), 0 0 32px rgba(7,176,198,.45); filter: brightness(1.12); }
}
.gift-stage { position: relative; height: 180px; margin-bottom: 8px; }
.gift {
  width: 110px; height: 90px; margin: 50px auto 0; position: relative;
  transform-style: preserve-3d;
  animation: giftBounce .7s cubic-bezier(.2,1.4,.3,1);
}
.gift-body {
  position: absolute; inset: 28px 0 0; border-radius: 10px;
  background: linear-gradient(160deg, #f0a444, #d4891c);
  box-shadow: 0 18px 30px rgba(0,0,0,.28), inset 0 0 0 4px rgba(255,255,255,.15);
}
.gift-body::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 16px;
  transform: translateX(-50%); background: #082c87;
}
.gift-lid {
  position: absolute; left: -6px; right: -6px; top: 8px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(160deg, #07b0c6, #082c87);
  transform-origin: 12% 90%;
  box-shadow: 0 8px 16px rgba(0,0,0,.2);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.gift.is-open .gift-lid { transform: rotate(-118deg) translateY(-8px); }
.gift-bow {
  position: absolute; left: 50%; top: 0; z-index: 3;
  width: 28px; height: 28px; transform: translate(-50%, 0);
  background: #fff; border-radius: 50%;
  box-shadow: -18px 6px 0 #fff, 18px 6px 0 #fff;
}
.gift-burst { position: absolute; inset: 0; pointer-events: none; }
.fly {
  position: absolute; left: 50%; top: 42%; width: 12px; height: 12px; border-radius: 50%;
  opacity: 0; background: #f0a444;
}
.gift.is-open ~ .gift-burst .fly,
.gift-stage:has(.gift.is-open) .fly { animation: flyOut .9s ease-out forwards; }
.fly-0 { background: #f0a444; }
.fly-1 { background: #07b0c6; }
.fly-2 { background: #fff; }
.fly-3 { background: #7c3aed; }
.fly-4 { background: #e11d48; }
.fly:nth-child(1) { animation-delay: .02s; --dx: -70px; --dy: -80px; }
.fly:nth-child(2) { animation-delay: .05s; --dx: 80px; --dy: -70px; }
.fly:nth-child(3) { animation-delay: .08s; --dx: -40px; --dy: -110px; }
.fly:nth-child(4) { animation-delay: .04s; --dx: 30px; --dy: -100px; }
.fly:nth-child(5) { animation-delay: .1s; --dx: -90px; --dy: -30px; }
.fly:nth-child(6) { animation-delay: .06s; --dx: 95px; --dy: -20px; }
.fly:nth-child(7) { animation-delay: .12s; --dx: -20px; --dy: -90px; }
.fly:nth-child(8) { animation-delay: .09s; --dx: 50px; --dy: -120px; }
.fly:nth-child(9) { animation-delay: .14s; --dx: -60px; --dy: -50px; }
.fly:nth-child(10) { animation-delay: .11s; --dx: 70px; --dy: -55px; }
@keyframes flyOut {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); }
}
@keyframes giftBounce {
  0% { transform: translateY(30px) scale(.8); opacity: 0; }
  60% { transform: translateY(-8px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
.celeb-hello { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); letter-spacing: -.03em; }
.celeb-copy p { color: #c9d4ea; margin: 0 0 16px; }
.loyalty-card-mini::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 50%; background: rgba(255,255,255,.08);
}
.loyalty-strip { align-items: stretch; flex-wrap: wrap; }
.loyalty-strip .lvl { flex: 1 1 280px; min-width: 0; }

.lvl { min-width: 0; }
.lvl-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.lvl-top strong { font-size: 14px; letter-spacing: -.02em; }
.lvl-pct {
  margin-left: auto; font-size: 13px; font-weight: 800;
  color: var(--cyan);
}
.lvl-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: #7b8794;
}
.lvl-chip.is-bronze { background: linear-gradient(135deg, #c47a3a, #8d4e1c); }
.lvl-chip.is-silver { background: linear-gradient(135deg, #9aa6b5, #5f6b7a); }
.lvl-chip.is-gold { background: linear-gradient(135deg, #f0a444, #e08a20); color: #061e5c; }
.lvl-chip.is-platinum { background: linear-gradient(135deg, #07b0c6, #082c87); }
.lvl-track {
  position: relative;
  height: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%),
    #e4ecf5;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(8, 44, 135, .12);
  overflow: visible;
}
.lvl-fill {
  position: relative;
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #082c87 0%, #07b0c6 52%, #f0a444 100%);
  box-shadow: 0 0 16px rgba(7, 176, 198, .35);
  background-size: 160% 100%;
  animation: lvlShine 2.8s ease-in-out infinite;
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.lvl-fill i {
  position: absolute; right: -1px; top: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  transform: translate(40%, -50%);
  background: #fff;
  border: 3px solid #f0a444;
  box-shadow: 0 0 0 4px rgba(240,164,68,.22), 0 4px 10px rgba(8,44,135,.2);
}
@keyframes lvlShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
.lvl-hint { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.lvl-ladder {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; list-style: none; margin: 14px 0 0; padding: 0;
}
.lvl-ladder li {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; color: #8a97ab;
}
.lvl-ladder b {
  width: 100%; height: 4px; border-radius: 99px; background: #dbe4f0;
}
.lvl-ladder .is-done { color: #082c87; }
.lvl-ladder .is-done b { background: linear-gradient(90deg, #082c87, #07b0c6); }
.lvl-ladder .is-now { color: #e08a20; }
.lvl-ladder .is-now b { background: linear-gradient(90deg, #07b0c6, #f0a444); box-shadow: 0 0 10px rgba(240,164,68,.45); }

.lvl.tone-dark .lvl-top strong,
.lvl.tone-dark .lvl-hint { color: #fff; }
.lvl.tone-dark .lvl-pct { color: #f0a444; }
.lvl.tone-dark .lvl-hint { opacity: .88; }
.lvl.tone-dark .lvl-track { background: rgba(255,255,255,.16); box-shadow: inset 0 1px 4px rgba(0,0,0,.2); }
.lvl.tone-dark .lvl-ladder li { color: rgba(255,255,255,.55); }
.lvl.tone-dark .lvl-ladder .is-done { color: #fff; }
.lvl.tone-dark .lvl-ladder .is-now { color: #f0a444; }
.lvl.tone-dark .lvl-ladder b { background: rgba(255,255,255,.18); }

.lvl-compact .lvl-ladder { display: none; }
.lvl-header {
  display: flex; align-items: center; gap: 8px;
  min-width: 148px; max-width: 200px;
  padding: 6px 8px 6px 6px;
  background: #f4f7fb; border-radius: 999px;
}
.lvl-header .lvl-track { flex: 1; height: 8px; }
.lvl-header .lvl-fill i { display: none; }
.lvl-header small { font-size: 11px; font-weight: 800; color: var(--navy); }
.lvl-mini { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.lvl-mini .lvl-track { flex: 1; height: 8px; }
.lvl-mini .lvl-fill i { display: none; }
.lvl-mini em { font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; color: var(--muted); }
.lvl-task { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.lvl-task .lvl-track { flex: 1; height: 8px; }
.lvl-task .lvl-fill i { display: none; }
.lvl-task em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.header-lvl { text-decoration: none; color: inherit; }
.panel-lvl { min-width: 200px; max-width: 280px; }
.loyalty-card-mini .lvl { position: relative; z-index: 1; margin-top: 14px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #06163f;
  color: #fff; padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 22px;
}
.auth-visual::before,
.auth-visual::after {
  content: "";
  position: absolute;
  inset: -55%;
  z-index: 0;
  pointer-events: none;
}
.auth-visual::before {
  background:
    radial-gradient(42% 38% at 22% 28%, rgba(7, 176, 198, .28), transparent 58%),
    radial-gradient(48% 42% at 78% 72%, rgba(8, 44, 135, .9), transparent 62%),
    linear-gradient(125deg, #03102e 0%, #082c87 32%, #0a4a86 52%, #061e5c 74%, #04153f 100%);
  background-size: 180% 180%;
  animation: navyShift 16s ease-in-out infinite;
}
.auth-visual::after {
  background:
    radial-gradient(36% 34% at 70% 18%, rgba(12, 58, 140, .55), transparent 60%),
    radial-gradient(40% 36% at 18% 82%, rgba(4, 22, 64, .7), transparent 58%);
  background-size: 160% 160%;
  animation: navyDrift 22s ease-in-out infinite reverse;
  mix-blend-mode: soft-light;
}
.auth-visual > * { position: relative; z-index: 1; }
.auth-form .logo {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 4px;
  background: #fff;
  padding: 14px 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(8, 44, 135, .1);
  border: 1px solid var(--border);
}
.auth-form .logo .brand-logo {
  height: clamp(56px, 8vw, 84px);
  max-width: min(420px, 100%);
  width: auto;
  background: transparent !important;
}
.auth-visual h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.28;
  letter-spacing: -.03em;
  max-width: 13em;
  min-height: 3.84em;
  white-space: pre-line;
  text-wrap: balance;
}
.auth-visual p { margin: 0; color: #c9d4ea; max-width: 36ch; }
.auth-visual .lvl { width: 100%; max-width: 440px; text-align: left; }
.auth-kicker {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7,176,198,.2); border: 1px solid rgba(7,176,198,.45);
  color: #9ee3ee; font-weight: 800; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}
.typewriter::after {
  content: "▍";
  margin-left: 2px;
  color: var(--cyan);
  animation: caret 0.7s step-end infinite;
}
.typewriter.is-typed::after { opacity: .35; }
@keyframes caret { 50% { opacity: 0; } }
.auth-form { padding: 48px; display: grid; align-content: center; gap: 16px; max-width: 520px; margin: 0 auto; width: 100%; }
.auth-form h2 { margin: 0; }
.admin-auth .auth-form { text-align: center; }
.admin-auth .auth-form .field { text-align: left; }
.admin-auth .auth-form .hint { margin: 0 auto; max-width: 36ch; }
.demo-accounts { display: grid; gap: 8px; }
.demo-chip {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  border-radius: 12px; padding: 10px 12px;
  display: flex; justify-content: space-between; text-align: left;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.demo-chip span:last-child { color: var(--muted); font-weight: 600; }

/* Panels */
.panel-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--navy); color: #d7deed; padding: 18px 12px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: auto;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 8px 8px 10px;
  margin: 0 4px 12px;
}
.sidebar-head .logo {
  background: #fff;
  padding: 4px 6px;
  margin: 0;
  justify-content: center;
  flex: 1;
  overflow: hidden;
  box-shadow: none;
}
.sidebar .logo { padding: 8px 8px; margin: 0 4px 8px; justify-content: center; background: #fff; overflow: hidden; }
.sidebar .logo .brand-logo {
  height: 36px; max-width: 210px;
  background: transparent !important;
  background-color: transparent;
}
.sidebar-kicker { padding: 8px 12px 10px; color: #7d8bab; }
.sidebar-nav { display: grid; }
.sidebar-close {
  display: none; place-items: center;
  width: 40px; height: 40px; min-width: 40px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
}
.sidebar-close .icon { width: 18px; height: 18px; }
.sidebar-head .sidebar-close {
  background: #e8eef8;
  color: var(--navy);
}
.nav-group { margin: 14px 8px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #7eb8c9; font-weight: 800; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #d7e8ee; font-weight: 600; font-size: 14px;
}
.nav-link:hover, .nav-link.active { background: rgba(7,176,198,.18); color: #fff; }
.nav-link.active { box-shadow: inset 3px 0 0 var(--cyan); }
.panel-main { min-width: 0; }
.panel-top {
  background: #fff; border-bottom: 1px solid var(--border); min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px;
  position: sticky; top: 0; z-index: 40;
}
.panel-top-left, .panel-top-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.panel-top-left { flex: 1; }
.panel-search-form { flex: 1; min-width: 0; max-width: 420px; }
.panel-content { padding: 22px; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.crumb { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 8px; }

.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13.5px; }
table.data th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Chat */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - 140px); background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow: auto; }
.chat-item { padding: 14px; display: grid; gap: 4px; cursor: pointer; border-bottom: 1px solid var(--border); }
.chat-item.active { background: #eef2ff; }
.chat-thread { display: flex; flex-direction: column; }
.chat-msgs { flex: 1; padding: 16px; display: grid; gap: 10px; align-content: start; background: #f8fafc; }
.bubble { max-width: 70%; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.bubble.me { margin-left: auto; background: var(--indigo); color: #fff; border: 0; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.safety { background: #fef6d8; color: #854d0e; padding: 8px 12px; font-size: 12px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d4ea; padding: 48px 0 20px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { display: block; padding: 4px 0; color: #c9d4ea; }
.store-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
.store-badge {
  display: block; height: 40px; width: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 16px; border-top: 1px solid #243049; font-size: 13px; }
.pay-logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pay-logos img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  background: #fff;
  padding: 5px 8px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

/* Cookie, toast, modal, command palette */
.cookie-banner {
  position: fixed; right: 16px; left: auto; bottom: 16px; z-index: 80;
  background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px;
  box-shadow: var(--shadow-lg); max-width: 380px; width: min(380px, calc(100% - 32px));
}
body[data-layout="public"]:not([data-page="login"]):not([data-page="register"]):not([data-page="otp"]) .cookie-banner {
  bottom: 84px;
}
@media (min-width: 901px) {
  body[data-layout="public"] .cookie-banner { bottom: 16px; }
}
.toasts { position: fixed; right: 16px; top: 86px; z-index: 90; display: grid; gap: 8px; }
.toast { background: #0b1220; color: #fff; padding: 12px 14px; border-radius: 12px; min-width: 240px; font-weight: 600; }
.modal-back {
  position: fixed; inset: 0; background: rgba(11,18,32,.55); display: none; place-items: center; z-index: 100; padding: 16px;
}
.modal-back.open { display: grid; }
.modal {
  background: #fff; border-radius: 20px; width: min(640px, 100%); max-height: 90vh; overflow: auto;
  padding: 20px; box-shadow: var(--shadow-lg);
}
.palette {
  position: fixed; inset: 0; background: rgba(11,18,32,.5); display: none; place-items: start center; z-index: 110; padding-top: 12vh;
}
.palette.open { display: grid; }
.palette-box { width: min(640px, calc(100% - 24px)); background: #fff; border-radius: 16px; overflow: hidden; }
.palette-box input { width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--border); padding: 0 16px; font-size: 16px; }
.palette-item { padding: 12px 16px; display: flex; justify-content: space-between; cursor: pointer; }
.palette-item:hover { background: #e6f8fb; }

/* Bottom nav */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bottom-nav);
  background: #fff; border-top: 1px solid var(--border); display: none;
  grid-template-columns: repeat(5, 1fr); z-index: 60;
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: var(--muted);
}
.bottom-nav a.active { color: var(--cyan); }

/* Misc */
.skeleton { background: linear-gradient(90deg, #eef2f8, #f8fafc, #eef2f8); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.qr-box { background: #fff; border: 1px dashed var(--border); border-radius: 16px; padding: 16px; text-align: center; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { padding: 8px 12px; border-radius: 999px; background: #e6f8fb; font-weight: 700; font-size: 13px; }
.step.active { background: var(--indigo); color: #fff; }
.timeline { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--indigo); margin-top: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e6f8fb; display: grid; place-items: center; font-weight: 800; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--text);
  border: 1px solid var(--border); border-radius: 14px; min-width: 280px; box-shadow: var(--shadow-lg); display: none; z-index: 40;
}
.dropdown.open .dropdown-menu { display: block; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 4px auto 22px;
  padding: 6px 4px;
  max-width: 100%;
}
.tab {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #d5e0ee;
  background: #fff;
  color: var(--navy-2);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(6,30,92,.05);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.tab:hover {
  transform: translateY(-2px);
  border-color: #07b0c6;
  color: #067a8a;
  box-shadow: 0 8px 18px rgba(7,176,198,.16);
}
.tab.active {
  background: linear-gradient(135deg, #082c87 0%, #07b0c6 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(8,44,135,.28);
}
.tab.active:hover { color: #fff; transform: translateY(-2px); }
.progress { height: 8px; background: #eef2f8; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--indigo); }
.health { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pos-screen { max-width: 520px; margin: 40px auto; padding: 24px; }
.compare-table td:first-child { font-weight: 700; }
.gallery { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.gallery-thumbs { display: grid; gap: 8px; }
.gallery-thumbs img { height: 72px; object-fit: cover; border-radius: 10px; cursor: pointer; }
.demo-map {
  width: 100%;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #dce7f4;
  border: 1px solid var(--border);
  z-index: 1;
}
.demo-map-sm { height: 280px; margin: 10px 0 12px; }
.demo-map-lg { height: 440px; margin: 0 0 18px; }
.map-card { padding: 16px; margin-top: 16px; }
.map-split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .9fr);
  gap: 16px;
  align-items: stretch;
}
.map-side {
  display: grid;
  gap: 12px;
  max-height: 380px;
  overflow: auto;
}
.buy-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0 8px;
}
.btn-pulse {
  animation: ctaPulse 1.55s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px rgba(240, 164, 68, .28); filter: brightness(1); }
  50% { transform: scale(1.045); box-shadow: 0 12px 32px rgba(240, 164, 68, .5); filter: brightness(1.08); }
}
.sticky-cta {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border);
  padding: 12px 16px; display: none; gap: 8px;
}
.chart-box { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; height: 280px; }
.ai-card { background: #e6f8fb; border: 1px solid #9ee3ee; border-radius: 16px; padding: 16px; }
.ranked-hit { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ranked-hit > article { height: 100%; }
.ai-why { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-why span {
  font-size: 11px; font-weight: 800; letter-spacing: .01em;
  background: #e6f8fb; color: #082c87; border: 1px solid #b7e7ef;
  border-radius: 999px; padding: 4px 8px;
}
.search-smart {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.search-smart .hs-field { flex: 1 1 140px; }
.search-smart .hs-query { flex: 2 1 220px; }
.search-smart .hs-submit { flex: 0 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand .brand-logo { height: 36px; width: auto; background: #fff; padding: 6px 8px; border-radius: 10px; }
.offer { border: 1px dashed var(--cyan); background: #e6f8fb; padding: 12px; border-radius: 14px; }
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  border-radius: 12px; cursor: pointer; flex-shrink: 0;
  background: transparent; border: 0; color: #fff;
  touch-action: manipulation;
}
.menu-toggle .icon { width: 20px; height: 20px; }
.panel-top .menu-toggle {
  display: grid;
  color: var(--navy-2);
  background: #f8fafc;
  border: 1px solid var(--border);
}
.panel-top .menu-toggle:hover { background: #e6f8fb; border-color: var(--cyan); }
.pub-toggle {
  color: var(--navy-2);
  background: #f4f7fb;
  border: 1px solid var(--border);
}
.pub-toggle:hover { background: #e6f8fb; }
.nav-overlay {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(6, 22, 70, .5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }
.pub-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(300px, 88vw); z-index: 80;
  background: var(--navy); color: #d7deed;
  padding: 16px 12px 28px; overflow: auto;
  transform: translateX(-105%);
  transition: transform .25s ease;
}
.pub-drawer.open { transform: translateX(0); box-shadow: 16px 0 40px rgba(6,30,92,.3); }
.pub-drawer .logo { margin: 0; }
.pub-drawer .sidebar-close { display: grid; }
body.nav-open { overflow: hidden; }
@media (min-width: 1200px) {
  .panel-shell.is-collapsed { grid-template-columns: 1fr; }
  .panel-shell.is-collapsed .sidebar { display: none; }
}

@media (max-width: 1199px) {
  .panel-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 80; width: min(280px, 86vw);
    height: 100vh; height: 100dvh; transform: translateX(-105%); transition: transform .25s ease;
    box-shadow: none;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(6,30,92,.28); }
  .sidebar-close { display: grid; }
  .panel-content { padding: 18px 16px; }
}

@media (max-width: 1024px) {
  .hero-grid, .auth-page, .chat-layout, .gallery, .grid-4 { grid-template-columns: 1fr; }
  .pop-cats { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .pw-grid { grid-template-columns: 1fr 1fr; }
  .hero-search { border-radius: 22px; }
  .earn-sim-grid { grid-template-columns: 1fr; }
  .hs-row-main { grid-template-columns: 1fr 1fr; }
  .hs-field { border: 0; }
  .hs-row-main .hs-query, .hs-row-main .hs-submit { grid-column: 1 / -1; }
  .hs-row-smart { grid-template-columns: 1fr 1fr; }
  .hs-submit { margin: 0; }
  .pub-toggle { display: grid; }
  .header-desk { display: none !important; }
  .header-compact { display: none !important; }
  .header-nav { display: none; }
  .header-tools { padding-left: 0; border-left: 0; }
  .topbar { min-height: 0; padding: 10px 0 12px; }
  .topbar-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 8px;
    row-gap: 10px;
    align-items: center;
  }
  .topbar-inner > .brand-cluster {
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }
  .topbar-inner > .search-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }
  .topbar-inner > .header-actions {
    grid-column: 3;
    grid-row: 1;
    gap: 2px;
  }
  .header-icon { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .header-actions .btn, .header-login {
    min-width: auto;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
  .topbar .logo { padding: 0; min-height: 0; overflow: hidden; }
  .topbar .logo .brand-logo { height: 28px; max-width: 128px; }
  .search-wrap input { min-height: 44px; }
  .search-wrap .search-btn { width: 34px; height: 34px; top: 5px; right: 5px; }
  .panel-top {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 10px 8px;
    padding: 10px 12px;
    min-height: 0;
  }
  .panel-top-left { display: contents; }
  .panel-top .menu-toggle { grid-column: 1; grid-row: 1; }
  .panel-search-form { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .panel-top-right { grid-column: 2; grid-row: 1; justify-self: end; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .section-head { align-items: start; }
  .chart-box { width: 100%; max-width: 100%; }
}

@media (max-width: 768px) {
  .topbar-inner { gap: 10px 6px; }
  .header-text { display: none; }
  .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr 1fr; }
  .bottom-nav {
    display: grid;
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(var(--bottom-nav) + env(safe-area-inset-bottom));
  }
  .site-footer { margin-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .sticky-cta { display: flex; bottom: calc(var(--bottom-nav) + env(safe-area-inset-bottom)); }
  .hero { padding: 20px 0; }
  .hero-search { display: flex; }
  .pop-cats { grid-template-columns: 1fr 1fr; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: flex; min-height: 42vh; padding: 32px 20px; }
  .auth-form .logo { padding: 12px 16px; border-radius: 14px; }
  .auth-form .logo .brand-logo { height: 64px; max-width: min(320px, 86vw); }
  .auth-visual h1 { min-height: 3.84em; }
  .map-split { grid-template-columns: 1fr; }
  .map-side { max-height: none; }
  .demo-map { height: 280px; }
  .demo-map-lg { height: 300px; }
  .catbar-inner {
    width: auto;
    padding: 10px 0;
    gap: 2px;
  }
  .cat-item { flex: 0 0 auto; min-width: unset; max-width: none; padding: 8px 10px; font-size: 13px; }
  .container, .catbar-shell, .topbar-inner { width: min(var(--max), calc(100% - 20px)); }
  .panel-top { padding: 10px 12px; min-height: 60px; }
  .panel-search-form { max-width: none; }
  .page-head, .section-head { flex-direction: column; align-items: flex-start; }
  .page-head h1, .section-head h2 { font-size: 22px; }
  .toolbar { width: 100%; }
  .tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .toasts { left: 12px; right: 12px; }
  .toast { min-width: 0; width: 100%; }
  .cookie-banner { left: 12px; right: 12px; width: auto; max-width: none; }
  .pos-screen { margin: 16px auto; padding: 16px; }
  .chat-layout { min-height: 70vh; }
  .bubble { max-width: 86%; }
  .fd-media, .fd-media img { height: 180px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .input, .select, .textarea, .search-wrap input, .hs-field input, .hs-field select, .panel-search-form .input {
    font-size: 16px;
  }
}

body[data-layout="auth"] { background: #fff; }
body[data-layout="auth"] #page-slot { padding: 0; min-height: 100vh; }
body[data-page="login"] .catbar,
body[data-page="login"] .site-header,
body[data-page="login"] .site-footer,
body[data-page="login"] .bottom-nav,
body[data-page="adminLogin"] .site-header,
body[data-page="adminLogin"] .catbar,
body[data-page="adminLogin"] .site-footer,
body[data-page="adminLogin"] .bottom-nav,
body[data-page="register"] .catbar,
body[data-page="otp"] .catbar { display: none !important; }
body[data-page="login"] .auth-page,
body[data-page="adminLogin"] .auth-page { min-height: 100vh; }

body[data-layout="public"] #page-slot > .container { padding-top: 24px; }
body[data-page="home"] #page-slot > .container { padding-top: 0; }
.panel-content { min-height: calc(100vh - 68px); }
.product-card .card-title, .deal-card .card-title { display: block; }

@media (max-width: 430px) {
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .loyalty-strip { flex-direction: column; align-items: start; }
  .page-head { flex-direction: column; }
  .topbar .logo { padding: 0; }
  .topbar .logo .brand-logo { height: 24px; max-width: 112px; }
  .hs-row-main, .hs-row-smart { grid-template-columns: 1fr; }
  .pw-grid { grid-template-columns: 1fr; }
  .header-actions .btn, .header-login { font-size: 12px; padding: 0 10px; min-width: auto; }
  .header-icon { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
  .panel-content { padding: 14px 12px 24px; }
  .panel-lvl { display: none; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
  .countdown span { min-width: 46px; padding: 6px 4px; font-size: 13px; }
}

/* Boot + page loader */
body:has(#lytra-root:empty)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 400;
  background:
    radial-gradient(520px 240px at 50% 42%, rgba(7,176,198,.16), transparent 62%),
    #f4f7fb;
}
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background:
    radial-gradient(620px 280px at 50% 40%, rgba(7,176,198,.2), transparent 60%),
    radial-gradient(480px 220px at 78% 78%, rgba(240,164,68,.12), transparent 55%),
    #f4f7fb;
  transition: opacity .4s ease, visibility .4s ease;
}
.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  padding: 16px;
}
.loader-mark {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.loader-spin {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid #d5e2f0;
  border-top-color: var(--cyan);
  border-right-color: var(--coral);
  animation: spin .8s linear infinite;
}
.loader-mark img {
  width: 46px;
  height: auto;
  animation: pulseLogo 1.2s ease-in-out infinite;
}
.loader-bar {
  width: 168px;
  height: 4px;
  border-radius: 99px;
  background: #d9e3ef;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
  animation: loaderSlide 1.1s ease-in-out infinite;
}
.page-loader p {
  margin: 0;
  font-weight: 700;
  color: var(--navy-2);
  font-size: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.92); opacity: .75; }
}
@keyframes loaderSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}
#page-slot, #panel-slot {
  animation: pageIn .45s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
#confettiCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 99999;
}
.toasts { z-index: 230; }
.toast {
  transform: translateX(16px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateX(16px); opacity: 0; }
.toast-ok { border-left: 4px solid #07B0C6; }
.toast-warn { border-left: 4px solid #F0A444; }
.celeb-cta {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px;
}
.celeb-sub { color: #c9d4ea; margin: 8px 0 0; font-weight: 700; }
.celeb-pair { display: grid; gap: 4px; min-width: 110px; }
.celeb-pair span {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ee3ee;
}
.celeb-bal-wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.celeb-modal { animation: modalIn .35s cubic-bezier(.22,1,.36,1); }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: none; }
}
.redeem-check {
  width: 72px; height: 72px; margin: 0 auto 12px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #07b0c6, #082c87);
  font-size: 32px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(7,176,198,.35);
}
.coupon-code {
  margin: 12px auto 0; padding: 10px 14px; width: fit-content;
  border-radius: 12px; background: rgba(255,255,255,.12);
  font-weight: 800; letter-spacing: .08em;
}
.qr-reward { text-align: center; }
.qr-ph {
  width: 180px; height: 180px; margin: 14px auto;
  background:
    repeating-linear-gradient(90deg, #0b1220 0 8px, #fff 8px 12px),
    repeating-linear-gradient(#0b1220 0 8px, #fff 8px 12px);
  background-size: 20px 20px;
  border-radius: 12px;
  border: 8px solid #fff;
  box-shadow: 0 10px 24px rgba(6,30,92,.16);
}
.fly-coin {
  position: fixed; z-index: 240; pointer-events: none;
  min-width: 54px; padding: 4px 8px; border-radius: 999px;
  background: #F0A444; color: #061e5c; font-weight: 800; font-size: 12px;
  transform: translate(-50%, -50%);
  transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s ease;
  box-shadow: 0 8px 18px rgba(240,164,68,.4);
}
.wallet-pop { animation: walletPop .5s cubic-bezier(.2,1.4,.3,1); }
@keyframes walletPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.pw-card.wallet-pop { box-shadow: 0 0 0 6px rgba(240,164,68,.28), 0 22px 48px rgba(6,30,92,.28); }
.reward-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 12px;
}
.reward-card {
  text-align: left; background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 16px; display: grid; gap: 8px; cursor: pointer;
  box-shadow: 0 8px 20px rgba(6,30,92,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.reward-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(6,30,92,.12); }
.reward-card strong { font-size: 16px; color: var(--navy); }
.reward-card em { font-style: normal; font-weight: 800; color: #F0A444; }
.reward-ico { width: 36px; height: 36px; color: var(--cyan); }
.reward-lock { font-size: 11px; font-weight: 800; color: #c2410c; }
.tx-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tx-filters .tab.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.tx-group { margin-bottom: 16px; }
.tx-group h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.tx-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); margin-bottom: 8px;
}
.tx-row div { display: grid; }
.tx-row span { font-size: 12px; color: var(--muted); }
.tx-row.is-earn em { color: #0f9d58; font-style: normal; font-weight: 800; }
.tx-row.is-spend em { color: #e07a2f; font-style: normal; font-weight: 800; }
.tx-row.is-pending em { color: #7c3aed; font-style: normal; font-weight: 800; }
.tx-row.tx-new { animation: txHi .9s ease; }
@keyframes txHi { from { box-shadow: 0 0 0 3px rgba(7,176,198,.35); } to { box-shadow: none; } }
.expire-card, .pending-card, .calc-card { padding: 18px; }
.expire-amt, .pending-amt, .calc-out {
  font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--navy);
}
.pending-amt { color: #7c3aed; }
.calc-out { color: #0f9d58; margin-top: 10px; }
.boost-card {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #fff7ec; border: 1px solid #f3d7a8; border-radius: 16px; padding: 12px 14px; margin-bottom: 14px;
}
.boost-card.is-on { background: #e6f8fb; border-color: #9ee3ee; }
.boost-toggle { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.mob-wallet {
  display: none; color: #fff; border-radius: 22px; padding: 16px 18px; margin-bottom: 14px;
  background: linear-gradient(135deg, #061e5c, #082c87 55%, #07b0c6);
  box-shadow: 0 12px 28px rgba(8,44,135,.28), 0 0 24px rgba(7,176,198,.2);
}
.mob-wallet span { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9ee3ee; }
.mob-wallet strong { display: block; font-size: 36px; letter-spacing: -.04em; line-height: 1.1; }
#demoDock { position: fixed; right: 16px; bottom: 18px; z-index: 70; }
.demo-fab {
  border: 0; border-radius: 999px; min-height: 42px; padding: 0 14px;
  background: var(--navy); color: #fff; font-weight: 800; box-shadow: 0 10px 24px rgba(8,44,135,.3);
}
.demo-pane {
  position: absolute; right: 0; bottom: 50px; width: 240px;
  background: #fff; border-radius: 16px; padding: 12px; display: grid; gap: 6px;
  box-shadow: 0 16px 40px rgba(6,30,92,.2); border: 1px solid var(--border);
}
.demo-pane button {
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  min-height: 36px; font-weight: 700; text-align: left; padding: 0 10px;
}
body[data-layout="user"] .panel-content { padding-bottom: 24px; }
@media (max-width: 1199px) {
  .reward-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .reward-grid { grid-template-columns: 1fr; }
  .mob-wallet { display: block; }
  body[data-layout="user"] .panel-content { padding-bottom: calc(var(--bottom-nav) + 24px); }
  body[data-layout="user"] .user-bottom-nav { display: grid; }
  #demoDock { bottom: calc(var(--bottom-nav) + 12px); }
}
@keyframes navyShift {
  0% { transform: translate3d(0, 0, 0) scale(1); background-position: 12% 20%; }
  40% { transform: translate3d(-4%, 3%, 0) scale(1.08); background-position: 72% 46%; }
  70% { transform: translate3d(5%, -4%, 0) scale(1.05); background-position: 40% 80%; }
  100% { transform: translate3d(0, 0, 0) scale(1); background-position: 12% 20%; }
}
@keyframes navyDrift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(6%, -5%, 0) rotate(8deg); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-copy, .hero-pin, .hero p, .hero-search, .hero-cta, .featured-deal, .hero-slide, .hs-progress span, .cat-item, .pop-cat, .cat-emoji, [class*="cat-anim-"], #page-slot, #panel-slot, .lvl-fill, .pts-float, .gift, .pay-spin, .celeb-gain.is-ticking, .celeb-bal.is-ticking, .level-rozet-ring, .wallet-pop, .tx-row.tx-new, .celeb-modal, .auth-visual::before, .auth-visual::after, .btn-pulse {
    animation: none !important;
  }
  .featured-deal:hover, .featured-deal:hover .fd-media img, .hero-search:focus-within, .reward-card:hover, .btn:active { transform: none; }
  #confettiCanvas { display: none; }
}
