/* ==========================================================================
   CUSTOMER SITE — LAYOUT (customer-layout.css)
   Topbar, Header, Mega Menu, Footer, Mobile Nav
   ========================================================================== */

/* ---------- Announcement Topbar ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; height: auto; padding-top: 7px; padding-bottom: 7px;
}
.topbar-inner { gap: 16px; width: 100%; }
.topbar-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex-shrink: 1; min-width: 0; }
.topbar-links a { color: var(--text-on-dark-muted); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.topbar-links a:hover { color: var(--white); }
.topbar-proto-link {
  color: #f5d78e !important;
  background: rgba(230, 190, 92, 0.12);
  border: 1px solid rgba(230, 190, 92, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  letter-spacing: 0.02em;
}
.topbar-proto-link:hover {
  color: #fff !important;
  background: rgba(230, 190, 92, 0.22);
}
.topbar-loc {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0;
  max-width: 100%; padding: 4px 12px 4px 5px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
}
.topbar-loc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%; background: rgba(91,130,240,0.2);
  color: var(--blue-400);
}
.topbar-loc-icon svg {
  width: 13px; height: 13px; display: block; flex-shrink: 0;
}
.topbar-loc-text { white-space: nowrap; line-height: 1.35; font-size: 12.5px; }
.topbar-loc strong { color: var(--white); font-weight: 600; }
.topbar-left { display: flex; align-items: center; gap: 6px; }
.topbar-left svg { width: 13px; height: 13px; }
.topbar-change {
  background: none; border: none; color: var(--blue-400); font-size: 12.5px; font-weight: 600;
  cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.topbar-change:hover { color: var(--white); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right span { display: flex; align-items: center; gap: 5px; }
.topbar-right svg { width: 13px; height: 13px; color: var(--blue-400); }
@media (max-width: 900px) { .topbar-links { display: none; } }
@media (max-width: 768px) {
  .topbar-loc { gap: 6px; padding: 4px 10px 4px 4px; }
  .topbar-loc-text { white-space: normal; max-width: calc(100vw - 130px); overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- Sticky header + nav chrome ---------- */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(10, 31, 68, 0.1);
}
.site-chrome .site-header {
  position: relative;
  top: auto;
  z-index: auto;
  border-bottom: none;
}
.site-chrome .category-nav { border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------- Main Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo img { height: 44px; width: auto; }
.brand-logo .brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  line-height: 1.15; white-space: nowrap;
}
.brand-logo .brand-name .b1 { color: var(--navy-800); display: inline; }
.brand-logo .brand-name .b2 { color: var(--red-600); display: inline; }

.header-search {
  flex: 1; display: flex; max-width: none; margin: 0; min-width: 0;
  box-shadow: 0 2px 8px rgba(10,31,68,0.06); border-radius: var(--r-md);
}
.header-search .cat-select {
  border: 1.5px solid var(--border-default);
  border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  padding: 0 14px;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; min-height: 46px;
}
.header-search .search-input-wrap { flex: 1; position: relative; }
.header-search input {
  width: 100%; height: 46px; border: 1.5px solid var(--border-default);
  padding: 0 16px; font-size: 14px; border-left: none; border-right: none;
  background: var(--white);
}
.header-search input:focus { outline: none; box-shadow: none; border-color: var(--blue-500); }
.header-search:focus-within .cat-select { border-color: var(--blue-500); }
.header-search .search-btn {
  min-width: 96px; height: 46px; background: var(--blue-600); color: var(--white);
  border-radius: 0 var(--r-md) var(--r-md) 0; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px; font-weight: 700; padding: 0 18px;
}
.header-search .search-btn:hover { background: var(--navy-700); }
.header-search .search-btn svg { width: 19px; height: 19px; display: none; }

.header-actions { display: flex; align-items: center; gap: 26px; flex-shrink: 0; }
.header-action-item {
  display: flex; align-items: center; gap: 9px; color: var(--gray-700); position: relative;
  font-size: 13px;
}
.header-action-item .ic-wrap { position: relative; display: flex; align-items: center; }
.header-action-item svg { width: 24px; height: 24px; color: var(--navy-800); }
.header-action-item .label { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.header-action-item .label-solo { justify-content: center; padding-top: 1px; }
.header-action-item .label small {
  font-size: 11.5px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.01em;
}
.header-action-item .label strong { font-size: 13.5px; font-weight: 600; color: var(--gray-800); }
.header-action-item:hover .label strong { color: var(--blue-600); }
.header-action-item .count-badge {
  position: absolute; top: -6px; right: -8px; background: var(--red-600); color: var(--white);
  font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--white);
}
.mobile-menu-btn, .mobile-search-btn { display: none; }

@media (max-width: 1100px) {
  .header-action-item .label { display: none; }
}
@media (max-width: 980px) {
  .header-search { display: none; }
  .mobile-search-btn { display: flex; }
}
@media (max-width: 768px) {
  .header-row { height: 60px; gap: 14px; min-width: 0; }
  .brand-logo img { height: 32px; }
  .brand-logo .brand-name { font-size: 15px; }
  .mobile-menu-btn {
    display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    color: var(--navy-800); flex-shrink: 0;
  }
  .mobile-menu-btn svg { width: 24px; height: 24px; }
  .header-actions { gap: 10px; flex-shrink: 0; }
  .header-action-item.acc-only-desktop,
  .header-action-item.has-sub { display: none; }
  .mobile-search-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    flex-shrink: 0;
  }
}

/* ---------- Category Nav Bar ---------- */
.category-nav {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%),
    linear-gradient(90deg, #061428 0%, #0a1f44 50%, #061428 100%);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.category-nav .container,
.category-nav__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.cat-dropdown { position: relative; flex-shrink: 0; }
.cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #2563eb 0%, #1b4fcc 100%);
  color: var(--white);
  padding: 0 14px 0 8px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
  height: 40px;
  margin: 0;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 16px rgba(27, 79, 204, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
a.cat-trigger { padding: 0 18px 0 8px; }
.cat-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  flex-shrink: 0;
}
.cat-trigger__icon svg { width: 16px; height: 16px; }
.cat-trigger > svg { width: 16px; height: 16px; flex-shrink: 0; }
.cat-trigger__text { white-space: nowrap; }
.cat-dropdown.open .cat-trigger,
.cat-trigger[aria-expanded="true"] {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 6px 20px rgba(27, 79, 204, 0.5);
}
.cat-trigger:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 79, 204, 0.5);
}
.cat-trigger__chev {
  width: 14px;
  height: 14px;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
.cat-dropdown.open .cat-trigger__chev { transform: rotate(180deg); }

.cat-mega-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(580px, calc(100vw - 40px));
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 50px rgba(10, 31, 68, 0.18);
  padding: 14px;
  z-index: 130;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}
.cat-mega-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cat-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 10px;
}
.cat-mega-head strong { font-size: 14px; color: var(--navy-900); }
.cat-mega-head a {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-600);
  text-decoration: none;
}
.cat-mega-head a:hover { text-decoration: underline; }
.cat-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.cat-mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--gray-800);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cat-mega-item:hover {
  background: var(--blue-50);
  border-color: rgba(27, 79, 204, 0.12);
  color: var(--blue-600);
}
.cat-mega-item img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  background: #eef4fc;
  border-radius: 10px;
  padding: 3px;
}
.cat-mega-item span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.main-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.main-nav-links::-webkit-scrollbar { display: none; }
.main-nav-links a,
.main-nav-links .nav-more-btn {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 13px;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav-links a::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  background: transparent;
  border-radius: 2px;
  transition: background 0.15s ease;
}
.main-nav-links a:hover,
.main-nav-links .nav-more-btn:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.main-nav-links a.active {
  color: var(--white);
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}
.main-nav-links a.active::after { background: var(--red-500); }
.main-nav-links a.highlight { font-weight: 700; }
.main-nav-links a.highlight--ai {
  color: #7dd3fc;
  background: transparent;
}
.main-nav-links a.highlight--ai:hover { color: #bae6fd; background: rgba(56, 189, 248, 0.08); }
.main-nav-links a.highlight--premium {
  color: var(--gold-400);
  background: transparent;
}
.main-nav-links a.highlight--premium:hover { color: #fde68a; background: rgba(230, 190, 92, 0.08); }
.main-nav-links a.highlight--ai::after,
.main-nav-links a.highlight--premium::after { display: none; }
.nav-link-icon { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.95; }

.nav-more { position: relative; flex-shrink: 0; display: flex; align-items: center; height: 34px; }
.nav-more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-pill);
}
.nav-more-btn:hover,
.nav-more.open .nav-more-btn {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.nav-more-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(10, 31, 68, 0.18);
  border: 1px solid var(--border-soft);
  padding: 6px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .2s var(--ease);
}
.nav-more-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-more-panel a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 10px;
  border-bottom: none;
}
.nav-more-panel a:hover { background: var(--blue-50); color: var(--blue-600); }

.nav-extras {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-wallet-pill,
.nav-speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.nav-pill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.nav-pill-icon svg { width: 14px; height: 14px; }
.nav-wallet-pill > svg,
.nav-speed-pill > svg { width: 14px; height: 14px; flex-shrink: 0; }
.nav-pill-icon--speed {
  background: rgba(230, 190, 92, 0.18);
  color: #fde68a;
}
.nav-pill-copy {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  line-height: 1.2;
}
.nav-pill-copy strong {
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--white);
}
.nav-wallet-pill {
  text-decoration: none;
  background: rgba(255,255,255,0.08);
}
.nav-wallet-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.18);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-speed-pill {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.28);
}
.nav-speed-pill .nav-pill-copy strong { color: #86efac; }

@media (max-width: 1200px) {
  .main-nav-links a,
  .main-nav-links .nav-more-btn { padding: 0 11px; font-size: 13px; }
}
@media (max-width: 1100px) { .nav-extras { display: none; } }
@media (max-width: 768px) { .category-nav { display: none; } }

/* ---------- Mobile Slide Menu ---------- */
.mobile-menu-overlay {
  position: fixed; inset: 0; background: rgba(10, 25, 53, 0.55); z-index: 300;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease);
  backdrop-filter: blur(3px);
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; left: 0; height: 100%;
  width: min(300px, 86%); max-width: 300px;
  background: #f4f7fc;
  z-index: 301; transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
  box-shadow: 8px 0 40px rgba(10, 31, 68, 0.2);
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head {
  background: linear-gradient(135deg, var(--navy-900) 0%, #0f2744 100%);
  color: var(--white);
  padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-shrink: 0;
}
.mobile-menu-head__user {
  display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1;
}
.mobile-menu-head .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), #2563eb);
  border: 2px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.mobile-menu-head .info { min-width: 0; }
.mobile-menu-head .info strong {
  display: block; font-size: 15px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-menu-head .info span {
  font-size: 12px; color: rgba(255, 255, 255, 0.72); margin-top: 2px; display: block;
}
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-menu-close svg { width: 18px; height: 18px; }
.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.18); }
.mobile-menu-body {
  flex: 1;
  padding: 14px 12px calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Wallet card */
.mobile-menu-wallet {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px !important;
  background: linear-gradient(135deg, #1b4fcc 0%, #2563eb 55%, #059669 100%);
  border: none;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(27, 79, 204, 0.28);
  color: var(--white);
  text-decoration: none;
  margin: 0 !important;
}
.mobile-menu-wallet:hover { opacity: 0.96; transform: translateY(-1px); }
.mobile-menu-wallet__top {
  display: flex; align-items: center; gap: 12px;
}
.mobile-menu-wallet__ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-wallet__ic svg {
  width: 20px !important; height: 20px !important;
  padding: 0 !important; background: none !important;
  color: var(--white) !important; border-radius: 0;
}
.mobile-menu-wallet__text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.mobile-menu-wallet__text strong {
  font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.25;
}
.mobile-menu-wallet__text small {
  font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.82); line-height: 1.3;
}
.mobile-menu-wallet__balance {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.mobile-menu-wallet__bal-copy { min-width: 0; }
.mobile-menu-wallet__bal-label {
  display: block; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75); margin-bottom: 2px;
}
.mobile-menu-wallet__bal-amt {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--white); line-height: 1;
}
.mobile-menu-wallet__cta {
  display: inline-flex; align-items: center; gap: 2px;
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.mobile-menu-wallet__badge { display: none; }

/* Quick action tiles */
.mobile-menu-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mobile-menu-quick__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 12px 6px;
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 12px;
  font-size: 11.5px; font-weight: 600; color: var(--navy-900);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(10, 31, 68, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mobile-menu-quick__item:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 12px rgba(10, 31, 68, 0.08);
}
.mobile-menu-quick__ic {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-quick__ic svg { width: 17px; height: 17px; color: var(--blue-600); }

/* Menu list panel */
.mobile-menu-list {
  background: var(--white);
  border: 1px solid rgba(10, 31, 68, 0.08);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 2px 10px rgba(10, 31, 68, 0.04);
}
.mobile-menu-group-label,
.mobile-menu-list .divider-label {
  padding: 12px 12px 6px;
  margin: 0;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.mobile-menu-list a:not(.mobile-menu-premium):not(.mobile-menu-wallet) {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.mobile-menu-list a:not(.mobile-menu-premium):not(.mobile-menu-wallet):hover {
  background: var(--gray-50); color: var(--navy-900);
}
.mobile-menu-link-ic {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-link-ic svg { width: 17px; height: 17px; color: var(--navy-800); }
.mobile-menu-list a:not(.mobile-menu-premium):not(.mobile-menu-wallet) > svg {
  width: 17px; height: 17px;
  padding: 7px; box-sizing: content-box;
  background: var(--blue-50); border-radius: 8px;
  color: var(--navy-800); flex-shrink: 0;
}

/* Premium row */
.mobile-menu-premium {
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 6px;
  padding: 12px !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  text-decoration: none;
}
.mobile-menu-premium:hover { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mobile-menu-premium__ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-premium__ic svg { width: 18px; height: 18px; color: var(--white); }
.mobile-menu-premium__copy { flex: 1; min-width: 0; }
.mobile-menu-premium__copy strong {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--navy-900);
}
.mobile-menu-premium__copy small {
  display: block; font-size: 11px; color: #92400e; margin-top: 1px;
}
.mobile-menu-premium__arrow { flex-shrink: 0; color: #b45309; }

/* Legacy flat list fallback (inner pages) */
.mobile-menu > .mobile-menu-list {
  padding: 10px 12px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}
.mobile-menu > .mobile-menu-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 2px;
  font-size: 14px; font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--r-md);
  text-decoration: none;
}
.mobile-menu > .mobile-menu-list a:hover { background: var(--white); color: var(--navy-900); }
.mobile-menu > .mobile-menu-list a svg {
  width: 19px; height: 19px; color: var(--navy-800); flex-shrink: 0;
  padding: 0; background: none; border-radius: 0;
}
.mobile-menu-list a[href*="wallet.html"]:not(.mobile-menu-wallet) {
  flex-direction: row;
  margin: 8px 0 10px;
  padding: 13px 14px !important;
  background: linear-gradient(135deg, #1b4fcc, #059669);
  border-radius: 12px;
  color: var(--white);
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 20px rgba(27, 79, 204, 0.22);
}
.mobile-menu-list a[href*="wallet.html"]:not(.mobile-menu-wallet) svg {
  background: rgba(255,255,255,0.18) !important;
  color: var(--white) !important;
  padding: 8px !important;
  border-radius: 8px !important;
}
.mobile-menu-list a[href*="wallet.html"]:not(.mobile-menu-wallet)::after {
  content: "₹1,250";
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 800;
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  padding: 5px 9px;
  border-radius: 8px;
  line-height: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  margin-top: 40px;
  width: 100%;
  overflow-x: clip;
}
.site-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-500) 20%, var(--gold-500) 50%, var(--blue-500) 80%, transparent);
  opacity: 0.85;
}
.footer-top {
  padding-top: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col { min-width: 0; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
  font-size: 13px;
  color: var(--text-on-dark-muted);
  display: inline-block;
  line-height: 1.45;
  transition: color 0.15s ease, transform 0.15s ease;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0 18px;
  max-width: 320px;
  color: rgba(255,255,255,0.72);
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; color: var(--white); }
.footer-bottom {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
}
.footer-payments { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.footer-payments .pay-chip {
  background: rgba(255,255,255,0.95);
  color: var(--navy-900);
  font-size: 10.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 4px;
}
.app-download { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.app-download a {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 11.5px;
  min-width: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.app-download a:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
}
.app-download a svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--white); }
.app-download a span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.app-download a small { font-size: 8.5px; color: rgba(255,255,255,0.55); letter-spacing: 0.04em; }
.app-download a strong { font-size: 12px; color: var(--white); }

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .footer-col:first-child { grid-column: 1 / -1; }
  .footer-brand-desc { max-width: none; }
}

@media (max-width: 768px) {
  .site-footer {
    margin-top: 24px;
    max-width: 100%;
    overflow-x: clip;
  }
  .footer-top { padding-top: 36px; padding-bottom: 28px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-col:first-child {
    grid-column: auto;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .footer-col {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-col:last-child {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .footer-col h4 {
    font-size: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.92);
  }
  .footer-col ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 20px;
  }
  .footer-col ul li { margin-bottom: 0; }
  .footer-col ul li a {
    display: block;
    padding: 9px 0;
    font-size: 13.5px;
  }
  .footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.65;
    margin: 14px 0 18px;
  }
  .app-download {
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
  }
  .app-download a {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .footer-payments { justify-content: center; }
}

@media (max-width: 480px) {
  .footer-col ul { grid-template-columns: 1fr; gap: 0; }
  .footer-col ul li a { padding: 10px 0; }
  .app-download a { max-width: none; }
}

/* Preserve side padding on footer rows (also .container) */
.footer-top.container,
.footer-bottom.container {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .footer-top.container,
  .footer-bottom.container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (min-width: 769px) {
  .footer-top.container,
  .footer-bottom.container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---------- Mobile Bottom Nav (App-style) ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--white);
  border-top: 1px solid var(--border-soft); z-index: 90; box-shadow: 0 -4px 14px rgba(10,31,68,0.06);
}
.mobile-bottom-nav .row { display: flex; justify-content: space-around; }
.mobile-bottom-nav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px;
  font-size: 10.5px; font-weight: 600; color: var(--text-muted);
}
.mobile-bottom-nav a svg { width: 21px; height: 21px; }
.mobile-bottom-nav a.active { color: var(--blue-600); }
@media (max-width: 768px) {
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  .mobile-bottom-nav a {
    min-width: 0;
    padding: 8px 2px 7px;
    font-size: 10px;
  }
  .mobile-bottom-nav a svg { width: 20px; height: 20px; }
}

/* ---------- Breadcrumb bar ---------- */
.breadcrumb-bar { background: var(--bg-shell); border-bottom: 1px solid var(--border-soft); padding: 12px 0; }

body.menu-open { overflow: hidden; }

/* —— Prototype hub quick link (demo builds only) —— */
.proto-float-link {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 480;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.proto-float-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.proto-float-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 31, 68, 0.34);
  color: var(--white);
}
@media (max-width: 768px) {
  .proto-float-link {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    padding: 9px 14px;
    font-size: 11.5px;
  }
}
