:root {
  --brand-deep-teal: #0e4d4f;
  --brand-dark-ink: #072f32;
  --brand-lime: #bef264;
  --brand-emerald: #059669;
  --bg-app: #f1f5f9;
  --card-bg: #ffffff;
  --border-soft: #dbe4ec;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Prompt", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-app);
  color: var(--text-main);
  padding-bottom: 5.2rem;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

/* Top Header */
.perk-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.perk-topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  height: 54px;
  padding: 0 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.perk-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--brand-dark-ink);
}

.perk-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #072f32, #0e4d4f);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 4px 10px rgba(14, 77, 79, 0.2);
}

.perk-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.perk-brand-text strong {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.perk-brand-text small {
  font-size: 0.68rem;
  color: var(--brand-emerald);
  font-weight: 600;
}

.perk-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hdr-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.36rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.hdr-lime-btn {
  background: var(--brand-lime);
  border-color: #a3e635;
  color: var(--brand-dark-ink);
}

.hdr-auth-pill {
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: none;
  background: var(--brand-deep-teal);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* Main Container */
.perk-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.72rem 0.82rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

/* Zone 1: Location & Pit-Stop Hub Strip */
.location-bar-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 0.62rem 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.gps-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-gps-scan {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.58rem 0.8rem;
  border-radius: 12px;
  border: 1px solid #0e4d4f;
  background: linear-gradient(135deg, #09383b 0%, #0e4d4f 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(14, 77, 79, 0.18);
}

.btn-gps-scan.is-active-gps {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  border-color: #047857;
}

.radius-select {
  padding: 0.54rem 0.55rem;
  border-radius: 11px;
  border: 1px solid var(--border-soft);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
}

.hub-chip-strip {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.08rem;
}

.hub-chip-strip::-webkit-scrollbar {
  display: none;
}

.hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hub-chip.active {
  background: var(--brand-lime);
  border-color: #84cc16;
  color: var(--brand-dark-ink);
  box-shadow: 0 2px 8px rgba(132, 204, 22, 0.25);
}

/* Zone 2: 1-Row Wallet Strip */
.wallet-strip-card {
  background: #ffffff;
  border: 1.5px solid #a7f3d0;
  border-radius: 14px;
  padding: 0.52rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.wallet-strip-card:hover {
  border-color: #10b981;
}

.wallet-strip-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.wallet-strip-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-dark-ink);
  white-space: nowrap;
}

.wallet-mini-chips {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.wallet-mini-chips::-webkit-scrollbar {
  display: none;
}

.w-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
}

.w-starter-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px dashed #fbbf24;
  border-radius: 999px;
  padding: 0.14rem 0.45rem;
  white-space: nowrap;
}

.wallet-empty-hint {
  font-size: 0.76rem;
  color: #b45309;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-edit-cta {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-deep-teal);
  background: #f0fdfa;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Zone 3: Category Filter Strip */
.category-filter-strip {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-filter-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--brand-dark-ink);
  border-color: var(--brand-dark-ink);
  color: #ffffff;
}

.cat-pill-match.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.context-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0.15rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
}

.match-count-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Zone 4: #1 Winner Hero Card — Dark-Teal Luxury Contrast! */
.winner-hero-card {
  background: linear-gradient(135deg, #06292c 0%, #0e4d4f 58%, #115e59 100%);
  color: #f8fafc;
  border-radius: 20px;
  padding: 0.95rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
  box-shadow: 0 12px 28px rgba(7, 47, 50, 0.24);
}

.winner-eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.winner-crown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--brand-lime);
  color: var(--brand-dark-ink);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
}

.winner-dist {
  font-size: 0.74rem;
  color: rgba(248, 250, 252, 0.85);
  font-weight: 600;
}

.winner-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.winner-store-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.winner-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.winner-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.24;
  color: #ffffff;
}

.winner-sub {
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.82);
  margin-top: 0.12rem;
}

.winner-save-box {
  text-align: right;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(190, 242, 100, 0.4);
  border-radius: 13px;
  padding: 0.4rem 0.65rem;
  flex-shrink: 0;
}

.winner-save-label {
  display: block;
  font-size: 0.66rem;
  color: rgba(248, 250, 252, 0.8);
}

.winner-save-val {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--brand-lime);
  line-height: 1.15;
}

.winner-save-badge {
  display: block;
  font-size: 0.68rem;
  color: #ecfccb;
  font-weight: 700;
}

.hero-combo-box {
  background: rgba(254, 243, 199, 0.15);
  border: 1px dashed #fde047;
  border-radius: 12px;
  padding: 0.48rem 0.68rem;
}

.hero-combo-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fde047;
}

.hero-combo-steps {
  font-size: 0.73rem;
  color: #fef9c3;
  margin-top: 0.1rem;
}

.winner-best-promo {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
}

.winner-best-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.winner-partner-chip {
  background: #22c55e;
  color: #052e16;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
}

.winner-redeem-line {
  margin-top: 0.28rem;
  font-size: 0.75rem;
  color: #e2e8f0;
}

.winner-actions-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-winner-map {
  flex: 1;
  text-align: center;
  text-decoration: none;
  background: var(--brand-lime);
  color: var(--brand-dark-ink);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.5rem 0.75rem;
  border-radius: 11px;
}

.btn-winner-more {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.5rem 0.72rem;
  border-radius: 11px;
  cursor: pointer;
}

.winner-expanded-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin-top: 0.2rem;
}

/* Zone 5: Store Cards */
.stores-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.62rem;
}

.store-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
}

.store-card.has-match {
  border-color: #a7f3d0;
}

.store-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.store-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.store-ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.22rem;
  flex-shrink: 0;
}

.store-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--brand-dark-ink);
  line-height: 1.25;
}

.store-meta {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.store-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.28rem;
  flex-shrink: 0;
}

.store-match-badge {
  background: #ecfdf5;
  border: 1px solid #34d399;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.18rem 0.52rem;
  border-radius: 999px;
  white-space: nowrap;
}

.store-other-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
}

.store-map-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-deep-teal);
  text-decoration: none;
}

.store-combo-pill {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #92400e;
  border-radius: 10px;
  padding: 0.38rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.store-matched-list,
.store-others-list {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.promo-item {
  border-radius: 12px;
  padding: 0.52rem 0.65rem;
  color: var(--text-main);
}

.promo-item.is-matched {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.promo-item.is-other {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.promo-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.promo-partner-badge-group {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: wrap;
}

.promo-partner-tag {
  background: var(--brand-dark-ink);
  color: #ffffff;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 0.12rem 0.44rem;
  border-radius: 6px;
}

.promo-benefit-pill {
  color: #047857;
  font-size: 0.8rem;
  font-weight: 800;
}

.src-micro-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
}

.src-micro-tag.is-bot {
  background: #e0f2fe;
  color: #0369a1;
}

.src-micro-tag.is-crowd {
  background: #fef3c7;
  color: #92400e;
}

.promo-vote-btns {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.vote-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 7px;
  padding: 0.12rem 0.38rem;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.promo-title {
  font-size: 0.81rem;
  font-weight: 700;
  margin-top: 0.22rem;
  line-height: 1.35;
}

.promo-steps {
  font-size: 0.74rem;
  color: #1e293b;
  margin-top: 0.18rem;
  line-height: 1.35;
}

.promo-cond {
  font-size: 0.7rem;
  color: #64748b;
  margin-top: 0.12rem;
}

.no-match-note {
  font-size: 0.76rem;
  color: #64748b;
  background: #f8fafc;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
}

.toggle-others-btn {
  width: 100%;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.crawler-status-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #475569;
  background: #e2e8f0;
  padding: 0.48rem 0.75rem;
  border-radius: 12px;
  cursor: pointer;
}

/* Bottom Navigation */
.perk-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 65;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 0 auto;
  padding: 0.32rem 0.4rem calc(0.38rem + env(safe-area-inset-bottom, 0px));
}

.bnav-item {
  border: none;
  background: transparent;
  border-radius: 11px;
  padding: 0.28rem 0.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  color: #64748b;
  font-family: inherit;
  cursor: pointer;
}

.bnav-item.active {
  color: var(--brand-deep-teal);
  background: rgba(14, 77, 79, 0.09);
}

.bnav-icon {
  position: relative;
  font-size: 1.08rem;
  line-height: 1;
}

.bnav-badge {
  position: absolute;
  top: -5px;
  right: -12px;
  background: #059669;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.05rem 0.28rem;
  border-radius: 999px;
}

.bnav-label {
  font-size: 0.68rem;
  font-weight: 700;
}

/* Bottom-Sheet Modals */
.sheet-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}

.sheet-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  background: #ffffff;
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.2);
}

.sheet-head {
  padding: 0.95rem 1.1rem 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

.sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark-ink);
}

.sheet-sub {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.sheet-close-btn {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.sheet-body {
  padding: 0.85rem 1.1rem;
  overflow-y: auto;
}

.sheet-foot {
  padding: 0.75rem 1.1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wallet-group-block {
  margin-bottom: 0.85rem;
}

.wallet-group-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand-deep-teal);
  margin-bottom: 0.42rem;
}

.wallet-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.wallet-opt-chip {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.48rem 0.6rem;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.wallet-opt-chip.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  font-weight: 800;
}

.w-opt-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w-opt-check {
  font-weight: 800;
}

/* Forms & Admin */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.f-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 0.22rem;
  color: #334155;
}

.f-input {
  width: 100%;
  padding: 0.52rem 0.68rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.82rem;
  margin-bottom: 0.65rem;
}

.btn-lime-primary {
  flex: 1;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  border: none;
  background: var(--brand-lime);
  color: var(--brand-dark-ink);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-outline-sm {
  padding: 0.52rem 0.75rem;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline-sm.is-danger {
  color: #dc2626;
  border-color: #fecaca;
}

.form-msg.is-err {
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state-card,
.loading-skeleton {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
}

.bot-stat-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bot-stat-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.bot-note {
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 0.65rem;
}

.toast-banner {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #06292c;
  color: #ffffff;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  max-width: 92vw;
  text-align: center;
}

.admin-card {
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 1rem;
}

.adm-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.adm-log-row {
  font-size: 0.78rem;
  padding: 0.4rem 0.6rem;
  background: #f8fafc;
  border-radius: 8px;
  margin-top: 0.35rem;
}

.adm-promo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.adm-promo-row.is-off {
  opacity: 0.5;
}

.adm-promo-btns {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .hide-xs {
    display: none;
  }
  .wallet-option-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* GPS-First Simulation Label & Official AI Source Transparency */
.hub-sim-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
}
.hub-sim-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
}
.hub-sim-row .hub-chip-strip {
  margin-top: 0;
  flex: 1;
}
.src-micro-tag.is-ai {
  background: #ecfeff;
  color: #0e7490;
  border: 1px solid #a5f3fc;
}
.src-micro-tag.is-seed {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.promo-src-link {
  color: #0f766e;
  font-weight: 700;
  text-decoration: underline;
}
.open-now-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
}
.open-now-pill.is-open {
  background: #dcfce7;
  color: #15803d;
}
.open-now-pill.is-closed {
  background: #fee2e2;
  color: #b91c1c;
}
.form-msg.is-ok {
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.55rem;
  margin-top: 0.5rem;
}

/* ============================================================================
   Clean Mobile-First UX v2: Scannable Compact Rows + Distance Badges + Zero Clutter
   ============================================================================ */
.clean-control-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.65rem 0.72rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.gps-compact-row {
  display: flex;
  align-items: center;
  gap: 0.38rem;
}

.btn-gps-pill {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  padding: 0.46rem 0.65rem;
  border-radius: 11px;
  border: 1px solid #0e4d4f;
  background: #0e4d4f;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.btn-gps-pill.is-active-gps {
  background: #059669;
  border-color: #059669;
}

.radius-pill-select {
  padding: 0.44rem 0.45rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
}

.btn-sim-toggle {
  padding: 0.44rem 0.58rem;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.btn-sim-toggle.is-sim-active {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.hub-drawer-wrap {
  padding-top: 0.15rem;
  border-top: 1px dashed #e2e8f0;
}

.search-sort-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-box-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.32rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  padding: 0 0.55rem;
  height: 36px;
}

.search-ico {
  font-size: 0.8rem;
  opacity: 0.7;
}

.store-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.78rem;
  color: #0f172a;
  outline: none;
}

.sort-seg-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sort-seg-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.sort-seg-btn.active {
  background: #ffffff;
  color: #072f32;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
}

.wallet-slim-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.38rem 0.55rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 11px;
  cursor: pointer;
}

.winner-hero-card {
  cursor: pointer;
  padding: 0.88rem 0.92rem;
  gap: 0.55rem;
}

.winner-dist-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.winner-name {
  font-size: 1.02rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.winner-sub {
  font-size: 0.76rem;
  color: #ecfccb;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sleek 1-Row Store List Cards (Zero Eye-Strain!) */
.stores-list-wrap {
  gap: 0.45rem;
}

.compact-store-row {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 0.65rem 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.compact-store-row:active {
  transform: scale(0.99);
}

.compact-store-row.has-match {
  border-left: 4px solid #10b981;
}

.csr-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.csr-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.csr-title-line {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.csr-name {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.open-dot {
  font-size: 0.66rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.open-dot.is-open { color: #16a34a; }
.open-dot.is-closed { color: #dc2626; }

.csr-sub-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: nowrap;
  overflow: hidden;
}

.dist-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.44rem;
  border-radius: 6px;
  font-size: 0.71rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.dist-badge.is-real {
  background: #e0f2fe;
  color: #0369a1;
}

.dist-badge.is-sim {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.row-perk-chip {
  display: inline-block;
  padding: 0.1rem 0.46rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.row-perk-chip.is-match {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.row-perk-chip.is-other {
  background: #f8fafc;
  color: #64748b;
}

.row-perk-more {
  font-size: 0.68rem;
  font-weight: 800;
  color: #059669;
  flex-shrink: 0;
}

.csr-right {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex-shrink: 0;
}

.csr-save {
  text-align: right;
  line-height: 1.1;
}

.csr-save strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #047857;
}

.csr-save small {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 600;
}

.csr-save.is-muted span {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
}

.csr-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  flex-shrink: 0;
}

.csr-nav-btn:hover {
  background: #ccfbf1;
}
